@layer reset, tokens, base, layout, components, pages, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, ul, ol, blockquote { margin: 0; }
  ul, ol { padding: 0; }
  img { display: block; max-width: 100%; }
  button, input { font: inherit; }
  button, a { -webkit-tap-highlight-color: transparent; }
}

@layer tokens {
  :root {
    --paper: #f7f4eb;
    --paper-strong: #fffdf7;
    --paper-soft: #f0ede3;
    --ink: #153b35;
    --ink-strong: #082a25;
    --muted: #5c6d68;
    --line: rgba(21, 59, 53, 0.14);
    --line-strong: rgba(21, 59, 53, 0.28);
    --green: #0b6b5d;
    --green-soft: #cbe9dc;
    --mint: #c9efdf;
    --peach: #f7d3bc;
    --lilac: #dad2f4;
    --sky: #cfe7f5;
    --butter: #f5e5a9;
    --coral: #f2c4b9;
    --shadow: 0 24px 70px rgba(25, 60, 52, 0.12);
    --shadow-small: 0 10px 34px rgba(25, 60, 52, 0.09);
    --radius-sm: 14px;
    --radius: 24px;
    --radius-lg: 40px;
    --radius-xl: 56px;
    --shell: min(1180px, calc(100vw - 48px));
    --display: "Avenir Next", Avenir, "PingFang TC", "Noto Sans TC", system-ui, sans-serif;
    --body: Inter, "SF Pro Text", "PingFang TC", "Noto Sans TC", system-ui, sans-serif;
  }

  :root[data-theme="dark"] {
    --paper: #0d211e;
    --paper-strong: #122a26;
    --paper-soft: #17312c;
    --ink: #e8f4ee;
    --ink-strong: #f7fff9;
    --muted: #a9bbb5;
    --line: rgba(232, 244, 238, 0.14);
    --line-strong: rgba(232, 244, 238, 0.28);
    --green: #84d8c6;
    --green-soft: #1e5148;
    --mint: #275e50;
    --peach: #694838;
    --lilac: #4b4569;
    --sky: #31576a;
    --butter: #625729;
    --coral: #67423a;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    --shadow-small: 0 10px 34px rgba(0, 0, 0, 0.22);
  }
}

@layer base {
  body {
    min-width: 320px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
  }

  body::before {
    position: fixed;
    z-index: -2;
    inset: 0;
    background-image: radial-gradient(circle at 10% 10%, rgba(255,255,255,.34), transparent 28%), radial-gradient(circle at 80% 5%, rgba(203,233,220,.28), transparent 34%);
    content: "";
    pointer-events: none;
  }

  a { color: inherit; text-decoration: none; }
  button { color: inherit; }
  h1, h2, h3 { color: var(--ink-strong); font-family: var(--display); font-weight: 650; letter-spacing: -0.035em; line-height: 1.1; }
  h1 { font-size: clamp(3rem, 6.2vw, 6.3rem); }
  h2 { font-size: clamp(2.2rem, 4.5vw, 4.2rem); }
  h3 { font-size: clamp(1.28rem, 2vw, 1.75rem); }
  p { color: var(--muted); }
  ::selection { background: var(--butter); color: #153b35; }
  :focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 75%, white); outline-offset: 4px; }
}

@layer layout {
  .shell { width: var(--shell); margin-inline: auto; }
  .narrow { max-width: 860px; }
  .section { padding-block: clamp(76px, 10vw, 144px); }
  .compact-section { padding-top: 72px; padding-bottom: 42px; }
  .section-heading { max-width: 770px; margin-bottom: 54px; }
  .section-heading.center { margin-inline: auto; text-align: center; }
  .section-heading > p:last-child { max-width: 680px; margin-top: 22px; font-size: 1.1rem; }
  .section-heading h2 { text-wrap: balance; }
  .hero-grid, .feature-hero-grid, .trust-grid, .demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(44px, 7vw, 100px); }
}

@layer components {
  .skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 16px; background: var(--ink-strong); color: var(--paper-strong); border-radius: 10px; transform: translateY(-160%); }
  .skip-link:focus { transform: translateY(0); }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .eyebrow { margin-bottom: 14px; color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; }

  .site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid transparent; transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease; }
  .site-header.scrolled { border-color: var(--line); background: color-mix(in srgb, var(--paper) 88%, transparent); box-shadow: 0 8px 30px rgba(20,50,44,.06); backdrop-filter: blur(18px); }
  .header-inner { position: relative; display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 28px; }
  .brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink-strong); font-family: var(--display); font-size: 1.18rem; font-weight: 700; letter-spacing: -.02em; }
  .brand img { border-radius: 11px; box-shadow: 0 5px 16px rgba(21,59,53,.14); }
  .desktop-nav, .header-actions { display: flex; align-items: center; gap: 8px; }
  .desktop-nav { margin-left: auto; }
  .nav-link, .nav-trigger { display: inline-flex; min-height: 44px; align-items: center; gap: 5px; padding: 8px 14px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: .94rem; font-weight: 650; }
  .nav-link:hover, .nav-trigger:hover { color: var(--ink-strong); }
  .nav-group { position: relative; }
  .mega-menu { position: absolute; top: calc(100% + 14px); left: 50%; display: grid; width: min(720px, calc(100vw - 48px)); grid-template-columns: 220px 1fr; gap: 28px; padding: 28px; border: 1px solid var(--line); border-radius: 26px; background: var(--paper-strong); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-45%, -8px); transition: opacity .18s ease, transform .18s ease; }
  .mega-menu.open { opacity: 1; pointer-events: auto; transform: translate(-45%, 0); }
  .mega-intro { padding: 18px; border-radius: 18px; background: var(--paper-soft); }
  .mega-intro p:not(.eyebrow) { margin-bottom: 22px; color: var(--ink); font-size: 1.06rem; line-height: 1.45; }
  .mega-intro a, .text-link { color: var(--green); font-weight: 750; }
  .mega-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .mega-links a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 13px; }
  .mega-links a:hover { background: var(--paper-soft); }
  .mega-links strong, .mega-links small { display: block; line-height: 1.25; }
  .mega-links strong { font-size: .92rem; }
  .mega-links small { margin-top: 4px; color: var(--muted); font-size: .72rem; }
  .feature-dot { display: inline-block; width: 14px; height: 14px; flex: 0 0 auto; border: 1px solid rgba(8,42,37,.08); border-radius: 50%; }
  .feature-dot.mint { background: var(--mint); } .feature-dot.peach { background: var(--peach); } .feature-dot.lilac { background: var(--lilac); } .feature-dot.sky { background: var(--sky); } .feature-dot.butter { background: var(--butter); } .feature-dot.coral { background: var(--coral); }
  .header-actions { gap: 10px; }
  .icon-button, .menu-button { display: inline-grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper-strong); cursor: pointer; }
  .menu-button { display: none; align-content: center; gap: 4px; }
  .menu-button > span:not(.sr-only) { width: 17px; height: 1.5px; background: currentColor; }
  .mobile-menu { display: none; }

  .button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 9px; padding: 12px 21px; border: 1px solid var(--ink-strong); border-radius: 999px; background: var(--ink-strong); color: var(--paper-strong); font-size: .93rem; font-weight: 750; line-height: 1; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
  .button:hover { box-shadow: 0 9px 24px rgba(8,42,37,.16); transform: translateY(-2px); }
  .button-secondary { border-color: var(--line-strong); background: transparent; color: var(--ink-strong); }
  .button-small { min-height: 42px; padding: 10px 17px; font-size: .86rem; }
  .hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
  .text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; }

  .breadcrumbs { display: flex; min-height: 40px; align-items: center; gap: 8px; padding-top: 14px; color: var(--muted); font-size: .78rem; }
  .breadcrumbs a:hover { color: var(--green); }

  .site-footer { padding-top: 84px; border-top: 1px solid var(--line); background: var(--paper-soft); }
  .footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 64px; padding-bottom: 72px; }
  .footer-brand > p { max-width: 360px; margin-top: 20px; }
  .footer-brand .footer-note { font-size: .78rem; }
  .footer-grid h2 { margin-bottom: 16px; font-family: var(--body); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
  .footer-grid > div:not(.footer-brand) a { display: block; padding-block: 6px; color: var(--muted); font-size: .9rem; }
  .footer-grid a:hover { color: var(--green); }
  .footer-bottom { display: flex; justify-content: space-between; padding-block: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }

  .phone { position: relative; width: min(310px, 76%); margin-inline: auto; padding: 9px; overflow: hidden; border: 2px solid rgba(255,255,255,.6); border-radius: 43px; background: #122923; box-shadow: 0 28px 60px rgba(8,42,37,.22); }
  .phone::after { position: absolute; inset: 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 34px; content: ""; pointer-events: none; }
  .phone img { width: 100%; border-radius: 34px; }
  .phone-speaker { position: absolute; z-index: 2; top: 17px; left: 50%; width: 78px; height: 22px; border-radius: 999px; background: #0c1714; transform: translateX(-50%); }
  .phone-large { width: min(360px, 76%); }

  .cta-card { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: clamp(34px, 6vw, 72px); border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--green-soft); box-shadow: var(--shadow-small); }
  .cta-card > div:first-child { max-width: 720px; }
  .cta-card h2 { max-width: 700px; font-size: clamp(2.1rem, 4vw, 3.8rem); }
  .cta-card p:not(.eyebrow) { max-width: 650px; margin-top: 18px; color: color-mix(in srgb, var(--ink) 74%, transparent); }

  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
  .reveal.visible { opacity: 1; transform: none; }
}

@layer pages {
  .page-hero { min-height: calc(100svh - 78px); display: grid; align-items: center; padding-block: 70px 100px; overflow: hidden; }
  .hero-copy { position: relative; z-index: 2; }
  .hero-copy h1 { max-width: 790px; text-wrap: balance; }
  .hero-intro { max-width: 650px; margin-top: 26px; font-size: clamp(1.08rem, 1.8vw, 1.28rem); line-height: 1.72; }
  .hero-copy .hero-actions { margin-top: 34px; }
  .microcopy { margin-top: 17px; font-size: .76rem; }
  .hero-visual { position: relative; min-height: 620px; }
  .hero-visual::before { position: absolute; inset: 7% -10% 0 0; border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--mint), transparent 68%); filter: blur(8px); content: ""; opacity: .8; }
  .route-line { position: absolute; top: 52px; left: 27%; width: 270px; height: 510px; border-right: 3px dashed color-mix(in srgb, var(--green) 32%, transparent); border-radius: 50%; transform: rotate(17deg); }
  .route-card { position: absolute; z-index: 2; width: min(310px, 75%); padding: 24px; border: 1px solid rgba(255,255,255,.68); border-radius: 28px; box-shadow: var(--shadow); backdrop-filter: blur(12px); }
  .route-card span, .route-card strong, .route-card small { display: block; }
  .route-card span { margin-bottom: 7px; color: #0b6b5d; font-size: .74rem; font-weight: 800; letter-spacing: .12em; }
  .route-card strong { color: #0c332d; font-family: var(--display); font-size: 1.6rem; line-height: 1.12; }
  .route-card small { margin-top: 9px; color: #49615b; line-height: 1.5; }
  .route-card-one { top: 34px; left: 8%; background: color-mix(in srgb, #c9efdf 88%, white); transform: rotate(-5deg); }
  .route-card-two { top: 230px; right: 0; background: color-mix(in srgb, #f7d3bc 88%, white); transform: rotate(4deg); }
  .route-card-three { bottom: 25px; left: 5%; background: color-mix(in srgb, #dad2f4 88%, white); transform: rotate(-2deg); }
  .path-marker { position: absolute; z-index: 4; width: 17px; height: 17px; border: 5px solid var(--paper-strong); border-radius: 50%; background: var(--green); box-shadow: 0 3px 12px rgba(8,42,37,.25); }
  .marker-one { top: 122px; left: 38%; } .marker-two { top: 315px; right: 19%; } .marker-three { bottom: 90px; left: 34%; }

  .feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .feature-chip { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; min-height: 82px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--paper-strong) 80%, transparent); }
  .feature-chip:hover { border-color: var(--line-strong); box-shadow: var(--shadow-small); transform: translateY(-2px); }
  .feature-chip strong, .feature-chip small { display: block; }
  .feature-chip strong { font-size: .94rem; }
  .feature-chip small { margin-top: 3px; color: var(--muted); font-size: .73rem; }
  .feature-chip b { color: var(--green); font-weight: 500; }

  .showcase-section { padding-top: 110px; }
  .showcase-stack { display: grid; gap: 150px; }
  .showcase-row { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(50px, 9vw, 130px); }
  .showcase-row.reverse .showcase-copy { order: 2; }
  .showcase-row.reverse .phone-stage { order: 1; }
  .showcase-copy .number { display: block; margin-bottom: 26px; color: var(--line-strong); font-family: var(--display); font-size: 4rem; font-weight: 600; letter-spacing: -.06em; }
  .showcase-copy h3 { font-size: clamp(2rem, 4vw, 3.75rem); text-wrap: balance; }
  .showcase-copy > p:not(.eyebrow) { margin-top: 20px; font-size: 1.06rem; }
  .showcase-copy ul { display: grid; gap: 11px; margin-top: 24px; list-style: none; }
  .showcase-copy li { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: .92rem; }
  .showcase-copy li::before { width: 7px; height: 7px; border-radius: 50%; background: var(--green); content: ""; }
  .phone-stage { position: relative; display: grid; min-height: 670px; place-items: center; overflow: hidden; border-radius: var(--radius-xl); }
  .phone-stage::before, .phone-stage::after { position: absolute; border-radius: 50%; content: ""; }
  .phone-stage::before { width: 360px; height: 360px; top: -110px; right: -80px; border: 1px solid rgba(255,255,255,.55); }
  .phone-stage::after { width: 210px; height: 210px; bottom: -60px; left: -40px; background: rgba(255,255,255,.18); }
  .stage-mint { background: var(--mint); } .stage-peach { background: var(--peach); } .stage-lilac { background: var(--lilac); } .stage-sky { background: var(--sky); }

  .journey-section { background: var(--ink-strong); }
  .journey-section .eyebrow { color: #83d5c4; }
  .journey-section h2, .journey-section h3 { color: #f4fff9; }
  .journey-section p { color: #aac2ba; }
  .journey-list { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; }
  .journey-list li { min-height: 290px; padding: 30px; border-top: 1px solid rgba(255,255,255,.18); border-right: 1px solid rgba(255,255,255,.14); }
  .journey-list li:last-child { border-right: 0; }
  .journey-list li > span { display: block; margin-bottom: 74px; color: #83d5c4; font-family: var(--display); font-size: .86rem; }
  .journey-list h3 { margin-bottom: 16px; }

  .trust-section { background: var(--paper-soft); }
  .trust-grid { align-items: start; }
  .trust-cards { display: grid; gap: 12px; }
  .trust-cards article { position: relative; padding: 28px 30px 28px 76px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper-strong); }
  .trust-cards article > span { position: absolute; top: 28px; left: 28px; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 1.15rem; }
  .trust-cards h3 { margin-bottom: 7px; font-size: 1.18rem; }
  .trust-cards p { font-size: .91rem; }

  .quote-section { text-align: center; }
  .quote-section blockquote { max-width: 950px; margin-inline: auto; color: var(--ink-strong); font-family: var(--display); font-size: clamp(2rem, 4vw, 4.1rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.25; text-wrap: balance; }
  .quote-section blockquote span { display: block; height: 50px; color: var(--green); font-size: 5rem; line-height: 1; }
  .quote-section > .shell > p { margin-top: 26px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

  .simple-hero { padding-block: clamp(90px, 12vw, 168px) clamp(70px, 9vw, 120px); }
  .simple-hero h1 { font-size: clamp(3.1rem, 7vw, 6.7rem); text-wrap: balance; }
  .simple-hero .narrow > p:last-child { max-width: 780px; margin-top: 28px; font-size: clamp(1.08rem, 1.8vw, 1.28rem); }
  .method-hero, .features-hero { background: linear-gradient(160deg, transparent 30%, color-mix(in srgb, var(--mint) 60%, transparent)); }
  .trust-hero, .privacy-hero { background: linear-gradient(155deg, transparent 28%, color-mix(in srgb, var(--sky) 55%, transparent)); }
  .pricing-hero { background: linear-gradient(155deg, transparent 28%, color-mix(in srgb, var(--butter) 60%, transparent)); }
  .download-hero { background: linear-gradient(155deg, transparent 28%, color-mix(in srgb, var(--lilac) 55%, transparent)); }
  .support-hero, .article-hero { background: linear-gradient(155deg, transparent 28%, color-mix(in srgb, var(--peach) 45%, transparent)); }

  .feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .feature-card { position: relative; display: grid; min-height: 660px; grid-template-columns: 1.05fr .95fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); }
  .feature-card.mint { background: var(--mint); } .feature-card.peach { background: var(--peach); } .feature-card.lilac { background: var(--lilac); } .feature-card.sky { background: var(--sky); } .feature-card.butter { background: var(--butter); } .feature-card.coral { background: var(--coral); }
  .feature-card-copy { position: relative; z-index: 2; padding: 44px 10px 42px 42px; }
  .feature-card-copy h2 { font-size: 2.4rem; }
  .feature-card-copy h3 { margin-top: 16px; font-size: 1.28rem; }
  .feature-card-copy > p:not(.eyebrow) { margin-top: 16px; color: color-mix(in srgb, var(--ink) 78%, transparent); }
  .feature-card-copy ul { display: grid; gap: 8px; margin-top: 22px; list-style: none; color: var(--ink); font-size: .84rem; }
  .feature-card-copy li::before { content: "· "; }
  .feature-card-phone { align-self: end; width: 340px; margin: 0 -130px -150px -10px; transform: rotate(5deg); }
  .feature-card:nth-child(even) .feature-card-phone { transform: rotate(-4deg); }

  .feature-hero { min-height: 780px; display: grid; align-items: center; padding-block: 90px 120px; overflow: hidden; }
  .feature-hero.mint { background: var(--mint); } .feature-hero.peach { background: var(--peach); } .feature-hero.lilac { background: var(--lilac); } .feature-hero.sky { background: var(--sky); } .feature-hero.butter { background: var(--butter); } .feature-hero.coral { background: var(--coral); }
  .feature-hero-copy { position: relative; z-index: 3; }
  .feature-hero-copy .back-link { display: inline-block; margin-bottom: 54px; color: var(--green); font-size: .84rem; font-weight: 750; }
  .feature-hero-copy h1 { font-size: clamp(3rem, 6vw, 5.8rem); }
  .feature-hero-copy > p:not(.eyebrow) { max-width: 650px; margin-top: 24px; color: color-mix(in srgb, var(--ink) 78%, transparent); font-size: 1.1rem; }
  .feature-hero-copy .hero-actions { margin-top: 32px; }
  .feature-phone-wrap { position: relative; min-height: 620px; display: grid; place-items: center; }
  .feature-phone-wrap .phone { position: relative; z-index: 2; transform: rotate(2deg); }
  .orbit { position: absolute; border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); border-radius: 50%; }
  .orbit-one { width: 560px; height: 560px; } .orbit-two { width: 710px; height: 390px; transform: rotate(22deg); }

  .facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--line); }
  .fact-card { min-height: 270px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .fact-card:last-child { border-right: 0; }
  .fact-card > span { display: block; margin-bottom: 72px; color: var(--green); font-size: .78rem; font-weight: 800; }
  .fact-card h3 { margin-bottom: 13px; }
  .fact-card p { font-size: .92rem; }

  .demo-section { background: var(--paper-soft); }
  .demo-grid { align-items: center; }
  .demo-shell { max-width: 560px; margin-inline: auto; padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); border-radius: 30px; background: var(--paper-strong); box-shadow: var(--shadow); }
  .demo-status { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .78rem; }
  .demo-top { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--muted); font-size: .73rem; }
  .video-placeholder { display: grid; min-height: 180px; place-items: end center; padding: 24px; border-radius: 18px; background: linear-gradient(145deg, #183b35, #628c80); color: white; text-align: center; }
  .video-placeholder span { padding: 7px 12px; border-radius: 8px; background: rgba(0,0,0,.5); font-size: .85rem; }
  .transcript-lines { display: grid; gap: 6px; margin-top: 14px; }
  .transcript-lines button { display: grid; grid-template-columns: 50px 1fr; gap: 8px; padding: 12px; border: 0; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; }
  .transcript-lines button:hover, .transcript-lines button.active { background: var(--green-soft); }
  .transcript-lines small { color: var(--muted); }
  .kana-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
  .kana-grid button { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); cursor: pointer; }
  .kana-grid button:hover, .kana-grid button.active { border-color: var(--green); background: var(--green-soft); }
  .kana-grid strong, .kana-grid small { display: block; }
  .kana-grid strong { font-size: 1.25rem; }
  .kana-grid small { color: var(--muted); font-size: .64rem; }
  .mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; border-radius: 13px; background: var(--paper-soft); }
  .mode-switch button { min-height: 40px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
  .mode-switch button.active { background: var(--paper-strong); box-shadow: var(--shadow-small); }
  .chat-lines { display: grid; gap: 12px; margin-top: 28px; }
  .chat-lines p { max-width: 86%; padding: 13px 16px; border-radius: 17px; color: var(--ink); font-size: .88rem; text-align: left; }
  .chat-lines .assistant { justify-self: start; background: var(--paper-soft); }
  .chat-lines .user { justify-self: end; background: var(--green-soft); }
  .quiz-demo h3 { margin: 11px 0 24px; }
  .quiz-count { font-size: .76rem; }
  .quiz-options { display: grid; gap: 8px; }
  .quiz-options button { min-height: 48px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); text-align: left; cursor: pointer; }
  .quiz-options button.selected { border-color: var(--green); background: var(--green-soft); }
  .quiz-options button.correct { border-color: #1a8c61; } .quiz-options button.incorrect { border-color: #bd5c50; background: color-mix(in srgb, var(--coral) 55%, transparent); }
  .quiz-submit { width: 100%; margin-top: 18px; }
  .vocab-source { font-size: .76rem; }
  .word-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-top: 18px; }
  .word-head h3 { font-size: 2.5rem; }
  .word-head button { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; }
  .word-meaning { margin-top: 25px; padding: 18px; border-radius: 15px; background: var(--green-soft); }
  .word-meaning p { margin-top: 7px; color: var(--ink); font-size: .85rem; }
  .progress-demo { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; }
  .progress-ring { display: grid; width: 140px; height: 140px; place-items: center; align-content: center; border: 12px solid var(--green-soft); border-top-color: var(--green); border-radius: 50%; }
  .progress-ring span { font-size: 2.6rem; font-weight: 700; line-height: 1; }
  .progress-ring small { margin-top: 7px; color: var(--muted); }
  .progress-list { display: grid; gap: 12px; }
  .progress-list div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: .84rem; }
  .progress-list span { color: var(--muted); }
  .progress-demo .demo-status { grid-column: 1 / -1; }

  .note-section { padding-block: 26px; border-block: 1px solid var(--line); }
  .note-section p { display: grid; grid-template-columns: 120px 1fr; gap: 28px; font-size: .86rem; }
  .note-section strong { color: var(--ink); }

  .method-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .method-step { min-height: 330px; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper-strong); }
  .method-step:nth-child(1) { background: var(--mint); } .method-step:nth-child(2) { background: var(--peach); } .method-step:nth-child(3) { background: var(--lilac); } .method-step:nth-child(4) { background: var(--sky); }
  .method-step span { display: block; margin-bottom: 74px; color: var(--green); font-size: .82rem; font-weight: 750; }
  .method-step h2 { font-size: 2rem; }
  .method-step p { margin-top: 15px; color: color-mix(in srgb, var(--ink) 76%, transparent); }

  .pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .pricing-card { min-height: 420px; padding: clamp(30px, 5vw, 54px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-strong); }
  .pricing-card:nth-child(2) { background: var(--butter); }
  .status-pill { display: inline-flex; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--green); font-size: .73rem; font-weight: 800; }
  .pricing-card h2 { margin-top: 50px; font-size: 2.3rem; }
  .price { margin-top: 12px; color: var(--ink); font-size: 1.04rem; }
  .pricing-card ul { display: grid; gap: 13px; margin-top: 40px; list-style: none; }
  .pricing-card li { display: flex; gap: 10px; color: var(--ink); font-size: .91rem; }
  .pricing-card li::before { content: "✓"; color: var(--green); font-weight: 800; }
  .legal-note { max-width: 780px; margin-top: 24px; font-size: .79rem; }

  .status-table { max-width: 820px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-strong); box-shadow: var(--shadow-small); }
  .status-intro { display: flex; align-items: center; gap: 24px; padding: 34px; }
  .status-intro img { border-radius: 25px; box-shadow: var(--shadow-small); }
  .status-intro h2 { font-size: 2rem; }
  .status-intro p { margin-top: 7px; font-size: .8rem; }
  .status-row { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 21px 34px; border-top: 1px solid var(--line); }
  .status-row span { color: var(--muted); }

  .support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .support-card { min-height: 310px; padding: 34px; border: 1px solid var(--line); border-radius: 28px; background: var(--paper-strong); transition: transform .2s ease, box-shadow .2s ease; }
  .support-card:nth-child(1) { background: var(--mint); } .support-card:nth-child(2) { background: var(--peach); } .support-card:nth-child(3) { background: var(--lilac); } .support-card:nth-child(4) { background: var(--sky); }
  .support-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
  .support-card > span { display: block; margin-bottom: 62px; color: var(--green); font-size: .78rem; font-weight: 800; }
  .support-card h2 { font-size: 2.2rem; }
  .support-card p { max-width: 430px; margin-top: 14px; color: color-mix(in srgb, var(--ink) 75%, transparent); }
  .support-card b { display: block; margin-top: 28px; color: var(--green); font-size: .84rem; }

  .article-layout { display: grid; grid-template-columns: 230px minmax(0, 700px); gap: clamp(54px, 9vw, 130px); align-items: start; }
  .article-aside { position: sticky; top: 112px; display: grid; gap: 9px; padding: 20px; border-left: 1px solid var(--line); }
  .article-aside span { margin-bottom: 8px; color: var(--ink); font-size: .77rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .article-aside a { color: var(--muted); font-size: .82rem; }
  .article-aside a:hover { color: var(--green); }
  .article-content { display: grid; gap: 70px; }
  .article-content section { scroll-margin-top: 120px; }
  .article-content h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
  .article-content p { margin-top: 18px; font-size: 1.04rem; }

  .not-found { min-height: 65svh; }
}

@layer utilities {
  [hidden] { display: none !important; }

  @media (max-width: 960px) {
    :root { --shell: min(100% - 36px, 760px); }
    .desktop-nav, .header-actions > .button { display: none; }
    .menu-button { display: inline-grid; }
    .mobile-menu { position: fixed; z-index: 48; inset: 79px 0 auto; display: grid; max-height: calc(100svh - 79px); padding: 24px; overflow: auto; border-bottom: 1px solid var(--line); background: var(--paper-strong); opacity: 0; pointer-events: none; transform: translateY(-10px); transition: opacity .18s ease, transform .18s ease; }
    .mobile-menu.open { opacity: 1; pointer-events: auto; transform: none; }
    .mobile-menu a { min-height: 48px; display: flex; align-items: center; padding-inline: 10px; border-bottom: 1px solid var(--line); color: var(--muted); }
    .mobile-menu a:first-child, .mobile-menu a:nth-last-child(-n+4) { color: var(--ink-strong); font-weight: 700; }
    .hero-grid, .feature-hero-grid, .trust-grid, .demo-grid { grid-template-columns: 1fr; }
    .page-hero { min-height: auto; }
    .hero-visual { min-height: 600px; }
    .feature-strip { grid-template-columns: 1fr 1fr; }
    .showcase-row { grid-template-columns: 1fr 1fr; gap: 38px; }
    .phone-stage { min-height: 570px; }
    .journey-list, .method-steps { grid-template-columns: 1fr 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card { min-height: 600px; }
    .feature-hero-grid { grid-template-columns: .95fr 1.05fr; gap: 28px; }
    .feature-hero-copy h1 { font-size: 3.4rem; }
    .orbit-one { width: 450px; height: 450px; } .orbit-two { width: 520px; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: 2; }
  }

  @media (max-width: 700px) {
    :root { --shell: calc(100% - 28px); }
    h1 { font-size: clamp(2.9rem, 13vw, 4.3rem); }
    h2 { font-size: clamp(2rem, 10vw, 3.3rem); }
    .section { padding-block: 76px; }
    .header-inner { min-height: 70px; }
    .mobile-menu { top: 71px; max-height: calc(100svh - 71px); }
    .breadcrumbs { overflow: auto; white-space: nowrap; }
    .page-hero { padding-block: 55px 75px; }
    .hero-intro { font-size: 1.04rem; }
    .hero-visual { min-height: 520px; margin-top: 24px; }
    .route-card { width: 78%; padding: 20px; }
    .route-card strong { font-size: 1.35rem; }
    .route-card-one { left: 0; } .route-card-two { top: 205px; } .route-card-three { bottom: 10px; }
    .feature-strip { grid-template-columns: 1fr; }
    .showcase-stack { gap: 100px; }
    .showcase-row, .showcase-row.reverse { grid-template-columns: 1fr; }
    .showcase-row.reverse .showcase-copy, .showcase-copy { order: 1; }
    .showcase-row.reverse .phone-stage, .phone-stage { order: 2; }
    .phone-stage { min-height: 560px; border-radius: 38px; }
    .journey-list, .method-steps { grid-template-columns: 1fr; }
    .journey-list li { min-height: 240px; border-right: 0; }
    .journey-list li > span, .method-step span { margin-bottom: 48px; }
    .cta-card { display: block; border-radius: 34px; }
    .cta-actions { margin-top: 30px; }
    .cta-actions .button { width: 100%; }
    .feature-card { min-height: 680px; grid-template-columns: 1fr; }
    .feature-card-copy { padding: 34px 34px 10px; }
    .feature-card-phone { justify-self: end; width: 280px; margin: -10px -36px -180px 0; }
    .feature-hero { min-height: auto; padding-block: 56px 90px; }
    .feature-hero-grid { grid-template-columns: 1fr; }
    .feature-hero-copy .back-link { margin-bottom: 36px; }
    .feature-hero-copy h1 { font-size: 3rem; }
    .feature-phone-wrap { min-height: 560px; }
    .facts-grid { grid-template-columns: 1fr; }
    .fact-card { min-height: 220px; border-right: 0; }
    .fact-card > span { margin-bottom: 44px; }
    .progress-demo { grid-template-columns: 1fr; }
    .progress-ring { justify-self: center; }
    .pricing-grid, .support-grid { grid-template-columns: 1fr; }
    .status-intro { align-items: flex-start; padding: 26px; }
    .status-intro img { width: 82px; }
    .status-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 26px; }
    .article-layout { grid-template-columns: 1fr; }
    .article-aside { position: static; }
    .note-section p { grid-template-columns: 1fr; gap: 8px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 42px 24px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-grid > div:last-child { grid-column: auto; }
    .footer-bottom { display: grid; gap: 5px; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    .reveal { opacity: 1; transform: none; }
  }

  @media print {
    .site-header, .site-footer, .cta-section, .hero-actions, .demo-section { display: none; }
    body { background: white; color: black; }
    .section, .simple-hero { padding-block: 28px; }
  }
}
