/* The app's own palette and faces (lib/core/theme/app_colors.dart). */

@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/PlayfairDisplay.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/fonts/Jost.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono.ttf") format("truetype");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ink: #07070f;
  --ink-2: #0c0c18;
  --surface: #111120;
  --surface-2: #171726;
  --text: #ede8e0;
  --secondary: #a29db0;
  --muted: #7e7a98;
  --gold: #d4a853;
  --gold-light: #f0c878;
  --stroke: rgba(255, 255, 255, 0.07);
  --stroke-strong: rgba(255, 255, 255, 0.13);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { background: var(--ink); scroll-padding-top: 88px; }

body {
  margin: 0;
  color: var(--text);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(ellipse 70% 40% at 50% -8%, rgba(212, 168, 83, 0.13), transparent 70%),
    var(--ink);
  background-repeat: no-repeat;
  min-height: 100vh;
}

img { display: block; }

a { color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-light); }
a:focus-visible, summary:focus-visible, .button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }
strong { font-weight: 600; color: var(--text); }

.eyebrow {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
.center { text-align: center; }
.muted { color: var(--muted); }
.lede { font-size: 20px; line-height: 1.6; color: var(--secondary); }

/* ---- Top bar ---- */

.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(7, 7, 15, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--stroke);
}
.bar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 600 19px/1 var(--serif);
}
.brand img { border-radius: 9px; }
.bar nav { display: flex; gap: 6px; }
.bar nav a {
  color: var(--secondary);
  text-decoration: none;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.bar nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.bar nav a[aria-current="page"] { color: var(--gold); background: rgba(212, 168, 83, 0.1); }

main { max-width: 1080px; margin: 0 auto; padding: 0 20px 96px; }

/* ---- Home ---- */

.hero { text-align: center; padding: 88px 0 72px; max-width: 760px; margin: 0 auto; }
.hero-icon {
  width: 112px;
  height: 112px;
  margin: 0 auto 36px;
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(212, 168, 83, 0.18),
    0 18px 60px -12px rgba(212, 168, 83, 0.35),
    0 30px 80px -20px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.hero h1 { font-size: clamp(44px, 8vw, 76px); letter-spacing: -0.01em; margin-bottom: 24px; }
.hero .lede { max-width: 600px; margin: 0 auto 36px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 11px 20px;
  border: 1px solid rgba(212, 168, 83, 0.35);
  border-radius: 999px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 500;
  background: rgba(212, 168, 83, 0.06);
}

.band { padding: 72px 0; border-top: 1px solid var(--stroke); }
.band h2 { font-size: clamp(28px, 4vw, 38px); max-width: 640px; margin: 0 auto 48px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.steps li {
  position: relative;
  padding: 28px 24px 26px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(17, 17, 32, 0.4) 100%);
}
.step-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(212, 168, 83, 0.1);
  margin-bottom: 22px;
}
.step-icon svg, .facts svg, .card h2 svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step-num {
  position: absolute;
  top: 28px;
  right: 24px;
  font: 500 12px/1 var(--mono);
  color: var(--muted);
  letter-spacing: 0.1em;
}
.steps h3 { font-size: 21px; margin-bottom: 10px; }
.steps p { margin: 0; color: var(--secondary); font-size: 16px; line-height: 1.6; }

.private {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: start;
}
.private h2 { margin: 0 0 18px; text-align: left; }
.private-copy p:not(.eyebrow) { color: var(--secondary); margin: 0 0 28px; }
.link-arrow { font-weight: 500; text-decoration: none; }
.link-arrow span { display: inline-block; transition: transform 0.15s; }
.link-arrow:hover span { transform: translateX(3px); }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--surface);
}
.facts svg { flex: none; margin-top: 3px; }
.facts strong { display: block; font-size: 17px; margin-bottom: 4px; }
.facts span { color: var(--secondary); font-size: 16px; line-height: 1.6; }

.closing { text-align: center; padding: 72px 0 0; border-top: 1px solid var(--stroke); }
.closing h2 { font-size: clamp(26px, 3.5vw, 34px); margin-bottom: 12px; }
.closing p { color: var(--secondary); margin: 0; }

/* ---- Document pages ---- */

.page-head { padding: 64px 0 40px; max-width: 760px; }
.page-head h1 { font-size: clamp(38px, 6vw, 56px); margin-bottom: 16px; }
.page-head .meta, .page-head .meta p { color: var(--muted); margin: 0; font-size: 15px; }
.page-head .meta strong { color: var(--secondary); font-weight: 500; }
.page-head .lede { margin: 0; }

.doc {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.toc { position: sticky; top: 96px; }
.toc summary {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  list-style: none;
  cursor: default;
  margin-bottom: 16px;
}
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--stroke); }
.toc a {
  display: block;
  padding: 7px 0 7px 16px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  color: var(--secondary);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
}
.toc a:hover { color: var(--text); border-left-color: var(--gold); }

.prose { max-width: 680px; }
.prose section { padding: 8px 0 20px; }
.prose section + section { border-top: 1px solid var(--stroke); padding-top: 36px; margin-top: 16px; }
.prose h2 { font-size: 26px; margin-bottom: 16px; }
.prose p, .prose ul { margin: 0 0 16px; color: #d6d1ca; }
.prose ul { padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.prose .summary {
  border: 1px solid rgba(212, 168, 83, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(212, 168, 83, 0.08), rgba(212, 168, 83, 0.02));
  padding: 28px 30px 14px;
  margin-bottom: 20px;
}
.prose .summary h2 {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.prose .summary p { font-family: var(--serif); font-size: 22px; line-height: 1.5; color: var(--text); }
.prose .summary + section { border-top: 0; }

/* ---- Delete account ---- */

.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.section-title { font-size: 24px; margin: 8px 0 18px; }

.cards-steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cards-steps li {
  padding: 22px 22px 18px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--surface);
}
.cards-steps .n {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(212, 168, 83, 0.45);
  color: var(--gold);
  font: 500 14px/1 var(--mono);
  margin-bottom: 16px;
}
.cards-steps p { margin: 0; color: var(--secondary); font-size: 16px; line-height: 1.55; }

.card {
  padding: 26px 28px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--surface);
}
.card h2 { font-size: 21px; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.card p { margin: 0 0 12px; color: var(--secondary); font-size: 16px; line-height: 1.6; }
.card p:last-child { margin-bottom: 0; }

.email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 40px;
  border-color: rgba(212, 168, 83, 0.3);
  background: linear-gradient(180deg, rgba(212, 168, 83, 0.07), rgba(212, 168, 83, 0.02));
}
.email p { margin: 0; }

.button {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--gold);
  color: #16120a;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.button:hover { background: var(--gold-light); color: #16120a; transform: translateY(-1px); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 32px; align-items: start; }

.ticks { list-style: none; margin: 0 0 14px; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.6;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

/* ---- Footer ---- */

.foot { border-top: 1px solid var(--stroke); background: var(--ink-2); }
.foot-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 20px 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { border-radius: 8px; }
.foot-brand strong { display: block; font: 600 16px/1.2 var(--serif); }
.foot-brand span { color: var(--muted); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot nav a { color: var(--secondary); text-decoration: none; font-size: 15px; }
.foot nav a:hover { color: var(--text); }

/* ---- Smaller screens ---- */

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .private { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .toc { position: static; }
  .toc details {
    border: 1px solid var(--stroke);
    border-radius: 14px;
    background: var(--surface);
    padding: 16px 18px 6px;
    margin-bottom: 24px;
  }
  .toc summary { cursor: pointer; margin-bottom: 10px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .bar nav a { padding: 8px 9px; font-size: 14px; }
  .brand span { display: none; }
  .hero { padding: 56px 0 52px; }
  .hero-icon { width: 92px; height: 92px; border-radius: 22px; }
  .hero-icon img { width: 92px; height: 92px; }
  .lede { font-size: 18px; }
  .band { padding: 56px 0; }
  .band h2 { margin-bottom: 32px; }
  .steps, .cards-steps, .split { grid-template-columns: minmax(0, 1fr); }
  .email { flex-direction: column; align-items: stretch; }
  .page-head { padding: 44px 0 28px; }
  .prose .summary { padding: 22px 20px 8px; }
  .prose .summary p { font-size: 19px; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
