/* ==========================================================================
   Varyxis marketing site — brand tokens per Varyxis Brand Identity Guidelines
   v1.0 (proposed digital values; ~70% neutral / 20% charcoal / 10% orange).
   ========================================================================== */
:root {
  --signal: #f97316;      /* Signal Orange — accent, never under white body text */
  --ember: #c2410c;       /* Accessible Ember — buttons with white text (AA) */
  --ember-dark: #9a3412;
  --charcoal: #1f262e;    /* AAA on white */
  --graphite: #39424e;
  --slate: #5a6876;       /* AA secondary text */
  --cloud: #f5f7f9;
  --line: #e3e8ed;
  --white: #ffffff;
  --radius: 12px;
  --font: 'Inter', Arial, 'Liberation Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 17px; /* brand: 16–18px body */
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--ember); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* --- Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}
.wordmark {
  font-weight: 700; font-size: 1.45rem; letter-spacing: -0.02em;
  color: var(--charcoal); text-decoration: none;
}
.wordmark span { color: var(--signal); }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.main-nav a {
  color: var(--slate); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 8px;
}
.main-nav a:hover { color: var(--charcoal); background: var(--cloud); }
.main-nav a[aria-current="page"] { color: var(--charcoal); }
.header-cta { display: flex; gap: 10px; align-items: center; }

/* --- Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 11px 22px; border-radius: 10px; border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--ember); color: var(--white); }
.btn-primary:hover { background: var(--ember-dark); }
.btn-secondary { background: var(--white); color: var(--charcoal); border-color: var(--line); }
.btn-secondary:hover { background: var(--cloud); }
.btn-ghost { color: var(--charcoal); padding: 11px 14px; }
.btn-ghost:hover { background: var(--cloud); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }

/* --- Hero -------------------------------------------------------------------- */
.hero { padding: 88px 0 72px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  /* subtle brand strand motif */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 280px at 15% 0%, rgba(249, 115, 22, 0.07), transparent 70%),
    radial-gradient(560px 280px at 85% 10%, rgba(31, 38, 46, 0.05), transparent 70%);
}
.hero > .container { position: relative; }
.kicker {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ember);
  background: rgba(249, 115, 22, 0.1); border-radius: 999px; padding: 6px 14px;
  margin-bottom: 22px;
}
h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.12; letter-spacing: -0.025em;
  font-weight: 700; max-width: 21ch; margin: 0 auto 20px;
}
.hero p.lede { font-size: 1.2rem; color: var(--slate); max-width: 56ch; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 0.85rem; color: var(--slate); }

/* --- Sections ----------------------------------------------------------------- */
.section { padding: 72px 0; }
.section.alt { background: var(--cloud); }
.section-head { text-align: center; max-width: 62ch; margin: 0 auto 44px; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 12px; }
.section-head p { color: var(--slate); font-size: 1.05rem; }
h3 { font-size: 1.05rem; margin-bottom: 6px; }

/* --- Cards / grids -------------------------------------------------------------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
.section.alt .card { box-shadow: 0 1px 2px rgba(31, 38, 46, 0.04); }
.card p { color: var(--slate); font-size: 0.95rem; }
.card .module-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--slate); margin-bottom: 10px;
}
.icon-dot {
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 14px; font-size: 1.1rem;
  background: rgba(249, 115, 22, 0.12); color: var(--ember);
}

/* --- Feature rows ------------------------------------------------------------------ */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 34px 0;
}
.feature-row .visual {
  background: var(--cloud); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; min-height: 220px;
}
.feature-row ul { list-style: none; margin-top: 14px; }
.feature-row li { padding-left: 26px; position: relative; margin-bottom: 9px; color: var(--slate); font-size: 0.97rem; }
.feature-row li::before { content: "✓"; position: absolute; left: 0; color: var(--ember); font-weight: 700; }

/* mock UI chips inside visuals */
.mock-row {
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 14px; margin-bottom: 8px; font-size: 0.85rem; display: flex;
  justify-content: space-between; align-items: center; gap: 10px;
}
.mock-pill {
  font-size: 0.72rem; font-weight: 600; border-radius: 999px; padding: 3px 10px;
  background: var(--cloud); color: var(--slate); white-space: nowrap;
}
.mock-pill.good { background: #ecfdf3; color: #15803d; }
.mock-pill.warm { background: rgba(249, 115, 22, 0.12); color: var(--ember); }

/* --- Pricing -------------------------------------------------------------------------- */
.plans { align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 2px; }
.plan .per { color: var(--slate); font-size: 0.85rem; margin-bottom: 18px; }
.plan ul { list-style: none; margin: 0 0 22px; flex: 1; }
.plan li { padding-left: 24px; position: relative; margin-bottom: 8px; color: var(--slate); font-size: 0.92rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ember); font-weight: 700; }
.plan .btn { width: 100%; text-align: center; }
.plan.featured { border-color: var(--signal); border-width: 2px; position: relative; }
.plan.featured::before {
  content: "Most popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--ember); color: var(--white); font-size: 0.72rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; letter-spacing: 0.04em;
}

/* --- Prose pages (about, legal) --------------------------------------------------------- */
.prose { max-width: 720px; margin: 0 auto; }
.prose h1 { margin: 0 0 18px; max-width: none; text-align: left; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.prose h2 { font-size: 1.35rem; margin: 38px 0 10px; }
.prose p, .prose li { color: var(--graphite); margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 14px; }
.prose .updated { color: var(--slate); font-size: 0.85rem; margin-bottom: 30px; }

/* --- CTA band ------------------------------------------------------------------------------ */
.cta-band { background: var(--charcoal); color: var(--white); text-align: center; padding: 72px 0; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, 0.75); max-width: 54ch; margin: 0 auto 30px; }

/* --- Footer --------------------------------------------------------------------------------- */
.site-footer { background: var(--charcoal); color: rgba(255, 255, 255, 0.72); padding: 56px 0 40px; font-size: 0.9rem; }
.cta-band + .site-footer { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.site-footer .wordmark { color: var(--white); font-size: 1.25rem; }
.site-footer .tagline { margin-top: 10px; max-width: 30ch; }
.site-footer h3 { color: var(--white); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* --- Tables (legal / comparison) -------------------------------------------------------------- */
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
th { background: var(--cloud); }

/* --- Responsive -------------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .site-header .container { height: auto; padding: 12px 24px; flex-wrap: wrap; gap: 10px; }
  .main-nav { margin-left: 0; order: 3; width: 100%; justify-content: flex-start; }
  .header-cta { margin-left: auto; }
  .hero { padding: 56px 0 48px; }
  .footer-grid { grid-template-columns: 1fr; }
}
