/* ── Design Tokens v3 ── */
  :root {
    /* Background layers (Kenya Hara "layers of white") */
    --bg: #f8f6f2;
    --bg-alt: #f1eee8;
    --bg-card: #ffffff;

    /* Text hierarchy — v3: darker primary for punch */
    --text: #0d0d0c;
    --body: #3d3d42;
    --muted: #6b6b73;
    --muted-dim: #9ca3af;

    /* Accent — Norwegian forest green */
    --accent: #2d7a4a;
    --accent-hover: #23613b;
    --accent-dim: rgba(45, 122, 74, 0.06);
    --accent-border: rgba(45, 122, 74, 0.18);
    --accent-subtle: rgba(45, 122, 74, 0.10);

    /* Semantic */
    --danger: #b91c1c;
    --danger-dim: rgba(185, 28, 28, 0.04);
    --danger-border: rgba(185, 28, 28, 0.12);

    /* Structural — ghostly edges */
    --border: rgba(0, 0, 0, 0.06);
    --border-strong: rgba(0, 0, 0, 0.12);

    /* Shadows — 4 levels, v3: added xs */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);

    /* Layout — v3: rationalized to 12px/8px on 8px grid */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-pill: 999px;
    --max-width: 1200px;

    /* Typography */
    --font-serif: 'Newsreader', 'Georgia', serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing — 4px base grid */
    --sp-2: 0.5rem;    /* 8px */
    --sp-3: 0.75rem;   /* 12px */
    --sp-4: 1rem;      /* 16px */
    --sp-5: 1.25rem;   /* 20px */
    --sp-6: 1.5rem;    /* 24px */
    --sp-8: 2rem;      /* 32px */
    --sp-10: 2.5rem;   /* 40px */
    --sp-12: 3rem;     /* 48px */
    --sp-14: 3.5rem;   /* 56px */
    --sp-16: 4rem;     /* 64px */
    --sp-20: 5rem;     /* 80px */
  }

  /* ── Reset & Base ── */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

  /* v3: subtle paper grain texture (≤0.04 opacity — huashu-design permits) */
  body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    color: var(--body);
    line-height: 1.7;
    font-size: 16px;
    font-weight: 400;
  }
  a { color: inherit; text-decoration: none; }
  ul { list-style: none; }
  img { max-width: 100%; display: block; }

  /* ── Layout ── */
  .container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Fix: WP is-layout-flex kills margin on children, causing container to shrink-wrap */
body .is-layout-flex > .container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

  .section { padding: clamp(3.5rem, 6vw, 5rem) 0; }
  .section-sm { padding: clamp(2rem, 4vw, 3rem) 0; }

  /* v3: proper CSS class for alternating backgrounds (not inline styles) */
  .section-alt { background: var(--bg-alt); }

  /* ── Typography ── */
  h1, h2, h3 { text-wrap: balance; }
  p { text-wrap: pretty; }

  .eyebrow {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;       /* v3: was 0.14em — tighter, more refined */
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--sp-6);
  }
  h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;             /* v3: was 1.08 */
    letter-spacing: -0.03em;
    color: var(--text);
    max-width: 18ch;             /* v3: was 14ch — less cramped */
  }
  h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text);
    max-width: 32ch;
  }
  /* v3: h3 now distinct from body text */
  h3 {
    font-family: var(--font-sans);
    font-size: 1.125rem;         /* v3: was 1.0625rem */
    font-weight: 600;            /* v3: was 500 */
    letter-spacing: -0.01em;
    color: var(--text);
  }
  .body-text {
    font-size: 1.0625rem;
    color: var(--body);
    line-height: 1.75;
    max-width: 52rem;
    font-weight: 400;
  }
  /* v3: Newsreader italic for emphasis moments */
  .serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--muted);
  }

  /* ── Buttons ── */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
  }
  .btn-primary {
    background: var(--accent);
    color: #fff;
  }
  .btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
  .btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
  }
  .btn-ghost:hover { border-color: var(--muted); background: rgba(0,0,0,0.02); }
  .btn-sm { padding: 0.6rem 1.3rem; font-size: 0.85rem; }

  /* ── Header — glassmorphism ── */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 246, 242, 0.82);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--border);
  }
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
  }
  .logo {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: -0.04em;
    color: var(--text);
    font-style: italic;
  }
  .logo span { color: var(--accent); font-style: normal; }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
  }
  .nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--muted);
    transition: color 0.2s;
    letter-spacing: -0.01em;
  }
  .nav-links a:hover { color: var(--text); }
  /* Fix: .nav-links a (0,1,1) overrides .btn-primary (0,1,0) — need higher specificity */
  .nav-links a.btn-primary { color: #fff; }
  .nav-links a.btn-primary:hover { color: #fff; }

  /* ── Mobile Nav Toggle ── */
  .mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    color: var(--text);
    padding: 0;
    transition: border-color 0.2s;
  }
  .mobile-toggle:hover { border-color: var(--muted); }
  .mobile-toggle svg { width: 20px; height: 20px; }
  .mobile-toggle line {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }
  .mobile-toggle.open line:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .mobile-toggle.open line:nth-child(2) { opacity: 0; }
  .mobile-toggle.open line:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  .mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(248, 246, 242, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-8);
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.02em;
    transition: color 0.2s;
  }
  .mobile-nav a:hover { color: var(--accent); }
  .mobile-nav .btn { font-size: 1rem; margin-top: 1rem; }

  /* ── Hero ── */
  .hero-section {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
    min-height: 72svh;
  }
  .hero-content .lead {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.75;
    margin: var(--sp-6) 0 var(--sp-8);
    max-width: 36rem;
    font-weight: 400;
  }
  .hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  .microcopy {
    margin-top: var(--sp-10);
    font-size: 0.8rem;
    color: var(--muted-dim);
    letter-spacing: 0.005em;
    line-height: 1.6;
  }

  /* Side Panel — v3: refined with subtle accent top border */
  .hero-side-panel {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: var(--sp-8);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    position: relative;
  }
  /* v3: thin accent line at top — the "120% detail" for the side panel */
  .hero-side-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: var(--accent);
    border-radius: 0 0 2px 2px;
    opacity: 0.5;
  }
  .side-panel-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: var(--sp-6);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .side-panel-title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text);
  }
  .side-panel-label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
  }
  .timeline-item {
    display: flex;
    gap: 1.25rem;
    padding: 0.85rem 0;
    align-items: baseline;
  }
  .timeline-item + .timeline-item { border-top: 1px solid var(--border); }
  .timeline-day {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--accent);
    white-space: nowrap;
    min-width: 5.5rem;
    letter-spacing: -0.01em;
  }
  .timeline-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.55; font-weight: 400; }
  /* v3: side panel footer in Newsreader italic */
  .side-panel-footer {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    line-height: 1.5;
  }

  /* ── Feature Cards ── */
  /* v3: consistent gap and padding, hover with subtle lift */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);              /* v3: was 1.25rem */
    margin-top: var(--sp-10);       /* v3: was 3rem — tighter to H2 */
  }
  .feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--sp-8);            /* v3: standardized */
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
  }
  .feature-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
    transform: translateY(-2px);
  }
  .feature-card h3 { margin-bottom: 0.5rem; }
  .feature-card p { font-size: 0.925rem; color: var(--muted); line-height: 1.65; font-weight: 400; }

  /* ── Comparison ── */
  .comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);              /* v3: was 1.25rem */
    margin-top: var(--sp-10);
  }
  .comparison-col {
    border-radius: var(--radius);
    padding: var(--sp-8);            /* v3: standardized */
    border: 1px solid var(--border);
  }
  .comparison-col.without { background: var(--danger-dim); border-color: var(--danger-border); }
  .comparison-col.with { background: var(--accent-dim); border-color: var(--accent-border); }
  .comparison-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
  }
  .comparison-col.without .comparison-label { color: var(--danger); }
  .comparison-col.with .comparison-label { color: var(--accent); }
  .comparison-col li {
    font-size: 0.925rem;
    color: var(--muted);
    padding: 0.45rem 0;
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.55;
    font-weight: 400;
  }
  .comparison-col li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
  }
  .comparison-col.without li::before { background: rgba(185, 28, 28, 0.35); }
  .comparison-col.with li::before { background: var(--accent); }

  /* ── 90-Day Build — SIGNATURE DETAIL: large typographic numbers ── */
  /* v3: numbers pushed to 3.75rem, weight 400, opacity contrast stronger */
  .build-phases {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-6);              /* v3: was 1.25rem */
    margin-top: var(--sp-10);
  }
  .phase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--sp-8) var(--sp-6);     /* v3: was 1.75rem */
    box-shadow: var(--shadow-sm);
    position: relative;
  }
  .phase-number {
    font-family: var(--font-serif);
    font-size: 3.75rem;       /* v3: was 2.5rem — much more dramatic */
    font-weight: 400;         /* v3: was 300 */
    color: var(--accent);
    opacity: 0.2;             /* v3: was 0.35 — faded numbers more ghostly */
    line-height: 1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.04em;
  }
  /* v3: first phase number at full opacity — the visual anchor */
  .phase-card:first-child .phase-number { opacity: 1; }
  .phase-card h3 { font-size: 0.95rem; margin-bottom: 0.5rem; }
  .phase-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; font-weight: 400; }

  /* ── AI Agent Layer — v3: editorial list instead of card grid ── */
  .agent-list {
    margin-top: var(--sp-10);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
  }
  .agent-item {
    padding: var(--sp-6) var(--sp-8);
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    transition: background 0.2s;
  }
  .agent-item:hover { background: rgba(0,0,0,0.015); }
  .agent-item:nth-child(2n) { border-right: none; }
  /* v3: last agent (QA) spans full width */
  .agent-item:last-child {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: var(--sp-6);
    background: var(--accent-dim);
  }
  .agent-item h3 { font-size: 0.925rem; margin-bottom: 0.2rem; }
  .agent-item p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; font-weight: 400; }
  .agent-icon { flex-shrink: 0; opacity: 0.6; }
  /* Make agent items that have icons use flex layout */
  .agent-item:has(.agent-icon) {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-4);
  }
  .agent-item:has(.agent-icon) h3 { margin-top: 0.15rem; }
  .qa-badge {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--accent);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* ── Packages ── */
  .packages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-6);              /* v3: was 1.25rem */
    margin-top: var(--sp-10);
    align-items: start;
  }
  .package-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--sp-8) var(--sp-6);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s, transform 0.3s;
  }
  .package-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }
  .package-card.recommended {
    border-color: var(--accent-border);
    box-shadow: var(--shadow-md), 0 0 0 1px var(--accent-border);
  }
  .recommended-badge {
    position: absolute;
    top: -0.65rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--accent);
    color: #fff;
    padding: 0.3rem 1.1rem;
    border-radius: var(--radius-pill);
  }
  .package-name { font-size: 1rem; font-weight: 500; margin-bottom: 0.25rem; }
  .package-tagline { font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.55; }
  .package-price {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
  }
  .package-price span { font-size: 0.8rem; font-weight: 400; color: var(--muted); font-family: var(--font-sans); }
  .package-features { flex: 1; }
  .package-features li {
    font-size: 0.85rem;
    color: var(--muted);
    padding: 0.3rem 0;
    padding-left: 1.15rem;
    position: relative;
    line-height: 1.5;
    font-weight: 400;
  }
  .package-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
  }
  .package-cta { margin-top: var(--sp-6); width: 100%; text-align: center; }

  /* ── Fit Section — organic grid with visual hierarchy ── */
  .fit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: var(--sp-10);
  }
  .fit-pill {
    font-size: 0.925rem;
    color: var(--muted);
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
    font-weight: 400;
    position: relative;
  }
  /* First pill is "hero" — accent border, bolder, spans 2 cols */
  .fit-pill:first-child {
    grid-column: 1 / -1;
    font-weight: 500;
    color: var(--text);
    border-color: var(--accent-border);
    background: var(--accent-dim);
  }
  /* Last pill is CTA-style */
  .fit-pill:last-child {
    font-weight: 500;
    color: var(--accent);
    border-color: var(--accent-border);
  }
  .fit-pill:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }

  /* ── FAQ ── */
  .faq-list { margin-top: var(--sp-10); max-width: 48rem; }
  .faq-item { border-bottom: 1px solid var(--border); }
  .faq-item:first-child { border-top: 1px solid var(--border); }
  .faq-question {
    font-family: var(--font-serif);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    padding: 0;
    margin: 0;
    line-height: inherit;
    font-size: 1.0625rem;
    font-weight: 400;
    color: var(--text);
    padding: 1.35rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.4;
    transition: color 0.2s;
  }
  .faq-question:hover { color: var(--accent); }
  .faq-toggle {
    color: var(--muted-dim);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: var(--sp-6);
    display: flex;
    align-items: center;
  }
  .faq-toggle svg { width: 16px; height: 16px; }
  .faq-item.open .faq-toggle { transform: rotate(180deg); }
  .faq-answer {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.75;
    padding-bottom: 0;
    font-weight: 400;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding-bottom 0.35s ease;
  }
  .faq-item.open .faq-answer {
    max-height: 12rem;
    opacity: 1;
    padding-bottom: 1.35rem;
  }

  /* ── Closing CTA ── */
  .closing-cta {
    text-align: center;
    padding: clamp(3.5rem, 6vw, 5rem) 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
  }
  .cta-accent-img { margin-bottom: var(--sp-6); opacity: 0.5; }
  .closing-cta h2 {
    max-width: 18ch;
    margin: 0 auto var(--sp-6);
  }
  .closing-cta .body-text {
    margin: 0 auto 2.25rem;
    text-align: center;
  }
  .closing-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  /* ── Footer ── */
  .site-footer {
    padding: var(--sp-14) 0 var(--sp-8);
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--sp-10);              /* v3: was 3rem */
    margin-bottom: var(--sp-10);
  }
  .footer-brand .logo { margin-bottom: 0.85rem; font-size: 1.2rem; }
  .footer-brand p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; max-width: 22rem; }
  .footer-col h4 {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-dim);
    margin-bottom: 1.1rem;
  }
  .footer-col a {
    display: block;
    font-size: 0.875rem;
    color: var(--muted);
    padding: 0.3rem 0;
    transition: color 0.2s;
    font-weight: 400;
  }
  .footer-col a:hover { color: var(--text); }
  .footer-bottom {
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--muted-dim);
    font-weight: 400;
  }

  /* ── Responsive ── */
  @media (max-width: 1024px) {
    .build-phases { grid-template-columns: repeat(2, 1fr); }
    .packages-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 782px) {
    .hero-grid { grid-template-columns: 1fr; min-height: auto; gap: var(--sp-10); }
    .hero-content h1 { max-width: none; }
    .features-grid { grid-template-columns: 1fr; }
    .comparison-grid { grid-template-columns: 1fr; }
    .agent-list { grid-template-columns: 1fr; }
    .agent-item { border-right: none !important; }
    .agent-item:last-child { flex-direction: column; align-items: flex-start; }
    .fit-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: var(--sp-10); }
    .nav-links { display: none; }
    .mobile-toggle { display: flex; }
    .packages-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 480px) {
    .build-phases { grid-template-columns: 1fr; }
  }

  /* ── Inner Pages ── */

  /* Page sections — editorial rhythm matching homepage */
  .page-section {
    padding: clamp(3rem, 5vw, 4.5rem) 0;
  }
  .page-section-alt {
    padding: clamp(3rem, 5vw, 4.5rem) 0;
    background: var(--bg-alt);
  }

  /* Accent line — subtle editorial punctuation */
  .page-accent-line {
    width: 48px;
    height: 2px;
    background: var(--accent);
    opacity: 0.35;
    margin-bottom: 1.75rem;
  }

  /* Page hero */
  .page-hero {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
    text-align: center;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
  }
  /* Signature accent line for inner pages */
  .page-hero .page-accent-line {
    margin: 0 auto var(--sp-6);
  }
  .page-hero .eyebrow {
    margin-bottom: 1rem;
  }
  .page-hero h1 {
    max-width: 22ch;
    margin: 0 auto 1.25rem;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
  }
  .page-hero .lead {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.75;
    max-width: 52rem;
    margin: 0 auto;
  }

  /* Text containment — match homepage readability */
  .page-content h2,
  .page-section h2,
  .page-section-alt h2 {
    max-width: 32ch;
    margin-bottom: 1rem;
    margin-top: var(--sp-10);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
  }
  .page-content h2:first-child,
  .page-section h2:first-child,
  .page-section-alt h2:first-child {
    margin-top: 0;
  }
  .page-content h3,
  .page-section h3,
  .page-section-alt h3 {
    margin-bottom: 0.5rem;
    margin-top: var(--sp-6);
    max-width: 52rem;
  }
  .page-content p,
  .page-section p,
  .page-section-alt p {
    max-width: 52rem;
    margin-bottom: 1.25rem;
  }
  .page-content ul, .page-content ol,
  .page-section ul, .page-section-alt ul,
  .page-section ol, .page-section-alt ol {
    max-width: 52rem;
    margin: var(--sp-4) 0 var(--sp-6) var(--sp-5);
    list-style: disc;
  }
  .page-content li,
  .page-section li,
  .page-section-alt li {
    padding: 0.35rem 0;
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.7;
  }

  /* Backward compat: page-content padding */
  .page-content {
    padding: clamp(3rem, 5vw, 4rem) 0;
  }

  /* Service feature grid */
  .service-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
    margin: var(--sp-8) 0;
  }
  /* First feature spans full width — visual hierarchy breaker */
  .service-feature-item:first-child {
    grid-column: 1 / -1;
    padding: 2.25rem;
  }
  .service-feature-item {
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s, transform 0.2s;
  }
  .service-feature-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }
  .service-feature-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    margin-top: 0;
  }
  .service-feature-item p {
    font-size: 0.925rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 0;
  }
  .service-feature-item ul {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0 0;
  }
  .service-feature-item ul li {
    padding: 0.3rem 0;
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.6;
  }

  /* Process steps */
  .process-steps {
    margin: var(--sp-8) 0;
  }
  .process-step {
    display: flex;
    gap: var(--sp-6);
    padding: var(--sp-6) 0;
    border-bottom: 1px solid var(--border);
  }
  .process-step:last-child { border-bottom: none; }
  .process-step-number {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--accent);
    opacity: 0.35;
    line-height: 1;
    min-width: 2.75rem;
    flex-shrink: 0;
  }
  .process-step h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    margin-top: 0;
  }
  .process-step p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 0;
  }

  /* Page CTA banner */
  .page-cta {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    text-align: center;
  }
  .page-cta h2 {
    max-width: 20ch;
    margin: 0 auto 1rem;
  }
  .page-cta p {
    max-width: 40rem;
    margin: 0 auto var(--sp-8);
    text-align: center;
    color: var(--muted);
  }

  /* Contact form */
  .contact-form {
    max-width: 560px;
    margin: 0 auto;
  }
  .contact-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
  }
  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 1.25rem;
    transition: border-color 0.2s;
  }
  .contact-form input:focus,
  .contact-form textarea:focus,
  .contact-form select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
  }
  .contact-form textarea {
    min-height: 140px;
    resize: vertical;
  }
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  /* Form error states */
  .contact-form input.error,
  .contact-form textarea.error,
  .contact-form select.error {
    border-color: var(--danger);
    background: var(--danger-dim);
  }
  .contact-form .error-message {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: -0.75rem;
    margin-bottom: 1rem;
  }
  /* Form success state */
  .contact-form .success-message {
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    font-size: 0.95rem;
    color: var(--accent);
    text-align: center;
    margin-bottom: 1.5rem;
  }

  /* ── Per-page signature details ── */

  /* Systemet (page-id-7): editorial numbered sections */
  .page-id-7 .process-steps {
    counter-reset: process;
  }
  .page-id-7 .process-step-number {
    opacity: 1;
    font-size: 1.875rem;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 2px;
  }
  .page-id-7 .process-step {
    gap: 1.25rem;
    padding: 1.75rem 0;
  }

  /* Google Ads (page-id-9): metric-style step numbers */
  .page-id-9 .process-step-number {
    opacity: 1;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--bg-alt);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
  }


  /* Review Ops (page-id-15): star-rating accent on steps */
  .page-id-15 .process-step-number {
    opacity: 1;
    font-size: 1.25rem;
  }

  /* WordPress SEO (page-id-16): code-like monospace step numbers */
  .page-id-16 .process-step-number {
    opacity: 1;
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    font-size: 0.8rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 4px;
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 1px;
    letter-spacing: -0.02em;
  }

  /* Responsive inner pages */
  @media (max-width: 782px) {
    .service-features { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .process-step { gap: 1rem; }
    .blog-post-card-inner { padding: var(--sp-6); }
    .blog-post-card:hover { background: transparent; }
    .single-post-inner { padding: 0; }
    .single-post-back { margin-bottom: var(--sp-6); }
  }

  /* ── Blog Listing ── */
  .blog-hero {
    padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 5vw, 4rem);
    text-align: center;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
  }
  .blog-hero .eyebrow { margin-bottom: 1rem; }
  .blog-hero h1 {
    max-width: 18ch;
    margin: 0 auto 1.25rem;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
  }
  .blog-hero .body-text {
    max-width: 42rem;
    margin: 0 auto;
  }
  .blog-listing {
    padding: clamp(2.5rem, 4vw, 4rem) 0 clamp(4rem, 6vw, 6rem);
  }
  .blog-post-card {
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
  }
  .blog-post-card:last-child { border-bottom: none; }
  .blog-post-card:hover {
    background: var(--bg-alt);
  }
  .blog-post-card-inner {
    padding: 2.25rem 0;
    max-width: 52rem;
  }
  .blog-post-date {
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 500;
  }
  .blog-post-title {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 0.75rem;
  }
  .blog-post-title a,
  .blog-post-title .wp-block-post-title {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
  }
  .blog-post-title a:hover,
  .blog-post-title .wp-block-post-title:hover {
    color: var(--accent);
  }
  .blog-post-excerpt {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    max-width: 48rem;
  }
  .blog-post-excerpt p {
    margin: 0;
    max-width: 48rem;
  }
  .blog-post-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: gap 0.2s, color 0.2s;
  }
  .blog-post-link:hover {
    color: var(--accent-hover);
    gap: 10px;
  }
  .blog-post-link svg {
    transition: transform 0.2s;
  }
  .blog-post-link:hover svg {
    transform: translateX(2px);
  }
  .blog-empty {
    text-align: center;
    padding: 4rem 0;
    color: var(--muted);
    font-size: 0.95rem;
  }

  /* ── Single Post ── */
  div.single-post {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(4rem, 6vw, 5rem);
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
  }
  .single-post-inner {
    max-width: 680px;
    margin: 0 auto;
  }
  .single-post-back {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.02em;
    margin-bottom: var(--sp-10);
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s, border-color 0.2s;
  }
  .single-post-back:hover {
    color: var(--text);
    border-color: var(--muted);
  }
  .single-post-meta {
    margin-bottom: var(--sp-6);
    font-size: 0.85rem;
    color: var(--muted);
  }
  .single-post-sep {
    opacity: 0.3;
  }
  .single-post-title {
    max-width: 20ch;
    margin-bottom: var(--sp-8);
  }
  .single-post-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--body);
    margin-bottom: 3rem;
  }
  .single-post-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.025em;
    color: var(--text);
    margin: var(--sp-10) 0 var(--sp-4);
  }
  .single-post-content h3 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: var(--sp-8) 0 var(--sp-3);
  }
  .single-post-content p {
    margin-bottom: var(--sp-6);
  }
  .single-post-content ul,
  .single-post-content ol {
    margin: var(--sp-4) 0 var(--sp-6) var(--sp-5);
    list-style: disc;
    color: var(--muted);
  }
  .single-post-content li {
    padding: 0.35rem 0;
    line-height: 1.7;
  }
  .single-post-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1.25rem;
    margin: var(--sp-6) 0;
    color: var(--muted);
    font-style: italic;
  }
  .single-post-content img {
    border-radius: var(--radius);
    margin: var(--sp-6) 0;
  }
  .single-post-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  .single-post-content a:hover {
    color: var(--accent-hover);
  }
  .single-post-cta {
    margin: 3rem -24px 0;
    padding: clamp(2.5rem, 5vw, 3.5rem) 24px;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    text-align: center;
  }
  .single-post-cta h2 {
    max-width: 20ch;
    margin: 0 auto 1rem;
  }
  .single-post-cta p {
    max-width: 40rem;
    margin: 0 auto var(--sp-8);
    text-align: center;
    color: var(--muted);
  }

  /* ── Accessibility ── */

  /* Skip to content link */
  .skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 200;
    text-decoration: none;
    transition: top 0.2s;
  }
  .skip-to-content:focus {
    top: 1rem;
  }

  /* Focus-visible styles for all interactive elements */
  .btn:focus-visible,
  .btn-ghost:focus-visible,
  .btn-primary:focus-visible,
  .faq-question:focus-visible,
  .nav-links a:focus-visible,
  .mobile-toggle:focus-visible,
  .mobile-nav a:focus-visible,
  .blog-post-link:focus-visible,
  .single-post-back:focus-visible,
  .fit-pill:focus-visible,
  .contact-form input:focus-visible,
  .contact-form textarea:focus-visible,
  .contact-form select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      transition-duration: 0.01ms !important;
      animation-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
  }

  /* ── Proof Outcome Strip (compact trust element) ── */
  .proof-outcome-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: var(--sp-6);
  }
  .proof-outcome-item {
    padding: var(--sp-6) var(--sp-5);
    text-align: center;
    border-right: 1px solid var(--border);
  }
  .proof-outcome-item:last-child { border-right: none; }
  .proof-outcome-value {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 0.2rem;
    letter-spacing: -0.02em;
  }
  .proof-outcome-label {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.4;
  }
  .proof-outcome-footer {
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted-dim);
    font-style: italic;
  }
  @media (max-width: 480px) {
    .proof-outcome-grid { grid-template-columns: 1fr; }
    .proof-outcome-item { border-right: none; border-bottom: 1px solid var(--border); }
    .proof-outcome-item:last-child { border-bottom: none; }
  }

  /* ── Pricing Context (bolder anchoring) ── */
  .pricing-context {
    font-size: 0.95rem;
    color: var(--muted);
    max-width: 48rem;
    line-height: 1.65;
    margin-bottom: var(--sp-8);
  }

  /* ── Mid-Page CTA Strip ── */
  .mid-page-cta {
    padding: var(--sp-6) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
  }
  .mid-page-cta-text {
    text-align: center;
    font-size: 0.925rem;
    color: var(--muted);
  }
  .mid-page-cta-text a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
    transition: color 0.2s;
  }
  .mid-page-cta-text a:hover {
    color: var(--accent-hover);
  }

  /* ── Package Setup Label ── */
  .package-setup {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: -0.75rem;
    margin-bottom: 1.25rem;
  }

  /* Full-width package CTA buttons (replaces inline styles) */
  .package-cta .btn {
    width: 100%;
    justify-content: center;
  }