/* MünzApp – shared styles. Palette = the app's brass/parchment tokens (CoinCollector ui/theme/Color.kt). */
:root {
  --brass: #ad6e2d;
  --brass-deep: #7d4a17;
  --gold: #c8902c;
  --tint: #f4e6d2;
  --ink: #231f1a;
  --muted: #6f665b;
  --line: #e6dfd3;
  --canvas: #f7f4ef;
  --surface: #ffffff;
  --green: #1f8a5b;
  --shadow: 0 1px 2px rgba(60, 40, 15, .06), 0 8px 28px rgba(60, 40, 15, .08);
  --radius: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brass: #d9a05e;
    --brass-deep: #f0c48c;
    --gold: #e0ad52;
    --tint: #3a2e20;
    --ink: #f1ebe2;
    --muted: #b3a998;
    --line: #3a342c;
    --canvas: #1a1714;
    --surface: #241f1a;
    --green: #4cc28d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--brass-deep); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 1.25rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand:hover { color: var(--ink); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; padding: 8px 10px; border-radius: 10px; }
.nav a:hover { color: var(--ink); background: var(--tint); }
.nav .lang { border: 1px solid var(--line); font-weight: 600; color: var(--ink); }
@media (max-width: 640px) { .nav .opt { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  border-radius: 14px; padding: 12px 20px; text-decoration: none; font-weight: 600;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-store { background: #111; color: #fff; padding: 10px 20px 10px 16px; min-height: 58px; }
.btn-store:hover { color: #fff; }
.btn-store svg { width: 26px; height: 26px; flex: none; }
.btn-store .lines { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn-store small { font-size: .72rem; font-weight: 500; opacity: .8; letter-spacing: .02em; text-transform: uppercase; }
.btn-store strong { font-size: 1.15rem; }
.btn-store[aria-disabled="true"] { cursor: default; }
.btn-store[aria-disabled="true"]:hover { transform: none; }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { color: var(--ink); }
.soon { display: inline-block; margin-left: 2px; font-size: .78rem; color: var(--muted); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; } .hero { padding: 88px 0 104px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--brass-deep); background: var(--tint); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 .accent { color: var(--brass); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.trust li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 6px; }

/* Phone mockup (illustration) */
.phone {
  justify-self: center; width: 300px; max-width: 86vw; aspect-ratio: 9 / 18.5;
  background: #15120f; border-radius: 44px; padding: 12px; box-shadow: 0 30px 60px rgba(60, 40, 15, .25), 0 0 0 1px rgba(255,255,255,.06) inset;
  transform: rotate(2deg);
}
.screen { height: 100%; border-radius: 34px; overflow: hidden; background: #f7f4ef; color: #231f1a; display: flex; flex-direction: column; font-size: 13px; }
.screen .bar { display: flex; justify-content: space-between; padding: 10px 22px 4px; font-size: 11px; font-weight: 600; }
.screen .title { padding: 8px 18px 4px; font-family: var(--serif); font-size: 20px; font-weight: 700; }
.screen .sub { padding: 0 18px 10px; color: #837a6e; font-size: 12px; }
.shots { display: flex; gap: 10px; padding: 4px 18px 12px; }
.coin { width: 64px; height: 64px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 3px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.15); }
.coin.gold { background: radial-gradient(circle at 35% 30%, #f6d58c, #c8902c 55%, #8d5d1c); }
.coin.silver { background: radial-gradient(circle at 35% 30%, #fbfbfb, #c4c4c4 55%, #7d7d7d); }
.coin.bi { background: radial-gradient(circle, #e5c26e 0 38%, #b9b9b9 40% 100%); }
.coin.copper { background: radial-gradient(circle at 35% 30%, #f0b38a, #b8693a 55%, #7a3d1c); }
.coin.sm { width: 40px; height: 40px; }
.cands { padding: 0 12px; display: flex; flex-direction: column; gap: 8px; }
.cand { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e6dfd3; border-radius: 14px; padding: 8px 10px; }
.cand b { display: block; font-size: 13px; }
.cand span { color: #837a6e; font-size: 11px; }
.cand .pct { margin-left: auto; font-weight: 700; color: #1f8a5b; font-size: 12px; }
.cand.top { border-color: #ad6e2d; box-shadow: 0 0 0 2px rgba(173,110,45,.15); }
.screen .navbar { margin-top: auto; display: flex; justify-content: space-around; align-items: center; padding: 10px 6px 16px; border-top: 1px solid #e6dfd3; background: #fff; }
.screen .navbar i { width: 18px; height: 18px; border-radius: 5px; background: #d9d1c4; display: block; }
.screen .navbar .scan { width: 44px; height: 44px; border-radius: 50%; background: #ad6e2d; margin-top: -26px; box-shadow: 0 4px 10px rgba(173,110,45,.4); }

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.alt .card { background: var(--canvas); box-shadow: none; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--brass-deep); margin-bottom: 14px; }
.card .ico svg { width: 24px; height: 24px; }
.card p { color: var(--muted); margin: 0; }

.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; position: relative; padding: 24px 24px 24px 76px; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(s); position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--brass); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); }

.privacy-band { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .privacy-band { grid-template-columns: 1fr 1fr; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Pricing */
.plans { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 860px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { display: flex; flex-direction: column; }
.plan.pro { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass), var(--shadow); }
.plan h3 { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.badge { font-family: var(--sans); font-size: .75rem; font-weight: 700; color: #fff; background: var(--brass); padding: 3px 9px; border-radius: 999px; }
.price { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; margin: 4px 0 4px; }
.price small { font-family: var(--sans); font-size: 1rem; color: var(--muted); font-weight: 500; }
.plan ul { padding: 0; margin: 16px 0 0; list-style: none; display: grid; gap: 8px; }
.plan li { padding-left: 26px; position: relative; color: var(--ink); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.options { display: grid; gap: 8px; margin-top: 16px; }
.opt-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); }
.opt-row b { font-family: var(--serif); font-size: 1.2rem; white-space: nowrap; }
.opt-row span { color: var(--muted); font-size: .92rem; }
.fine { color: var(--muted); font-size: .88rem; margin-top: 20px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; color: var(--brass); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); }

/* Final CTA */
.final { text-align: center; }
.final .wrap { display: flex; flex-direction: column; align-items: center; }
.final img { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 20px; box-shadow: var(--shadow); }

/* Legal pages */
.doc { padding: 48px 0 80px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.doc h2 { font-size: 1.35rem; margin-top: 2em; }
.doc .stand { color: var(--muted); font-style: italic; }
.doc .note { background: var(--tint); border-radius: 14px; padding: 16px 18px; margin: 1.5em 0; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .5em; }
.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; }
.doc dt { color: var(--muted); }
.doc dd { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 24px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .brand { font-size: 1.05rem; margin-bottom: 6px; }
.site-footer .brand img { width: 28px; height: 28px; border-radius: 7px; }
