@layer reset, base, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, figure, ul { margin: 0; }
  ul { padding: 0; list-style: none; }
  img { display: block; max-width: 100%; }
  button, a { font: inherit; }
}

@layer base {
  :root {
    color-scheme: dark;
    --bg: #0a0a0c;
    --surface: #111115;
    --surface-2: #17171c;
    --text: #f3f2ef;
    --muted: rgba(243, 242, 239, 0.62);
    --faint: rgba(243, 242, 239, 0.38);
    --edge: rgba(243, 242, 239, 0.1);
    --edge-strong: rgba(243, 242, 239, 0.17);
    --amber: #cd833a;
    --amber-light: #ebc790;
    --amber-ink: #1b1108;
    --periwinkle: #989dc7;
    --indigo: #50559a;
    --max: 1180px;
    --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  }

  body {
    min-width: 320px;
    background:
      radial-gradient(circle at 80% 2%, rgba(80, 85, 154, 0.18), transparent 28rem),
      radial-gradient(circle at 10% 30%, rgba(205, 131, 58, 0.07), transparent 24rem),
      var(--bg);
    color: var(--text);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
  }

  body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  }

  a { color: inherit; text-decoration: none; }
  a:focus-visible, button:focus-visible { outline: 2px solid var(--amber-light); outline-offset: 4px; }
  ::selection { background: rgba(205, 131, 58, 0.38); }
}

@layer components {
  .shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
  .nav-wrap { position: sticky; top: 0; z-index: 30; padding: 14px 0; background: linear-gradient(180deg, rgba(10,10,12,.92), rgba(10,10,12,.72)); border-bottom: 1px solid transparent; backdrop-filter: blur(20px); }
  .nav { display: flex; align-items: center; min-height: 48px; gap: 28px; }
  .brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; letter-spacing: -0.03em; }
  .brand img { width: 25px; height: 29px; }
  .brand strong { font-weight: 800; }
  /* Chinese lockup: the mark flows inline as a glyph of "AnyLUT·光璐"
     (mixed 400/800/400 weights), height/align measured on the ink box. */
  .brand-cn { display: inline; letter-spacing: -.015em; }
  .brand-cn .brand-glyph { height: .98em; width: auto; margin-right: .15em; vertical-align: -.183em; }
  .nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 520; }
  .nav-links a:hover { color: var(--text); }
  .lang { display: inline-flex; gap: 5px; padding: 4px; border: 1px solid var(--edge); border-radius: 10px; background: rgba(255,255,255,.035); }
  .lang a { padding: 6px 8px; border-radius: 6px; color: var(--faint); font: 600 10px/1 var(--mono); letter-spacing: .08em; }
  .lang a[aria-current="page"] { background: rgba(255,255,255,.09); color: var(--text); }
  .menu-button { display: none; margin-left: auto; width: 40px; height: 40px; padding: 0; border: 1px solid var(--edge); border-radius: 10px; color: var(--text); background: var(--surface); }
  .menu-button span, .menu-button::before, .menu-button::after { display: block; width: 16px; height: 1px; margin: 4px auto; content: ""; background: currentColor; }

  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr); align-items: center; gap: clamp(48px, 7vw, 96px); min-height: calc(100svh - 77px); padding: 72px 0 92px; }
  .eyebrow { display: inline-flex; align-items: center; gap: 9px; width: fit-content; color: var(--amber-light); font: 650 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
  .eyebrow::before { width: 6px; height: 6px; border-radius: 50%; content: ""; background: var(--amber); box-shadow: 0 0 0 5px rgba(205,131,58,.12); }
  h1 { max-width: 9.4em; margin-top: 24px; font-size: clamp(46px, 6vw, 78px); font-weight: 280; line-height: .99; letter-spacing: -.055em; text-wrap: balance; }
  .hero-slogan { max-width: none; font-size: clamp(56px, 6.8vw, 96px); font-weight: 300; line-height: 1.04; letter-spacing: .05em; }
  .hero-tagline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 16px; }
  .hero-tagline strong { color: var(--text); font-size: clamp(17px, 1.6vw, 20px); font-weight: 650; letter-spacing: .02em; }
  /* -.185em puts the .96em hexagon's vertical center on the lockup's ink
     midline (canvas-measured: ascent .775em / descent .184em at 650wt),
     so the mark reads as a glyph of the same font, tip-to-tip matching
     the ink box of "AnyLUT·光璐". */
  .hero-tagline .brand-glyph { height: .96em; width: auto; margin-right: .17em; vertical-align: -.185em; }
  .hero-tagline span { color: var(--muted); font-size: clamp(14px, 1.3vw, 16px); letter-spacing: .02em; }
  .hero-copy { max-width: 35rem; margin-top: 28px; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.75; text-wrap: pretty; }
  .actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 32px; }
  .button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 0 19px; border: 1px solid var(--edge-strong); border-radius: 13px; font-size: 14px; font-weight: 650; }
  .button.primary { border-color: transparent; background: var(--amber); color: var(--amber-ink); }
  .button.primary:hover { background: #de9448; }
  .button.secondary:hover { border-color: rgba(243,242,239,.28); background: rgba(255,255,255,.04); }
  .app-store-badge { display: inline-flex; align-items: center; }
  .app-store-badge img { display: block; width: auto; height: 48px; }
  .app-store-badge:hover { opacity: .86; }
  .microcopy { margin-top: 16px; color: var(--faint); font: 500 10px/1.7 var(--mono); letter-spacing: .06em; }

  .hero-visual { position: relative; display: flex; min-width: 0; justify-content: flex-end; scroll-margin-top: 90px; }
  .app-banner { position: relative; width: min(100%, 380px); padding: 11px; border-radius: 58px; background: linear-gradient(180deg, #2c2c31, #121215 32%, #0c0c0f); box-shadow: 0 0 0 1px rgba(255,255,255,.17), 0 0 0 3.5px rgba(0,0,0,.9), 0 44px 100px rgba(0,0,0,.55); }
  .app-screen { position: relative; overflow: hidden; aspect-ratio: 1104 / 2400; border-radius: 47px; background: #000; }
  .app-screen img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }

  .proof { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--edge); }
  .proof li { min-height: 116px; padding: 25px 22px; border-right: 1px solid var(--edge); }
  .proof li:first-child { padding-left: 0; }
  .proof li:last-child { border-right: 0; }
  .proof strong { display: block; font-size: 16px; font-weight: 620; }
  .proof span { display: block; margin-top: 9px; color: var(--faint); font: 500 9px/1.6 var(--mono); letter-spacing: .09em; text-transform: uppercase; }

  .section { padding: clamp(90px, 11vw, 150px) 0; }
  .section-heading { max-width: 760px; }
  .kicker { color: var(--amber-light); font: 650 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
  h2 { margin-top: 18px; font-size: clamp(34px, 4.4vw, 58px); font-weight: 300; line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
  .section-lede { max-width: 43rem; margin-top: 22px; color: var(--muted); font-size: 16px; line-height: 1.75; text-wrap: pretty; }

  .workflow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 48px; counter-reset: steps; }
  .step { min-height: 270px; padding: 28px; border: 1px solid var(--edge); border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018)); counter-increment: steps; }
  .step::before { display: block; margin-bottom: 52px; color: var(--amber-light); content: "0" counter(steps); font: 650 10px/1 var(--mono); letter-spacing: .14em; }
  .step h3 { font-size: 20px; font-weight: 620; letter-spacing: -.02em; }
  .step p { margin-top: 13px; color: var(--muted); font-size: 13px; line-height: 1.72; }

  .feature-stack { display: grid; gap: 18px; margin-top: 54px; }
  .feature { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; overflow: hidden; border: 1px solid var(--edge); border-radius: 22px; background: var(--surface); }
  .feature:nth-child(even) .feature-visual { order: 2; }
  .feature-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(30px, 6vw, 72px); }
  .feature-index { color: var(--faint); font: 650 9px/1 var(--mono); letter-spacing: .16em; }
  .feature h3 { max-width: 12em; margin-top: 18px; font-size: clamp(28px, 3vw, 42px); font-weight: 320; line-height: 1.13; letter-spacing: -.035em; }
  .feature p { max-width: 31rem; margin-top: 18px; color: var(--muted); font-size: 14px; line-height: 1.75; }
  .chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
  .chip { padding: 8px 10px; border: 1px solid var(--edge); border-radius: 8px; color: rgba(243,242,239,.76); font: 550 9px/1 var(--mono); letter-spacing: .05em; }
  .feature-visual { position: relative; display: grid; place-items: center; min-height: 410px; overflow: hidden; background: #0d0d10; }
  .feature-visual::before { position: absolute; width: 420px; height: 420px; border-radius: 50%; content: ""; background: radial-gradient(circle, rgba(205,131,58,.15), transparent 65%); }
  .lut-grid { position: relative; display: grid; grid-template-columns: repeat(3, 94px); gap: 10px; transform: rotate(-4deg); }
  .lut-card { padding: 8px; border: 1px solid var(--edge); border-radius: 11px; background: var(--surface-2); box-shadow: 0 15px 30px rgba(0,0,0,.2); }
  .lut-swatch { aspect-ratio: 1; border-radius: 7px; background: linear-gradient(145deg, #77726a, #31323a); }
  .lut-card:nth-child(2) .lut-swatch { background: linear-gradient(145deg, #c28a6d, #2a4a4f); }
  .lut-card:nth-child(3) .lut-swatch { background: linear-gradient(145deg, #d4b98c, #3f534c); }
  .lut-card:nth-child(4) .lut-swatch { background: linear-gradient(145deg, #9b827d, #394153); }
  .lut-card:nth-child(5) .lut-swatch { background: linear-gradient(145deg, #d5a274, #374937); }
  .lut-card:nth-child(6) .lut-swatch { background: linear-gradient(145deg, #9c8490, #293a49); }
  .lut-card span { display: block; margin-top: 7px; overflow: hidden; color: var(--faint); font: 500 7px/1 var(--mono); white-space: nowrap; text-overflow: ellipsis; }
  .sliders { position: relative; width: min(72%, 360px); }
  .slider-row { margin: 26px 0; }
  .slider-meta { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--muted); font-size: 12px; }
  .slider-meta code { color: var(--text); font: 500 12px/1 var(--mono); }
  .track { position: relative; height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); }
  .track::before { position: absolute; left: 50%; width: var(--value, 25%); height: 100%; border-radius: inherit; content: ""; background: var(--amber); }
  .track::after { position: absolute; top: 50%; left: calc(50% + var(--value, 25%)); width: 14px; height: 14px; border-radius: 50%; content: ""; background: var(--text); transform: translate(-50%, -50%); box-shadow: 0 2px 8px rgba(0,0,0,.5); }
  .local-mark { position: relative; display: grid; width: 180px; aspect-ratio: 1; place-items: center; border: 1px solid var(--edge); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.018), 0 0 0 56px rgba(255,255,255,.012); }
  .local-mark img { width: 68px; }
  .local-mark::after { position: absolute; bottom: 33px; content: "ON DEVICE"; color: var(--amber-light); font: 650 8px/1 var(--mono); letter-spacing: .18em; }


  .specs { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 48px; border-top: 1px solid var(--edge); }
  .spec { display: grid; grid-template-columns: 132px 1fr; gap: 20px; padding: 23px 18px 23px 0; border-bottom: 1px solid var(--edge); }
  .spec:nth-child(odd) { border-right: 1px solid var(--edge); }
  .spec:nth-child(even) { padding-left: 24px; }
  .spec dt { color: var(--faint); font: 600 9px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
  .spec dd { margin: 0; color: rgba(243,242,239,.82); font-size: 13px; line-height: 1.55; }

  .privacy-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; padding: clamp(34px, 6vw, 68px); border: 1px solid rgba(152,157,199,.22); border-radius: 24px; background: linear-gradient(135deg, rgba(80,85,154,.15), rgba(17,17,21,.95) 50%, rgba(205,131,58,.08)); }
  .privacy-card h2 { margin-top: 0; }
  .privacy-list { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--edge); border-radius: 14px; background: var(--edge); }
  .privacy-list li { position: relative; padding: 18px 20px 18px 48px; background: rgba(13,13,16,.86); color: var(--muted); font-size: 13px; line-height: 1.55; }
  .privacy-list li::before { position: absolute; left: 20px; top: 20px; content: "✓"; color: var(--amber-light); font-weight: 700; }

  .faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 70px; margin-top: 46px; }
  .faq-list { border-top: 1px solid var(--edge); }
  details { border-bottom: 1px solid var(--edge); }
  summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 2px; cursor: pointer; font-size: 15px; font-weight: 580; list-style: none; }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: "+"; color: var(--amber-light); font: 400 20px/1 var(--sans); }
  details[open] summary::after { content: "−"; }
  details p { padding: 0 34px 23px 2px; color: var(--muted); font-size: 13px; line-height: 1.72; }


  footer { padding: 28px 0 40px; border-top: 1px solid var(--edge); }
  .footer-row { display: flex; align-items: center; gap: 24px; color: var(--faint); font: 500 10px/1.6 var(--mono); letter-spacing: .06em; }
  .footer-row .brand { color: var(--text); font-family: var(--sans); font-size: 15px; letter-spacing: -.02em; }
  .footer-row .brand img { width: 19px; height: 22px; }
  .footer-links { display: flex; gap: 20px; margin-left: auto; }
  .footer-links a:hover { color: var(--text); }

  [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s cubic-bezier(.22,1,.36,1); }
  [data-reveal][data-visible="true"] { opacity: 1; transform: none; }

  .legal { min-height: calc(100vh - 170px); padding: 72px 0 110px; }
  .legal .section-heading { max-width: 720px; }
  .legal-content { max-width: 760px; margin-top: 54px; }
  .legal-content h2 { margin: 44px 0 14px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
  .legal-content h3 { margin: 30px 0 10px; font-size: 16px; }
  .legal-content p, .legal-content li { color: var(--muted); font-size: 14px; line-height: 1.75; }
  .legal-content ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
  .legal-meta { margin-top: 16px; color: var(--faint); font: 500 10px/1.6 var(--mono); letter-spacing: .08em; }
}

@layer utilities {
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 72px; }
  .hero-copy { max-width: 40rem; }
  .hero-visual { justify-content: center; }
  .app-banner { width: min(78vw, 380px); }
  .proof { grid-template-columns: repeat(2, 1fr); }
  .proof li:nth-child(2) { border-right: 0; }
  .proof li:nth-child(-n+2) { border-bottom: 1px solid var(--edge); }
  .proof li:nth-child(3) { padding-left: 0; }
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-visual { order: 0; }
  .feature-visual { min-height: 330px; }
  .privacy-card, .faq { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 700px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .nav-wrap { padding: 9px 0; }
  .menu-button { display: block; }
  .nav-links { position: absolute; top: 64px; left: 14px; right: 14px; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 10px; border: 1px solid var(--edge); border-radius: 14px; background: rgba(17,17,21,.97); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
  .nav-links[data-open="true"] { display: flex; }
  .nav-links > a { padding: 13px 10px; }
  .lang { margin-top: 6px; }
  .lang a { flex: 1; text-align: center; }
  .hero { padding: 58px 0 72px; }
  h1 { font-size: clamp(44px, 14vw, 66px); }
  .hero-slogan { font-size: clamp(52px, 15vw, 76px); }
  .hero-tagline { margin-top: 12px; }
  .hero-copy { font-size: 16px; }
  .app-banner { width: min(88vw, 380px); border-radius: 48px; }
  .app-screen { border-radius: 38px; }
  .proof li { min-height: 105px; padding: 20px 14px; }
  /* The layout is still the 900px block's 2x2 grid here, so the desktop
     flush-left rules (li:first-child, :nth-child(3) at higher specificity)
     must be re-normalized or column 1's cells sit 14px left of column 2's. */
  .proof li:first-child, .proof li:nth-child(3) { padding-left: 14px; }
  .proof strong { font-size: 14px; }
  .workflow { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .step::before { margin-bottom: 36px; }
  .feature-copy { padding: 34px 24px 40px; }
  .feature-visual { min-height: 300px; }
  .lut-grid { grid-template-columns: repeat(3, 78px); }
  .specs { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 105px 1fr; }
  .spec:nth-child(odd) { border-right: 0; }
  .spec:nth-child(even) { padding-left: 0; }
  .privacy-card { padding: 34px 22px; }
  .footer-row { align-items: flex-start; flex-wrap: wrap; }
  .footer-links { width: 100%; margin-left: 0; }
}

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

@layer components {
  /* CLI page */
  .cli-hero { padding: 84px 0 40px; }
  .cli-hero h1, .cli-hero .hero-copy { max-width: 860px; }
  .cli-hero h1 { margin-top: 20px; font-size: clamp(40px, 6vw, 72px); font-weight: 300; line-height: 1.05; letter-spacing: -.03em; }
  .cli-note { max-width: 46rem; margin-top: 24px; color: var(--muted); font-size: 14px; line-height: 1.75; }
  .cli-note code, .section-lede code, .cli-table code, .spec dd code, .hero-copy code { font: 500 .88em/1.6 var(--mono); color: var(--amber-light); }
  .codeblock { margin: 22px 0 0; padding: 18px 20px; overflow-x: auto; border: 1px solid var(--edge); border-radius: 14px; background: var(--surface); color: rgba(243,242,239,.88); font: 500 13px/1.75 var(--mono); tab-size: 2; }
  .codeblock code { color: inherit; font: inherit; white-space: pre; }
  .table-wrap { margin-top: 32px; overflow-x: auto; }
  .cli-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
  .cli-table th { padding: 0 18px 12px 0; border-bottom: 1px solid var(--edge-strong); color: var(--faint); font: 600 9px/1.5 var(--mono); letter-spacing: .12em; text-align: left; text-transform: uppercase; }
  .cli-table td { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--edge); color: rgba(243,242,239,.82); line-height: 1.7; vertical-align: top; }
  .cli-table td:first-child { width: 150px; color: var(--text); font-weight: 600; white-space: nowrap; }
  .cli-table .codeblock { margin-top: 10px; }
  .cli-table .cell-note { margin: 0; color: var(--muted); }
  @media (max-width: 700px) { .cli-hero { padding: 58px 0 24px; } .codeblock { padding: 14px 16px; font-size: 12px; } }

  /* Assistant visual on the home page */
  .assist { display: grid; gap: 14px; width: min(100%, 360px); }
  .assist-prompt { padding: 14px 16px; border: 1px solid var(--edge-strong); border-radius: 14px; background: var(--surface-2); color: var(--text); font-size: 14px; line-height: 1.5; }
  .assist-rows { display: grid; gap: 8px; }
  .assist-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--edge); border-radius: 10px; color: var(--muted); font-size: 13px; }
  .assist-row code { color: var(--amber-light); font: 600 12px/1.4 var(--mono); }
  .assist-actions { display: flex; gap: 8px; }
  .assist-btn { padding: 9px 14px; border-radius: 9px; background: var(--amber); color: var(--amber-ink); font-size: 12px; font-weight: 650; }
  .assist-btn.ghost { border: 1px solid var(--edge-strong); background: none; color: var(--muted); }

  /* Pricing page */
  .pricing-hero { padding: 84px 0 24px; }
  .pricing-hero h1 { max-width: 860px; margin-top: 20px; font-size: clamp(36px, 5.4vw, 64px); font-weight: 300; line-height: 1.08; letter-spacing: -.03em; }
  .plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
  .plan { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--edge); border-radius: 18px; background: var(--surface); }
  .plan.featured { border-color: rgba(205,131,58,.5); }
  .plan h2 { font-size: 13px; font-weight: 650; color: var(--amber-light); font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; }
  .plan .price { font-size: 40px; font-weight: 300; letter-spacing: -.03em; }
  .plan .price small { color: var(--faint); font-size: 14px; letter-spacing: 0; }
  .plan p { color: var(--muted); font-size: 14px; line-height: 1.7; }
  .price-table { min-width: 620px; }
  .price-table td:first-child { width: auto; white-space: normal; font-weight: 500; }
  .price-table th:not(:first-child), .price-table td:not(:first-child) { width: 90px; text-align: center; padding-right: 0; }
  .price-table .yes { color: var(--amber-light); font-weight: 650; }
  .price-table .no { color: var(--faint); }
  @media (max-width: 800px) { .plans { grid-template-columns: 1fr; } .pricing-hero { padding: 58px 0 16px; } }
}

@layer components {
  /* Language switcher: 中 / EN, then a dropdown that holds the other languages (日本語). */
  .lang { align-items: center; }
  .lang-more { position: relative; border: 0; }
  .lang-more summary { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 6px; color: var(--faint); font: 600 10px/1 var(--mono); letter-spacing: .08em; cursor: pointer; list-style: none; }
  .lang-more summary::-webkit-details-marker { display: none; }
  .lang-more summary::after { content: ""; width: 5px; height: 5px; margin: -2px 1px 0 0; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
  .lang-more[open] summary::after { content: ""; margin: 3px 1px 0 0; transform: rotate(-135deg); }
  .lang-more summary:hover { color: var(--text); }
  .lang-more[data-current] summary { background: rgba(255,255,255,.09); color: var(--text); }
  .lang-more summary span:empty { display: none; }
  .lang-menu { position: absolute; z-index: 5; top: calc(100% + 8px); right: -4px; display: flex; flex-direction: column; min-width: 112px; padding: 4px; border: 1px solid var(--edge); border-radius: 10px; background: rgba(17,17,21,.97); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
  .lang-menu a { padding: 9px 10px; white-space: nowrap; font: 600 12px/1 var(--sans); letter-spacing: 0; }
  .lang-menu a:hover { color: var(--text); background: rgba(255,255,255,.06); }

  /* Japanese: system Japanese faces, no tight tracking, phrase-aware line breaks. */
  :lang(ja) { --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Segoe UI", sans-serif; }
  :lang(ja) body { line-break: strict; word-break: auto-phrase; overflow-wrap: anywhere; }
  :lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { letter-spacing: 0; line-height: 1.3; }
  :lang(ja) h1 { max-width: 14em; font-size: clamp(34px, 4.6vw, 58px); font-weight: 300; }
  :lang(ja) p, :lang(ja) dd, :lang(ja) li { line-height: 1.9; }
}
@media (max-width: 700px) {
  :lang(ja) h1 { font-size: clamp(30px, 9vw, 44px); }
  .lang-more { flex: 1; }
  .lang-more summary { justify-content: center; }
  .lang-menu { position: static; margin-top: 4px; }
}
