/* FaxBuddy site. Colours are the app's own tokens (fax/src/theme/tokens.ts). */
:root {
  --bg: #EFEAE1;
  --card: #FFFFFF;
  --separator: #E2DED4;
  --text: #1D1C19;
  --text-2: #6B675E;
  --text-3: #78736A;
  --accent: #1E5B4A;
  --accent-pressed: #174A3C;
  --accent-tint: #E4EFE9;
  --on-accent: #FFFFFF;
  --delivered: #22693F;
  --delivered-tint: #E2F2E8;
  --sending: #2F5D8A;
  --sending-tint: #E8EEF6;
  --scheduled: #9A5B00;
  --scheduled-tint: #FBF0DC;
  --failed: #B42318;
  --failed-tint: #FBE7E4;
  --hill: #E6E0D4;
  --ink: #1D1C19;
  --on-ink: #FFFFFF;
  --fold: #DCD6CA;
  --card-shadow: 0 1px 2px rgba(29, 28, 25, 0.06), 0 8px 24px rgba(29, 28, 25, 0.07);
  --float-shadow: 0 2px 6px rgba(29, 28, 25, 0.06), 0 10px 28px rgba(29, 28, 25, 0.10);
  --delivered-badge: #86C8B3;
  --scheduled-badge: #E6B453;
  --sending-badge: #8DB3DB;
  --failed-badge: #F2877C;
  --hero: #22443B;
  --hero-tile: rgba(255, 255, 255, 0.11);
  --radius: 22px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151412;
    --card: #211F1C;
    --separator: #35322D;
    --text: #F3F1EC;
    --text-2: #A9A49A;
    --text-3: #8F8A80;
    --accent: #4FA585;
    --accent-pressed: #3E8A6E;
    --accent-tint: #1D3029;
    --on-accent: #0E2219;
    --delivered: #7FCB9B;
    --delivered-tint: #1B2E22;
    --sending: #8DB3DB;
    --sending-tint: #1E2A37;
    --scheduled: #E6B453;
    --scheduled-tint: #33291A;
    --failed: #F2877C;
    --failed-tint: #3A1E1B;
    --hill: #1E1C19;
    --ink: #F3F1EC;
    --on-ink: #1D1C19;
    --fold: #3A3732;
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
    --float-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

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

a { color: var(--accent); text-underline-offset: 3px; }

h1, h2, h3 { line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 8vw, 76px); font-weight: 900; letter-spacing: -0.045em; }
h2 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -0.035em; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--card); padding: 8px 14px; border-radius: 10px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; padding: 12px 0; transition: background-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
/* Once the page scrolls, the header gets its own frosted bar, so the logo never sits on the content. */
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 1px 0 var(--separator); }
.site-header.scrolled .nav { box-shadow: none; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.header-right { display: flex; align-items: center; gap: 8px; }
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--card); box-shadow: var(--float-shadow); }
.langs summary::-webkit-details-marker { display: none; }
.langs summary svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 1.8; }
.langs ul { position: absolute; right: 0; top: 52px; margin: 0; padding: 6px; list-style: none; background: var(--card); border-radius: 16px; box-shadow: var(--float-shadow); min-width: 150px; }
.langs a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; }
.langs a[aria-current="true"] { color: var(--accent); background: var(--accent-tint); }
@media (hover: hover) { .langs a:hover { background: var(--hill); } }
.lang-hint { display: none; position: fixed; left: 0; right: 0; bottom: 20px; margin: 0 auto; width: max-content; z-index: 6; align-items: center; gap: 12px; max-width: calc(100% - 32px); background: var(--ink); color: var(--on-ink); border-radius: 999px; padding: 8px 8px 8px 20px; box-shadow: var(--float-shadow); font-size: 15px; font-weight: 600; }
.lang-hint.show { display: flex; animation: pop 400ms var(--ease-out); }
.lang-hint span { flex: 1 1 auto; }
.lang-hint a { color: var(--on-ink); background: color-mix(in srgb, var(--on-ink) 16%, transparent); padding: 8px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.lang-hint button { all: unset; cursor: pointer; padding: 8px 10px; opacity: 0.7; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--accent); }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.logo span { font-size: 24px; font-weight: 900; letter-spacing: -0.045em; }
.nav { display: flex; align-items: center; gap: 4px; background: color-mix(in srgb, var(--card) 82%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 999px; padding: 5px; box-shadow: var(--float-shadow); }
.nav a { white-space: nowrap; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 14px; border-radius: 999px; transition: background-color 160ms var(--ease-out); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-tint); }
@media (hover: hover) { .nav a:hover { background: var(--hill); } }
@media (max-width: 400px) { .nav .hide-xs { display: none; } }
@media (max-width: 560px) {
  .nav .hide-sm { display: none; }
  .logo span { font-size: 22px; }
}

/* The paper buddy, same sheet and eyes as the app (src/components/paper-pal.tsx). */
.buddy .sheet { fill: #FFFFFF; }
.buddy .fold { fill: var(--fold); }
.buddy .lines { fill: #E2DCD1; }
.buddy .eye { fill: #1D1C19; transform-box: fill-box; transform-origin: center; animation: blink 3.4s infinite; }
@keyframes blink {
  0%, 76%, 82%, 88%, 100% { transform: scaleY(1); }
  78%, 86% { transform: scaleY(0.12); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 999px; font-size: 17px; font-weight: 700; text-decoration: none; transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out); user-select: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 16px rgba(30, 91, 74, 0.22); }
@media (hover: hover) { .btn-primary:hover { background: var(--accent-pressed); } }
.btn-quiet { background: var(--card); color: var(--text); box-shadow: var(--card-shadow); }
.btn .apple { width: 18px; height: 22px; fill: currentColor; }
.btn small { display: block; font-size: 12px; font-weight: 600; opacity: 0.8; line-height: 1; }
.btn .two-line { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1; }

/* Hero */
.hero { padding: 48px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--accent); background: var(--accent-tint); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--text-2); margin-top: 22px; max-width: 34ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 16px; font-size: 14px; color: var(--text-3); }

.stage { position: relative; display: flex; justify-content: center; }
.stage::before { content: ""; position: absolute; inset: 8% -20% -10% -20%; background: radial-gradient(closest-side, var(--hill), transparent); z-index: -1; }
.phone { --z: 0.8; position: relative; border-radius: 54px; padding: 11px; background: #1D1C19; box-shadow: 0 30px 60px rgba(29, 28, 25, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.06) inset; }
@media (max-width: 400px) { .phone { --z: 0.72; } }
/* The app's icon, drawn as a vector so it stays sharp tilted and scaled; its shadow follows the rounded shape. */
.tile { position: absolute; left: -6%; bottom: 14%; width: 132px; height: 132px; overflow: visible; filter: drop-shadow(0 20px 20px rgba(23, 74, 60, 0.35)); transform: rotate(-8deg); animation: float 4.4s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -6px; } }

/* The Home screen, built at the app's 393×852 points and zoomed to fit the phone. */
.screen { zoom: var(--z); width: 393px; height: 852px; border-radius: 47px; overflow: hidden; position: relative; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif; letter-spacing: -0.2px; line-height: 1.3; user-select: none; }
.statusbar { height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 46px; font-size: 17px; font-weight: 600; }
.statusbar .island { position: absolute; left: 50%; top: 11px; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; }
.statusbar .sys { display: flex; gap: 6px; align-items: center; }
.statusbar svg { height: 13px; fill: currentColor; }
.app-head { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 60px; }
.wordmark { font-size: 28px; font-weight: 900; letter-spacing: -1px; color: var(--accent); }
.gear { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--card); box-shadow: var(--float-shadow); }
.gear svg { width: 22px; height: 22px; stroke: var(--text); fill: none; stroke-width: 1.8; }
.feed { display: flex; flex-direction: column; gap: 16px; padding: 8px 20px 0; }
.paper { flex: none; filter: drop-shadow(0 1.2px 2.6px rgba(20, 24, 28, 0.16)); }
.glyph { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; flex: none; }
.glyph svg { width: 10px; height: 10px; fill: none; stroke: #151412; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.g-scheduled { background: var(--scheduled-badge); } .g-sending { background: var(--sending-badge); }
.g-delivered { background: var(--delivered-badge); } .g-failed { background: var(--failed-badge); }

/* The green card at the top of Home (home-hero.tsx). */
.hero-card { position: relative; overflow: hidden; border-radius: 22px; padding: 16px; background: var(--hero); color: #fff; box-shadow: 0 10px 30px rgba(20, 60, 48, 0.28); display: flex; flex-direction: column; gap: 16px; }
.hero-card::before, .hero-card::after { content: ""; position: absolute; border-radius: 50%; background: var(--hero-tile); }
.hero-card::before { width: 220px; height: 220px; top: -110px; right: -70px; }
.hero-card::after { width: 120px; height: 120px; top: -30px; right: -50px; }
.hero-top { display: flex; align-items: center; gap: 12px; position: relative; }
.hero-top svg { width: 37px; height: 46px; flex: none; }
.hero-top .sheet { fill: #fff; } .hero-top .fold { fill: #DCD6CA; } .hero-top .eye { fill: var(--hero); }
.hero-top small { display: block; font-size: 15px; color: rgba(255, 255, 255, 0.72); }
.hero-top b { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 700; letter-spacing: -0.4px; line-height: 1.2; }
.hero-top b i { width: 10px; height: 10px; border-radius: 50%; background: var(--failed-badge); flex: none; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: relative; }
.stats > div { position: relative; border-radius: 22px; padding: 12px 4px; background: var(--hero-tile); text-align: center; }
.stats b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stats small { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats .plus { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.stats .plus svg { width: 10px; stroke: var(--hero); stroke-width: 2.4; stroke-linecap: round; }

/* In progress (in-progress.tsx): one card per fax under way; the next one peeks in from the right. */
.sub { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; padding-left: 4px; margin-bottom: 8px; }
.cards { display: flex; gap: 12px; margin-right: -20px; overflow: hidden; }
.pcard { flex: none; width: 306px; border-radius: 22px; padding: 16px; background: var(--card); box-shadow: var(--card-shadow); display: flex; flex-direction: column; gap: 12px; }
.ptop { display: flex; align-items: center; gap: 8px; }
.ptop > span:not(.glyph) { flex: 1; font-size: 15px; font-weight: 600; }
.ptop time { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; font-variant-numeric: tabular-nums; }
.p-sending .ptop { color: var(--sending); } .p-scheduled .ptop { color: var(--scheduled); }
.pmid { display: flex; align-items: center; gap: 12px; }
.pmid > div { flex: 1; min-width: 0; }
.pmid b { display: block; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmid small { display: block; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmid .paper { width: 30px; height: 37.5px; }
.bar { height: 4px; border-radius: 2px; overflow: hidden; background: var(--sending-tint); }
.bar i { display: block; width: 40%; height: 100%; border-radius: 2px; background: var(--sending); animation: sweep 1.6s ease-in-out infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* A day's faxes (fax-group.tsx, fax-row.tsx). */
.app-title { font-size: 28px; font-weight: 800; letter-spacing: -0.6px; padding-left: 4px; margin: 8px 0 8px; white-space: nowrap; }
.app-title span { color: var(--text-3); }
.app-group { border-radius: 22px; background: var(--card); box-shadow: var(--card-shadow); overflow: hidden; }
.row { display: flex; align-items: center; gap: 16px; min-height: 74px; padding: 12px 20px; position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; right: 0; left: 82px; border-top: 1px solid var(--separator); }
.row.failed { background: var(--failed-tint); }
.row.failed::before, .row.failed + .row::before { left: 0; border-color: transparent; }
.row .txt { flex: 1; min-width: 0; font-size: 13px; }
.row .top { display: flex; align-items: baseline; gap: 8px; }
.row .top b { flex: 1; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .top time { color: var(--text-3); }
.row .doc, .row .st { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .st { color: var(--text-2); }
.row.failed .top time, .row.failed .st { color: var(--failed); }
.row.failed .st { font-weight: 600; }
.ftile { flex: none; position: relative; width: 46px; height: 46px; display: grid; place-items: center; }
.ftile .paper { width: 36px; height: 45px; }
.ftile .glyph { position: absolute; right: -4px; bottom: -6px; box-sizing: content-box; border: 2.5px solid var(--card); }
.row.failed .ftile .glyph { border-color: var(--failed-tint); }

/* The dock (dock.tsx): the list fades out under New Fax and search. */
.dock { position: absolute; left: 20px; right: 20px; bottom: 38px; display: flex; gap: 12px; }
.dock::before { content: ""; position: absolute; left: -20px; right: -20px; bottom: -38px; height: 130px; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg) 92%, transparent) 50%, var(--bg)); z-index: -1; }
.newfax { flex: 1; height: 60px; border-radius: 30px; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 19px; font-weight: 700; letter-spacing: -0.3px; box-shadow: 0 6px 16px rgba(30, 91, 74, 0.22); }
.newfax svg { width: 27px; height: 34px; }
.newfax .sheet { fill: #fff; } .newfax .fold { fill: #DCD6CA; } .newfax .eye { fill: var(--accent); }
.search { flex: none; width: 60px; height: 60px; border-radius: 50%; background: var(--card); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(30, 91, 74, 0.22); }
.search svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 2.2; stroke-linecap: round; }
.dock { z-index: 1; isolation: isolate; }
.home-ind { z-index: 2; position: absolute; bottom: 8px; left: 50%; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: var(--text); opacity: 0.9; }
.toast { position: absolute; right: -12%; top: 47%; display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 18px; padding: 12px 16px 12px 12px; box-shadow: var(--float-shadow); font-size: 14px; line-height: 1.3; animation: pop 600ms var(--ease-out) 400ms both; }
.toast b { display: block; font-size: 15px; }
.toast span { color: var(--text-2); }
.toast .check { width: 30px; height: 30px; border-radius: 50%; background: var(--delivered); display: grid; place-items: center; flex: none; }
.toast .check svg { width: 16px; stroke: #fff; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.95); } }

@media (max-width: 880px) {
  .hero { padding-top: 24px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .tile { left: 0; width: 96px; height: 96px; }
  .toast { right: 0; top: auto; bottom: -44px; }
  .hero { padding-bottom: 104px; }
}

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--text-2); font-size: 19px; margin-top: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--card-shadow); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-weight: 800; margin-bottom: 20px; }
.step p { color: var(--text-2); margin-top: 8px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--card-shadow); }
.feature .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-tint); display: grid; place-items: center; margin-bottom: 18px; }
.feature .ico svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature p { color: var(--text-2); margin-top: 6px; font-size: 16px; }

@media (max-width: 880px) {
  .steps, .features { grid-template-columns: 1fr; }
}
@media (min-width: 561px) and (max-width: 880px) {
  .features { grid-template-columns: 1fr 1fr; }
}

/* Pricing */
.pricing { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 16px; align-items: stretch; }
.promise { background: var(--hero); color: #fff; box-shadow: 0 10px 30px rgba(20, 60, 48, 0.28); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.promise h3 { font-size: 28px; }
.promise ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.promise li { display: flex; gap: 10px; }
.promise li::before { content: "✓"; font-weight: 800; }
.packs { background: var(--card); border-radius: var(--radius); box-shadow: var(--card-shadow); overflow: hidden; }
.packs table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.packs th, .packs td { padding: 16px 24px; text-align: left; border-bottom: 1px solid var(--separator); }
.packs th { font-size: 13px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; }
.packs td:not(:first-child), .packs th:not(:first-child) { text-align: right; }
.packs tr:last-child td { border-bottom: 0; }
.packs td:first-child { font-weight: 700; }
.packs .save { color: var(--accent); font-weight: 600; }
.packs .note { padding: 14px 24px; font-size: 14px; color: var(--text-3); background: var(--hill); }
@media (max-width: 880px) { .pricing { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .packs th, .packs td { padding: 14px 16px; } .packs .note { padding: 14px 16px; } }

/* Privacy band */
.band { background: var(--ink); color: var(--on-ink); border-radius: 32px; padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.band p { opacity: 0.75; margin-top: 14px; }
.band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.band li { display: flex; gap: 12px; align-items: baseline; }
.band li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4FA585; flex: none; translate: 0 -2px; }
.band a { color: inherit; }
@media (max-width: 880px) { .band { grid-template-columns: 1fr; padding: 32px 24px; border-radius: 26px; } }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: 18px; box-shadow: var(--card-shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--text-3); border-bottom: 2.5px solid var(--text-3); transform: translateY(-70%) rotate(45deg); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .answer { padding: 0 22px 22px; color: var(--text-2); }
.faq .answer p + p { margin-top: 10px; }
.faq h2.group { font-size: 22px; letter-spacing: -0.02em; margin: 32px 0 6px; }
.faq h2.group:first-child { margin-top: 0; }

/* Contact card */
.contact { background: var(--card); border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin: 32px 0; }
.contact p { color: var(--text-2); margin-top: 6px; }

/* Long-form legal pages */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(34px, 7vw, 60px); overflow-wrap: break-word; hyphens: manual; }
.page-head p { color: var(--text-2); margin-top: 14px; font-size: 19px; }
.prose { padding: 24px 0 72px; }
.prose h2 { font-size: 26px; letter-spacing: -0.025em; margin: 44px 0 12px; }
.prose h3 { font-size: 19px; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 10px 0; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--text); }
.prose .summary { background: var(--card); border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 24px 28px; margin-top: 8px; }
.prose .summary ul { margin: 12px 0 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--separator); }
.prose th { color: var(--text); font-weight: 700; }
.prose td { color: var(--text-2); }
.table-scroll { overflow-x: auto; }
.updated { font-size: 14px; color: var(--text-3); }

/* Footer */
.site-footer { padding: 48px 0 56px; border-top: 1px solid var(--separator); margin-top: 24px; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
@media (hover: hover) { .site-footer a:hover { color: var(--text); } }
.site-footer p { color: var(--text-3); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Legal notice: label and value side by side. */
.facts { display: grid; grid-template-columns: minmax(140px, 0.4fr) 1fr; gap: 0; margin: 16px 0; }
.facts dt, .facts dd { margin: 0; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--separator); }
.facts dt { font-weight: 700; color: var(--text); }
.facts dd { color: var(--text-2); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } }

/* Japanese: Japanese fonts, no negative tracking, phrase-aware line breaks. */
:lang(ja) body, :lang(ja) .screen { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif; letter-spacing: 0; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { letter-spacing: -0.01em; line-height: 1.25; word-break: auto-phrase; }
:lang(ja) p, :lang(ja) li, :lang(ja) summary { word-break: auto-phrase; line-height: 1.75; }
:lang(ja) .lead { max-width: 30em; }
:lang(de) h1, :lang(de) h2 { hyphens: auto; }

/* The wordmark is Latin in every language: keep the heavy Latin face. */
:lang(ja) .logo span, :lang(ja) .wordmark { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif; letter-spacing: -0.045em; }
@media (max-width: 560px) { .lang-hint { border-radius: 22px; flex-wrap: wrap; justify-content: space-between; } }
