/* ScholarshipHub — public landing page (marketing).
   White premium SaaS: pure white app shell, #FAFAFA marketing canvas,
   restrained teal accent, thin borders, subtle motion.
   Consumes canonical tokens from /css/tokens.css. */

:root {
  /* Marketing-only layout tokens (kept scoped to landing/marketing).
     Visual + palette tokens come from /css/tokens.css. */
  --container: 1180px;
  --gutter: clamp(16px, 3vw, 32px);
  /* Section padding reduced ~30% (was clamp(88px, 12vw, 168px)) for tighter,
     more seamless rhythm. */
  --section-y: clamp(44px, 5.9vw, 82px);
  /* Sticky nav height — used as scroll-margin-top so anchor jumps land below it. */
  --nav-offset: 80px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.landing-shell {
  margin: 0;
  background: var(--bg-canvas-marketing);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  overflow-x: hidden;
  position: relative;
}

/* Lighter grain on the white canvas — kept very subtle so it reads as
   paper, not noise. Pointer-events off. */
body.landing-shell::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.02;
  mix-blend-mode: multiply;
}
@media (prefers-reduced-motion: reduce) {
  body.landing-shell::before { display: none; }
}

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }

.landing-container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--text-primary); color: var(--text-inverse); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 16px; top: 12px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.landing-button {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: transform var(--motion-fast) var(--motion-ease),
    background-color var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease);
}
.button-primary { background: var(--accent); color: var(--text-inverse); border-color: var(--accent); }
.button-ghost { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
/* Quiet secondary — text-link style so the primary CTA carries the weight.
   Used in hero alongside button-primary. */
.button-quiet {
  background: transparent; color: var(--text-secondary); border-color: transparent;
  padding: 12px 8px;
}
.button-quiet span { transition: transform var(--motion-fast) var(--motion-ease); display: inline-block; margin-left: 6px; }
.landing-button:active { transform: translateY(0); }

@media (hover: hover) and (pointer: fine) {
  .button-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }
  .button-ghost:hover { background: var(--bg-elevated); border-color: var(--text-quaternary); transform: translateY(-1px); }
  .button-quiet:hover { color: var(--accent); }
  .button-quiet:hover span { transform: translateX(4px); }
}

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-head { max-width: 720px; margin-bottom: clamp(24px, 3.6vw, 40px); position: relative; }
.section-head.full { margin-bottom: clamp(20px, 3vw, 32px); }
.section-head h2, .section-sub { margin-top: 6px; }
.section-sub { color: var(--text-tertiary); font-size: 17px; }

/* Chapter marker — 2px teal line in left margin, grows in when section
   enters viewport. Hidden on small screens where there is no margin. */
.section-head::before {
  content: '';
  position: absolute;
  left: -22px; top: 4px;
  width: 2px; height: 36px;
  background: var(--accent);
  opacity: 0.55;
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 600ms var(--motion-ease) 180ms;
}
[data-reveal].is-visible .section-head::before,
.section-head[data-reveal].is-visible::before { transform: scaleY(1); }
@media (max-width: 1023px) {
  .section-head::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .section-head::before { transition: none; transform: scaleY(1); }
}

h2 { font-size: clamp(34px, 4.8vw, 60px); line-height: 1.04; }
h3 { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.12; }

.landing-section {
  padding-block: var(--section-y);
  /* No dividing border — seamless flow between sections. */
  position: relative;
  z-index: 2;
  /* Anchor jumps land below the sticky nav (avoids title getting clipped). */
  scroll-margin-top: var(--nav-offset);
}
/* Chaptered backgrounds — related sections share a band so the page reads
   as connected chapters, not floating islands. Product-proof chapter
   (how-it-works + screenshots) sits on a sunken tint; conversion sections
   (about, pricing, newsletter, final CTA) lift to pure white; the rest stay
   on body #FAFAFA. */
.landing-section.about,
.landing-section.pricing-teaser,
.landing-section.newsletter,
.landing-section.final-cta { background: var(--bg-surface); }
.landing-section.guidelines,
.landing-section.screens { background: var(--bg-sunken); }

.landing-section.hero {
  /* Hero gets a smaller top breathing band — nav already eats some height. */
  padding-top: clamp(40px, 6vw, 80px);
}
/* Hero → features soft handoff. Radial teal glow at hero bottom edge,
   half-overlapping the next section. Hints "more below" without an arrow. */
.landing-section.hero::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: min(900px, 80%); height: 240px;
  transform: translate(-50%, 50%);
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(37,110,91,0.06) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 1;
}
.landing-footer { position: relative; z-index: 2; }

/* ── Nav ──────────────────────────────────────────────────────────────── */
.landing-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--motion-fast) var(--motion-ease),
    background-color var(--motion-fast) var(--motion-ease),
    padding var(--motion-fast) var(--motion-ease);
}
.landing-nav[data-scrolled="true"] { box-shadow: 0 1px 0 var(--border); background: rgba(255, 255, 255, 0.92); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.nav-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 24px;
  color: var(--text-primary); white-space: nowrap;
}
.nav-brand .brand-icon { color: var(--accent); flex-shrink: 0; }
.nav-brand .brand-text { line-height: 1; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 15px; color: var(--text-secondary); white-space: nowrap; }
.nav-actions .landing-button { white-space: nowrap; }
.nav-links a:hover { color: var(--accent); }
.nav-pricing-promo-link { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.nav-promo-badge {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 11px;
  border-radius: 10px;
  background: #E85D3F;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(232, 93, 63, 0.22);
  pointer-events: none;
}
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-login {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-size: 14px;
  height: 28px;                /* match .lang-switcher exactly */
  color: var(--text-secondary);
  padding: 0 14px;
  border-radius: 999px;
  transition: background var(--motion-fast) var(--motion-ease),
              color var(--motion-fast) var(--motion-ease),
              transform var(--motion-fast) var(--motion-ease);
}
@media (hover: hover) and (pointer: fine) {
  .nav-login:hover {
    background: var(--accent-soft);
    color: var(--accent);
    transform: translateY(-1px);
  }
}
.nav-login:active { transform: translateY(0); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: transparent; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text-primary); }
.nav-mobile { display: none; flex-direction: column; padding: 12px var(--gutter) 20px; border-top: 1px solid var(--border); }
.nav-mobile a { padding: 12px 0; border-bottom: 1px solid var(--border); }
.nav-mobile .nav-mobile-cta {
  margin-top: 12px;
  border-bottom: 0;
  text-align: center;
  justify-content: center;
}
.nav-mobile .nav-pricing-promo-link { justify-content: flex-start; gap: 10px; }
.nav-mobile .nav-promo-badge {
  position: static;
  transform: none;
  margin-left: auto;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-copy h1 { font-size: clamp(28px, 3.9vw, 49px); line-height: 1.06; margin: 4px 0 20px; }
.hero-body { color: var(--text-tertiary); font-size: 18px; max-width: 30ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 28px 0 36px; }
.hero-proof { border-top: 1px solid var(--border); padding-top: 22px; margin-top: 8px; }
.proof-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-quaternary); margin-bottom: 14px; }
.proof-list { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; padding: 0; margin: 0; }
.proof-list li {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.65);
}

/* Product mockup — tinted shadow + 1px inner edge highlight for refraction.
   Sits above the noise overlay so the rim reads cleanly. */
.hero-mock { width: 100%; position: relative; z-index: 2; }
.mock-window {
  display: grid; grid-template-columns: 38% 62%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow:
    var(--shadow-inset-hi),
    var(--shadow-lg),
    var(--shadow-md);
}
.mock-rail { padding: 24px 20px; border-right: 1px solid var(--border-strong); background: var(--bg-canvas-marketing); }
.mock-rail-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-tertiary); }
.mock-search { margin: 14px 0; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 14px; color: var(--text-quaternary); background: var(--bg-surface); }
.mock-list li { padding: 12px 14px; font-size: 14px; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--text-secondary); }
.mock-list li.is-active { background: var(--accent-soft); border-color: var(--border-strong); color: var(--accent-hover); font-weight: 600; }
.mock-main { padding: 28px 30px; }
.mock-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: var(--radius-pill); }
.badge-warn { background: var(--warning-soft); color: var(--warning); }
.mock-title { font-family: var(--font-display); font-size: 25px; margin: 14px 0 6px; }
.mock-deadline {
  font-size: 14px; color: var(--danger); font-weight: 600; margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 8px;
}
.mock-deadline::before {
  content: ''; width: 8px; height: 8px; border-radius: var(--radius-pill);
  background: var(--danger);
  animation: breathePulse 2.4s var(--motion-ease) infinite;
  box-shadow: 0 0 0 0 rgba(181, 71, 71, 0.4);
}
@keyframes breathePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(181, 71, 71, 0.4); }
  50%      { transform: scale(1.18); box-shadow: 0 0 0 6px rgba(181, 71, 71, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .mock-deadline::before { animation: none; }
}
.mock-pipeline { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.mock-pipeline li { font-size: 12px; padding: 6px 11px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); color: var(--text-tertiary); }
.mock-pipeline li.is-current { background: var(--text-primary); color: var(--text-inverse); border-color: var(--text-primary); }
.mock-checklist li { font-size: 14px; padding: 11px 0 11px 28px; position: relative; border-top: 1px solid var(--border); color: var(--text-secondary); }
.mock-checklist li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 14px; height: 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
.mock-checklist li.done::before { background: var(--success); border-color: var(--success); }

/* ── Hero demo loop transitions (driven by /js/hero-demo.js) ──────────── */
.mock-badge.badge-neutral { background: var(--bg-sunken); color: var(--text-tertiary); }
[data-demo-loop] .mock-main { transition: opacity 220ms var(--motion-ease, ease); }
[data-demo-loop] .mock-list li {
  transition: background 260ms var(--motion-ease, ease),
              color 260ms var(--motion-ease, ease),
              border-color 260ms var(--motion-ease, ease);
}
[data-demo-loop] .mock-pipeline li {
  transition: background 240ms var(--motion-ease, ease),
              color 240ms var(--motion-ease, ease),
              border-color 240ms var(--motion-ease, ease);
}
[data-demo-loop] .mock-checklist li,
[data-demo-loop] .mock-checklist li::before {
  transition: background 220ms var(--motion-ease, ease),
              border-color 220ms var(--motion-ease, ease),
              color 220ms var(--motion-ease, ease);
}
@media (prefers-reduced-motion: reduce) {
  [data-demo-loop] .mock-main,
  [data-demo-loop] .mock-list li,
  [data-demo-loop] .mock-pipeline li,
  [data-demo-loop] .mock-checklist li,
  [data-demo-loop] .mock-checklist li::before { transition: none; }
}

/* Cursor sprite + click ripple injected by /js/hero-demo.js */
[data-demo-loop] .demo-cursor {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transform: translate(0, 0);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
  transition: opacity 200ms ease;
}
[data-demo-loop] .demo-cursor.is-visible { opacity: 1; }
[data-demo-loop] .demo-cursor svg { display: block; }

[data-demo-loop] .demo-ripple {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent, #256E5B);
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
}
[data-demo-loop] .demo-ripple.is-active {
  animation: demo-ripple-out 520ms ease-out forwards;
}
@keyframes demo-ripple-out {
  0%   { opacity: 0.35; transform: translate(-50%, -50%) scale(0.4); }
  100% { opacity: 0;    transform: translate(-50%, -50%) scale(2.6); }
}
@media (prefers-reduced-motion: reduce) {
  [data-demo-loop] .demo-cursor,
  [data-demo-loop] .demo-ripple { display: none; }
}

/* ── About ────────────────────────────────────────────────────────────── */
/* Heading spans the full section width; the two-column body below stays
   height-balanced (copy ≈ metrics), so neither column trails a void. */
.about-title { max-width: 34ch; margin-bottom: clamp(26px, 3.6vw, 44px); }
.about-grid { align-items: center; display: grid; grid-template-columns: 6fr 5fr; gap: clamp(28px, 5vw, 64px); }
.about-copy p { color: var(--text-tertiary); margin-bottom: 16px; font-size: 17px; }
.about-metrics { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border-strong); border-radius: var(--radius-md); }
.metric-cell { padding: 26px 22px; border-bottom: 1px solid var(--border); }
.metric-cell:nth-child(odd) { border-right: 1px solid var(--border); }
.metric-cell:nth-child(n+3) { border-bottom: 0; }
/* Scattered-tools → pipeline diagram. Decorative (aria-hidden); tells the
   about-section story visually: chaos chips funnel into ordered stages. */
.about-flow { display: flex; align-items: center; gap: 16px; margin: 0 0 26px; flex-wrap: wrap; }
.flow-chaos { display: flex; flex-wrap: wrap; gap: 8px; max-width: 260px; }
.flow-chaos span { font-size: 12px; padding: 5px 11px; border: 1px dashed var(--border-strong); border-radius: var(--radius-pill); color: var(--text-quaternary); background: var(--bg-surface); }
.flow-chaos span:nth-child(odd) { transform: rotate(-2deg); }
.flow-chaos span:nth-child(even) { transform: rotate(1.6deg); }
.flow-arrow { color: var(--accent); font-size: 22px; font-weight: 600; line-height: 1; }
.flow-pipeline { display: flex; align-items: center; }
.flow-pipeline li { font-size: 12px; font-weight: 600; padding: 6px 12px; border: 1px solid var(--border-strong); background: var(--bg-elevated); color: var(--text-tertiary); white-space: nowrap; }
.flow-pipeline li + li { border-left: 0; }
.flow-pipeline li:first-child { border-radius: var(--radius-pill) 0 0 var(--radius-pill); }
.flow-pipeline li:last-child { border-radius: 0 var(--radius-pill) var(--radius-pill) 0; }
.flow-pipeline li.done { color: var(--success); background: var(--success-soft); }
.flow-pipeline li.is-current { color: var(--accent-hover); background: var(--accent-soft); border-color: var(--accent); }

.metric-cell h3 { font-size: 17px; font-family: var(--font-body); font-weight: 600; margin-bottom: 6px; display: flex; align-items: flex-start; gap: 8px; }
/* margin-top pins the dot to the first line when a title wraps */
.metric-cell h3::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 8px; }
.metric-cell p { color: var(--text-tertiary); font-size: 14px; }

/* ── Bento ────────────────────────────────────────────────────────────── */
.bento {
  display: grid; grid-template-columns: repeat(12, 1fr);
  border: 1px solid var(--border-strong); border-radius: var(--radius-md); overflow: hidden;
}
.bento-cell {
  padding: clamp(22px, 2.6vw, 34px); background: var(--bg-elevated);
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  transition: background-color var(--motion-base) var(--motion-ease);
}
/* Zig-zag editorial bento — no 3-equal feature row. Rows alternate
   wide/narrow → narrow/wide → wide/narrow then a full strip. */
.cell-a { grid-column: span 7; }
.cell-b { grid-column: span 5; border-right: 0; }
.cell-c { grid-column: span 5; }
.cell-d { grid-column: span 7; border-right: 0; }
.cell-e { grid-column: span 12; border-right: 0; background: var(--bg-canvas-marketing); }
.cell-f { grid-column: span 12; border-right: 0; border-bottom: 0; }
.cell-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); margin-bottom: 12px; }
.bento-cell h3 { margin-bottom: 10px; }
.bento-cell p { color: var(--text-tertiary); font-size: 15px; }
@media (hover: hover) and (pointer: fine) {
  .bento-cell:hover { background: var(--bg-sunken); }
}
.cell-timeline { margin-top: 18px; display: grid; gap: 10px; }
.cell-timeline li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-secondary); }
.t-bar { display: inline-block; height: 8px; border-radius: var(--radius-pill); }
.t-danger { width: 28px; background: var(--danger); }
.t-warn { width: 56px; background: var(--warning); }
.t-ok { width: 96px; background: var(--success); }
.cell-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cell-chips span { font-size: 12px; padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--bg-canvas-marketing); color: var(--text-secondary); }

/* Bento micro-visuals — cells C–F. Same scale language as .cell-timeline /
   .cell-chips: 13px labels, token colors, aria-hidden decoration only. */
.cell-docs { margin-top: 18px; display: grid; gap: 9px; }
.cell-docs li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-quaternary); }
.cell-docs li.done { color: var(--text-secondary); }
.doc-ic { position: relative; width: 13px; height: 16px; flex: 0 0 auto; border: 1px solid var(--border-strong); border-radius: 3px; background: var(--bg-surface); }
.doc-ic::after { content: ''; position: absolute; top: -1px; right: -1px; width: 5px; height: 5px; border-left: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); background: var(--bg-elevated); border-radius: 0 0 0 2px; }
.doc-check { margin-left: auto; color: var(--success); font-weight: 700; font-size: 12px; }

.cell-branch { margin-top: 18px; display: flex; align-items: center; gap: 20px; }
.branch-root { flex: 0 0 auto; font-size: 12px; font-weight: 600; padding: 8px 14px; border: 1px solid var(--accent); border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-hover); }
.branch-list { position: relative; display: grid; gap: 8px; min-width: 0; }
.branch-list::before { content: ''; position: absolute; left: -20px; top: 15px; bottom: 15px; width: 1px; background: var(--border-strong); }
.branch-list li { position: relative; font-size: 13px; color: var(--text-secondary); padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-canvas-marketing); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.branch-list li::before { content: ''; position: absolute; left: -20px; top: 50%; width: 20px; height: 1px; background: var(--border-strong); }

.cell-copy { min-width: 0; }
.cell-draft { display: grid; gap: 10px; padding: 22px 24px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-elevated); box-shadow: var(--shadow-sm); }
.draft-title { width: 46%; height: 12px; border-radius: var(--radius-pill); background: var(--text-quaternary); opacity: 0.55; }
.draft-line { width: var(--w, 90%); height: 8px; border-radius: var(--radius-pill); background: var(--border-strong); }
.draft-caret { position: relative; }
.draft-caret::after { content: ''; position: absolute; left: calc(100% + 6px); top: -3px; width: 2px; height: 14px; background: var(--accent); animation: draftBlink 1.1s steps(1) infinite; }
@keyframes draftBlink { 50% { opacity: 0; } }

.cell-people { display: grid; gap: 14px; justify-items: start; }
.avatar-row { display: flex; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; border: 2px solid var(--bg-elevated); background: var(--accent-soft); color: var(--accent-hover); }
.avatar + .avatar { margin-left: -9px; }
.av-2 { background: var(--warning-soft); color: var(--warning); }
.av-3 { background: var(--success-soft); color: var(--success); }
.av-more { background: var(--bg-sunken); color: var(--text-tertiary); }
.cell-people .cell-chips { margin-top: 0; }

/* Full-width strips E/F read text-left, visual-right on desktop. */
.cell-e, .cell-f { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); column-gap: clamp(28px, 4vw, 64px); align-items: center; }

/* ── Workflow ─────────────────────────────────────────────────────────── */
.guidelines-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.section-head.full { grid-column: 1 / -1; }
.wf-steps { display: flex; flex-direction: column; gap: 2px; }
.wf-step {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  font-family: var(--font-body); font-size: 18px; font-weight: 600; color: var(--text-quaternary);
  background: transparent; border: 0; border-left: 2px solid var(--border);
  padding: 14px 18px; cursor: pointer; transition: color var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease);
}
.wf-step span { font-size: 13px; font-weight: 600; color: var(--text-quaternary); }
.wf-step.is-active { color: var(--text-primary); border-left-color: var(--accent); }
.wf-step.is-active span { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .wf-step:hover { color: var(--text-secondary); } }
.wf-preview {
  border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: clamp(26px, 3.2vw, 44px); background: var(--bg-elevated); min-height: 240px;
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(200px, 22vw, 250px); column-gap: clamp(24px, 3vw, 44px); align-items: center;
}
.wf-copy { min-width: 0; }
.wf-preview h3 { font-size: clamp(22px, 2.6vw, 32px); margin-bottom: 14px; }
.wf-copy > p { color: var(--text-tertiary); font-size: 17px; max-width: 52ch; }
.wf-metrics { display: flex; gap: clamp(18px, 3vw, 40px); margin-top: 28px; flex-wrap: wrap; }
.wf-metrics dt { font-family: var(--font-display); font-size: 30px; font-weight: 600; }
.wf-metrics dd { color: var(--text-tertiary); font-size: 13px; }

/* Per-step mini-scenes. landing.js toggles .is-active with the tabs. */
.wf-stage { min-width: 0; }
.wf-scene { display: none; padding: 18px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-canvas-marketing); }
.wf-scene.is-active { display: grid; gap: 10px; animation: wfSceneIn 0.32s var(--motion-ease); }
@keyframes wfSceneIn { from { opacity: 0; transform: translateY(6px); } }
.scene-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-elevated); }
.scene-name { font-size: 13px; font-weight: 500; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene-chip { flex: 0 0 auto; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--bg-sunken); color: var(--text-tertiary); white-space: nowrap; }
.chip-accent { background: var(--accent-soft); color: var(--accent-hover); }
.scene-fit { display: grid; gap: 7px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-elevated); }
.fit-bar { position: relative; height: 7px; border-radius: var(--radius-pill); background: var(--bg-sunken); overflow: hidden; }
.fit-bar::after { content: ''; position: absolute; inset: 0; width: var(--w, 50%); border-radius: inherit; background: var(--accent); }
.fit-low::after { background: var(--warning); }
.scene-check { display: grid; gap: 9px; }
.scene-check li { position: relative; padding-left: 24px; font-size: 13px; color: var(--text-quaternary); }
.scene-check li::before { content: ''; position: absolute; left: 0; top: 1px; width: 14px; height: 14px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--bg-surface); }
.scene-check li.done { color: var(--text-secondary); }
.scene-check li.done::before { background: var(--accent); border-color: var(--accent); }
.scene-check li.done::after { content: ''; position: absolute; left: 5px; top: 4px; width: 4px; height: 8px; border-right: 2px solid var(--bg-elevated); border-bottom: 2px solid var(--bg-elevated); transform: rotate(40deg); }
.scene-submit { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 8px 0; }
.submit-seal { width: 40px; height: 40px; border-radius: var(--radius-pill); display: grid; place-items: center; background: var(--success-soft); color: var(--success); font-size: 18px; font-weight: 700; }
.submit-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.submit-meta { font-size: 12px; color: var(--text-quaternary); }
.scene-cal { display: grid; gap: 10px; }
.cal-head { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-tertiary); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-grid span { aspect-ratio: 1; border-radius: 4px; background: var(--bg-elevated); border: 1px solid var(--border); }
.cal-grid .is-day { background: var(--accent); border-color: var(--accent); }
.cal-note { font-size: 12px; font-weight: 600; color: var(--accent-hover); }
.scene-result { display: grid; gap: 6px; justify-items: start; padding: 6px 2px; }
.result-badge { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--success-soft); color: var(--success); }
.result-award { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--text-primary); }
.result-note { font-size: 12px; color: var(--text-quaternary); }

/* ── Pricing ──────────────────────────────────────────────────────────── */
.pricing-toggle { position: relative; display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--bg-elevated); margin-bottom: clamp(28px, 4vw, 44px); }
.pt-btn { position: relative; z-index: 1; border: 0; background: transparent; font-family: var(--font-body); font-weight: 600; font-size: 14px; padding: 9px 20px; border-radius: var(--radius-pill); cursor: pointer; color: var(--text-tertiary); display: inline-flex; align-items: center; gap: 8px; }
.pt-btn.is-active { color: var(--text-primary); }
.pt-badge { font-size: 11px; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-hover); }
.pt-indicator { position: absolute; top: 4px; left: 4px; height: calc(100% - 8px); background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: var(--radius-pill); z-index: 0; transition: transform var(--motion-base) var(--motion-ease), width var(--motion-base) var(--motion-ease); }
.pricing-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-md); overflow: hidden; }
.tier { padding: clamp(24px, 2.6vw, 36px); border-right: 1px solid var(--border); }
.tier:last-child { border-right: 0; }
.tier-featured { background: var(--bg-elevated); }
.tier-name { font-family: var(--font-body); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); }
.tier-price { font-family: var(--font-display); font-size: 44px; font-weight: 600; margin: 12px 0 2px; display: flex; align-items: baseline; gap: 8px; }
.tier-price small { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--text-tertiary); }
.tier-billing { color: var(--text-tertiary); font-size: 14px; margin-bottom: 18px; }
.tier-cta { width: 100%; margin-bottom: 20px; }
.tier-features li { padding: 9px 0 9px 24px; position: relative; font-size: 15px; color: var(--text-secondary); border-top: 1px solid var(--border); }
.tier-features li::before { content: ""; position: absolute; left: 0; top: 15px; width: 10px; height: 10px; border-radius: 3px; background: var(--accent-soft); border: 1px solid var(--accent); }

/* ── Resources ────────────────────────────────────────────────────────── */
/* Mixed editorial grid — featured row, paired middle, wide closer. Never
   three equal cards in a horizontal row. */
.resource-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border: 1px solid var(--border-strong); border-radius: var(--radius-md); overflow: hidden;
}
.resource-card {
  padding: clamp(24px, 2.6vw, 36px);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: background-color var(--motion-base) var(--motion-ease);
}
.card-featured {
  grid-column: span 2;
  background: var(--bg-canvas-marketing);
  border-right: 0;
  padding-block: clamp(28px, 3.6vw, 52px);
}
.card-featured h3 { font-size: clamp(24px, 3vw, 36px); max-width: 22ch; }
.resource-card:nth-child(3) { border-right: 0; }
.resource-card:nth-child(2), .resource-card:nth-child(3) { border-bottom: 1px solid var(--border); }
.resource-card:nth-child(4) { grid-column: span 2; border-right: 0; border-bottom: 0; background: var(--bg-canvas-marketing); }
@media (hover: hover) and (pointer: fine) { .resource-card:hover { background: var(--bg-sunken); } }
.card-cat { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); margin-bottom: 12px; }
.resource-card h3 { margin-bottom: 10px; }
.card-excerpt { color: var(--text-tertiary); font-size: 15px; }

/* Homepage teaser card media — article image when available, category-tinted
   gradient fallback otherwise (never an empty gap or broken img). */
.card-media { height: 150px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-sunken); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-media.is-fallback { position: relative; overflow: hidden; }
.card-media.is-fallback::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(var(--border-strong) 1px, transparent 1px); background-size: 14px 14px; opacity: 0.45; }
/* Oversized category word anchors the block so it reads as designed, not empty. */
.card-media.is-fallback::before { content: attr(data-label); position: absolute; left: 16px; bottom: 4px; z-index: 1; font-family: var(--font-display); font-size: clamp(34px, 4vw, 52px); font-weight: 600; line-height: 1.1; color: var(--text-primary); opacity: 0.13; letter-spacing: 0.01em; white-space: nowrap; pointer-events: none; }
.media-v0.is-fallback { background: linear-gradient(135deg, var(--accent-soft), var(--success-soft) 55%, var(--bg-canvas-marketing)); }
.media-v1.is-fallback { background: linear-gradient(135deg, var(--warning-soft), var(--danger-soft) 55%, var(--bg-canvas-marketing)); }
.media-v2.is-fallback { background: linear-gradient(135deg, var(--success-soft), var(--accent-soft) 55%, var(--bg-canvas-marketing)); }
.media-v3.is-fallback { background: linear-gradient(135deg, var(--danger-soft), var(--warning-soft) 55%, var(--bg-canvas-marketing)); }
/* Featured card: text left, tall media right. Text children auto-flow into
   column 1; the media block claims column 2 across all rows. */
.card-featured { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 36%); column-gap: clamp(24px, 3.4vw, 48px); align-items: center; }
.card-featured > :not(.card-media) { grid-column: 1; }
.card-featured .card-media { grid-column: 2; grid-row: 1 / span 6; height: 100%; min-height: 200px; margin-bottom: 0; }

/* ── Newsletter ───────────────────────────────────────────────────────── */
.newsletter-inner { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.newsletter-copy p { color: var(--text-tertiary); margin-top: 14px; font-size: 17px; }
.newsletter-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.newsletter-form input { font-family: var(--font-body); font-size: 16px; padding: 13px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-surface); color: var(--text-primary); }
.newsletter-form input:focus-visible { border-color: var(--accent); }
.newsletter-form .landing-button { white-space: nowrap; }
.form-status { grid-column: 1 / -1; font-size: 14px; min-height: 1.2em; }
.form-status.is-error { color: var(--danger); }
.form-status.is-success { color: var(--success); }
.privacy-note { grid-column: 1 / -1; color: var(--text-quaternary); font-size: 13px; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.faq-head { margin-bottom: 0; position: sticky; top: 88px; }
.faq-list { border-top: 1px solid var(--border-strong); }
.faq-item { border-bottom: 1px solid var(--border-strong); }
.faq-q { width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer; font-family: var(--font-body); font-size: 18px; font-weight: 600; color: var(--text-primary); padding: 22px 40px 22px 0; position: relative; }
.faq-q::after { content: "+"; position: absolute; right: 4px; top: 20px; font-size: 22px; color: var(--text-tertiary); transition: transform var(--motion-fast) var(--motion-ease); }
.faq-q[aria-expanded="true"]::after { content: "\2013"; }
.faq-a { padding: 0 40px 22px 0; color: var(--text-tertiary); font-size: 16px; }

/* ── Final CTA ────────────────────────────────────────────────────────── */
/* Seamless — no bottom border. Generous whitespace + footer change separates. */
.final-cta { }
.final-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.final-copy h2 { margin-bottom: 16px; }
.final-copy p { color: var(--text-tertiary); margin-bottom: 24px; font-size: 18px; max-width: 40ch; }
.summary-pipeline { border: 1px solid var(--border-strong); border-radius: var(--radius-md); overflow: hidden; }
.summary-pipeline li { display: flex; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 15px; background: var(--bg-elevated); }
.summary-pipeline li:last-child { border-bottom: 0; }
.summary-pipeline li span { color: var(--text-tertiary); }
.summary-pipeline li b { font-weight: 600; }
.summary-pipeline li.win { background: var(--success-soft); }
.summary-pipeline li.win b { color: var(--success); }

/* ── Footer ───────────────────────────────────────────────────────────── */
/* Footer detaches via a slightly darker tint than even-section white and
   odd-section bg. No hard top border (seamless). */
.landing-footer {
  background: var(--bg-sunken);
  padding-block: clamp(40px, 5vw, 64px) 28px;
  margin-top: clamp(24px, 3vw, 48px);
}
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: start; }
.footer-tag { color: var(--text-tertiary); font-size: 14px; margin-top: 8px; max-width: 36ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px 28px; }
.footer-links a { font-size: 14px; color: var(--text-secondary); }
.footer-links a:hover { color: var(--accent); }
.footer-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-quaternary); font-size: 13px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 28px; }
.footer-col-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-quaternary); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-secondary); padding: 5px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-support { max-width: 220px; }
.footer-support-copy { color: var(--text-tertiary); font-size: 14px; line-height: 1.5; margin-bottom: 3px; }
.footer-support .footer-support-email { color: var(--accent); overflow-wrap: anywhere; }
.footer-support .footer-support-email:hover { color: var(--accent-hover); }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); color: var(--text-tertiary); transition: color var(--motion-fast, 0.15s) ease, border-color var(--motion-fast, 0.15s) ease; }
.footer-social a:hover, .footer-social a:focus-visible { color: var(--accent); border-color: var(--accent); }
/* Lean article footer is a flex row, not the grid footer — let the icons sit inline. */
.blog-article-shell .footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.blog-article-shell .footer-social { margin-top: 0; margin-left: auto; }

/* ── Section link + pricing teaser (homepage) ─────────────────────────── */
.section-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--accent); }
.section-link:hover { color: var(--accent-hover); }
.section-links { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; }
.pricing-teaser-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: -12px 0 28px;
}
.pricing-teaser-controls .pricing-toggle { margin-bottom: 0; background: var(--bg-surface); box-shadow: var(--shadow-sm); }
.pricing-toggle--currency .pt-btn { min-width: 70px; justify-content: center; }
/* 2-col spotlight: Pro on the left (large, accented), Starter + Campus
   stacked narrow on the right. Avoids 3-equal-card violation. */
.teaser-tiers {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 0;
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  overflow: hidden; margin-bottom: 28px;
}
.teaser-side { display: grid; grid-template-rows: 1fr 1fr; border-left: 1px solid var(--border); }
.teaser-side .teaser-tier { border-bottom: 1px solid var(--border); }
.teaser-side .teaser-tier:last-child { border-bottom: 0; }
.teaser-tier {
  display: flex; flex-direction: column; gap: 6px;
  padding: clamp(24px, 2.8vw, 38px);
  background: var(--bg-elevated); color: inherit;
  transition: background-color var(--motion-base) var(--motion-ease);
}
.teaser-tier.is-featured {
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-elevated) 58%);
  padding: clamp(28px, 3.6vw, 52px);
  gap: 10px;
}
.teaser-tier.is-featured .teaser-price { font-size: clamp(44px, 5vw, 58px); }
.teaser-cta { margin-top: 12px; font-weight: 600; color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .teaser-tier:hover { background: var(--bg-sunken); }
  .teaser-tier.is-featured:hover { background: linear-gradient(135deg, var(--accent-soft), var(--bg-sunken) 58%); filter: brightness(0.99); }
}
.teaser-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); }
.teaser-price { font-family: var(--font-display); font-size: clamp(34px, 3.8vw, 44px); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.teaser-price small { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--text-tertiary); }
.teaser-note { color: var(--text-tertiary); font-size: 15px; max-width: 58ch; }

/* ── Sub-page header (pricing / blog / guides) ────────────────────────── */
.page-header { padding-block: clamp(56px, 8vw, 104px) clamp(28px, 4vw, 48px); border-top: 0; }
.page-header .eyebrow { margin-bottom: 16px; }
.page-header h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(29px, 4.05vw, 54px); line-height: 1.02; max-width: 16ch; }
.page-header p { color: var(--text-tertiary); font-size: 18px; margin-top: 18px; max-width: 56ch; }
.content-index-shell .page-header { padding-block: clamp(34px, 5vw, 64px) clamp(14px, 2.4vw, 28px); }
.content-index-shell main > .landing-section:nth-of-type(2) { padding-top: clamp(12px, 2.4vw, 28px); }

/* ── Post grid (blog / guides) ────────────────────────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border-strong); border-radius: var(--radius-md); overflow: hidden; background: var(--border); }
.post-card { display: flex; flex-direction: column; gap: 12px; min-height: clamp(210px, 22vw, 268px); padding: clamp(22px, 2.4vw, 32px); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-elevated); color: inherit; text-decoration: none; transition: background-color var(--motion-base) var(--motion-ease), box-shadow var(--motion-base) var(--motion-ease), transform var(--motion-base) var(--motion-ease); }
@media (hover: hover) and (pointer: fine) { .post-card:hover { background: var(--bg-sunken); box-shadow: inset 0 0 0 1px rgba(37, 110, 91, 0.1); transform: translateY(-2px); } }
.post-card.is-premium, .resource-card.is-premium { box-shadow: inset 0 3px 0 var(--accent); }
.post-card:focus-visible { outline: 3px solid rgba(37, 110, 91, 0.24); outline-offset: -6px; }
.post-card:active { transform: translateY(0); }
.post-card .card-cat { margin-bottom: 2px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.card-premium { display: inline-flex; margin-left: 8px; padding: 2px 7px; border: 1px solid rgba(37, 110, 91, .22); border-radius: 999px; background: rgba(37, 110, 91, .08); color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .06em; vertical-align: middle; }
.post-card h3 { font-size: clamp(18px, 1.9vw, 23px); text-wrap: balance; }
.post-card .card-excerpt { margin-top: auto; color: var(--text-tertiary); line-height: 1.6; }
.post-card .card-meta { margin-top: 6px; color: var(--text-quaternary); font-size: 13px; }
.post-card .card-read { display: inline-flex; width: fit-content; align-items: center; margin-top: 2px; color: var(--accent); font-size: 14px; font-weight: 700; }
.post-card .card-read::after { content: ""; width: 0.48rem; height: 0.48rem; margin-left: 0.38rem; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform var(--motion-fast) var(--motion-ease); }
@media (hover: hover) and (pointer: fine) { .post-card:hover .card-read::after { transform: translateX(2px) rotate(45deg); } }
.post-empty { padding: 40px 0; color: var(--text-tertiary); }
/* Blog index pagination */
.blog-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: clamp(24px, 3vw, 40px) 0 0; }
.blog-pagination[hidden] { display: none; } /* hidden while a search/topic filter is active */
.blog-page-btn { min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm, 8px); background: var(--bg-elevated); color: var(--text-secondary); font: inherit; font-weight: 600; cursor: pointer; transition: background-color var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease), color var(--motion-fast) var(--motion-ease); }
@media (hover: hover) and (pointer: fine) { .blog-page-btn:not(:disabled):hover { background: var(--bg-sunken); border-color: var(--accent); color: var(--accent); } }
.blog-page-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; cursor: default; }
.blog-page-btn:disabled { opacity: 0.4; cursor: default; }
.blog-page-btn:focus-visible { outline: 3px solid rgba(37, 110, 91, 0.28); outline-offset: 2px; }
.blog-page-gap { padding: 0 4px; color: var(--text-quaternary); }
/* Card thumbnail — bleeds to the card edges above the text. Rendered only when
   the article has a real image; imageless cards stay clean text-only. */
.post-card:has(.post-card-media) { overflow: hidden; }
.post-card-media { margin: calc(-1 * clamp(22px, 2.4vw, 32px)) calc(-1 * clamp(22px, 2.4vw, 32px)) 6px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-sunken); border-bottom: 1px solid var(--border); }
.post-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── Blog/guides search + topic filter ────────────────────────────────── */
.post-filter { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.post-search { position: relative; display: block; max-width: 420px; }
.post-search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-tertiary); pointer-events: none; }
.post-search input { width: 100%; padding: 11px 16px 11px 43px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--bg-elevated); color: var(--text-primary); font: inherit; font-size: 15px; transition: border-color var(--motion-fast) var(--motion-ease); }
.post-search input::placeholder { color: var(--text-tertiary); }
.post-search input:hover { border-color: var(--accent); }
.post-search input:focus-visible { outline: 3px solid rgba(37, 110, 91, 0.24); outline-offset: 1px; border-color: var(--accent); }
.post-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.post-chip { padding: 7px 15px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--bg-elevated); color: var(--text-secondary); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background-color var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease), color var(--motion-fast) var(--motion-ease); }
.post-chip:hover { border-color: var(--accent); color: var(--accent); }
.post-chip:focus-visible { outline: 3px solid rgba(37, 110, 91, 0.24); outline-offset: 1px; }
.post-chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--text-on-accent, #fff); }
.post-filter-count { margin: 0; color: var(--text-tertiary); font-size: 14px; }
.post-card.is-filtered-out, .resource-card.is-filtered-out { display: none; }
.post-grid.is-all-filtered { display: none; }
.post-no-results { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 48px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius-md); color: var(--text-tertiary); text-align: center; }
.post-no-results[hidden] { display: none; }
.post-suggest { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.post-suggest:empty { display: none; }
.post-suggest-title { margin: 0 0 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-quaternary); }
.post-suggest-link { font-size: 15px; font-weight: 600; color: var(--accent); }
.post-suggest-link:hover { color: var(--accent-hover); }

/* ── Screens ("See it in action") — real app captures ─────────────────── */
.screens-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: clamp(16px, 2.2vw, 28px);
}
.screen-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-fast) var(--motion-ease);
}
.screen-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.screen-main { grid-row: 1 / span 2; }
.screen-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--border);
}
.screen-chrome span:not(.screen-url) {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}
.screen-url {
  margin-left: 8px;
  padding: 2px 12px;
  font-size: 12px;
  color: var(--text-tertiary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}
.screen-card img { display: block; width: 100%; height: auto; }
/* Side cards fill the grid rows the main card's height creates. flex-basis 0
   is load-bearing: the images must contribute NO intrinsic height, or the
   portrait calendar capture inflates the rows and the main card gets a
   stretched void under its screenshot. */
.screen-card:not(.screen-main) img {
  flex: 1 1 0;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
}
.screen-card img.shot-checklist { object-position: left top; }
.screen-card figcaption {
  margin-top: auto;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

/* Narrative hand-off line at a section's end — links attention to the next
   proof point or conversion step. */
.section-handoff { margin-top: clamp(22px, 3vw, 34px); text-align: center; grid-column: 1 / -1; }
.section-handoff .landing-button { display: inline-flex; }

/* ── Scroll reveal ────────────────────────────────────────────────────── */
/* No `filter: blur()` here on purpose. A blur transition on a full-width
   section is not compositable — every frame repaints the whole element on the
   main thread, which is what Lighthouse reports as a non-composited animation
   and a forced reflow. Opacity and transform both run on the compositor. */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity var(--motion-slow) var(--motion-ease),
    transform var(--motion-slow) var(--motion-ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Above-the-fold opt-out — MUST stay after the two rules above.
   `is-visible` is added by initReveal() in /js/landing.js, a 53 KB `defer`
   script: nothing carrying [data-reveal] is visible until that script has
   downloaded, parsed and run. For below-the-fold sections that is free, since
   they are off-screen anyway. For the hero it meant the entire above-the-fold
   block was `opacity: 0` through first paint, which is why Lighthouse picked
   the nav brand text as the LCP element and reported 3,050 ms of element
   render delay against a 0 ms TTFB. Mark anything visible in the first
   viewport with data-reveal-now so it paints on the first frame. */
[data-reveal][data-reveal-now] {
  opacity: 1; transform: none; transition: none;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
/* Compact nav tier: Vietnamese labels are ~15% longer than English, so the
   full-size nav only fits above ~1200px. Below that, tighten; below 1024px,
   collapse to the burger menu (which already carries every link + the CTA). */
@media (max-width: 1199px) {
  .nav-inner { gap: 16px; }
  .nav-brand { font-size: 21px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 14px; }
  .nav-actions { gap: 10px; }
  .nav-actions .landing-button { font-size: 14px; padding: 10px 16px; }
}
@media (max-width: 1023px) {
  .nav-links, .nav-login { display: none; }
  .nav-toggle { display: inline-flex; }
  .landing-nav[data-menu-open="true"] .nav-mobile { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-body, .trust-line { max-width: none; }
  .about-grid, .guidelines-grid, .faq-grid, .newsletter-inner, .final-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; top: auto; margin-bottom: 8px; }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .cell-a, .cell-b, .cell-c, .cell-d, .cell-e, .cell-f { grid-column: span 6; grid-row: auto; border-right: 0; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .teaser-tiers { grid-template-columns: 1fr; }
  .teaser-side { border-left: 0; border-top: 1px solid var(--border); grid-template-rows: auto auto; }
}
@media (max-width: 767px) {
  body.landing-shell { font-size: 16px; }
  .pricing-tiers, .resource-grid, .teaser-tiers, .post-grid { grid-template-columns: 1fr; }
  .teaser-tier { border-right: 0; border-bottom: 1px solid var(--border); }
  .teaser-tier:last-child { border-bottom: 0; }
  .card-featured, .resource-card:nth-child(4) { grid-column: 1; }
  .post-card { border-right: 0; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 20px; }
  .proof-list li { font-size: 14px; padding: 5px 10px; }
  .tier { border-right: 0; border-bottom: 1px solid var(--border); }
  .tier:last-child { border-bottom: 0; }
  .card-featured, .resource-card { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--border); }
  .resource-card:last-child { border-bottom: 0; }
  .mock-window { grid-template-columns: 1fr; }
  .mock-rail { border-right: 0; border-bottom: 1px solid var(--border-strong); }
  .cell-e, .cell-f { grid-template-columns: 1fr; row-gap: 20px; }
  .wf-preview { grid-template-columns: 1fr; row-gap: 24px; align-items: start; }
  .wf-stage { max-width: 340px; }
  .card-featured { grid-template-columns: 1fr; }
  .card-featured .card-media { grid-column: 1; grid-row: auto; height: 160px; min-height: 0; margin-bottom: 18px; }
  .screens-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .screen-main { grid-row: auto; }
  .screen-card:not(.screen-main) img { flex: none; height: auto; aspect-ratio: 4 / 3; }
  .about-flow { flex-direction: column; align-items: flex-start; }
  .flow-arrow { transform: rotate(90deg); }
  .newsletter-form { grid-template-columns: 1fr; }
  .about-metrics { grid-template-columns: 1fr; }
  .metric-cell:nth-child(odd) { border-right: 0; }
  .metric-cell { border-bottom: 1px solid var(--border); }
  .metric-cell:last-child { border-bottom: 0; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── Reduced motion ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important; animation-iteration-count: 1 !important;
    scroll-behavior: auto !important; transition-duration: 1ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}

/* ── Blog article body — Vietnamese-safe serif rendering ──────────────── */
.post-body {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.72;
  font-kerning: auto;
  -webkit-font-smoothing: auto;
  hanging-punctuation: first last;
}

@media (-webkit-min-device-pixel-ratio: 1) and (min-resolution: 96dpi) {
  .post-body {
    font-weight: 420;
  }
}

/* ── 480px breakpoint — phones portrait ──────────────────────────────── */
@media (max-width: 480px) {
  :root {
    --gutter: 16px;
    --section-y: clamp(30px, 7vw, 44px);
  }

  /* Brand + lang switcher + CTA + burger don't all fit at 375px; the CTA
     moves into the mobile menu (.nav-mobile-cta) instead, and the row
     tightens (base: 24px inner gap + 24px brand = 19px overflow). */
  .nav-actions > .landing-button { display: none; }
  .nav-actions { gap: 10px; }
  .nav-inner { gap: 12px; }
  .nav-brand { font-size: 20px; }

  .post-grid { grid-template-columns: 1fr; border-radius: 0; border-left: 0; border-right: 0; }
  .post-card { padding: 20px var(--gutter); }

  h1 { font-size: clamp(26px, 7vw, 34px); }
  h2 { font-size: clamp(22px, 6vw, 30px); }

  .bento { grid-template-columns: 1fr; }
  .cell-a, .cell-b, .cell-c, .cell-d, .cell-e, .cell-f {
    grid-column: 1; border-right: 0;
  }

  .footer-cols { grid-template-columns: 1fr; }

  .newsletter-form { grid-template-columns: 1fr; gap: 8px; }
  .newsletter-form .landing-button { width: 100%; justify-content: center; }

  .hero-copy h1 { font-size: clamp(26px, 8vw, 36px); }
  .hero-body { font-size: 16px; }

  .flow-pipeline li { padding: 5px 9px; font-size: 11px; }
  .branch-list li { white-space: normal; }

  .tier { padding: 24px 20px; }

  .nav-brand .brand-text { display: inline; }
}

/* ── i18n label spans ────────────────────────────────────────────────── */
/* Translatable text is wrapped in <span data-i18n> so sibling decoration
   (step numbers, arrows) survives translateDOM. Neutralize the generic
   `.wf-step span` / `.button-quiet span` styling for these label spans. */
.wf-step span[data-i18n] {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
.button-quiet span[data-i18n] {
  margin-left: 0;
  transition: none;
}
.button-quiet:hover span[data-i18n] {
  transform: none;
}

/* ── Fluid typography safety net ─────────────────────────────────────── */
img, video, iframe, pre, table {
  max-width: 100%;
}

@media (max-width: 600px) {
  [style*="width:"] {
    max-width: 100% !important;
  }
}

/* ── Pricing cards (shared between /pricing and landing teaser) ─────────── */
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
  margin: 32px 0 clamp(52px, 6vw, 72px);
}
.pricing-card {
  position: relative;
  display: grid;
  grid-template-rows: 46px minmax(44px, auto) minmax(72px, auto) minmax(104px, auto) 24px minmax(64px, auto) minmax(76px, auto) 1fr;
  align-content: start;
  min-height: 590px;
  padding: clamp(28px, 2.8vw, 36px) clamp(22px, 2.4vw, 30px) 30px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: transparent;
}

/* Plan-color variants. Drive everything from data-plan so cards stay
 * declarative in HTML. Featured (recommended) layer = soft gradient + colored
 * top accent stripe + colored icon. */
.pricing-card[data-plan="applicant"] { --plan-color: var(--plan-applicant); --plan-color-hover: var(--plan-applicant-hover); --plan-soft: var(--plan-applicant-soft); --plan-border: var(--plan-applicant-border); }
.pricing-card[data-plan="scribe"]    { --plan-color: var(--plan-scribe);    --plan-color-hover: var(--plan-scribe-hover);    --plan-soft: var(--plan-scribe-soft);    --plan-border: var(--plan-scribe-border); }
.pricing-card[data-plan="scholar"]   { --plan-color: var(--plan-scholar);   --plan-color-hover: var(--plan-scholar-hover);   --plan-soft: var(--plan-scholar-soft);   --plan-border: var(--plan-scholar-border); }

.pricing-card.featured {
  border-color: var(--plan-color);
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--plan-soft) 115%);
  box-shadow: 0 24px 54px -36px color-mix(in srgb, var(--plan-color) 60%, transparent);
}
.pricing-card.featured::before { background: var(--plan-color); }

.pricing-badge {
  position: absolute;
  right: 24px;
  top: 30px;
  background: var(--plan-soft);
  color: var(--plan-color);
  border: 1px solid var(--plan-border);
  border-radius: var(--radius-pill);
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
}

.pricing-card .card-icon {
  display: block;
  width: 46px;
  height: 46px;
  color: var(--text-primary);
  margin: 0;
}
.pricing-card.featured .card-icon,
.pricing-card[data-plan="scribe"]   .card-icon,
.pricing-card[data-plan="scholar"]  .card-icon {
  color: var(--plan-color);
}

.pricing-card .plan {
  font-family: var(--font-display);
  font-size: clamp(31px, 3vw, 39px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
}
.pricing-card .prop {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 17px;
}
.pricing-card .price {
  align-self: end;
  margin: 0 0 2px;
  color: var(--text-primary);
  font-size: clamp(42px, 4.6vw, 60px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.pricing-card .price.has-original {
  margin-top: 0;
  color: var(--plan-color);
  text-shadow: 0 12px 30px color-mix(in srgb, var(--plan-color) 16%, transparent);
}
.pricing-card .price-original {
  display: block;
  margin-top: 0;
  margin-bottom: 5px;
  color: var(--text-quaternary);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.pricing-card .period { color: var(--text-tertiary); font-size: 14px; }
.pricing-card .plan-hook {
  margin-top: 8px;
  color: var(--text-tertiary);
  font-size: 14px;
}
.pricing-card .card-actions { align-self: start; margin-top: 0; }
.pricing-card .pricing-cta { width: 100%; min-height: 52px; font-size: 16px; }

/* Featured CTA picks up the plan color instead of the default brand accent. */
.pricing-card.featured .pricing-cta {
  background: var(--plan-color);
  border-color: var(--plan-color);
  color: #fff;
}
.pricing-card.featured .pricing-cta:hover {
  background: var(--plan-color-hover);
  border-color: var(--plan-color-hover);
}

.pricing-card .manual { color: var(--text-tertiary); font-size: 12px; margin-top: 9px; }
.pricing-card .features {
  display: grid;
  gap: 11px;
  margin-top: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  list-style: none;
  padding-left: 0;
}
.pricing-card .features li { color: var(--text-secondary); font-size: 14px; }
.pricing-card .features b { color: var(--text-primary); }

@media (max-width: 900px) {
  .pricing-cards { grid-template-columns: 1fr; }
  .pricing-card {
    grid-template-rows: 46px auto auto auto auto auto auto auto;
    min-height: 0;
  }
}
