@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg-hero-top: #ffede4;
  --bg-hero-bottom: #ffd7c7;
  --bg-secondary: #fff8f5;
  --bg-soft: #fff3ec;
  --color-primary: #ff7a45;
  --accent-text: #a8481f;
  --content-primary: #1c1a22;
  --plum-500: #8c82a1;
  --plum-600: #675d77;
  --plum-700: #4a435a;
  --border-opaque: #ececec;
  --radius-sm: 10px;
  --radius-xl: 20px;
  --shadow-card: 0 8px 16px rgba(28, 26, 34, 0.1);
  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; min-height: 100%; }
body {
  font: 500 16px/1.5 var(--font);
  color: var(--content-primary);
  background: var(--bg-secondary);
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}
img { max-width: 100%; }
a {
  color: var(--content-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
a:hover { color: var(--accent-text); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--content-primary);
  outline-offset: 2px;
}
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; }
p { margin: 0; }
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10; padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--content-primary); color: #fff; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* Hero band with header (shared by every content page) */
.hero { position: relative; background: linear-gradient(180deg, var(--bg-hero-top), var(--bg-hero-bottom) 100%); }
.hero.home { background: linear-gradient(180deg, var(--bg-hero-top), var(--bg-hero-bottom) 70%, var(--bg-secondary)); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background: url("/assets/bg-clouds.jpg") center / cover no-repeat;
}
.hero > * { position: relative; }
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: 20px; font-weight: 700; letter-spacing: -0.03em; text-decoration: none;
}
.brand img { width: 48px; height: 48px; object-fit: contain; }
.lang { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--plum-700); }
.lang a, .lang span[aria-current] { display: inline-flex; align-items: center; min-height: 44px; min-width: 24px; }
.lang a { color: var(--plum-700); text-decoration: none; }
.lang a:hover { color: var(--accent-text); text-decoration: underline; }
.lang [aria-current] {
  color: var(--content-primary); text-decoration: underline; text-decoration-color: var(--color-primary);
  text-underline-offset: 4px; text-decoration-thickness: 2px;
}
.hero-body { padding: 32px 64px 48px; display: flex; flex-direction: column; gap: 10px; }
.hero-body h1 { font-size: 52px; line-height: 1; letter-spacing: -0.04em; }
.updated { font-size: 16px; color: var(--plum-700); }
.hero-grid { display: grid; gap: 40px; align-items: end; }
.hero-grid.legal { grid-template-columns: minmax(0, 1fr) 200px; }
.hero-grid img { width: 200px; height: 150px; object-fit: contain; }

/* Buttons, badges, pills */
.btn {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  border-radius: var(--radius-sm); background: var(--color-primary); color: var(--content-primary);
  font-size: 16px; font-weight: 600; text-decoration: none; text-align: center;
}
.btn:hover { color: var(--content-primary); filter: brightness(0.96); }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store {
  min-height: 52px; min-width: 180px; padding: 6px 16px; border-radius: var(--radius-sm); background: #f1eef4;
  border: 1px solid #e5e5ea; display: flex; flex-direction: column; justify-content: center; line-height: 1.2;
}
.store b { font-size: 15px; font-weight: 700; }
.store span { font-size: 13px; font-weight: 500; color: var(--plum-700); }
.stores.play-first { flex-direction: row-reverse; justify-content: flex-end; }

/* Home */
.home-hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center;
  padding: 48px 64px 88px;
}
.home-hero h1 { font-size: 68px; line-height: 1; letter-spacing: -0.04em; }
.home-hero .copy { display: flex; flex-direction: column; gap: 20px; }
.home-hero .sub { font-size: 21px; color: var(--plum-700); line-height: 1.45; max-width: 30ch; text-wrap: pretty; }
.home-hero .stores { margin-top: 12px; }
.home-hero .mascot { width: 100%; height: 400px; object-fit: contain; }
.section { padding: 88px 64px 0; }
.section > h2, .feat h2 { font-size: 40px; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step {
  background: #fff; border: 1px solid var(--border-opaque); border-radius: var(--radius-xl); box-shadow: var(--shadow-card);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.step img { width: 100%; height: 180px; object-fit: contain; }
.num {
  width: 32px; height: 32px; border-radius: 16px; background: var(--bg-soft); color: var(--accent-text);
  font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 22px; letter-spacing: -0.02em; }
.step p { color: var(--plum-700); line-height: 1.5; text-wrap: pretty; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.feat { display: flex; flex-direction: column; gap: 24px; padding: 8px 0; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; font-size: 18px; line-height: 1.4; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg, .summary svg { flex: none; stroke: var(--accent-text); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.checks svg { margin-top: 1px; width: 22px; height: 22px; }
.credits {
  background: var(--bg-soft); border-radius: var(--radius-xl); padding: 32px; display: grid;
  grid-template-columns: minmax(0, 1fr) 160px; gap: 20px; align-items: start;
}
.credits .copy { display: flex; flex-direction: column; gap: 14px; }
.credits h2 { font-size: 32px; }
.credits p { color: var(--plum-700); line-height: 1.5; }
.credits p.lead { color: var(--content-primary); font-size: 17px; font-weight: 600; }
.credits img { width: 160px; height: 180px; object-fit: contain; }
.promise {
  margin: 88px 64px 0; background: #fff; border: 1px solid var(--border-opaque); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card); padding: 40px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: center;
}
.promise img { width: 240px; height: 200px; object-fit: contain; }
.promise .copy { display: flex; flex-direction: column; gap: 14px; }
.promise h2 { font-size: 32px; }
.promise p { font-size: 17px; color: var(--plum-700); line-height: 1.5; }
.promise a { align-self: flex-start; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.cta {
  margin-top: 88px; background: linear-gradient(180deg, var(--bg-secondary), var(--bg-hero-bottom)); padding: 72px 64px;
  display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center;
}
.cta h2 { font-size: 44px; letter-spacing: -0.035em; }
.cta .stores { justify-content: center; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--border-opaque); padding: 36px 64px; display: flex; flex-direction: column; gap: 18px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 8px 24px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.legal-line { font-size: 13px; color: var(--plum-600); line-height: 1.6; }

/* Draft banner */
.draft {
  margin: 0; padding: 12px 64px; background: #fff3cd; color: #4a3b00; border-bottom: 1px solid #e8d48a;
  font-size: 15px; font-weight: 700; text-align: center;
}

/* Legal pages */
.legal-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; padding: 48px 64px 80px; background: #fff; }
.toc { align-self: start; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.toc .toc-title { font-size: 13px; font-weight: 700; color: var(--plum-600); padding-bottom: 8px; }
.toc a { padding: 8px 10px; border-radius: 8px; color: var(--plum-700); text-decoration: none; min-height: 24px; }
.toc a:hover { background: var(--bg-soft); color: var(--content-primary); }
article { max-width: 70ch; min-width: 0; display: flex; flex-direction: column; gap: 40px; font-size: 16px; font-weight: 400; line-height: 1.65; }
article section { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 24px; }
article h2 { font-size: 24px; letter-spacing: -0.02em; }
article h3 { font-size: 18px; letter-spacing: -0.01em; }
article ul, article ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.outline {
  border: 1.5px dashed #b9aeb0; border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; line-height: 1.5; color: var(--plum-700);
}
.outline b { color: var(--content-primary); }
.ph { background: #fff3cd; border-radius: 4px; padding: 0 4px; font-weight: 600; }
.summary {
  margin: 0; padding: 28px 32px; list-style: none; background: var(--bg-soft); border-radius: var(--radius-xl);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; font-size: 15px; line-height: 1.5;
}
.summary li { display: flex; flex-direction: column; gap: 10px; }
.summary svg { width: 22px; height: 22px; }
.summary-wrap { padding: 40px 64px 0; background: #fff; }
.changes { font-size: 15px; color: var(--plum-700); }

/* Tables: stacked under 600px */
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
caption { text-align: left; font-size: 14px; font-weight: 600; color: var(--plum-600); padding-bottom: 8px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border-opaque); }
thead th { background: var(--bg-soft); font-weight: 700; }
.wide { overflow-wrap: anywhere; }

/* Support */
.support-hero { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: center; padding: 24px 64px 56px; }
.support-hero .copy { display: flex; flex-direction: column; gap: 14px; }
.support-hero img { width: 200px; height: 150px; object-fit: contain; object-position: left; }
.support-hero h1 { font-size: 56px; line-height: 1; letter-spacing: -0.04em; }
.support-hero .lead { font-size: 19px; color: var(--plum-700); line-height: 1.45; }
.card {
  background: #fff; border: 1px solid var(--border-opaque); border-radius: var(--radius-xl); box-shadow: var(--shadow-card);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.card h2 { font-size: 24px; letter-spacing: -0.02em; }
.card .mail { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; user-select: all; overflow-wrap: anywhere; }
.card p { font-size: 15px; color: var(--plum-700); line-height: 1.5; }
.card .note { font-size: 13px; color: var(--plum-600); }
.faq { padding: 56px 64px 24px; max-width: 1008px; display: flex; flex-direction: column; gap: 20px; }
.faq h2 { font-size: 32px; }
.faq-list { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-opaque); border-radius: var(--radius-xl); overflow: hidden; }
details { border-bottom: 1px solid var(--border-opaque); scroll-margin-top: 16px; }
details:last-child { border-bottom: 0; }
details[open] { background: #fffbf9; }
summary {
  min-height: 56px; padding: 8px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 17px; font-weight: 600; cursor: pointer; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 20px; height: 20px; background: no-repeat center / 20px;
  background-image: url("/assets/chev.svg");
}
details[open] summary::after { transform: rotate(180deg); }
details > p { padding: 0 24px 20px; color: var(--plum-700); line-height: 1.6; max-width: 70ch; font-weight: 400; }
.notice { padding: 24px 64px 72px; max-width: 1008px; display: flex; flex-direction: column; gap: 12px; }
.notice h2 { font-size: 24px; }

/* Delete account */
.del-hero { padding: 12px 64px 40px; display: flex; flex-direction: column; gap: 10px; max-width: 880px; }
.del-hero h1 { font-size: 52px; line-height: 1.05; letter-spacing: -0.04em; }
.del-hero p { font-size: 19px; color: var(--plum-700); line-height: 1.45; }
.del-body { padding: 40px 64px 80px; background: #fff; }
.del-body article { max-width: 80ch; font-size: 16px; }
.stepsol { list-style: none; padding: 0 !important; display: flex; flex-direction: column; gap: 10px !important; }
.stepsol li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
.stepsol .num { width: 28px; height: 28px; border-radius: 14px; font-size: 14px; }
.small-note { font-size: 14px; color: var(--plum-700); }
.cta-link { align-self: flex-start; }

/* Link fallback and 404 */
body.fb {
  min-height: 100vh; display: flex; flex-direction: column; position: relative;
  background: linear-gradient(180deg, var(--bg-hero-top), var(--bg-hero-bottom) 55%, var(--bg-secondary)); background-attachment: fixed;
}
body.fb::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: 0.5;
  background: url("/assets/bg-clouds.jpg") center top / cover no-repeat;
}
.fb-page {
  position: relative; flex: 1; width: 100%; max-width: 420px; margin: 0 auto; padding: 24px 20px 0;
  display: flex; flex-direction: column; align-items: center;
}
.fb-page .brand { font-size: 18px; justify-content: center; }
.fb-page .brand img { width: 44px; height: 44px; }
.fb-mascot { width: 100%; height: 190px; object-fit: contain; margin: 8px 0; }
.fb-card {
  width: 100%; background: #fff; border: 1px solid var(--border-opaque); border-radius: var(--radius-xl); box-shadow: var(--shadow-card);
  padding: 22px; display: flex; flex-direction: column; gap: 12px;
}
.fb-card h1 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.fb-card p { font-size: 14px; line-height: 1.5; color: var(--plum-700); }
.fb-card p.small { font-size: 12px; color: var(--plum-600); }
.fb-card .stores { gap: 8px; flex-wrap: nowrap; }
.fb-card .store { flex: 1; min-width: 0; min-height: 44px; padding: 4px 10px; }
.fb-card .store b { font-size: 14px; }
.fb-card .store span { font-size: 12px; }
.code-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #e5e5ea; border-radius: var(--radius-sm);
  padding: 4px 4px 4px 14px;
}
.code-row code { font: 600 16px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.08em; user-select: all; }
.code-row button {
  font: inherit; font-size: 14px; font-weight: 600; min-height: 44px; padding: 0 14px; border: 0; border-radius: 8px;
  background: transparent; color: var(--plum-700); cursor: pointer;
}
.code-row button.done { background: #eaf8f2; color: #1f6b44; }
.fb-card.center { align-items: center; text-align: center; gap: 12px; padding: 24px; }
.fb-card.center h1 { font-size: 26px; }
.fb-card.center p { font-size: 15px; }
.fb-card.center .btn { align-self: stretch; }
.fb-card .text-link { font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.fb-foot { position: relative; padding: 20px; display: flex; justify-content: center; gap: 4px 18px; flex-wrap: wrap; font-size: 13px; font-weight: 600; }
.fb-foot a { color: var(--plum-600); display: inline-flex; align-items: center; min-height: 44px; }
.lang-line { text-align: center; }

/* Tablet and phone */
@media (max-width: 1000px) {
  .site-header, .hero-body, .home-hero, .support-hero, .del-hero, .del-body, .legal-wrap, .summary-wrap, .site-footer,
  .faq, .notice, .cta, .draft { padding-left: 32px; padding-right: 32px; }
  .section { padding-left: 32px; padding-right: 32px; }
  .promise { margin-left: 32px; margin-right: 32px; }
  .home-hero { grid-template-columns: minmax(0, 1fr); padding-bottom: 56px; }
  .home-hero h1 { font-size: 52px; }
  .home-hero .mascot { height: 260px; order: -1; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 18px; row-gap: 4px; align-items: center; padding: 18px; }
  .step img { grid-row: span 3; width: 120px; height: 120px; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .legal-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { position: static; }
  .summary { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .summary li { flex-direction: row; gap: 12px; }
  .support-hero { grid-template-columns: minmax(0, 1fr); }
  .support-hero h1, .hero-body h1, .del-hero h1 { font-size: 40px; }
  .hero-grid.legal { grid-template-columns: minmax(0, 1fr); }
  .hero-grid.legal img { display: none; }
}
@media (max-width: 600px) {
  .site-header, .hero-body, .home-hero, .support-hero, .del-hero, .del-body, .legal-wrap, .summary-wrap, .site-footer,
  .faq, .notice, .cta, .draft { padding-left: 20px; padding-right: 20px; }
  .section { padding: 40px 20px 0; }
  .promise { margin: 40px 20px 0; padding: 22px; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .promise img { width: 100%; height: 130px; }
  .site-header { padding-top: 16px; padding-bottom: 16px; }
  .brand { font-size: 18px; }
  .brand img { width: 44px; height: 44px; }
  .home-hero { padding-top: 4px; padding-bottom: 40px; }
  .home-hero h1 { font-size: 40px; line-height: 1.02; }
  .home-hero .sub { font-size: 17px; }
  .home-hero .mascot { height: 230px; }
  .stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .store { min-width: 0; padding: 6px 14px; }
  .section > h2, .feat h2 { font-size: 28px; }
  .steps { margin-top: 20px; gap: 14px; }
  .step { grid-template-columns: 88px minmax(0, 1fr); padding: 18px; border-radius: 20px; box-shadow: none; }
  .step img { width: 88px; height: 88px; }
  .step h3 { font-size: 17px; }
  .step p { font-size: 14px; }
  .checks { font-size: 16px; gap: 12px; }
  .credits { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .credits img { order: -1; width: 100%; height: 130px; }
  .credits h2, .promise h2 { font-size: 26px; }
  .credits p, .promise p { font-size: 15px; }
  .cta { margin-top: 40px; padding: 48px 20px; }
  .cta h2 { font-size: 30px; }
  .hero-body { padding-top: 12px; padding-bottom: 32px; }
  .hero-body h1, .support-hero h1, .del-hero h1 { font-size: 34px; line-height: 1.05; }
  .support-hero { padding-top: 12px; padding-bottom: 32px; gap: 24px; }
  .support-hero img { width: 140px; height: 105px; }
  .support-hero .lead, .del-hero p { font-size: 16px; }
  .faq { padding-top: 40px; }
  .faq h2 { font-size: 26px; }
  summary { padding: 8px 16px; font-size: 16px; }
  details > p { padding: 0 16px 16px; }
  .site-footer { padding-top: 24px; padding-bottom: 24px; }
  .legal-wrap, .del-body { padding-top: 28px; padding-bottom: 48px; }
  article { gap: 32px; font-size: 15px; }
  article h2 { font-size: 22px; }
  table, thead, tbody, tr, th, td, caption { display: block; }
  thead { position: absolute; left: -9999px; }
  tr { border: 1px solid var(--border-opaque); border-radius: var(--radius-sm); margin-bottom: 12px; padding: 4px 0; }
  td, th { border: 0; padding: 6px 12px; }
  td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--plum-600); }
}

/* Print: legal pages as black text on white */
@media print {
  body, .legal-wrap, .del-body { background: #fff; color: #000; }
  .hero::before { display: none; }
  .hero, .hero.home { background: #fff; }
  .site-header, .toc, .site-footer nav, .lang, .skip, .cta, .stores { display: none; }
  .hero-grid img { display: none; }
  .legal-wrap { display: block; padding: 0 0 24px; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after, a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 12px; }
  .draft { border: 1px solid #000; background: #fff; color: #000; }
  details > p { display: block; }
}

.fb-card p:empty { display: none; }
