/* Scratch that — marketing + legal site
   One design language with the app: off-white, warm near-black, the
   silver foil, one serif line. Premium-wellness restraint, never joke-y. */

:root {
  --bg: #FAF7F2;
  --ink: #1C1B18;
  --muted: rgba(28, 27, 24, 0.56);
  --hairline: rgba(28, 27, 24, 0.12);
  --card-radius: 18px;
  --serif: "New York", ui-serif, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --maxw: 640px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1B18;
    --ink: #FAF7F2;
    --muted: rgba(250, 247, 242, 0.56);
    --hairline: rgba(250, 247, 242, 0.14);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Wordmark — SF Pro semibold, capital S, no trailing period */
.wordmark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

/* Top bar */
header.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
header.bar nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  margin-left: 20px;
}
header.bar nav a:hover { color: var(--ink); }

/* The one serif line */
.serif {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Hero */
.hero {
  text-align: center;
  padding: 40px 0 8px;
}
.hero .lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 7vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 auto 22px;
  max-width: 12em;
}
.hero .sub {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 34px;
}

/* Silver foil card — scratchable, like the app. The line sits underneath;
   the canvas is the foil on top. The silver CSS background is the
   guaranteed base, so with no JS the card still reads as intact foil. */
.card {
  position: relative;
  width: min(420px, 82vw);
  aspect-ratio: 3 / 2;
  margin: 0 auto 30px;
  border-radius: var(--card-radius);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #D1CFC8 0%, #A8A69E 50%, #D1CFC8 100%);
  box-shadow: 0 18px 50px -24px rgba(0,0,0,0.35);
}
/* The message under the foil */
.card .reveal {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px;
  background: var(--bg);
  opacity: 0;
}
.card .reveal span {
  font-family: var(--serif);
  font-size: clamp(20px, 5vw, 27px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--ink);
}
/* The foil */
.card canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: crosshair;
}
/* Moving highlight — signals "this is scratchable" */
.card .shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 34%, rgba(255,255,255,0.38) 50%, transparent 64%);
  background-size: 250% 100%;
  animation: shine 3.4s ease-in-out infinite;
  transition: opacity 0.5s ease;
}
@keyframes shine {
  0% { background-position: 130% 0; }
  55%, 100% { background-position: -50% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .card .shine { display: none; }
}

/* Buttons */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 999px;
  transition: opacity 0.2s ease;
}
.cta:hover { opacity: 0.88; }
.cta.soon { opacity: 1; }
.note {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

/* Section rhythm */
section.block {
  padding: 46px 0;
  border-top: 1px solid var(--hairline);
}
section.block:first-of-type { border-top: none; }
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.block h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 5vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.block p { color: var(--ink); margin-bottom: 14px; }
.block p.muted { color: var(--muted); }

/* Three beats */
.beats { display: grid; gap: 26px; }
.beat .n {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 4px;
}
.beat h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.beat p { color: var(--muted); margin: 0; }

/* Privacy pull-quote */
.pull {
  font-family: var(--serif);
  font-size: clamp(22px, 5vw, 28px);
  line-height: 1.28;
  letter-spacing: -0.01em;
}
.pull a { color: var(--muted); }

/* Footer */
footer {
  border-top: 1px solid var(--hairline);
  padding: 34px 0 60px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
footer a { color: var(--muted); text-decoration: none; margin: 0 10px; }
footer a:hover { color: var(--ink); }
footer .fm { margin-bottom: 12px; }

/* Legal / support long-form */
.doc { padding: 20px 0 40px; }
.doc h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 7vw, 40px);
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.doc h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 30px 0 8px;
}
.doc p { margin-bottom: 14px; }
.doc ul { margin: 0 0 14px 20px; }
.doc li { margin-bottom: 7px; }
.doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.doc .lead {
  font-family: var(--serif);
  font-size: clamp(20px, 4.6vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}

.backlink {
  display: inline-block;
  margin: 30px 0 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.backlink:hover { color: var(--ink); }

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