/* Jinbocho — landing page (index.html) styles */
/* Shared tokens/reset/lang-toggle live in base.css */

    img { max-width: 100%; display: block; }

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

    /* ── TRIAL BANNER ── */
    .trial-banner {
      background: var(--red-bg);
      border-bottom: 1px solid #f5c5cb;
    }
    .trial-banner.hidden { display: none; }
    .trial-banner-inner {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 8px 20px;
      max-width: var(--max);
      margin: 0 auto;
      padding: 12px 44px 12px 20px;
      position: relative;
    }
    .trial-banner-inner p {
      font-size: 14px;
      color: var(--ink);
      margin: 0;
    }
    .trial-banner-inner p strong { color: var(--red); }
    .trial-banner-inner .btn {
      padding: 7px 18px;
      font-size: 13px;
      flex-shrink: 0;
    }
    .trial-banner-close {
      position: absolute;
      top: 50%;
      right: 12px;
      transform: translateY(-50%);
      background: none;
      border: none;
      cursor: pointer;
      font-size: 18px;
      line-height: 1;
      color: var(--ink-soft);
      padding: 6px;
    }
    .trial-banner-close:hover { color: var(--ink); }
    @media (max-width: 560px) {
      .trial-banner-inner {
        flex-direction: column;
        text-align: center;
        padding: 16px 40px;
        gap: 10px;
      }
      .trial-banner-inner p { font-size: 13px; }
      .trial-banner-inner .btn { width: 100%; max-width: 240px; }
      .trial-banner-close { top: 10px; transform: none; right: 10px; }
    }

    /* ── NAV ── */
    nav {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(255,255,255,0.95);
      backdrop-filter: blur(8px);
      border-bottom: 1px solid var(--line);
    }
    .nav-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 64px;
      gap: 16px;
    }
    .nav-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 18px;
      font-weight: 600;
      color: var(--ink);
      flex-shrink: 0;
    }
    .nav-logo svg { width: 32px; height: 32px; }
    .nav-links {
      display: flex;
      align-items: center;
      gap: 28px;
      list-style: none;
      font-size: 14px;
      color: var(--ink-mid);
      white-space: nowrap;
    }
    .nav-links a:hover { color: var(--red); }
    .nav-cta {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
      white-space: nowrap;
    }
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      font-size: 14px;
      font-weight: 500;
      border-radius: 7px;
      padding: 9px 18px;
      cursor: pointer;
      transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
      border: 1px solid transparent;
      white-space: nowrap;
    }
    .btn-primary {
      background: var(--red);
      color: var(--white);
      border-color: var(--red);
    }
    .btn-primary:hover { background: var(--red-dim); border-color: var(--red-dim); }
    .btn-accent {
      background: var(--red-bg);
      color: var(--red);
      border-color: var(--red);
      font-weight: 600;
    }
    .btn-accent:hover { background: var(--red); color: var(--white); }
    .btn-outline {
      background: transparent;
      color: var(--ink);
      border-color: var(--line);
    }
    .btn-outline:hover { border-color: #bbb; }
    .btn-lg { font-size: 16px; padding: 13px 28px; border-radius: 9px; }
    .btn-ghost { color: var(--ink-mid); font-size: 14px; font-weight: 500; }
    .btn-ghost:hover { color: var(--ink); }


    /* ── HERO ── */
    .hero {
      padding: 96px 0 80px;
      text-align: center;
      background: var(--white);
    }
    .hero-eyebrow {
      display: inline-block;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--red);
      background: var(--red-bg);
      border: 1px solid #f5c5cb;
      padding: 4px 12px;
      border-radius: 100px;
      margin-bottom: 24px;
    }
    .hero h1 {
      font-family: 'Playfair Display', Georgia, serif;
      font-size: clamp(36px, 5.5vw, 60px);
      font-weight: 700;
      line-height: 1.15;
      color: var(--ink);
      max-width: 760px;
      margin: 0 auto 20px;
    }
    .hero h1 em {
      font-style: normal;
      color: var(--red);
    }
    .hero-sub {
      font-size: clamp(16px, 2vw, 19px);
      color: var(--ink-mid);
      max-width: 560px;
      margin: 0 auto 40px;
      line-height: 1.6;
    }
    .hero-actions {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
    }
    .hero-meta {
      margin-top: 20px;
      font-size: 13px;
      color: var(--ink-soft);
    }
    .hero-meta a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
    .hero-meta a:hover { color: var(--ink); }

    /* ── BADGE STRIP ── */
    /* Grid (not flex-wrap) so cells stay aligned to a fixed column count at
       every breakpoint instead of re-centering ragged rows on wrap. No internal
       dividers — the last row of 7 items is never full, so per-cell borders
       always leave one edge visually "unclosed"; equal-width cells + gap read
       as aligned without that artifact. */
    .badge-strip {
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      background: var(--bg);
    }
    .badge-list {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 4px 18px;
      padding: 16px 0;
      font-size: 13px;
      font-weight: 500;
      color: var(--ink-mid);
    }
    .badge-item {
      display: flex;
      align-items: center;
      gap: 8px;
      line-height: 1.3;
    }
    .badge-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--red);
      flex-shrink: 0;
    }

    /* ── HERO VISUAL ── */
    .hero-visual {
      padding: 0 0 80px;
      background: var(--white);
    }
    .product-shot {
      max-width: 960px;
      margin: 0 auto;
      border: 1px solid var(--line);
      border-radius: 12px;
      overflow: hidden;
      background: var(--white);
      box-shadow: 0 32px 64px -32px rgba(17, 17, 17, 0.16);
    }
    .product-shot-bar {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 11px 14px;
      background: var(--bg);
      border-bottom: 1px solid var(--line);
    }
    .product-shot-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--line);
    }
    .product-shot-url {
      margin-left: 8px;
      font-size: 12px;
      font-weight: 500;
      color: var(--ink-soft);
    }
    .product-shot picture,
    .product-shot img {
      display: block;
      width: 100%;
      height: auto;
    }

    /* ── SECTION ── */
    section { padding: 88px 0; }
    .section-label {
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--red);
      margin-bottom: 12px;
    }
    .section-title {
      font-family: 'Playfair Display', Georgia, serif;
      font-size: clamp(28px, 3.5vw, 40px);
      font-weight: 700;
      line-height: 1.2;
      color: var(--ink);
      max-width: 600px;
      margin-bottom: 16px;
    }
    .section-sub {
      font-size: 17px;
      color: var(--ink-mid);
      max-width: 540px;
      line-height: 1.6;
    }

    /* ── FEATURES GRID ── */
    .features-bg { background: var(--bg); }
    .features-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2px;
      border: 2px solid var(--line);
      border-radius: var(--radius);
      overflow: hidden;
      margin-top: 56px;
    }
    .feature-card {
      background: var(--white);
      padding: 32px;
    }
    .feature-icon {
      width: 44px;
      height: 44px;
      background: var(--red-bg);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 20px;
      flex-shrink: 0;
    }
    .feature-icon svg { width: 22px; height: 22px; stroke: var(--red); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .feature-card h3 {
      font-size: 17px;
      font-weight: 600;
      margin-bottom: 8px;
      color: var(--ink);
    }
    .feature-card p {
      font-size: 15px;
      color: var(--ink-mid);
      line-height: 1.6;
    }

    /* ── HOW IT WORKS ── */
    .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; margin-top: 56px; }
    .step { position: relative; }
    .step-num {
      font-family: 'Playfair Display', Georgia, serif;
      font-size: 48px;
      font-weight: 700;
      color: var(--line);
      line-height: 1;
      margin-bottom: 12px;
    }
    .step h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--ink); }
    .step p { font-size: 15px; color: var(--ink-mid); line-height: 1.65; }
    .step-divider {
      width: 40px;
      height: 3px;
      background: var(--red);
      border-radius: 2px;
      margin-bottom: 16px;
    }

    /* ── DETAIL SECTIONS ── */
    .detail {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: center;
    }
    .detail.reverse { direction: rtl; }
    .detail.reverse > * { direction: ltr; }
    .detail-text .section-title { max-width: 440px; }
    .detail-text .section-sub { max-width: 440px; }
    .detail-list {
      margin-top: 24px;
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .detail-list li {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: 15px;
      color: var(--ink-mid);
    }
    .detail-list li::before {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--red);
      margin-top: 8px;
      flex-shrink: 0;
    }

    /* mock UI panels */
    .mock-panel {
      background: var(--bg);
      border: 1px solid var(--line);
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 4px 32px rgba(0,0,0,0.06);
    }
    .mock-topbar {
      background: var(--white);
      border-bottom: 1px solid var(--line);
      padding: 12px 18px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .mock-dot { width: 10px; height: 10px; border-radius: 50%; }
    .mock-title {
      margin-left: 8px;
      font-size: 13px;
      font-weight: 600;
      color: var(--ink-mid);
    }
    .mock-body { padding: 20px; }

    /* book list mock */
    .mock-book-row {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 0;
      border-bottom: 1px solid var(--line);
    }
    .mock-book-row:last-child { border-bottom: none; }
    .mock-cover {
      width: 32px;
      height: 44px;
      border-radius: 3px;
      flex-shrink: 0;
    }
    .mock-book-info { flex: 1; min-width: 0; }
    .mock-book-title { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mock-book-author { font-size: 11px; color: var(--ink-soft); }
    .mock-badge { font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 100px; flex-shrink: 0; }
    .badge-read { background: #e8f5e9; color: #2e7d32; }
    .badge-reading { background: #fff8e1; color: #f57f17; }
    .badge-toread { background: #f3f3f3; color: #666; }

    /* shelf mock */
    .mock-shelf {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 8px;
      margin-bottom: 12px;
    }
    .mock-shelf-header {
      background: var(--bg);
      padding: 8px 14px;
      font-size: 12px;
      font-weight: 600;
      color: var(--ink-soft);
      border-bottom: 1px solid var(--line);
    }
    .mock-shelf-books {
      display: flex;
      gap: 6px;
      padding: 12px 14px;
      flex-wrap: wrap;
    }
    .mock-spine {
      width: 14px;
      height: 56px;
      border-radius: 2px;
    }

    /* stats mock */
    .mock-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .mock-stat-card {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 14px 16px;
    }
    .mock-stat-label { font-size: 11px; color: var(--ink-soft); margin-bottom: 4px; }
    .mock-stat-value { font-family: 'Playfair Display', Georgia, serif; font-size: 28px; font-weight: 700; color: var(--ink); }
    .mock-stat-value.red { color: var(--red); }
    .mock-stat-value.green { color: #2e7d32; }
    .mock-stat-value.amber { color: #c77700; }

    /* scan mock */
    .mock-scan-area {
      background: var(--ink);
      border-radius: 10px;
      aspect-ratio: 16/9;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }
    .mock-scan-frame {
      width: 60%;
      height: 40%;
      border: 2px solid var(--red);
      border-radius: 4px;
      position: relative;
    }
    .mock-scan-line {
      position: absolute;
      left: 0; right: 0;
      height: 2px;
      background: var(--red);
      opacity: 0.8;
      top: 50%;
      animation: scanline 2s ease-in-out infinite;
    }
    @keyframes scanline {
      0%,100% { top: 10%; }
      50% { top: 90%; }
    }
    .mock-scan-caption {
      position: absolute;
      bottom: 10px;
      left: 0; right: 0;
      text-align: center;
      font-size: 11px;
      color: rgba(255,255,255,0.7);
    }

    /* ── OPEN SOURCE ── */
    .opensource-bg { background: var(--bg); }
    .opensource-inner {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 60px;
      align-items: center;
    }
    .opensource-inner .section-title { max-width: 420px; }
    .opensource-inner .section-sub { max-width: 420px; }
    .tech-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 24px;
    }
    .chip {
      font-size: 12px;
      font-weight: 500;
      padding: 5px 12px;
      border-radius: 100px;
      background: var(--white);
      border: 1px solid var(--line);
      color: var(--ink-mid);
    }
    .license-block {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 28px;
    }
    .license-block h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
    .license-block p { font-size: 14px; color: var(--ink-mid); line-height: 1.6; }
    .license-block a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
    .github-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-top: 16px;
      font-size: 14px;
      font-weight: 500;
      color: var(--ink);
      border: 1px solid var(--line);
      background: var(--white);
      padding: 8px 14px;
      border-radius: 7px;
      transition: border-color 0.15s;
    }
    .github-link:hover { border-color: #aaa; }

    /* ── DOCS SECTION ── */
    .docs-section { background: var(--white); }
    .docs-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      margin-top: 48px;
    }
    .compare-links {
      margin-top: 32px;
      text-align: center;
      font-size: 14px;
      color: var(--ink-soft);
    }
    .compare-links a {
      color: var(--ink-mid);
      font-weight: 500;
    }
    .compare-links a:hover { color: var(--red); }
    .docs-card {
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 36px;
      display: flex;
      flex-direction: column;
      gap: 16px;
      transition: border-color 0.15s, box-shadow 0.15s;
      text-decoration: none;
      color: inherit;
    }
    .docs-card:hover {
      border-color: var(--red);
      box-shadow: 0 4px 24px rgba(188,0,45,0.08);
    }
    .docs-card-icon {
      width: 52px;
      height: 52px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .docs-card-icon svg { width: 26px; height: 26px; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; fill: none; }
    .docs-card-icon.dev { background: #f0f4ff; }
    .docs-card-icon.dev svg { stroke: #3b5bdb; }
    .docs-card-icon.user { background: var(--red-bg); }
    .docs-card-icon.user svg { stroke: var(--red); }
    .docs-card-label {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--ink-soft);
    }
    .docs-card h3 {
      font-family: 'Playfair Display', Georgia, serif;
      font-size: 22px;
      font-weight: 700;
      color: var(--ink);
      line-height: 1.25;
      margin: 0;
    }
    .docs-card p {
      font-size: 15px;
      color: var(--ink-mid);
      line-height: 1.65;
      margin: 0;
      flex: 1;
    }
    .docs-card-chapters {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .docs-card-chapters li {
      font-size: 13px;
      color: var(--ink-mid);
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .docs-card-chapters li::before {
      content: '';
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--line);
      flex-shrink: 0;
    }
    .docs-card-cta {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 14px;
      font-weight: 600;
      color: var(--red);
      margin-top: 4px;
    }
    .docs-card-cta svg { width: 14px; height: 14px; transition: transform 0.15s; }
    .docs-card:hover .docs-card-cta svg { transform: translateX(3px); }
    @media (max-width: 820px) {
      .docs-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 400px) {
      .docs-card { padding: 20px; gap: 12px; }
      .docs-card-icon { width: 44px; height: 44px; border-radius: 10px; }
      .docs-card-icon svg { width: 22px; height: 22px; }
      .docs-card h3 { font-size: 18px; }
      .docs-card p { font-size: 13px; }
      .docs-card-chapters li { font-size: 12px; }
    }

    /* ── CTA ── */
    .cta-section {
      text-align: center;
      background: var(--ink);
      color: var(--white);
    }
    .cta-section .section-title { color: var(--white); max-width: none; margin: 0 auto 16px; }
    .cta-section .section-sub { color: rgba(255,255,255,0.65); max-width: none; margin: 0 auto 36px; }
    .cta-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
    .btn-white { background: var(--white); color: var(--ink); border-color: var(--white); }
    .btn-white:hover { background: #f0f0f0; }
    .btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }
    .btn-outline-white:hover { border-color: rgba(255,255,255,0.6); }

    /* ── FOOTER ── */
    footer {
      border-top: 1px solid var(--line);
      padding: 40px 0;
      background: var(--white);
    }
    .footer-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 20px;
    }
    .footer-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 16px;
      font-weight: 600;
      color: var(--ink);
    }
    .footer-logo svg { width: 28px; height: 28px; }
    .footer-text { font-size: 13px; color: var(--ink-soft); }
    .footer-links {
      display: flex;
      gap: 20px;
      list-style: none;
      font-size: 13px;
      color: var(--ink-soft);
    }
    .footer-links a:hover { color: var(--ink); }
    .footer-links button { all: unset; cursor: pointer; }
    .footer-links button:hover { color: var(--ink); }

    /* ── PRIVACY / COOKIE PREFERENCES PANEL ── */
    .privacy-banner {
      display: none;
      position: fixed;
      left: 16px;
      right: 16px;
      bottom: 16px;
      z-index: 200;
      max-width: 480px;
      margin: 0 auto;
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: 0 8px 32px rgba(0,0,0,0.14);
      padding: 22px 24px;
    }
    .privacy-banner.show { display: block; }
    @keyframes privacy-banner-pulse {
      0% { box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 0 0 0 rgba(188,0,45,0.35); }
      50% { box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 0 0 6px rgba(188,0,45,0.18); }
      100% { box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 0 0 0 rgba(188,0,45,0); }
    }
    .privacy-banner.pulse { animation: privacy-banner-pulse .6s ease-out; }
    .privacy-banner-title {
      font-size: 14px;
      font-weight: 600;
      color: var(--ink);
      margin-bottom: 6px;
    }
    .privacy-banner-text {
      font-size: 13px;
      color: var(--ink-mid);
      line-height: 1.55;
      margin-bottom: 16px;
    }
    .privacy-banner-text a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
    .privacy-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
    .privacy-banner-actions .btn { flex: 1; justify-content: center; white-space: nowrap; }
    @media (max-width: 400px) {
      .privacy-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px 18px; }
    }

    /* ── KIDS MODE SECTION ── */
    .kids-mode-section {
      background: #fdf6ec;
      border-top: 1px solid #f0dcb8;
      border-bottom: 1px solid #f0dcb8;
    }
    .kids-mode-label { color: #b4790a; }
    .kids-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 20px;
      margin-top: 40px;
      margin-bottom: 36px;
    }
    .kids-card {
      background: var(--white);
      border: 1px solid #f0dcb8;
      border-radius: 12px;
      padding: 28px;
    }
    .kids-card h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
    .kids-card p { font-size: 15px; color: var(--ink-mid); line-height: 1.65; }
    .kids-card .feature-icon { background: #fdecc8; }

    /* ── AI PRO SECTION ── */
    .ai-pro-section {
      background: var(--red-bg);
      border-top: 1px solid #f5c5cb;
      border-bottom: 1px solid #f5c5cb;
    }
    .ai-pro-label { color: var(--red); }
    .ai-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
      margin-top: 40px;
      margin-bottom: 36px;
    }
    .ai-card {
      background: var(--white);
      border: 1px solid #f5c5cb;
      border-radius: 12px;
      padding: 28px;
    }
    .ai-card h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
    .ai-card p { font-size: 15px; color: var(--ink-mid); line-height: 1.65; }
    .ai-cta { text-align: center; }
    .ai-future { margin-top: 14px; font-size: 13px; color: var(--ink-soft); font-style: italic; }
    .ai-card .feature-icon { background: #fce4e9; }

    /* ── HAMBURGER ── */
    .nav-hamburger {
      display: none;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      width: 40px;
      height: 40px;
      padding: 9px;
      background: none;
      border: none;
      cursor: pointer;
      border-radius: 8px;
      flex-shrink: 0;
      transition: background 0.15s;
    }
    .nav-hamburger:hover { background: var(--bg); }
    .nav-hamburger span {
      display: block;
      width: 22px;
      height: 2px;
      background: var(--ink);
      border-radius: 2px;
      transition: transform 0.25s ease, opacity 0.2s ease;
      transform-origin: center;
    }
    .nav-hamburger[aria-expanded="true"] span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }
    .nav-hamburger[aria-expanded="true"] span:nth-child(2) {
      opacity: 0;
      transform: scaleX(0);
    }
    .nav-hamburger[aria-expanded="true"] span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }

    /* ── MOBILE MENU ── */
    .mobile-menu {
      display: none;
      border-top: 1px solid var(--line);
      background: rgba(255,255,255,0.98);
      backdrop-filter: blur(8px);
      padding: 8px 0 20px;
    }
    .mobile-menu.open { display: block; }
    .mobile-nav-links {
      list-style: none;
    }
    .mobile-nav-links li a {
      display: flex;
      align-items: center;
      padding: 13px 0;
      font-size: 15px;
      font-weight: 500;
      color: var(--ink-mid);
      border-bottom: 1px solid var(--line);
    }
    .mobile-nav-links li:last-child a { border-bottom: none; }
    .mobile-nav-links a:hover { color: var(--red); }
    .mobile-menu-cta {
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding-top: 16px;
      border-top: 1px solid var(--line);
      margin-top: 4px;
    }
    .mobile-menu-cta .btn {
      width: 100%;
      justify-content: center;
      padding: 11px 18px;
      font-size: 15px;
    }

    /* ── RESPONSIVE ── */
    @media (max-width: 820px) {
      .nav-links { display: none; }
      .nav-cta { display: none; }
      .nav-hamburger { display: flex; }
      .detail { grid-template-columns: 1fr; gap: 40px; }
      .detail.reverse { direction: ltr; }
      .opensource-inner { grid-template-columns: 1fr; gap: 40px; }
      .mock-stats-grid { grid-template-columns: 1fr 1fr; }
      .badge-list { grid-template-columns: repeat(3, 1fr); }
      .product-shot { max-width: 100%; }
    }
    @media (max-width: 560px) {
      .hero { padding: 60px 0 56px; }
      section { padding: 64px 0; }
      .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
      }
      .hero-actions .btn-lg { width: 100%; padding-left: 8px; padding-right: 8px; }
      .steps { gap: 32px; }
      .footer-inner { flex-direction: column; align-items: flex-start; }
      .badge-list { grid-template-columns: repeat(2, 1fr); }
      .hero-visual { padding: 0 0 56px; }
      .product-shot { border-radius: 10px; }
      .product-shot-bar { padding: 9px 12px; }
    }
    @media (max-width: 400px) {
      .container { padding: 0 12px; }
      body { font-size: 15px; }
      .ai-card { padding: 20px; }
      .ai-card h3 { font-size: 15px; }
      .ai-card p { font-size: 13px; }
      .kids-card { padding: 20px; }
      .kids-card h3 { font-size: 15px; }
      .kids-card p { font-size: 13px; }
      .nav-inner { height: 52px; gap: 8px; }
      .nav-logo { font-size: 14px; gap: 8px; }
      .nav-logo svg { width: 24px; height: 24px; }
      .nav-cta { gap: 6px; }
      .btn { padding: 7px 12px; font-size: 12px; }
      .btn-lg { padding: 9px 14px; font-size: 13px; }
      .hero { padding: 40px 0 32px; }
      .hero h1 { font-size: clamp(20px, 5vw, 36px); line-height: 1.1; }
      .hero-sub { font-size: clamp(14px, 2vw, 16px); margin-bottom: 28px; }
      .hero-eyebrow { font-size: 10px; padding: 3px 10px; margin-bottom: 16px; }
      .hero-actions { gap: 8px; }
      .hero-meta { font-size: 11px; }
      .badge-list { font-size: 11px; gap: 10px 10px; padding: 12px 0; }
      .badge-item { gap: 6px; }
      section { padding: 48px 0; }
      .section-label { font-size: 10px; margin-bottom: 10px; }
      .section-title { font-size: clamp(18px, 3.5vw, 28px); margin-bottom: 12px; }
      .section-sub { font-size: 14px; margin-bottom: 24px; }
      .features-grid { grid-template-columns: 1fr; gap: 1px; margin-top: 40px; }
      .feature-card { padding: 20px; }
      .feature-icon { width: 36px; height: 36px; border-radius: 8px; margin-bottom: 14px; }
      .feature-icon svg { width: 18px; height: 18px; }
      .feature-card h3 { font-size: 15px; margin-bottom: 6px; }
      .feature-card p { font-size: 13px; }
      .steps { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
      .step-num { font-size: 36px; margin-bottom: 8px; }
      .step h3 { font-size: 15px; margin-bottom: 8px; }
      .step p { font-size: 13px; }
      .step-divider { margin-bottom: 12px; }
      .detail { gap: 24px; }
      .detail-text .section-title { max-width: none; }
      .detail-text .section-sub { max-width: none; }
      .detail-list { gap: 8px; margin-top: 16px; }
      .detail-list li { font-size: 13px; gap: 8px; }
      .mock-panel { border-radius: 10px; box-shadow: 0 2px 16px rgba(0,0,0,0.04); }
      .mock-topbar { padding: 10px 14px; gap: 6px; }
      .mock-dot { width: 8px; height: 8px; }
      .mock-title { font-size: 12px; margin-left: 6px; }
      .mock-body { padding: 14px; }
      .mock-book-row { gap: 8px; padding: 8px 0; }
      .mock-cover { width: 28px; height: 38px; }
      .mock-book-title { font-size: 12px; }
      .mock-book-author { font-size: 10px; }
      .mock-badge { font-size: 9px; padding: 2px 6px; }
      .mock-shelf { border-radius: 6px; margin-bottom: 8px; }
      .mock-shelf-header { padding: 6px 10px; font-size: 11px; }
      .mock-shelf-books { gap: 4px; padding: 8px 10px; }
      .mock-spine { width: 12px; height: 48px; }
      .mock-stats-grid { gap: 8px; margin-bottom: 10px; }
      .mock-stat-card { padding: 10px 12px; }
      .mock-stat-label { font-size: 10px; margin-bottom: 3px; }
      .mock-stat-value { font-size: 22px; }
      .opensource-inner { gap: 32px; }
      .opensource-inner .section-title { max-width: none; }
      .opensource-inner .section-sub { max-width: none; }
      .tech-chips { gap: 6px; margin-top: 16px; }
      .chip { font-size: 11px; padding: 4px 10px; }
      .license-block { padding: 16px; }
      .license-block h4 { font-size: 13px; }
      .license-block p { font-size: 12px; }
      .github-link { font-size: 12px; padding: 6px 10px; margin-top: 12px; }
      .github-link svg { width: 14px; height: 14px; }
      .footer-inner { gap: 12px; }
      .footer-logo { font-size: 14px; gap: 8px; }
      .footer-logo svg { width: 22px; height: 22px; }
      .footer-text { font-size: 11px; }
      .footer-links { gap: 12px; font-size: 11px; }
      .cta-section { padding: 56px 0; }
      .lang-btn { padding: 3px 8px; font-size: 11px; }
    }
