/* NOTICE website — palette mirrors lib/core/theme/app_colors.dart. */
:root {
  --bg: #fbf5ee;
  --surface: #f6e7d9;
  --surface-2: #efe2d3;
  --text: #2a2521;
  --muted: #6f665c;
  --line: #e6d6c6;
  --accent: #c5714f;
  --accent-strong: #a95a3b;
  --danger: #b8452a;
  --on-accent: #fff;
  --ok: #4f7a52;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --max: 46rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1a17;
    --surface: #2b2521;
    --surface-2: #2f2823;
    --text: #f3ece4;
    --muted: #a99d94;
    --line: #3a322c;
    --accent: #d98462;
    --accent-strong: #e8987a;
    --danger: #ef8a6c;
    --on-accent: #1e1a17;
    --ok: #8fbf92;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent-strong); text-underline-offset: 2px; }
a:hover { color: var(--accent); }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--text); color: var(--bg); padding: .5rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: .85rem; padding-bottom: .85rem; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--text); text-decoration: none;
  font: 600 1.05rem/1 var(--serif); letter-spacing: .08em;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.site-nav { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .92rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

main { flex: 1; padding: 2.5rem 0 3.5rem; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); margin: 0 0 .5rem; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; margin: 2.4rem 0 .6rem; }
h3 { font-size: 1.08rem; margin: 1.6rem 0 .4rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }
li { margin: .2rem 0; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 38rem; }
.meta { color: var(--muted); font-size: .92rem; margin-bottom: 2rem; }
.meta strong { color: var(--text); font-weight: 600; }

/* Legal documents */
.doc h2 { scroll-margin-top: 1rem; }
.doc .toc {
  background: var(--surface); border-radius: var(--radius);
  padding: 1rem 1.25rem; margin: 0 0 2rem; font-size: .95rem;
}
.doc .toc p { margin: 0 0 .35rem; font-weight: 600; }
.doc .toc ol { margin: 0; columns: 2 14rem; column-gap: 2rem; }

/* Cards & buttons */
.card {
  background: var(--surface); border-radius: var(--radius);
  padding: 1.25rem 1.35rem; margin: 0 0 1rem;
}
.card h2, .card h3 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.link-card {
  display: block; text-decoration: none; color: var(--text);
  background: var(--surface); border-radius: var(--radius); padding: 1.1rem 1.2rem;
  border: 1px solid transparent; transition: border-color .15s, transform .15s;
}
.link-card:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.link-card strong { display: block; font-family: var(--serif); font-size: 1.05rem; margin-bottom: .2rem; }
.link-card span { color: var(--muted); font-size: .9rem; line-height: 1.45; display: block; }
.link-card.danger strong { color: var(--danger); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 .98rem/1 var(--sans); padding: .85rem 1.25rem; min-height: 46px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; background: var(--accent); color: var(--on-accent);
}
.btn:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--accent); color: var(--text); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger:hover { filter: brightness(.92); background: var(--danger); }
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }

/* Hero */
.hero { display: grid; gap: 1.75rem; align-items: center; grid-template-columns: 1fr; margin-bottom: 2.5rem; }
.hero img { width: 96px; height: 96px; border-radius: 22px; }
@media (min-width: 640px) {
  .hero { grid-template-columns: auto 1fr; }
  .hero img { width: 128px; height: 128px; border-radius: 28px; }
}
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--muted); margin-bottom: .5rem; }

.stores { margin-top: 1.4rem; }
.stores .soon { color: var(--muted); font-size: .95rem; margin: 0; }
.store-btn { background: var(--text); color: var(--bg); }
.store-btn:hover { background: var(--text); color: var(--bg); opacity: .88; }
.store-btn svg { width: 20px; height: 20px; fill: currentColor; }

/* Forms */
label { display: block; font-weight: 600; font-size: .93rem; margin: 0 0 .3rem; }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: .7rem .85rem; min-height: 46px;
}
input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field { margin-bottom: 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; margin: 0 0 1rem; }
.check input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--danger); flex: none; }
.hint { color: var(--muted); font-size: .88rem; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

.status { border-radius: 10px; padding: .75rem 1rem; margin: 0 0 1rem; font-size: .95rem; }
.status:empty { display: none; }
.status.error { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--text); border-left: 3px solid var(--danger); }
.status.info { background: var(--surface-2); border-left: 3px solid var(--accent); }
.status.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); border-left: 3px solid var(--ok); }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 2.2rem; margin: .55rem 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: .1rem;
  width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--surface-2);
  font-size: .8rem; font-weight: 700; display: grid; place-items: center;
}

.two-col { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.site-footer .wrap { padding-top: 1.5rem; padding-bottom: 2rem; display: grid; gap: .75rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; }

[hidden] { display: none !important; }
