/* ==========================================================================
   Affiora — shared stylesheet
   Tokens taken from "Affiora Design System.dc.html" (AFFIORA_DESIGN_SYSTEM_v1).
   --accent is the one tweakable brand knob; everything else derives from it
   or from the fixed neutral scale.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --color-brand-primary: #4f46e5;   /* Cobalt Blue — primary actions */
  --color-brand-secondary: #7c3aed; /* Violet — secondary accent */
  --color-brand-soft: #c4b5fd;      /* Lavender — soft accents, focus halos */
  --color-success: #10b981;         /* Mint — earnings / positive states */

  /* The live accent. Override on :root to re-brand the whole site. */
  --accent: var(--color-brand-primary);

  /* Surfaces */
  --color-surface-card: #ffffff;
  --color-surface-page: #f6f7fb;
  --color-border-subtle: #e2e8f0;

  /* Text */
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #64748b;

  /* Extended neutrals */
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-700: #334155;

  /* Hairlines used around the chrome */
  --hairline: #eef0f4;
  --hairline-soft: #eceff4;

  /* Radius */
  --radius-xs: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 999px;

  /* Spacing (4px base) */
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;

  /* Type */
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Layout */
  --page-max: 1200px;
  --gutter: clamp(20px, 5vw, 48px);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

/* The UA sheet's [hidden] rule only covers the HTML namespace, so `hidden` on
   an inline <svg> does nothing without this. The nav icons rely on it. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background: var(--color-surface-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #4338ca; }

button { font-family: inherit; cursor: pointer; }

img { max-width: 100%; }

h1, h2, h3 { font-family: var(--font-sans); letter-spacing: 0; }

/* Visible keyboard focus everywhere — the design relies on custom controls. */
:where(a, button, input, select, [tabindex]):focus-visible {
  outline: 3px solid color-mix(in oklch, var(--accent) 55%, transparent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* Keyboard users land here first; it stays off-screen until focused. */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* The page shell. container-type lets the nav switch on the container width,
   which keeps the breakpoint honest when the page is embedded. */
.page {
  min-height: 100%;
  background: #fff;
  overflow-x: hidden;
  container-type: inline-size;
  container-name: affiora;
}

.wrap { max-width: var(--page-max); margin: 0 auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 1100px; }
.wrap--tight  { max-width: 1000px; }
.wrap--prose  { max-width: 800px; }

/* --------------------------------------------------------------------------
   3. Animation
   -------------------------------------------------------------------------- */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floaty   { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-10px); } }
@keyframes barGrow  { from { transform: scaleY(0.15); } to { transform: scaleY(1); } }
@keyframes popIn    { from { opacity: 0; transform: scale(0.7) translateY(-4px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.anim-fade-up { animation: fadeUp 0.8s var(--ease-out) both; }
.anim-fade-up--delayed { animation: fadeUp 0.9s var(--ease-out) 0.14s both; }

/* Scroll reveal — JS flips data-reveal to "in". */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal="in"] { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { transition: none; opacity: 1; transform: none; }
  .anim-fade-up,
  .anim-fade-up--delayed,
  .stat-card,
  .stat-card__bar { animation: none !important; }
}

/* --------------------------------------------------------------------------
   4. Announcement bar
   -------------------------------------------------------------------------- */
.announce {
  background: color-mix(in oklch, var(--accent) 92%, #0f172a);
  color: #fff;
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 16px;
  letter-spacing: 0.01em;
}
.announce a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.site-header__bar {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 48px);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--color-text-primary); flex-shrink: 0; }
.brand img { display: block; width: auto; }
.brand--header img { height: 52px; }
.brand--sub img    { height: 30px; }
.brand--footer img { height: 26px; }

.nav-desktop { display: flex; align-items: center; gap: 28px; }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a { color: var(--color-text-secondary); }
.nav-links a:hover { color: var(--color-text-primary); }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 11px;
  border: 1px solid var(--color-border-subtle);
  background: #fff;
  flex-shrink: 0;
}

.nav-panel { display: none; }
.nav-panel[data-open="true"] {
  display: block;
  border-top: 1px solid var(--hairline);
  background: #fff;
  padding: 14px clamp(18px, 5vw, 48px) 22px;
}
.nav-panel__links { display: flex; flex-direction: column; gap: 2px; font-size: 16px; font-weight: 600; }
.nav-panel__links a { color: var(--neutral-700); padding: 13px 8px; border-radius: 10px; }
.nav-panel__links a:hover { background: var(--neutral-100); color: var(--color-text-primary); }
.nav-panel__links a[aria-current="page"] { color: var(--accent); }
.nav-panel__actions {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 14px; padding-top: 16px;
  border-top: 1px solid var(--neutral-100);
}

/* The nav swap. Container query where supported, media query as the fallback. */
@container affiora (max-width: 899px) {
  .nav-desktop { display: none; }
  .nav-burger  { display: inline-flex; }
}
@supports not (container-type: inline-size) {
  @media (max-width: 899px) {
    .nav-desktop { display: none; }
    .nav-burger  { display: inline-flex; }
  }
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  border-radius: 11px;
  border: none;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

/* Solid accent */
.btn--primary {
  background: var(--accent);
  color: #fff;
  font-size: 14.5px;
  padding: 10px 18px;
  box-shadow: 0 8px 20px color-mix(in oklch, var(--accent) 32%, transparent);
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px color-mix(in oklch, var(--accent) 42%, transparent);
}

/* Quiet text button in the header */
.btn--quiet {
  color: var(--neutral-700);
  font-weight: 600;
  font-size: 14.5px;
  padding: 9px 14px;
  border-radius: 10px;
}
.btn--quiet:hover { background: var(--neutral-100); color: var(--color-text-primary); }

/* Big pale CTA sitting on the dark hero */
.btn--hero {
  background: oklch(97% 0.006 258);
  color: oklch(20% 0.04 258);
  font-weight: 800;
  font-size: 16.5px;
  padding: 16px 28px;
  border-radius: 13px;
  box-shadow: 0 18px 40px color-mix(in oklch, var(--accent) 48%, transparent);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.btn--hero:hover {
  color: oklch(20% 0.04 258);
  transform: translateY(-3px);
  box-shadow: 0 24px 50px color-mix(in oklch, var(--accent) 58%, transparent);
}

/* Outlined button on dark */
.btn--ghost-dark {
  color: oklch(92% 0.01 258);
  font-weight: 600;
  font-size: 16px;
  padding: 15px 22px;
  border-radius: 13px;
  border: 1px solid oklch(45% 0.02 258);
}
.btn--ghost-dark:hover { border-color: oklch(65% 0.02 258); color: #fff; }

/* Accent CTA used mid-page */
.btn--cta {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 24px color-mix(in oklch, var(--accent) 34%, transparent);
}
.btn--cta:hover { color: #fff; transform: translateY(-2px); }

/* White button on an accent panel */
.btn--on-accent {
  background: #fff;
  color: var(--accent);
  font-weight: 800;
  font-size: 16.5px;
  padding: 16px 28px;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}
.btn--on-accent:hover { color: var(--accent); transform: translateY(-2px); }

/* Outlined accent button on light */
.btn--outline {
  color: var(--accent);
  background: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in oklch, var(--accent) 28%, #fff);
}
.btn--outline:hover { background: color-mix(in oklch, var(--accent) 8%, #fff); color: var(--accent); }

/* Neutral bordered button (pricing "Subscribe" on light cards) */
.btn--neutral {
  background: #fff;
  color: var(--color-text-primary);
  font-weight: 700;
  font-size: 15px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-300);
}
.btn--neutral:hover { background: var(--neutral-100); color: var(--color-text-primary); transform: translateY(-2px); }

.btn--block { width: 100%; }

/* Mobile panel variants */
.btn--panel-quiet {
  color: var(--neutral-700);
  font-weight: 600;
  font-size: 15.5px;
  padding: 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
}
.btn--panel-quiet:hover { background: var(--neutral-50); color: var(--color-text-primary); }

.btn--panel-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  padding: 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px color-mix(in oklch, var(--accent) 32%, transparent);
}
.btn--panel-primary:hover { color: #fff; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  /* Shared with .hero__visual, which is pulled down by exactly this much so
     the cutout sits on the section edge instead of floating above it. */
  --hero-pad-bottom: clamp(56px, 8vw, 104px);
  padding: clamp(64px, 9vw, 120px) var(--gutter) var(--hero-pad-bottom);
  background:
    linear-gradient(165deg, oklch(19% 0.04 258) 0%, oklch(14% 0.03 258) 55%, oklch(11% 0.025 258) 100%),
    radial-gradient(60% 55% at 82% -6%, color-mix(in oklch, var(--accent) 42%, transparent), transparent 72%);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: auto auto -18% -8%;
  width: 52%;
  aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in oklch, var(--accent) 30%, transparent), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.hero__copy   { flex: 1 1 440px; min-width: 300px; }
/* Bottom-aligned and pulled into the section's bottom padding, so the cutout
   meets the edge of the hero rather than hovering over it. */
.hero__visual {
  flex: 1 1 460px;
  min-width: 300px;
  align-self: flex-end;
  margin-bottom: calc(-1 * var(--hero-pad-bottom));
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: color-mix(in oklch, var(--accent) 55%, #fff);
  background: color-mix(in oklch, var(--accent) 22%, transparent);
  border: 1px solid color-mix(in oklch, var(--accent) 45%, transparent);
  padding: 6px 13px;
  border-radius: var(--radius-full);
  margin-bottom: 26px;
}

.hero__title {
  font-size: clamp(44px, 6.5vw, 72px);
  line-height: 1.12;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--neutral-50);
}
.hero__title em { font-style: normal; color: var(--color-brand-soft); }

.hero__lede {
  font-size: clamp(17px, 1.7vw, 20.5px);
  color: oklch(78% 0.02 258);
  max-width: 560px;
  margin: 0 0 36px;
  text-wrap: pretty;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero__assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 32px;
  font-size: 13.5px;
  color: oklch(65% 0.015 258);
  font-weight: 500;
}
.hero__assurances span { display: inline-flex; align-items: center; gap: 7px; }

/* Hero visual: photo + floating stat card */
.hero__stage { position: relative; max-width: 460px; margin: 0 auto; }
.hero__halo {
  position: absolute;
  inset: 8% -10% auto auto;
  width: 260px; height: 260px;
  background: color-mix(in oklch, var(--accent) 45%, transparent);
  filter: blur(64px);
  border-radius: 50%;
  z-index: 0;
}
/* Holds the hero cutout and reserves its box, so the layout does not shift
   while a 1122x1402 transparent PNG decodes. */
.hero__plate {
  position: relative;
  z-index: 1;
  aspect-ratio: 1122 / 1402;
  border-radius: var(--radius-xl);
}
/* Stand-in, painted only when the photo is absent or failed to load — the
   img removes itself on error. Behind a transparent cutout this would read as
   a tinted box, so it must not apply when the photo is there. */
.hero__plate:not(:has(.hero__photo)) {
  background: linear-gradient(160deg,
    color-mix(in oklch, var(--accent) 26%, transparent),
    color-mix(in oklch, var(--accent) 8%, transparent));
  border: 1px solid color-mix(in oklch, var(--accent) 24%, transparent);
}
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45));
}

.stat-card {
  position: absolute;
  left: -8%;
  /* Kept inside the stage: the hero clips its overflow now that the photo
     runs to the section edge. */
  bottom: 4%;
  width: 210px;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -16px rgba(0, 0, 0, 0.5),
              0 0 0 1px color-mix(in oklch, var(--accent) 20%, transparent);
  overflow: hidden;
  transform: rotate(-3deg);
  animation: floaty 6s ease-in-out infinite;
}
.stat-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--neutral-100);
  background: #fbfcfe;
}
.stat-card__label {
  font-size: 11px; font-weight: 700; color: var(--neutral-400);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.stat-card__dot { width: 22px; height: 22px; border-radius: 7px; background: var(--accent); }
.stat-card__body { padding: 15px 14px 16px; }
.stat-card__figures {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px;
}
.stat-card__value { font-size: 22px; font-weight: 800; color: var(--color-text-primary); }
.stat-card__delta { font-size: 11.5px; color: #22c55e; font-weight: 700; }
.stat-card__chart { display: flex; align-items: flex-end; gap: 6px; height: 52px; padding: 0 1px; }
.stat-card__bar {
  flex: 1;
  background: #dbe3ef;
  border-radius: 4px 4px 0 0;
  transform-origin: bottom;
  animation: barGrow 0.8s ease both;
}
.stat-card__bar--alt  { background: #c7d2e6; }
.stat-card__bar--peak { background: var(--accent); }
.stat-card__bar--tip  { background: color-mix(in oklch, var(--accent) 62%, #fff); }

/* --------------------------------------------------------------------------
   8. Sections & shared blocks
   -------------------------------------------------------------------------- */
.section { padding: clamp(60px, 8vw, 100px) var(--gutter); }
.section--page   { background: var(--color-surface-page); }
.section--ruled  { border-top: 1px solid var(--color-border-subtle); border-bottom: 1px solid var(--color-border-subtle); }
.section--top    { border-top: 1px solid var(--color-border-subtle); }
.section--white  { background: #fff; border-top: 1px solid var(--neutral-100); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head--wide { max-width: 640px; }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--color-text-primary);
  text-wrap: pretty;
}
.section-title:last-child { margin-bottom: 0; }

.section-lede {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--color-text-secondary);
  margin: 0;
  text-wrap: pretty;
}

/* Social proof strip */
.proof { padding: clamp(40px, 6vw, 64px) var(--gutter); }
.proof__label {
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--neutral-400); font-weight: 600; margin: 0 0 20px;
}
.proof__items {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 32px;
}
.proof__items span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: clamp(15px, 2vw, 19px); font-weight: 700;
  color: var(--color-text-muted); letter-spacing: -0.01em;
}

/* Card grids */
.grid { display: grid; gap: 22px; }
.grid--features { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--steps    { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--posts    { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.grid--plans    { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; align-items: center; }
.grid--quick    { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

.card {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: 18px;
  padding: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card--lift:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(35, 29, 21, 0.2); }

.card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: oklch(30% 0.05 165 / 12%);
  color: oklch(38% 0.06 165);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card__title {
  font-size: 20px; font-weight: 600; margin: 0 0 10px; color: var(--color-text-primary);
}
.card__body { font-size: 15.5px; color: var(--color-text-secondary); margin: 0 0 16px; text-wrap: pretty; }
.card__note {
  font-size: 13.5px; color: var(--color-text-muted); margin: 0;
  display: flex; align-items: center; gap: 7px;
}

/* Steps */
.step {
  position: relative;
  padding: 32px 26px;
  border-radius: 18px;
  background: #fbfcfe;
  border: 1px solid #eef1f6;
}
.step__num { font-size: 14px; font-weight: 800; color: var(--accent); margin-bottom: 18px; }
.step__icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.step__title { font-size: 19px; font-weight: 600; margin: 0 0 8px; color: var(--color-text-primary); }
.step__body  { font-size: 15px; color: var(--color-text-muted); margin: 0; text-wrap: pretty; }

.center { text-align: center; }

/* --------------------------------------------------------------------------
   9. Accordion (FAQ + Tips topics)
   -------------------------------------------------------------------------- */
.accordion { display: flex; flex-direction: column; gap: 12px; }

.accordion__item {
  background: #fff;
  border: 1px solid var(--hairline-soft);
  border-radius: 14px;
  overflow: hidden;
}
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: none;
  border: none;
  text-align: left;
}
.accordion__q {
  font-size: 16.5px; font-weight: 700; color: var(--color-text-primary); letter-spacing: -0.01em;
}
.accordion__chevron {
  display: inline-flex;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
/* Targets the behaviour hook, not one trigger class, so the FAQ triggers
   (.accordion__trigger) and the Tips triggers (.topic__trigger) both flip. */
[data-accordion-trigger][aria-expanded="true"] .accordion__chevron { transform: rotate(180deg); }

.accordion__panel { display: none; }
.accordion__panel[data-open="true"] { display: block; }
.accordion__a {
  padding: 0 22px 22px;
  font-size: 15.5px;
  color: var(--color-text-muted);
  line-height: 1.6;
  text-wrap: pretty;
}

/* Tips variant */
.topic { border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); }
.topic__trigger {
  width: 100%; display: flex; align-items: center; gap: 16px;
  padding: 22px; background: none; border: none; text-align: left;
}
.topic__num {
  width: 42px; height: 42px; border-radius: var(--radius-md);
  background: oklch(30% 0.05 165 / 12%);
  color: oklch(38% 0.06 165);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 15px; font-weight: 800;
}
.topic__meta { flex: 1; }
.topic__name { display: block; font-size: 17.5px; font-weight: 700; letter-spacing: -0.015em; color: var(--color-text-primary); }
.topic__sub  { display: block; font-size: 14px; color: var(--color-text-muted); margin-top: 2px; }
.topic__list { padding: 0 22px 20px 80px; display: flex; flex-direction: column; gap: 2px; }
.topic__list a {
  display: flex; align-items: center; gap: 10px;
  font-size: 15.5px; color: var(--color-text-secondary); font-weight: 500;
  padding: 11px 10px; border-radius: 10px;
}
.topic__list a:hover { background: var(--neutral-100); color: var(--color-text-primary); }

@media (max-width: 560px) {
  .topic__list { padding-left: 22px; }
}

/* --------------------------------------------------------------------------
   10. Pricing
   -------------------------------------------------------------------------- */
.pricing {
  padding: clamp(64px, 9vw, 116px) var(--gutter) clamp(96px, 13vw, 156px);
  background: var(--color-surface-page);
  border-top: 1px solid var(--color-border-subtle);
  position: relative;
  overflow: hidden;
}

.billing-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-full);
  padding: 4px;
  width: 280px;
}
.billing-toggle__pill {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: var(--radius-full);
  background: var(--accent);
  box-shadow: 0 6px 16px color-mix(in oklch, var(--accent) 40%, transparent);
  transform: translateX(0);
  transition: transform 0.35s var(--ease-out);
  pointer-events: none;
}
.billing-toggle[data-billing="yearly"] .billing-toggle__pill { transform: translateX(100%); }
.billing-toggle button {
  position: relative;
  z-index: 1;
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--neutral-700);
  transition: color 0.3s var(--ease-out);
}
.billing-toggle button[aria-pressed="true"] { color: #fff; }

.savings-note {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: oklch(38% 0.06 165);
  animation: popIn 0.4s cubic-bezier(0.22, 1.6, 0.36, 1) both;
}
.savings-note[hidden] { display: none; }

.plan {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.plan:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -26px rgba(35, 29, 21, 0.22); }

.plan__icon {
  width: 44px; height: 44px; border-radius: 13px;
  background: oklch(30% 0.05 165 / 12%);
  color: oklch(38% 0.06 165);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.plan__name { font-size: 22px; font-weight: 600; margin: 0 0 6px; color: var(--color-text-primary); }
.plan__for  { font-size: 14.5px; color: var(--color-text-muted); margin: 0 0 24px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.plan__amount { font-size: 42px; font-weight: 800; letter-spacing: -0.02em; color: var(--color-text-primary); }
.plan__suffix { font-size: 15px; color: var(--color-text-muted); font-weight: 600; }
.plan__billed { font-size: 13px; color: var(--color-text-muted); margin: 0 0 20px; min-height: 18px; }
.plan__cta { margin-bottom: 28px; }
.plan__more {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-text-muted); margin: 0 0 14px;
}
.plan__features { display: flex; flex-direction: column; gap: 13px; font-size: 14.5px; color: var(--neutral-700); }
.plan__features span { display: flex; align-items: center; gap: 10px; }
.plan__tick {
  width: 20px; height: 20px; border-radius: 50%;
  background: oklch(30% 0.05 165 / 14%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Highlighted plan */
.plan--featured {
  background: linear-gradient(165deg, oklch(21% 0.045 258), oklch(13% 0.03 258));
  border: none;
  padding: 42px 32px;
  box-shadow: 0 44px 84px -28px color-mix(in oklch, var(--accent) 55%, transparent),
              0 0 0 1px color-mix(in oklch, var(--accent) 30%, transparent);
  position: relative;
  transform: scale(1.06);
  z-index: 1;
}
.plan--featured:hover { transform: scale(1.06) translateY(-6px); }
.plan--featured .plan__name   { color: #fff; font-size: 23px; }
.plan--featured .plan__for    { color: oklch(70% 0.02 258); }
.plan--featured .plan__amount { color: #fff; font-size: 46px; }
.plan--featured .plan__suffix { color: oklch(70% 0.02 258); }
.plan--featured .plan__billed { color: oklch(65% 0.015 258); }
.plan--featured .plan__more   { color: oklch(60% 0.02 258); }
.plan--featured .plan__features { color: oklch(88% 0.01 258); }
.plan--featured .plan__icon {
  background: color-mix(in oklch, var(--accent) 22%, transparent);
  color: color-mix(in oklch, var(--accent) 68%, #fff);
  margin-top: 6px;
}
.plan--featured .plan__tick { background: color-mix(in oklch, var(--accent) 30%, transparent); }

.plan__badge {
  position: absolute;
  top: -15px; left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  background: var(--accent);
  color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 22px color-mix(in oklch, var(--accent) 55%, transparent);
  white-space: nowrap;
}

.plan__cta--featured {
  background: #fff;
  color: var(--accent);
  font-weight: 800;
  font-size: 15.5px;
  padding: 15px;
  border-radius: var(--radius-md);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}
.plan__cta--featured:hover { color: var(--accent); transform: translateY(-2px); }

/* The scale(1.06) is fine side-by-side but crowds a single column. */
@media (max-width: 900px) {
  .plan--featured { transform: none; margin-top: 18px; }
  .plan--featured:hover { transform: translateY(-6px); }
}

/* --------------------------------------------------------------------------
   11. Signup form (Coming soon)
   -------------------------------------------------------------------------- */
.notify {
  padding: clamp(56px, 7.5vw, 96px) var(--gutter) clamp(80px, 11vw, 140px);
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, oklch(19% 0.04 258) 0%, oklch(13% 0.03 258) 60%, oklch(11% 0.025 258) 100%);
}
.notify__glow {
  position: absolute;
  inset: auto -10% -30% auto;
  width: 44%;
  aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in oklch, var(--accent) 40%, transparent), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.notify__inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.notify__copy { flex: 1 1 360px; min-width: 280px; }
.notify__form-col { flex: 1 1 380px; min-width: 280px; }

.notify__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-brand-soft);
  background: color-mix(in oklch, var(--accent) 22%, transparent);
  border: 1px solid color-mix(in oklch, var(--accent) 45%, transparent);
  padding: 6px 13px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}
.notify__title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.16;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
  text-wrap: pretty;
}
.notify__lede {
  font-size: clamp(15.5px, 1.4vw, 17.5px);
  color: var(--neutral-300);
  margin: 0;
  text-wrap: pretty;
  max-width: 440px;
}

.signup-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.4);
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-700);
  margin-bottom: 6px;
}
.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-300);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  color: var(--color-text-primary);
  background: #fff;
}
.field input:focus,
.field select:focus {
  border-color: var(--color-brand-secondary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.16);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: #dc2626; }

.form-error { font-size: 13px; color: #dc2626; margin: 0; }
.form-error[hidden] { display: none; }

.form-fineprint { font-size: 12px; color: var(--neutral-400); margin: 0; text-align: center; }

.signup-success {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.4);
}
.signup-success[hidden] { display: none; }
.signup-success__tick {
  display: inline-flex;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.signup-success h3 { font-size: 19px; font-weight: 600; margin: 0 0 6px; color: var(--color-text-primary); }
.signup-success p  { font-size: 14.5px; color: var(--color-text-muted); margin: 0; }

/* --------------------------------------------------------------------------
   12. Accent CTA panel
   -------------------------------------------------------------------------- */
.cta-panel {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  padding: clamp(44px, 6vw, 80px) clamp(28px, 5vw, 64px);
  text-align: center;
  background: linear-gradient(135deg, color-mix(in oklch, var(--accent) 96%, #0f172a), var(--accent));
  box-shadow: 0 40px 80px -30px color-mix(in oklch, var(--accent) 60%, transparent);
  position: relative;
  overflow: hidden;
}
.cta-panel--rounded { max-width: 900px; border-radius: 26px; padding: clamp(40px, 6vw, 68px) clamp(26px, 5vw, 56px); }
.cta-panel__blob {
  position: absolute;
  inset: auto auto -60px -40px;
  width: 260px; height: 260px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  filter: blur(20px);
}
.cta-panel__inner { position: relative; z-index: 1; }
.cta-panel__title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  text-wrap: pretty;
}
.cta-panel__title--sm { font-size: clamp(25px, 3.2vw, 34px); margin-bottom: 14px; }
.cta-panel__lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin: 0 auto 34px;
  text-wrap: pretty;
}
.cta-panel__lede--sm { font-size: clamp(15.5px, 1.5vw, 18px); max-width: 460px; margin-bottom: 28px; }

.inline-form {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  max-width: 460px; margin: 0 auto;
}
.inline-form input {
  flex: 1 1 220px; min-width: 200px;
  padding: 15px 18px;
  border-radius: 13px;
  border: none;
  font-size: 15.5px;
  font-family: inherit;
  outline: none;
  color: var(--color-text-primary);
}
.inline-form button {
  background: #fff;
  color: var(--accent);
  font-weight: 800;
  font-size: 15.5px;
  padding: 15px 26px;
  border-radius: 13px;
  border: none;
  transition: transform 0.18s ease;
}
.inline-form button:hover { transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   13. Blog
   -------------------------------------------------------------------------- */
.page-head {
  padding: clamp(48px, 7vw, 88px) var(--gutter) clamp(32px, 4vw, 48px);
  background: radial-gradient(120% 120% at 85% -10%, color-mix(in oklch, var(--accent) 9%, #fff) 0%, #fff 48%);
}
.page-head__title {
  font-size: clamp(34px, 4.6vw, 48px);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 18px;
  color: var(--color-text-primary);
  max-width: 760px;
  text-wrap: pretty;
}
.page-head__lede {
  font-size: clamp(16.5px, 1.6vw, 19px);
  color: var(--color-text-secondary);
  max-width: 620px;
  margin: 0;
  text-wrap: pretty;
}

.filters { display: flex; flex-wrap: wrap; gap: 9px; }
.filter {
  font-size: 14px;
  font-weight: 600;
  padding: 12px 17px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-subtle);
  background: #fff;
  color: var(--color-text-secondary);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.filter[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: transparent; }

.featured-post {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 40px);
  color: var(--color-text-primary);
  transition: box-shadow 0.2s ease;
}
.featured-post:hover { box-shadow: 0 24px 48px -26px rgba(35, 29, 21, 0.2); color: var(--color-text-primary); }
.featured-post__copy { flex: 1 1 300px; min-width: 260px; }
.featured-post__tag {
  display: inline-block;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: #fff; background: var(--accent);
  padding: 5px 10px; border-radius: var(--radius-full);
  margin-bottom: 18px;
}
.featured-post__title {
  font-size: clamp(23px, 2.8vw, 30px);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 12px;
  text-wrap: pretty;
}
.featured-post__excerpt { font-size: 16px; color: var(--color-text-secondary); margin: 0 0 20px; text-wrap: pretty; }
.featured-post__art {
  flex: 0 1 320px;
  min-width: 220px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, color-mix(in oklch, var(--accent) 90%, #0f172a), var(--accent));
  display: flex;
  align-items: flex-end;
  padding: 22px;
}
.featured-post__chart { display: flex; align-items: flex-end; gap: 8px; width: 100%; height: 56%; }
.featured-post__chart i { flex: 1; background: rgba(255, 255, 255, 0.35); border-radius: 5px 5px 0 0; }

.meta { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--neutral-400); font-weight: 500; }

.post {
  display: flex;
  flex-direction: column;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: 18px;
  overflow: hidden;
  color: var(--color-text-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(35, 29, 21, 0.2); color: var(--color-text-primary); }
.post[hidden] { display: none; }
.post__thumb { height: 150px; border-bottom: 1px solid var(--hairline-soft); flex-shrink: 0; }
.post__thumb--a { background: color-mix(in oklch, var(--accent) 16%, #fff); }
.post__thumb--b { background: color-mix(in oklch, var(--accent) 28%, #fff); }
.post__thumb--c { background: color-mix(in oklch, var(--accent) 9%, #fff); }
.post__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post__cat {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.post__title { font-size: 19px; font-weight: 600; line-height: 1.3; margin: 0 0 10px; text-wrap: pretty; }
.post__excerpt { font-size: 15px; color: var(--color-text-secondary); margin: 0 0 18px; text-wrap: pretty; }
.post__meta { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--neutral-400); font-weight: 500; }

.empty-state {
  text-align: center;
  padding: 56px 20px;
  border: 1px dashed var(--color-border-subtle);
  border-radius: 18px;
  margin-top: 8px;
}
.empty-state[hidden] { display: none; }
.empty-state p { font-size: 16px; color: var(--color-text-muted); margin: 0 0 16px; }

/* --------------------------------------------------------------------------
   14. Tips
   -------------------------------------------------------------------------- */
.quickstart {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 44px);
}
.quickstart__title { font-size: clamp(20px, 2.4vw, 24px); font-weight: 700; margin: 0 0 8px; color: var(--color-text-primary); }
.quickstart__lede  { font-size: 16px; color: var(--color-text-secondary); margin: 0 0 28px; max-width: 520px; text-wrap: pretty; }

.quickstep {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff;
  border: 1px solid var(--hairline-soft);
  border-radius: 15px;
  padding: 20px;
  color: var(--color-text-primary);
  transition: box-shadow 0.2s ease;
}
.quickstep:hover { box-shadow: 0 14px 30px -18px rgba(15, 23, 42, 0.28); color: var(--color-text-primary); }
.quickstep__num {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.quickstep__label { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.quickstep__sub   { display: block; font-size: 14px; color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   15. Resources (home)
   -------------------------------------------------------------------------- */
.resources__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px 20px; margin-bottom: 40px;
}
.resources__intro { max-width: 600px; }
.resources__actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }

.res-card {
  display: flex; flex-direction: column;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: 18px;
  padding: 28px;
  color: var(--color-text-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.res-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(35, 29, 21, 0.2); color: var(--color-text-primary); }
.res-card__head { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.res-card__icon {
  width: 38px; height: 38px; border-radius: 11px;
  background: color-mix(in oklch, var(--accent) 12%, #fff);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.res-card__kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--neutral-400);
}
.res-card__title { font-size: 18.5px; font-weight: 600; margin: 0 0 9px; text-wrap: pretty; }
.res-card__body  { font-size: 15px; color: var(--color-text-muted); margin: 0 0 18px; text-wrap: pretty; }
.res-card__more  { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--accent); }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid #eef1f6;
  padding: 52px var(--gutter) 40px;
  background: #fff;
}
.site-footer__top {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.site-footer__nav {
  display: flex; flex-wrap: wrap; gap: 26px;
  font-size: 14.5px; font-weight: 500;
}
.site-footer__nav a { color: var(--color-text-muted); }
.site-footer__nav a:hover { color: var(--color-text-primary); }
.site-footer__legal {
  max-width: var(--page-max);
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--neutral-100);
  font-size: 13px;
  color: var(--neutral-400);
}

/* --------------------------------------------------------------------------
   17. Back to top
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 60;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
  animation: fadeUp 0.3s var(--ease-out) both;
  transition: transform 0.18s ease;
}
.to-top:hover { transform: translateY(-3px); }
.to-top[hidden] { display: none; }

/* Desktop-only. On mobile the intersection-based show/hide in app.js lags
   behind a fast scroll-to-top — the button visibly sticks over the header for
   a moment instead of clearing with the section it belongs to. Matches the
   nav's own mobile breakpoint above rather than a one-off. */
@media (max-width: 899px) {
  .to-top { display: none; }
}

/* Honeypot spam trap on the signup form. Positioned off-canvas rather than
   display:none — bots that skip hidden fields still fill this one, and no
   assistive tech reaches it (the wrapper is aria-hidden and tabindex="-1"). */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
