/*
 * TravelPanda account & support pages — shared stylesheet.
 * Mirrors the design tokens / components used by the official website
 * (website/src/styles/*.css) so account.travelpanda.ai matches travelpanda.ai.
 */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --mint: #18bfa5;
  --mint-600: #0d8f7b;
  --mint-700: #0b7565;
  --mint-100: #e3f8f2;
  --mint-50: #f0fbf7;
  --forest: #123e37;
  --forest-900: #092d28;
  --forest-700: #1b574d;
  --violet: #7867d9;
  --violet-600: #5e4fc2;
  --violet-100: #eeeafe;
  --violet-50: #f6f4ff;
  --pink: #f3a7bc;
  --paper: #f8faf8;
  --white: #ffffff;
  --ink: #17201e;
  --ink-2: #3b4a46;
  --muted: #66716e;
  --muted-2: #8a9490;
  --danger: #c93b30;
  --danger-100: #fdebe9;
  --amber: #8a5a00;
  --amber-100: #fff4d6;

  --surface-0: var(--paper);
  --surface-1: var(--white);
  --surface-2: #f0f4f2;
  --surface-3: #e7eeeb;
  --line: rgba(23, 32, 30, 0.1);
  --line-strong: rgba(23, 32, 30, 0.18);

  --font-display: "Bricolage Grotesque Variable", "Inter Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  --fs-4xl: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  --lh-tight: 1.02;
  --lh-snug: 1.15;
  --lh-body: 1.6;
  --track-display: -0.03em;
  --track-title: -0.02em;
  --track-eyebrow: 0.08em;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --section-y: clamp(64px, 5vw + 32px, 112px);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(18, 62, 55, 0.06), 0 6px 18px -8px rgba(18, 62, 55, 0.12);
  --shadow-md: 0 2px 4px rgba(18, 62, 55, 0.05), 0 18px 40px -16px rgba(18, 62, 55, 0.2);
  --shadow-lg: 0 6px 12px -4px rgba(18, 62, 55, 0.08), 0 40px 80px -28px rgba(18, 62, 55, 0.3);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 200ms;
  --dur: 350ms;
  --dur-slow: 600ms;

  --container: 1180px;
  --container-narrow: 820px;
  --gutter: 24px;
  --header-offset: 104px;
}
html[lang="zh-CN"], html[lang="zh-cn"] {
  --font-display: "Inter Variable", "PingFang SC", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter Variable", "PingFang SC", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --track-display: -0.01em; --track-title: -0.005em; --lh-tight: 1.15; --lh-snug: 1.25;
}
html[lang="ja"] {
  --font-display: "Inter Variable", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  --font-body: "Inter Variable", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  --track-display: -0.01em; --track-title: -0.005em; --lh-tight: 1.15; --lh-snug: 1.25;
}
html[lang="ko"] {
  --font-display: "Inter Variable", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-body: "Inter Variable", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --track-display: -0.015em; --track-title: -0.01em; --lh-tight: 1.15; --lh-snug: 1.25;
}
@media (max-width: 720px) { :root { --gutter: 18px; --header-offset: 88px; } }

/* ---------- Fonts (SIL OFL 1.1 — see /assets/fonts/LICENSE-*.txt) ---------- */
@font-face {
  font-family: "Bricolage Grotesque Variable"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("/assets/fonts/bricolage-grotesque-latin-wght.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-wght.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-offset); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; overflow-x: hidden; font-family: var(--font-body); font-size: var(--fs-base); line-height: var(--lh-body); font-synthesis: none; font-feature-settings: "cv11", "ss01"; color: var(--ink); background: var(--surface-0); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body::before { content: ""; position: fixed; inset: 0; z-index: 2000; pointer-events: none; opacity: 0.035; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 160px 160px; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl { margin-top: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--forest); text-wrap: balance; }
h1 { font-size: var(--fs-4xl); line-height: var(--lh-tight); letter-spacing: var(--track-display); margin-bottom: var(--sp-5); }
h2 { font-size: var(--fs-3xl); line-height: var(--lh-snug); letter-spacing: var(--track-title); margin-bottom: var(--sp-4); }
h3 { font-size: var(--fs-xl); line-height: 1.2; letter-spacing: -0.012em; margin-bottom: var(--sp-2); font-weight: 650; }
h1 em, h2 em { font-style: normal; color: var(--violet); }
p { margin-bottom: var(--sp-4); }
p:last-child { margin-bottom: 0; }
::selection { background: rgba(24, 191, 165, 0.28); }
:focus-visible { outline: 3px solid rgba(120, 103, 217, 0.5); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.container { width: min(var(--container), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.container-narrow { width: min(var(--container-narrow), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 200; top: -100px; left: 16px; padding: 12px 18px; border-radius: var(--r-md); color: #fff; background: var(--forest); font-weight: 600; text-decoration: none; transition: top var(--dur-fast) var(--ease); }
.skip-link:focus { top: 16px; }
main { padding-top: var(--header-offset); }

html.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
html.js [data-reveal].is-revealed { opacity: 1; transform: none; }
html.js [data-reveal][data-reveal-delay="1"] { transition-delay: 80ms; }
html.js [data-reveal][data-reveal-delay="2"] { transition-delay: 160ms; }
html.js [data-reveal][data-reveal-delay="3"] { transition-delay: 240ms; }

/* ---------- Text primitives ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 var(--sp-4); color: var(--mint-600); font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--track-eyebrow); text-transform: uppercase; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(24, 191, 165, 0.16); }
.eyebrow.is-violet { color: var(--violet); }
.eyebrow.is-violet::before { box-shadow: 0 0 0 4px rgba(120, 103, 217, 0.16); }
.eyebrow.is-danger { color: var(--danger); }
.eyebrow.is-danger::before { box-shadow: 0 0 0 4px rgba(201, 59, 48, 0.16); }
html[lang="zh-CN"] .eyebrow, html[lang="zh-cn"] .eyebrow, html[lang="ja"] .eyebrow, html[lang="ko"] .eyebrow { letter-spacing: 0.02em; font-weight: 600; }
.lede { max-width: 60ch; color: var(--ink-2); font-size: var(--fs-md); line-height: 1.65; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { margin-bottom: var(--sp-4); }
.section-head p { max-width: 58ch; margin: 0; color: var(--muted); font-size: var(--fs-md); }

/* ---------- Buttons ---------- */
.btn { min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: var(--fs-sm); line-height: 1.2; white-space: nowrap; transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); }
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; transition: transform var(--dur-fast) var(--ease); }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:hover:not(:disabled) svg { transform: translateX(2px); }
.btn:active:not(:disabled) { transform: translateY(0) scale(0.985); }
.btn:disabled { cursor: not-allowed; opacity: 0.55; }
.btn-primary { color: #fff; background: var(--forest); box-shadow: 0 8px 20px -10px rgba(18, 62, 55, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.btn-primary:hover:not(:disabled) { background: var(--forest-700); }
.btn-secondary { color: var(--forest); background: var(--surface-1); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover:not(:disabled) { border-color: rgba(18, 62, 55, 0.34); }
.btn-ghost { color: var(--forest); background: transparent; border-color: var(--line-strong); }
.btn-danger { color: #fff; background: var(--danger); box-shadow: 0 8px 20px -10px rgba(201, 59, 48, 0.6); }
.btn-danger:hover:not(:disabled) { background: #b3342a; }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--mint-700); font-weight: 600; text-decoration: none; }
.text-link svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease); }
.text-link:hover svg { transform: translateX(3px); }
.text-link:hover { text-decoration: underline; }

/* ---------- Cards ---------- */
.card { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-1); box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
a.card { display: block; color: inherit; text-decoration: none; }
.card.is-interactive:hover, a.card:hover { transform: translateY(-3px); border-color: rgba(24, 191, 165, 0.45); box-shadow: var(--shadow-md); }
.card-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-md); color: var(--forest); background: var(--mint-100); }
.card-icon svg { width: 22px; height: 22px; }
.card-icon.is-violet { color: var(--violet-600); background: var(--violet-100); }
.card-icon.is-danger { color: var(--danger); background: var(--danger-100); }

/* ---------- Facts strip ---------- */
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: var(--fs-sm); font-weight: 500; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--mint-600); }

/* ---------- Glass / header ---------- */
.glass { background: rgba(255, 255, 255, 0.66); border: 1px solid rgba(255, 255, 255, 0.85); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 10px 30px -14px rgba(18, 62, 55, 0.25); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); }
@supports not (backdrop-filter: blur(1px)) { .glass { background: rgba(255, 255, 255, 0.96); } }
.site-header { position: fixed; z-index: 100; top: 14px; left: 0; right: 0; transition: top var(--dur) var(--ease); }
.site-header.is-scrolled { top: 8px; }
.nav-shell { position: relative; width: min(1160px, calc(100% - 28px)); min-height: 62px; margin-inline: auto; padding: 7px 8px 7px 12px; border-radius: var(--r-pill); display: flex; align-items: center; gap: 18px; transition: width var(--dur) var(--ease), background var(--dur) var(--ease); }
.site-header.is-scrolled .nav-shell { width: min(1080px, calc(100% - 20px)); background: rgba(255, 255, 255, 0.8); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 2px 6px rgba(18, 62, 55, 0.14); }
.brand small { margin-left: 2px; padding: 3px 8px; border-radius: var(--r-pill); color: var(--mint-700); background: var(--mint-100); font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.nav-links { margin-left: auto; display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; }
.nav-links a { position: relative; padding: 9px 12px; border-radius: var(--r-pill); text-decoration: none; font-size: 14px; font-weight: 550; color: var(--ink-2); white-space: nowrap; transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--forest); background: rgba(18, 62, 55, 0.06); }
.nav-links a[aria-current="page"] { color: var(--forest); background: rgba(24, 191, 165, 0.14); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-home { min-height: 42px; padding-inline: 18px; }
.menu-button { display: none; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--forest); place-items: center; }
.menu-button svg { width: 22px; height: 22px; }
.menu-button .icon-close { display: none; }
.menu-button[aria-expanded="true"] .icon-menu { display: none; }
.menu-button[aria-expanded="true"] .icon-close { display: block; }
.language-menu { position: relative; flex: 0 0 auto; }
.language-menu summary { height: 42px; padding: 0 12px 0 10px; border: 1px solid var(--line); border-radius: var(--r-pill); display: flex; align-items: center; gap: 7px; list-style: none; color: var(--forest); background: rgba(255, 255, 255, 0.6); font-size: 13px; font-weight: 600; cursor: pointer; user-select: none; white-space: nowrap; transition: border-color var(--dur-fast) var(--ease); }
.language-menu summary:hover { border-color: var(--line-strong); }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary svg { width: 16px; height: 16px; }
.language-menu summary .chev { width: 14px; height: 14px; color: var(--muted); transition: transform var(--dur-fast) var(--ease); }
.language-menu[open] summary .chev { transform: rotate(180deg); }
.language-popover { position: absolute; z-index: 60; right: 0; top: calc(100% + 10px); width: 190px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.98); box-shadow: var(--shadow-lg); backdrop-filter: blur(20px); }
.language-popover button { width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 9px; display: flex; align-items: center; justify-content: space-between; background: transparent; text-align: left; color: var(--ink); font-size: 14px; }
.language-popover button:hover, .language-popover button:focus-visible { background: var(--mint-50); }
.language-popover button[aria-current="true"] { color: var(--forest); background: var(--mint-100); font-weight: 600; }
.language-popover button svg { width: 16px; height: 16px; color: var(--mint-600); visibility: hidden; }
.language-popover button[aria-current="true"] svg { visibility: visible; }
@media (max-width: 1180px) { .nav-shell { gap: 12px; } .nav-links a { padding-inline: 10px; font-size: 13px; } }
@media (max-width: 980px) {
  .nav-links { position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.98); box-shadow: var(--shadow-lg); display: none; flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 14px; font-size: 15px; }
  .menu-button { display: grid; }
  .nav-home { display: none; }
}
@media (max-width: 720px) {
  .site-header { top: 10px; }
  .nav-shell { width: calc(100% - 20px); min-height: 56px; gap: 8px; padding: 6px 6px 6px 10px; }
  .brand span { font-size: 15px; }
  .brand img { width: 30px; height: 30px; }
  .brand small { display: none; }
  .language-menu summary { padding-inline: 9px; }
  .language-menu summary .language-current { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--sp-8); padding: var(--sp-8) 0 var(--sp-5); border-top: 1px solid var(--line); background: var(--surface-1); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-7); padding-bottom: var(--sp-7); }
.footer-brand p { max-width: 34ch; margin: 14px 0 0; color: var(--muted); font-size: var(--fs-sm); }
.footer-col h4 { margin: 0 0 14px; color: var(--ink); font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--track-eyebrow); text-transform: uppercase; font-family: var(--font-body); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--ink-2); text-decoration: none; font-size: var(--fs-sm); }
.footer-col a:hover { color: var(--mint-700); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: var(--sp-5); border-top: 1px solid var(--line); color: var(--muted-2); font-size: var(--fs-xs); }
.footer-bottom a { color: var(--ink-2); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); } }

/* ---------- Forms & status ---------- */
.field { display: grid; gap: 8px; }
.field label { color: var(--ink); font-size: var(--fs-sm); font-weight: 600; }
.field input { width: 100%; min-height: 50px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface-1); color: var(--ink); font-size: var(--fs-base); transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.field input::placeholder { color: var(--muted-2); }
.field input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px rgba(24, 191, 165, 0.18); }
.field input.is-code { letter-spacing: 0.32em; font-variant-numeric: tabular-nums; font-size: var(--fs-xl); font-weight: 600; text-align: center; }
.field-hint { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.notice { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); color: var(--ink-2); font-size: 13px; line-height: 1.55; }
.notice svg { width: 20px; height: 20px; margin-top: 1px; color: var(--mint-600); }
.notice strong { display: block; margin-bottom: 2px; color: var(--ink); }
.notice.is-info { border-color: rgba(120, 103, 217, 0.25); background: var(--violet-50); }
.notice.is-info svg { color: var(--violet-600); }
.notice.is-danger { border-color: rgba(201, 59, 48, 0.3); background: var(--danger-100); color: #7a251e; }
.notice.is-danger svg, .notice.is-danger strong { color: var(--danger); }
.notice.is-success { border-color: rgba(13, 143, 123, 0.3); background: var(--mint-50); color: var(--forest); }
.notice.is-success svg { color: var(--mint-600); }
.notice.is-warning { border-color: rgba(138, 90, 0, 0.3); background: var(--amber-100); color: var(--amber); }
.notice.is-warning svg { color: var(--amber); }
.status { min-height: 0; margin: 0; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); font-size: 13px; line-height: 1.5; word-break: break-word; }
.status.is-danger { border-color: rgba(201, 59, 48, 0.3); background: var(--danger-100); color: #7a251e; }
.status.is-success { border-color: rgba(13, 143, 123, 0.3); background: var(--mint-50); color: var(--forest); }
.status.is-busy { color: var(--muted); }

/* =====================================================================
   Support hub (/index.html)
   ===================================================================== */
.support-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(24px, 4vw, 56px) var(--section-y); }
.support-hero h1 { margin-bottom: var(--sp-4); }
.support-hero .lede { margin-bottom: var(--sp-5); }
.contact-banbo { position: absolute; left: -128px; bottom: -34px; width: 260px; filter: drop-shadow(0 18px 24px rgba(18, 62, 55, 0.3)); pointer-events: none; }
@media (max-width: 1100px) { .contact-banbo { display: none; } }
.contact-card { position: relative; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); background: var(--forest); color: #fff; box-shadow: var(--shadow-lg); background-image: radial-gradient(120% 100% at 100% 0%, rgba(24, 191, 165, 0.35), transparent 55%), radial-gradient(80% 80% at 0% 100%, rgba(120, 103, 217, 0.35), transparent 60%); }
.contact-card .eyebrow { color: #8ef0df; }
.contact-card .eyebrow::before { box-shadow: 0 0 0 4px rgba(142, 240, 223, 0.18); }
.contact-card h2 { color: #fff; font-size: var(--fs-2xl); }
.contact-card p { color: rgba(255, 255, 255, 0.74); font-size: var(--fs-sm); }
.contact-address { margin: var(--sp-5) 0; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.06); }
.contact-address span { display: block; margin-bottom: 4px; color: rgba(255, 255, 255, 0.6); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.contact-address a { color: #fff; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; text-decoration: none; word-break: break-all; }
.contact-address a:hover { color: #8ef0df; }
.contact-card .btn-light { color: var(--forest); background: #fff; width: 100%; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.4); }
.contact-response { margin-top: var(--sp-4) !important; font-size: var(--fs-xs) !important; }

.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.topic-card { display: flex; flex-direction: column; overflow: hidden; }
.topic-visual { aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(150deg, var(--mint-100), var(--violet-100)); }
.topic-visual img { width: 100%; height: 100%; padding: 8%; object-fit: contain; transition: transform var(--dur-slow) var(--ease); }
.topic-visual img.is-photo { padding: 0; object-fit: cover; }
.topic-card:hover .topic-visual img { transform: scale(1.04); }
.topic-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 20px 20px 22px; }
.topic-body h3 { margin: 0; font-size: var(--fs-md); }
.topic-body p { flex: 1; margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.topic-body .text-link { margin-top: 8px; font-size: var(--fs-sm); }

.prepare-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--r-xl); background: linear-gradient(160deg, var(--surface-1), var(--mint-50)); box-shadow: var(--shadow-sm); }
.prepare-panel h2 { font-size: var(--fs-2xl); }
.prepare-panel > div > p { color: var(--muted); }
.prepare-list { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.prepare-list li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-1); font-weight: 500; }
.prepare-list li::before { content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--forest); background: var(--mint-100); font-family: var(--font-display); font-size: 13px; font-weight: 700; }
.prepare-panel .notice { grid-column: 1 / -1; }

.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.resource-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.resource-card .card-icon { margin-bottom: 8px; }
.resource-card h3 { margin: 0; font-size: var(--fs-md); }
.resource-card p { flex: 1; margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.resource-card .text-link { font-size: var(--fs-sm); }

@media (max-width: 1024px) { .topic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .support-hero { grid-template-columns: 1fr; }
  .prepare-panel { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .topic-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Account deletion (/account-deletion/)
   ===================================================================== */
.deletion-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-block: clamp(24px, 4vw, 56px) var(--section-y); }
.deletion-intro h1 { font-size: var(--fs-3xl); }
.deletion-intro .lede { margin-bottom: var(--sp-5); }
.deletion-intro .illo { width: min(100%, 320px); margin-top: var(--sp-6); }
.deletion-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.deletion-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; color: var(--ink-2); font-size: var(--fs-sm); }
.deletion-steps li span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--forest); background: var(--mint-100); font-family: var(--font-display); font-size: 13px; font-weight: 700; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.deletion-steps li.is-active span { color: #fff; background: var(--forest); }
.deletion-steps li.is-done span { color: var(--mint-700); background: var(--mint-100); }
.deletion-panel { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.deletion-panel .step { display: grid; gap: var(--sp-5); }
.step-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.step-head h2 { margin: 0 0 4px; font-size: var(--fs-xl); }
.step-head p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.turnstile-slot { min-height: 70px; }
.deletion-footnote { margin-top: var(--sp-5); color: var(--muted); font-size: var(--fs-xs); }
.deletion-footnote a { color: var(--mint-700); }
.success-card { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; padding: 20px; border: 1px solid rgba(13, 143, 123, 0.3); border-radius: var(--r-lg); background: var(--mint-50); }
.success-card .card-icon { width: 56px; height: 56px; border-radius: 50%; color: #fff; background: var(--mint-600); }
.success-card .card-icon svg { width: 26px; height: 26px; }
.success-card h2 { margin: 0 0 4px; font-size: var(--fs-lg); }
.success-card p { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }
@media (max-width: 900px) {
  .deletion-layout { grid-template-columns: 1fr; }
  .deletion-intro .illo { display: none; }
}

/* =====================================================================
   Legal documents (/privacy-policy/, /terms-of-service/)
   ===================================================================== */
.legal-hero { padding-block: clamp(24px, 4vw, 56px) var(--sp-7); }
.legal-hero h1 { margin-bottom: var(--sp-4); font-size: var(--fs-3xl); }
.legal-hero .lede { margin-bottom: 0; }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: var(--section-y); }
.legal-toc { position: sticky; top: var(--header-offset); max-height: calc(100vh - var(--header-offset) - 24px); overflow: auto; padding: 18px; }
.legal-toc [data-toc-toggle] { display: none; width: 100%; margin-bottom: 10px; }
.legal-toc h2 { margin: 0 0 12px; font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--ink); }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal-toc a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); font-size: 13px; line-height: 1.4; text-decoration: none; transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.legal-toc a:hover { background: var(--surface-2); color: var(--forest); }
.legal-toc a.is-active { color: var(--forest); background: var(--mint-100); font-weight: 600; }
.legal-toc-links { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.legal-toc-links a { display: inline-flex; padding: 0; font-size: 13px; }
.legal-doc { min-width: 0; padding: clamp(24px, 3vw, 44px); }
.legal-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 24px; margin: 0 0 var(--sp-6); padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.legal-meta div { min-width: 0; }
.legal-meta dt { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.legal-meta dd { margin: 4px 0 0; color: var(--ink); font-size: var(--fs-sm); font-weight: 500; overflow-wrap: anywhere; }
.legal-doc h2 { margin: var(--sp-7) 0 var(--sp-4); padding-top: var(--sp-5); border-top: 1px solid var(--line); font-size: var(--fs-xl); }
.legal-doc h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-doc h2 .num, .legal-doc h3 .num { display: inline-block; min-width: 2.2em; color: var(--mint-600); font-variant-numeric: tabular-nums; }
.legal-doc h3 { margin: var(--sp-5) 0 var(--sp-3); font-size: var(--fs-md); }
.legal-doc p, .legal-doc li { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.7; }
.legal-doc p { margin-bottom: 12px; }
.legal-doc p strong { color: var(--ink); }
.legal-doc .legal-label { margin: var(--sp-4) 0 6px; color: var(--ink); font-weight: 650; }
.legal-doc ul { margin: 0 0 12px; padding-left: 22px; }
.legal-doc ul ul { margin: 6px 0 0; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc li::marker { color: var(--mint-600); }
.legal-doc a { color: var(--mint-700); }
.legal-doc .legal-contact { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface-2); font-weight: 600; text-decoration: none; }
.legal-doc .legal-contact svg { width: 16px; height: 16px; color: var(--mint-600); }
.legal-loading { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; max-height: none; }
  .legal-toc [data-toc-toggle] { display: inline-flex; }
  .legal-toc h2, .legal-toc ol { display: none; }
  .legal-toc.is-open ol { display: grid; }
}

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