/* Yuksell marketing site. No build step, no external requests.
   Colours follow oms-hd/lib/design/hd_tokens.dart and the app icon
   (charcoal #393E46 + teal #00ADB5). Brand teal and gold are fills only;
   text uses the -ink variants, which meet WCAG AA on their backgrounds. */

:root {
  color-scheme: light dark;
  --bg: #f3f5f7;
  --surface: #ffffff;
  --surface-2: #e9edf1;
  --ink: #15181d;
  --muted: #4a5361;
  --subtle: #5c6573;
  --line: #dfe4e9;
  --border: #aeb8c3;
  --charcoal: #393e46;
  --teal: #00adb5;
  --teal-ink: #006f75;
  --teal-soft: #e0f4f5;
  --gold: #d4a574;
  --gold-ink: #85633d;
  --gold-soft: #f8efe3;
  --navy: #2f4f73;
  --green: #25784a;
  --orange: #9a570a;
  --red: #b93a2c;
  --btn-bg: #22262c;
  --btn-ink: #ffffff;
  --btn-hover: #393e46;
  --focus: #0a6cbd;
  /* Night band (hero, CTA) is dark in both themes. */
  --night: #16191e;
  --night-2: #1f242b;
  --night-ink: #eef1f4;
  --night-muted: #b4bcc6;
  --night-line: #2e353e;
  --shadow: 0 1px 2px rgb(16 24 32 / 6%), 0 12px 32px -12px rgb(16 24 32 / 18%);
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans", "Noto Sans CJK SC", "Noto Sans JP", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f12;
    --surface: #171b21;
    --surface-2: #1f242c;
    --ink: #eef1f4;
    --muted: #b4bcc6;
    --subtle: #9aa4b0;
    --line: #2b323b;
    --border: #4a545f;
    --teal-ink: #5fd3d9;
    --teal-soft: #10292b;
    --gold-ink: #e6c79b;
    --gold-soft: #2a2119;
    --green: #7ccd9a;
    --orange: #f0b25a;
    --red: #f4907f;
    --btn-bg: #eef1f4;
    --btn-ink: #0d0f12;
    --btn-hover: #ffffff;
    --focus: #8fbbe8;
    --night: #12151a;
    --night-2: #1a1e25;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 16px 40px -16px rgb(0 0 0 / 60%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
:lang(zh) body, body:lang(zh) { --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Segoe UI", Roboto, sans-serif; line-height: 1.75; }
:lang(ja) body, body:lang(ja) { --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans CJK JP", "Noto Sans JP", "Segoe UI", sans-serif; line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.night :focus-visible { outline-color: #8fe3e8; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.022em; margin: 0; text-wrap: balance; }
:lang(zh) :is(h1, h2, h3), :lang(ja) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--btn-bg); color: var(--btn-ink); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Eyebrow labels echo the letter-spaced section labels in the HD design. */
.eyebrow {
  font: 600 0.75rem/1.4 var(--mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-ink);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--teal); border-radius: 2px; }
.night .eyebrow { color: #7fdde2; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font: 600 1rem/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink); }
.night .btn-primary { background: var(--teal); color: #071214; }
.night .btn-primary:hover { background: #3cc8cf; }
.night .btn-ghost { color: var(--night-ink); border-color: #59636f; }
.night .btn-ghost:hover { border-color: var(--night-ink); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; font-weight: 500; padding: 8px 10px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.langs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.langs a { color: var(--muted); text-decoration: none; font-size: 0.8125rem; font-weight: 600; padding: 6px 9px; border-radius: 7px; line-height: 1; }
.langs a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.langs a:not([aria-current]):hover { color: var(--ink); background: var(--surface-2); }
.signin { color: var(--ink); font-weight: 600; font-size: 0.9375rem; text-decoration: none; padding: 8px 6px; }
.signin:hover { text-decoration: underline; }
.bar .btn { min-height: 42px; padding: 0 16px; font-size: 0.9375rem; }

.menu { display: none; position: relative; }
.menu > summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 20px; height: 20px; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 10px; display: grid; gap: 2px;
}
.menu-panel a { color: var(--ink); text-decoration: none; padding: 12px; border-radius: 8px; font-weight: 500; }
.menu-panel a:hover { background: var(--surface-2); }
.menu-panel .langs { margin: 8px 4px 4px; justify-content: space-between; }
.menu-panel .langs a { flex: 1; text-align: center; padding: 10px 6px; }

@media (max-width: 1040px) { .nav { display: none; } }
@media (max-width: 860px) {
  .bar-end > .langs, .bar-end > .signin { display: none; }
  .menu { display: block; }
}
@media (max-width: 420px) { .bar-end > .btn { padding: 0 12px; } .brand span { display: none; } }

/* Hero: a night-service band with a faint floor-plan grid. */
.night { background: var(--night); color: var(--night-ink); }
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 0; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / 4.5%) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 4.5%) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 80%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -160px; top: -120px;
  background: radial-gradient(circle, rgb(0 173 181 / 22%), transparent 62%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.35rem, 2.2vw + 1.7rem, 4.1rem); font-weight: 760; margin: 18px 0 20px; }
:lang(zh) .hero h1, :lang(ja) .hero h1 { font-size: clamp(2rem, 2vw + 1.4rem, 3.4rem); font-weight: 700; }
.hero h1 em { font-style: normal; color: #7fdde2; }
.lead { font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem); color: var(--night-muted); max-width: 38em; }
.hero .lead { color: var(--night-muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.chips li {
  font: 600 0.75rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 10px; border: 1px dashed #4a545f; border-radius: 8px; color: var(--night-muted);
}
:lang(zh) .chips li, :lang(ja) .chips li { font-family: var(--font); letter-spacing: 0.02em; font-size: 0.8125rem; }

.stage { position: relative; padding-bottom: clamp(56px, 7vw, 88px); }
.ipad {
  background: #0a0c0f; border-radius: clamp(18px, 2.2vw, 30px); padding: clamp(8px, 1vw, 14px);
  box-shadow: 0 0 0 1px #2e353e, 0 40px 80px -30px rgb(0 0 0 / 70%), 0 0 120px -40px rgb(0 173 181 / 35%);
}
.ipad img { border-radius: clamp(10px, 1.2vw, 18px); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.phone {
  position: absolute; left: clamp(-24px, -2vw, -8px); bottom: 24px; width: clamp(120px, 19%, 190px);
  background: #0a0c0f; border-radius: 26px; padding: 6px;
  box-shadow: 0 0 0 1px #3a424c, 0 30px 60px -20px rgb(0 0 0 / 80%);
}
.phone img { border-radius: 20px; width: 100%; aspect-ratio: 375 / 812; object-fit: cover; }
.stage figcaption { margin-top: 14px; font-size: 0.8125rem; color: #9aa4b0; text-align: right; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage { padding-left: 0; }
  .phone { left: auto; right: 10px; bottom: 40px; width: 22%; }
  .stage figcaption { text-align: left; padding-right: 28%; }
}

/* Sections */
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 1.6vw + 1.4rem, 3rem); font-weight: 740; margin: 14px 0 16px; }
:lang(zh) .section-head h2, :lang(ja) .section-head h2 { font-size: clamp(1.6rem, 1.4vw + 1.2rem, 2.5rem); font-weight: 700; }
.section-head p { color: var(--muted); font-size: 1.125rem; }

/* Principles: a row of plain-spoken rules. */
.rules { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); padding: clamp(48px, 6vw, 80px) 0; }
.rules-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); list-style: none; }
.rules-grid li { position: relative; padding-top: 22px; border-top: 2px solid var(--ink); }
.rules-grid .n { font: 600 0.75rem/1 var(--mono); color: var(--subtle); letter-spacing: .1em; }
.rules-grid h3 { font-size: 1.1875rem; font-weight: 700; margin: 10px 0 10px; }
.rules-grid p { color: var(--muted); font-size: 0.975rem; }
.rules-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 40px; }
.rules-intro h2 { font-size: clamp(1.6rem, 1.2vw + 1.2rem, 2.25rem); font-weight: 740; max-width: 20em; }
.rules-intro p { color: var(--muted); max-width: 30em; }
@media (max-width: 960px) { .rules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rules-grid { grid-template-columns: 1fr; } }

/* Capability "tickets": kitchen-ticket cards with a perforated top. */
.tickets { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; list-style: none; }
.ticket {
  grid-column: span 2; position: relative; background: var(--surface); border-radius: 6px 6px var(--radius) var(--radius);
  padding: 30px 26px 28px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.ticket:nth-child(4), .ticket:nth-child(5) { grid-column: span 3; }
.ticket::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: -1px; height: 8px;
  background: radial-gradient(circle at 6px 0, var(--bg) 4px, transparent 4.5px) 0 0 / 14px 8px repeat-x;
}
.ticket-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px dashed var(--border); padding-bottom: 14px; margin-bottom: 16px; }
.ticket-head .no { font: 600 0.75rem/1 var(--mono); letter-spacing: .12em; color: var(--subtle); }
.ticket-head .tag { font: 600 0.6875rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); background: var(--gold-soft); padding: 5px 7px; border-radius: 6px; }
:lang(zh) .ticket-head .tag, :lang(ja) .ticket-head .tag { font-family: var(--font); letter-spacing: 0; font-size: 0.75rem; }
.ticket h3 { font-size: 1.375rem; font-weight: 740; margin-bottom: 8px; }
.ticket > p { color: var(--muted); margin-bottom: 16px; font-size: 0.975rem; }
.ticket ul { list-style: none; display: grid; gap: 10px; }
.ticket li { position: relative; padding-left: 26px; font-size: 0.9375rem; }
.ticket li::before {
  content: ""; position: absolute; left: 2px; top: 0.42em; width: 13px; height: 13px; border-radius: 4px;
  border: 1.75px solid var(--teal); background: var(--teal-soft);
}
.ticket li::after {
  content: ""; position: absolute; left: 6px; top: calc(0.42em + 3px); width: 4px; height: 6px;
  border: solid var(--teal-ink); border-width: 0 1.75px 1.75px 0; transform: rotate(45deg);
}
@media (max-width: 1000px) { .ticket, .ticket:nth-child(4), .ticket:nth-child(5) { grid-column: span 3; } .ticket:nth-child(5) { grid-column: span 6; } }
@media (max-width: 680px) { .tickets { grid-template-columns: 1fr; } .ticket, .ticket:nth-child(4), .ticket:nth-child(5) { grid-column: auto; } }

/* Product tour */
.tour-wrap { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tablist { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }
.tablist[hidden] { display: none; }
.tab {
  font: 600 0.9375rem/1 var(--font); color: var(--muted); background: transparent; cursor: pointer;
  border: 1px solid var(--line); padding: 12px 16px; border-radius: 999px; min-height: 44px;
}
.tab:hover { color: var(--ink); border-color: var(--border); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.panel { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.panel + .panel { margin-top: 64px; }
.js .panel + .panel { margin-top: 0; }
.panel[hidden] { display: none; }
.shot {
  margin: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 22px; padding: clamp(8px, 1.2vw, 14px);
}
.shot img { border-radius: 14px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; background: var(--bg); }
.shot figcaption, .caption { font-size: 0.8125rem; color: var(--subtle); margin: 12px 6px 2px; }
.panel h3 { font-size: clamp(1.5rem, 1vw + 1.1rem, 2rem); font-weight: 740; margin: 12px 0 14px; }
.panel p { color: var(--muted); }
.panel ul { list-style: none; margin-top: 20px; display: grid; gap: 12px; }
.panel li { padding-left: 18px; position: relative; font-size: 0.975rem; }
.panel li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); }
@media (max-width: 860px) { .panel { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .tablist { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 8px; scrollbar-width: none; }
  .tab { flex: none; }
}

/* Payments */
.pay-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.notice {
  margin-top: 26px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  border-left: 4px solid var(--gold); font-size: 0.975rem; color: var(--muted);
}
.notice strong { color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-ink); margin-bottom: 16px; }
.card .ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 900px) { .pay-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* Devices */
.devices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; }
.device { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.device .glyph { height: 92px; display: flex; align-items: end; margin-bottom: 22px; color: var(--ink); }
.device .glyph svg { height: 100%; width: auto; }
.device .kind { font: 600 0.75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--subtle); }
.device h3 { font-size: 1.375rem; font-weight: 740; margin: 8px 0 10px; }
.device p { color: var(--muted); font-size: 0.975rem; }
.device .more { margin-top: auto; padding-top: 18px; font-weight: 600; }
@media (max-width: 860px) { .devices { grid-template-columns: 1fr; } .device .glyph { height: 72px; } }

/* Languages */
.lang-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.lang-list { list-style: none; display: grid; gap: 22px; margin-top: 8px; }
.lang-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.lang-list .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--teal-ink); }
.lang-list .ico svg { width: 20px; height: 20px; }
.lang-list h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 4px; }
.lang-list p { color: var(--muted); font-size: 0.9375rem; }
.scripts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; list-style: none; }
.scripts li { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 0.9375rem; }
.scripts li[dir="rtl"] { font-family: "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif; }
@media (max-width: 900px) { .lang-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 4px; font-weight: 650; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px;
  border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq .answer { padding: 0 4px 24px; color: var(--muted); max-width: 46em; }
.faq .answer p + p { margin-top: 10px; }

/* CTA band */
.cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 80% at 50% 120%, rgb(0 173 181 / 28%), transparent 70%);
}
.cta h2 { font-size: clamp(2rem, 2vw + 1.4rem, 3.4rem); font-weight: 760; margin: 16px auto 16px; max-width: 18em; }
:lang(zh) .cta h2, :lang(ja) .cta h2 { font-size: clamp(1.7rem, 1.6vw + 1.2rem, 2.8rem); font-weight: 700; }
.cta p { color: var(--night-muted); max-width: 36em; margin: 0 auto; }
.cta .actions { justify-content: center; }
.cta .mail { margin-top: 22px; font-size: 0.9375rem; color: var(--night-muted); }
.cta .mail a { color: #7fdde2; }

/* Footer */
.site-footer { background: var(--night); color: var(--night-muted); border-top: 1px solid var(--night-line); padding: 48px 0 40px; font-size: 0.9375rem; }
.foot { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.site-footer .brand { color: var(--night-ink); }
.site-footer p { margin-top: 12px; max-width: 26em; }
.site-footer h2 { font: 600 0.75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #9aa4b0; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--night-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.8125rem; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }

/* Simple pages (legal, 404) */
.doc { padding: clamp(48px, 7vw, 96px) 0; }
.doc .inner { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 2vw + 1.4rem, 3rem); font-weight: 760; margin: 14px 0 18px; }
.doc h2 { font-size: 1.375rem; margin: 36px 0 12px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; display: grid; gap: 8px; }
.draft {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px;
  background: var(--gold-soft); border: 1px solid var(--gold); color: var(--ink); font-size: 0.9375rem; margin: 8px 0 28px;
}
.draft strong { white-space: nowrap; }
.big404 { font: 700 clamp(4rem, 10vw, 8rem)/1 var(--mono); color: var(--teal); letter-spacing: -0.04em; }

/* Reveal-on-scroll (only when JS runs and motion is allowed). */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media print {
  .site-header, .menu, .tablist, .cta { display: none !important; }
  .js .panel[hidden] { display: grid !important; }
}
.legal .langs { background: transparent; border-color: var(--night-line); }
.legal .langs a { color: var(--night-muted); }
.legal .langs a[aria-current="page"] { background: var(--night-ink); color: var(--night); }
.legal .langs a:not([aria-current]):hover { background: var(--night-2); color: var(--night-ink); }
:lang(ja) :is(h1, h2, h3), :lang(zh) :is(h1, h2, h3) { word-break: auto-phrase; }
.section-head.flush { margin-bottom: 0; }
