/* Stampora website. Same palette as the apps: warm paper, charcoal ink, indigo accent, stamp red. */
@font-face {
  font-family: "Black Ops One";
  src: url("fonts/BlackOpsOne-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #faf8f4;
  --surface: #ffffff;
  --surface-2: #f5f2ec;
  --ink: #1f2328;
  --muted: #55524c;
  --accent: #3730a3;
  --accent-ink: #ffffff;
  --accent-soft: #e4e2fb;
  --accent-deep: #1c1770;
  --stamp: #b4232c;
  --stamp-green: #2e7d32;
  --border: #e2ddd4;
  --glow-1: rgba(91, 84, 232, 0.26);
  --glow-2: rgba(224, 70, 79, 0.16);
  --glow-3: rgba(242, 179, 90, 0.26);
  --shadow: 0 1px 2px rgba(31, 35, 40, 0.06), 0 12px 32px rgba(31, 35, 40, 0.1);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161512;
    --surface: #1e1d19;
    --surface-2: #23211d;
    --ink: #e9e5dd;
    --muted: #ccc6bc;
    --accent: #c3c0ff;
    --accent-ink: #231d8c;
    --accent-soft: #3a34a5;
    --accent-deep: #0f0c3f;
    --stamp: #ff9d96;
    --stamp-green: #7fd6a1;
    --border: #3f3c37;
    --glow-1: rgba(75, 68, 214, 0.42);
    --glow-2: rgba(180, 35, 44, 0.26);
    --glow-3: rgba(168, 107, 28, 0.2);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 36px rgba(0, 0, 0, 0.5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  position: relative;
}
/* The same soft fields of colour the app puts behind its glass. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 38rem at 6% -6%, var(--glow-1), transparent 70%),
    radial-gradient(44rem 30rem at 104% 22%, var(--glow-2), transparent 70%),
    radial-gradient(48rem 32rem at 8% 80%, var(--glow-3), transparent 70%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); color: var(--ink); }

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

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); background: color-mix(in srgb, var(--paper) 72%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.nav { display: flex; align-items: center; gap: 1.25rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav ul { list-style: none; display: flex; gap: 0.25rem; margin: 0 0 0 auto; padding: 0; }
.nav ul a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.85rem; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav ul a:hover { background: var(--surface-2); color: var(--ink); }
.nav ul a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 52px; padding: 0 1.4rem; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 38%, transparent); }
.btn-ghost { background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--ink); border-color: var(--border); }
.btn small { display: block; font-size: 0.7rem; font-weight: 500; opacity: 0.85; line-height: 1.1; }
.btn .two { text-align: left; line-height: 1.15; }
.store-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
h1 { font-size: clamp(2.35rem, 6vw, 4.1rem); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 1.25rem; font-weight: 800; text-wrap: balance; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 34rem; margin: 0 0 2rem; text-wrap: pretty; }

/* "Done." as a rubber-stamp impression. */
.impression {
  display: inline-block; font-family: "Black Ops One", "Impact", system-ui, sans-serif; font-weight: 400; letter-spacing: 0.04em;
  color: var(--stamp); border: 0.07em solid currentColor; border-radius: 0.14em; padding: 0.02em 0.22em 0; margin-left: 0.1em;
  transform: rotate(-4deg); filter: url(#rough); opacity: 0.94; mix-blend-mode: multiply; white-space: nowrap;
}
@media (prefers-color-scheme: dark) { .impression { mix-blend-mode: normal; } }
@keyframes thud { 0% { transform: rotate(-4deg) scale(1.5); opacity: 0; } 60% { transform: rotate(-4deg) scale(0.96); opacity: 1; } 100% { transform: rotate(-4deg) scale(1); opacity: 0.94; } }
.impression { animation: thud .5s cubic-bezier(.2,.9,.25,1) .35s both; }

.trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin: 1.6rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.95rem; }
.trust li { display: inline-flex; align-items: center; gap: 0.45rem; }
.trust svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 480px; }
.phone { position: relative; width: min(280px, 62vw); aspect-ratio: 1320 / 2868; border-radius: 38px; padding: 9px; background: #14151a; box-shadow: var(--shadow), 0 40px 80px rgba(31,35,40,0.22); }
.phone::after { content: ""; position: absolute; inset: 0; border-radius: 38px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.14); pointer-events: none; }
.phone img { width: 100%; height: 100%; border-radius: 30px; object-fit: cover; object-position: top; background: #fff; }
.hero-visual .phone.main { z-index: 2; transform: translateX(14%) rotate(3deg); }
.hero-visual .phone.back { position: absolute; z-index: 1; width: min(240px, 52vw); transform: translateX(-62%) translateY(7%) rotate(-5deg); opacity: 0.96; }
@media (max-width: 560px) { .hero-visual .phone.back { display: none; } .hero-visual .phone.main { transform: rotate(2deg); } .hero-visual { min-height: 0; } }

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.1; letter-spacing: -0.028em; margin: 0 0 1rem; font-weight: 750; text-wrap: balance; }
h3 { font-size: 1.2rem; line-height: 1.25; margin: 0 0 0.4rem; letter-spacing: -0.01em; }
.section-lede { color: var(--muted); max-width: 40rem; margin: 0 0 2.5rem; font-size: 1.12rem; text-wrap: pretty; }

.steps { display: grid; gap: 1.25rem; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: 1rem; box-shadow: var(--shadow); }
.step .phone { width: min(210px, 70%); margin-inline: auto; border-radius: 30px; padding: 7px; }
.step .phone, .step .phone::after { border-radius: 30px; }
.step .phone img { border-radius: 24px; }
.step p { margin: 0; color: var(--muted); }
.step h3::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; margin-right: 0.55rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 0.9em; font-weight: 700; vertical-align: 0.05em; }
@media (prefers-color-scheme: dark) { .step h3::before { color: #e4e2ff; } }

.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } }
.split .phone { margin-inline: auto; }
.checks { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 0.7rem; align-items: start; }
.checks svg { width: 22px; height: 22px; color: var(--accent); margin-top: 0.15rem; }
.checks b { font-weight: 650; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.chips li { padding: 0.4rem 0.85rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 0.92rem; color: var(--muted); }

.private { background: var(--accent-deep); color: #f3f2ff; border-radius: clamp(24px, 4vw, 40px); padding: clamp(2rem, 5vw, 4rem); margin-inline: auto; position: relative; overflow: hidden; }
.private::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 34rem; height: 34rem; background: radial-gradient(closest-side, rgba(120,112,255,0.5), transparent); pointer-events: none; }
.private h2 { color: #fff; }
.private .section-lede { color: #d8d6ff; }
.facts { display: grid; gap: 1rem; grid-template-columns: 1fr; position: relative; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { border-top: 1px solid rgba(255,255,255,0.22); padding-top: 1rem; }
.fact h3 { color: #fff; }
.fact p { margin: 0; color: #d8d6ff; font-size: 0.98rem; }
.private a { color: #fff; }

.gallery { display: flex; gap: 1.25rem; overflow-x: auto; padding: 0.5rem 0.25rem 1.5rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.gallery figure { margin: 0; flex: none; scroll-snap-align: center; text-align: center; }
.gallery .phone { width: 220px; border-radius: 32px; padding: 7px; }
.gallery .phone, .gallery .phone::after { border-radius: 32px; }
.gallery .phone img { border-radius: 25px; }
.gallery figcaption { margin-top: 0.9rem; font-size: 0.95rem; color: var(--muted); }

.faq { display: grid; gap: 0.75rem; max-width: 52rem; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 1.2rem; }
summary { cursor: pointer; font-weight: 650; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent); transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 1.1rem; color: var(--muted); }

.cta { text-align: center; }
.cta .store-row { justify-content: center; }
.cta img { margin: 0 auto 1.5rem; width: min(360px, 80%); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0 3rem; color: var(--muted); font-size: 0.95rem; }
.foot { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .foot { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; padding: 0; margin: 0; }
.foot a { color: var(--muted); display: inline-flex; min-height: 44px; align-items: center; }
.foot a:hover { color: var(--ink); }
.fine { font-size: 0.85rem; max-width: 46rem; }

/* ---------- Document pages (privacy, support) ---------- */
.doc { padding: clamp(2rem, 6vw, 4rem) 0 4rem; }
.doc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 3rem); box-shadow: var(--shadow); }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.4rem; }
.doc .meta { color: var(--muted); margin: 0 0 2rem; }
.doc h2 { font-size: 1.45rem; margin: 2.4rem 0 0.7rem; letter-spacing: -0.015em; }
.doc h3 { font-size: 1.08rem; margin: 1.5rem 0 0.4rem; }
.doc p, .doc li { max-width: 72ch; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin: 0.35rem 0; }
.summary { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; margin: 0 0 1rem; color: var(--ink); }
.summary strong { color: var(--accent); }
@media (prefers-color-scheme: dark) { .summary strong { color: #e4e2ff; } .summary { color: #eceaff; } }
table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.98rem; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.85rem; text-transform: none; white-space: nowrap; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 6px; }
/* Placeholders that must be replaced before publishing. */
.todo { background: #fff3b0; color: #3b3000; padding: 0 0.3em; border-radius: 4px; outline: 1px dashed #b89b00; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
