  html { scroll-padding-top: 110px; } /* anchors land below the sticky header (21 Oct 2026) */

  :root {
    --bg: #F2F0E5;
    --surface: #FFFFFF;
    --surface-2: #E7E2CE;
    --ink: #1A2116;
    --muted: #625A44;
    --accent: #8C6A28;
    --accent-ink: #1A2116;
    --accent-2: #3D5E44;
    --line: #D8D1B7;
    --shadow: 0 1px 2px rgba(26,33,22,0.06), 0 10px 28px rgba(26,33,22,0.06);
    --red: #B3261E;
    color-scheme: light dark;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #10140A;
      --surface: #171C0F;
      --surface-2: #212812;
      --ink: #ECE7D3;
      --muted: #A6A085;
      --accent: #D3AD52;
      --accent-ink: #10140A;
      --accent-2: #7CAC80;
      --line: #2B3119;
      --shadow: 0 1px 2px rgba(0,0,0,0.35), 0 14px 32px rgba(0,0,0,0.4);
      --red: #E5786B;
    }
  }
  :root[data-theme="dark"] {
    --bg: #10140A;
    --surface: #171C0F;
    --surface-2: #212812;
    --ink: #ECE7D3;
    --muted: #A6A085;
    --accent: #D3AD52;
    --accent-ink: #10140A;
    --accent-2: #7CAC80;
    --line: #2B3119;
    --shadow: 0 1px 2px rgba(0,0,0,0.35), 0 14px 32px rgba(0,0,0,0.4);
    --red: #E5786B;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Instrument Sans', Arial, sans-serif;
    font-size: 19px;
    line-height: 1.62;
    padding-inline: max(20px, env(safe-area-inset-left, 0px));
    -webkit-font-smoothing: antialiased;
  }
  img { max-width: 100%; }
  [hidden] { display: none !important; }
  a { color: inherit; }
  h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 700; letter-spacing: -0.014em; }
  .wrap { max-width: 1120px; margin: 0 auto; }
  .serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; }
  .serif-i { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; }
  .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 14px 0;
  }
  .muted { color: var(--muted); }

  /* ---------- Header ---------- */
  header.site {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 40;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 20px;
  }
  .logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
  .logo img { flex: none; }
  .logo .logo-dark { display: none; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .logo .logo-light { display: none; }
    :root:not([data-theme="light"]) .logo .logo-dark { display: block; }
  }
  :root[data-theme="dark"] .logo .logo-light { display: none; }
  :root[data-theme="dark"] .logo .logo-dark { display: block; }
  .logo-word {
    font-family: 'Spectral', Georgia, serif;
    font-weight: 800;
    font-size: 1.42rem;
    color: var(--ink);
  }
  nav.links { display: flex; align-items: center; gap: 30px; }
  @media (max-width: 1080px) { nav.links { gap: 18px; } nav.links a.nav-link { white-space: nowrap; } } /* room for "What we do" in the menu (8 Nov 2026) */
  nav.links a.nav-link {
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--ink);
    opacity: 0.78;
  }
  nav.links a.nav-link:hover { opacity: 1; }
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 26px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
  }
  .btn-primary { background: var(--accent); color: var(--accent-ink); }
  .btn-primary:hover { filter: brightness(1.06); }
  .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
  .btn-ghost:hover { border-color: var(--accent); }
  .menu-toggle {
    display: none;
    background: none; border: 1px solid var(--line); border-radius: 8px;
    width: 42px; height: 42px; align-items: center; justify-content: center;
    color: var(--ink); cursor: pointer;
  }
  a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

  /* ---------- Section shell ---------- */
  section { padding-block: 80px; border-top: 1px solid var(--line); }
  section.flush { border-top: none; }
  .section-head { max-width: 60ch; margin: 0 auto 48px; text-align: center; }
  .section-head h2 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: clamp(2rem, 3.8vw, 3rem); }
  .section-head p { color: var(--muted); margin-top: 16px; font-size: 1.15rem; }

  /* ---------- Final CTA / form ---------- */
  .cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
  .cta-copy h2 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: clamp(2.1rem, 3.8vw, 3rem); }
  .cta-copy p { color: var(--muted); margin-top: 16px; max-width: 42ch; font-size: 1.1rem; }
  form.lead-form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow);
  }
  .lead-form label { font-size: 0.9rem; font-weight: 700; display: block; margin-bottom: 7px; }
  .lead-form input, .lead-form textarea, .lead-form select {
    width: 100%;
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1.02rem;
    padding: 13px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
  }
  .lead-form textarea { resize: vertical; min-height: 84px; }
  .lead-form select:invalid { color: var(--muted); }
  .lead-form input:focus, .lead-form textarea:focus, .lead-form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
  .lead-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .lead-form .btn-primary { margin-top: 4px; justify-content: center; }
  .form-note { font-size: 0.88rem; color: var(--muted); text-align: center; }
  .success-msg { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
  .success-msg .ok-badge { background: var(--accent-2); color: var(--bg); font-weight: 700; font-size: 0.84rem; padding: 6px 13px; border-radius: 999px; }

  /* ---------- Footer ---------- */
  footer.site { border-top: 1px solid var(--line); padding-block: 44px; margin-top: 20px; }
  .footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
  .footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
  .footer-links a { text-decoration: none; font-size: 0.92rem; color: var(--muted); }
  .footer-links a:hover { color: var(--ink); }
  .footer-contact { margin-top: 20px; font-size: 0.94rem; }
  .footer-contact a { color: var(--accent); font-weight: 600; text-decoration: none; }
  .footer-contact a:hover { text-decoration: underline; }
  .footer-legal { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
  .footer-legal a { font-size: 0.88rem; color: var(--muted); text-decoration: none; }
  .footer-legal a:hover { color: var(--ink); }
  .footer-fine { font-size: 0.85rem; color: var(--muted); margin-top: 14px; max-width: 62ch; }

  /* ---------- Landing pages (AI Readiness Score) ---------- */
  .lp-hero { padding-block: 72px 64px; text-align: center; }
  .lp-hero .wrap { max-width: 860px; }
  .lp-hero h1 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: clamp(2.6rem, 6.4vw, 4.6rem); line-height: 1.05; }
  .lp-hero h1 em { color: var(--red); }
  .lp-hero .lede { font-size: 1.24rem; color: var(--muted); max-width: 48ch; margin: 22px auto 0; }
  .lp-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
  .lp-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 30px auto 0; padding: 0; list-style: none; font-size: 0.92rem; color: var(--muted); }
  .lp-facts li::before { content: "✓ "; color: var(--accent-2); font-weight: 700; }
  .clean-line { display: block; width: min(560px, 100%); height: auto; margin: 0 auto 30px; }
  .clean-line .tangle { fill: none; stroke: var(--muted); stroke-width: 1.4; opacity: 0.55; }
  .clean-line .line { fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
  .clean-line .pulse { fill: var(--accent); opacity: 0; }
  @media (prefers-reduced-motion: no-preference) {
    .clean-line .tangle { animation: lp-fade 1.6s ease 0.6s forwards; }
    .clean-line .line { animation: lp-draw 1.4s cubic-bezier(.6,0,.2,1) 0.9s forwards; }
    .clean-line .pulse { animation: lp-pulse 2.2s ease-in-out 2.4s infinite; }
  }
  @media (prefers-reduced-motion: reduce) {
    .clean-line .tangle { opacity: 0; }
    .clean-line .line { stroke-dashoffset: 0; }
  }
  @keyframes lp-fade { to { opacity: 0; } }
  @keyframes lp-draw { to { stroke-dashoffset: 0; } }
  @keyframes lp-pulse { 0% { opacity: 0; transform: translateX(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(520px); } }

  .pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
  .pain-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px; }
  .pain-card h3 { font-size: 1.04rem; margin-bottom: 8px; }
  .pain-card p { font-size: 0.92rem; color: var(--muted); margin: 0; }

  #quiz, #score, #what-you-get, #pricing { scroll-margin-top: 150px; }
  @media (max-width: 900px) { #quiz, #score, #what-you-get, #pricing { scroll-margin-top: 110px; } }
  .quiz-card { max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 34px; }
  .quiz-progress { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.86rem; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
  .quiz-bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-bottom: 26px; }
  .quiz-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.3s ease; }
  .q-step { border: 0; margin: 0; padding: 0; min-width: 0; }
  .q-step legend { font-family: 'Instrument Serif', Georgia, serif; font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.15; padding: 0; margin-bottom: 8px; text-wrap: balance; }
  .q-help { color: var(--muted); font-size: 0.96rem; margin: 0 0 18px; }
  .q-options { display: grid; gap: 10px; }
  .q-opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--bg); font-size: 1rem; line-height: 1.35; }
  .q-opt:hover { border-color: var(--accent); }
  .q-opt input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; margin: 0; }
  .q-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
  .q-other { margin-top: 10px; }
  .quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
  .quiz-nav .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
  .q-error { color: var(--red); font-size: 0.92rem; font-weight: 600; margin: 12px 0 0; min-height: 1.2em; }
  .lead-form.flat { border: 0; box-shadow: none; padding: 0; background: transparent; }
  .check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; font-weight: 500 !important; }
  .check input { width: 18px !important; height: 18px; flex: none; margin-top: 3px; accent-color: var(--accent); }
  .check a { color: var(--accent); }

  .result { text-align: center; }
  .result .ok-badge { display: inline-block; background: var(--accent-2); color: var(--bg); font-weight: 700; font-size: 0.84rem; padding: 6px 13px; border-radius: 999px; }
  .score-ring { width: 180px; height: 180px; margin: 22px auto 6px; display: block; }
  .score-ring .track { fill: none; stroke: var(--surface-2); stroke-width: 12; }
  .score-ring .val { fill: none; stroke: var(--accent); stroke-width: 12; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1.2s ease; }
  .score-ring text { fill: var(--ink); font-family: 'Instrument Serif', Georgia, serif; }
  .result h3 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 2rem; margin-top: 4px; }
  .result .band-line { color: var(--muted); max-width: 46ch; margin: 10px auto 0; }
  .sub-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 0; text-align: left; }
  .sub-score { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
  .sub-score b { display: flex; justify-content: space-between; font-size: 0.96rem; }
  .sub-score .meter { height: 6px; background: var(--surface-2); border-radius: 99px; margin: 10px 0 8px; overflow: hidden; }
  .sub-score .meter span { display: block; height: 100%; background: var(--accent-2); }
  .sub-score p { margin: 0; font-size: 0.86rem; color: var(--muted); }
  .result .next { margin-top: 24px; padding: 18px 20px; border-radius: 14px; background: var(--surface-2); text-align: left; font-size: 0.98rem; }

  .get-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
  .get-item { border-top: 3px solid var(--accent); padding-top: 16px; }
  .get-item h3 { font-size: 1.04rem; margin-bottom: 6px; }
  .get-item p { margin: 0; font-size: 0.94rem; color: var(--muted); }
  .offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .offer { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px; }
  .offer.main { border-color: var(--accent); box-shadow: var(--shadow); }
  .offer .pc-tag { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
  .offer .pc-price { font-family: 'Instrument Serif', Georgia, serif; font-size: 2rem; display: block; margin-bottom: 10px; }
  .offer p { margin: 0; font-size: 0.96rem; color: var(--muted); }
  .guarantee { margin: 22px auto 0; max-width: 760px; text-align: center; font-size: 1.08rem; }
  .guarantee b { color: var(--accent-2); }
  .faq { max-width: 760px; margin: 0 auto; }
  .faq details { border-bottom: 1px solid var(--line); padding-block: 16px; }
  .faq summary { cursor: pointer; font-weight: 700; font-size: 1.04rem; }
  .faq details p { color: var(--muted); margin: 10px 0 0; font-size: 0.98rem; }
  .fine-print { font-size: 0.84rem; color: var(--muted); text-align: center; margin-top: 18px; }

  /* ---------- Responsive ---------- */
  .menu-cta { display: none; }
  @media (max-width: 900px) {
    nav.links { display: none; }
    .menu-cta { display: inline-flex; padding: 11px 18px; font-size: 0.92rem; }
    .logo img { height: 64px !important; }
    .menu-toggle { display: flex; }
    .offer-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 540px) {
    body { font-size: 17px; }
    .quiz-card { padding: 24px 18px; }
    .sub-scores { grid-template-columns: 1fr; }
    .lead-form .field-row { grid-template-columns: 1fr; }
  }
