/* Anchored — landing page. Self-hosted fonts, no third-party anything. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/BricolageGrotesque.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/HankenGrotesk.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #F1ECE0;
  --surface: #FBF8F0;
  --ink: #18191C;
  --spark: #FF6A3D;
  --spark-shadow: #D24A1F;
  --spark-ink: #2A0E04;
  --paper-shelf: #E2D9C6;
  --text-2: #56524A;
  --text-3: #6F6A60;
  --hairline: #E7DFCD;
  --watch: #0C0D10;
  --watch-surface: #1A1C21;
  --faint: #A8A296;
  --marine: #2F6CA8;
  --teal: #2E8B86;
  --olive: #6E8B3D;
  --amber: #DD9B2A;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --ui: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;

  --r-tile: 14px;
  --r-button: 16px;
  --r-card: 18px;
  --r-panel: 24px;

  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --settle: cubic-bezier(.3, 1.3, .45, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ── Mark (the anchor, recolored with a mask) ─────────────────────────── */
.mark {
  display: inline-block;
  width: 32px; height: 32px;
  background: currentColor;
  -webkit-mask: url("assets/anchor.svg") center / contain no-repeat;
          mask: url("assets/anchor.svg") center / contain no-repeat;
}
.glyph {
  display: inline-block;
  width: 22px; height: 22px;
  background: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat;
          mask: var(--src) center / contain no-repeat;
}

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav { display: flex; align-items: center; gap: 12px; padding: 22px 0; }
.nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav .brand span { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.3px; }
.nav .links { margin-left: auto; display: flex; gap: 22px; font-size: 15px; }
.nav .links a { text-decoration: none; color: var(--text-2); }
.nav .links a:hover { color: var(--ink); }

/* ── Ledge buttons (same idea as the app's DepthButton) ───────────────── */
.ledge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border: 0; border-radius: var(--r-button);
  font: 700 16px/1 var(--ui);
  color: var(--spark-ink); background: var(--spark);
  box-shadow: 0 4px 0 var(--spark-shadow);
  text-decoration: none; cursor: pointer;
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.ledge:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--spark-shadow); }
.ledge.quiet { color: var(--ink); background: var(--surface); box-shadow: 0 4px 0 var(--paper-shelf); }
.ledge.quiet:active { box-shadow: 0 1px 0 var(--paper-shelf); }
.ledge[aria-disabled="true"] { cursor: default; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 40px 0 72px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 99px;
  background: var(--surface); border: 1.5px solid var(--hairline);
  font-size: 14px; font-weight: 600; color: var(--text-2);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--olive); }
h1, h2, h3 { font-family: var(--display); margin: 0; }
h1 { font-size: clamp(44px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -1.6px; margin: 18px 0 18px; }
h1 em { font-style: normal; color: var(--spark-shadow); } /* 3.76:1 on paper, passes for large text */
.lede { font-size: 20px; color: var(--text-2); max-width: 30ch; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.small { font-size: 14px; color: var(--text-3); }
.trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; font-size: 14px; color: var(--text-2); }
.trust b { color: var(--ink); }

/* ── The live Watch demo ──────────────────────────────────────────────── */
.watch-stage { display: grid; place-items: center; }
.watch {
  position: relative;
  width: 280px; aspect-ratio: 41 / 50;
  border-radius: 64px;
  background: var(--watch);
  box-shadow: 0 0 0 10px #22242a, 0 0 0 11px #3a3c43, 0 30px 60px rgba(24,25,28,.28);
  padding: 26px 22px 22px;
  color: var(--surface);
}
.watch .crown {
  position: absolute; right: -19px; top: 30%;
  width: 10px; height: 46px; border-radius: 6px; background: #3a3c43;
}
.w-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); font-weight: 600; }
.w-bar { display: flex; gap: 4px; margin-top: 8px; height: 5px; }
.w-bar i { flex: 1; border-radius: 3px; background: rgba(251,248,240,.15); overflow: hidden; position: relative; }
.w-bar i.done { background: var(--c, var(--marine)); }
.w-bar i.now::after {
  content: ""; position: absolute; inset: 0; background: var(--c, var(--marine));
  transform-origin: left; transform: scaleX(var(--p, 0));
}
.w-anim { position: relative; height: 104px; display: grid; place-items: center; margin-top: 10px; }
.w-core {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--c, var(--marine));
  display: grid; place-items: center; color: var(--surface);
}
.w-ring {
  position: absolute; width: 58px; height: 58px; border-radius: 50%;
  border: 2px solid var(--c, var(--marine));
}
/* The pulse runs only with the script, so the Pause button can stop it. */
.js .w-core { animation: core 1.5s ease-in-out infinite alternate; }
.js .w-ring { animation: ring 1.5s ease-out infinite; }
.js .w-ring.two { animation-delay: .75s; }
.watch.paused .w-core, .watch.paused .w-ring { animation-play-state: paused; }
.w-name { text-align: center; font: 700 19px/1.2 var(--display); margin-top: 4px; min-height: 23px; }
.w-time { text-align: center; font: 700 44px/1 var(--display); font-variant-numeric: tabular-nums; margin-top: 4px; }
.w-next { text-align: center; font-size: 12px; font-weight: 600; color: var(--faint); margin-top: 8px; min-height: 18px; }
.w-done {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px;
  border-radius: 64px; /* same as .watch, which no longer clips */
  background: var(--watch); opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.w-done.show { opacity: 1; }
.w-done .disc {
  width: 64px; height: 64px; border-radius: 50%; background: var(--c, var(--olive));
  display: grid; place-items: center; color: var(--surface);
  transform: translateY(-18px) scale(.8); opacity: 0;
}
.w-done.show .disc { animation: drop .6s var(--spring) forwards; }
.w-done .ripple {
  position: absolute; width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid var(--c, var(--olive)); opacity: 0; top: calc(50% - 50px);
}
.w-done.show .ripple { animation: ripple 1s ease-out .25s forwards; }
.w-done strong { font: 700 22px/1 var(--display); opacity: 0; transform: translateY(8px); }
.w-done.show strong { animation: rise .5s var(--settle) .35s forwards; }
.w-done span { font-size: 12px; color: var(--faint); opacity: 0; }
.w-done.show span { animation: rise .5s var(--settle) .5s forwards; }
.tap {
  position: absolute; inset: -14px; border-radius: 76px; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(255,106,61,.55);
}
.tap.go { animation: tap .7s ease-out; }
.demo-caption { display: none; margin-top: 26px; text-align: center; font-size: 14px; color: var(--text-3); }
.js .demo-caption { display: block; } /* it describes the moving demo, so only with the script */
.demo-toggle {
  display: none; /* shown only when the script runs */
  align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px;
  border: 1.5px solid var(--hairline); border-radius: 99px;
  background: var(--surface); color: var(--text-2);
  font: 600 14px/1 var(--ui); cursor: pointer;
}
.js .demo-toggle { display: inline-flex; }
.demo-toggle:hover { color: var(--ink); }
.demo-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@keyframes core { from { transform: scale(.72); opacity: .6; } to { transform: scale(1); opacity: 1; } }
@keyframes ring { from { transform: scale(.6); opacity: .6; } to { transform: scale(1.9); opacity: 0; } }
@keyframes drop { to { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes ripple { from { transform: scale(.8); opacity: .5; } to { transform: scale(1.9); opacity: 0; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes tap { from { box-shadow: 0 0 0 0 rgba(255,106,61,.55); } to { box-shadow: 0 0 0 26px rgba(255,106,61,0); } }

/* ── Sections ─────────────────────────────────────────────────────────── */
section { padding: 72px 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--text-3); }
h2 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -1px; margin: 10px 0 14px; }
.section-lede { color: var(--text-2); font-size: 19px; max-width: 46ch; margin: 0 0 36px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.card {
  background: var(--surface); border: 1.5px solid var(--hairline);
  border-radius: var(--r-card); padding: 24px;
}
.steps .card::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--surface); font: 700 16px/1 var(--display); margin-bottom: 16px;
}
.card h3 { font-size: 22px; letter-spacing: -.3px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--text-2); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
/* A lone card on the last row spans it, so the grid never ends on one small card. */
.features > .card:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
.feature .tile {
  width: 44px; height: 44px; border-radius: var(--r-tile);
  display: grid; place-items: center; margin-bottom: 14px;
  background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c);
}

.band { background: var(--surface); border-block: 1.5px solid var(--hairline); }
.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.privacy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.privacy li { display: flex; gap: 10px; align-items: baseline; }
.privacy li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--olive); transform: translateY(-2px); }
.privacy .empty { display: grid; place-items: center; text-align: center; min-height: 220px; background: var(--paper); }
.privacy .empty strong { font: 700 44px/1 var(--display); letter-spacing: -1px; }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.price-card h3 { font-size: 26px; }
.price-card .big { font: 700 40px/1 var(--display); margin: 10px 0 16px; letter-spacing: -1px; }
.price-card ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.price-card.pro { border-color: var(--ink); }

.faq details { border-bottom: 1.5px solid var(--hairline); padding: 18px 0; }
.faq summary { cursor: pointer; font: 700 20px/1.3 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--text-3); transition: transform .3s var(--spring); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--text-2); margin: 10px 0 0; max-width: 62ch; }

.final { text-align: center; }
.final .mark { width: 56px; height: 56px; color: var(--spark); }
.final h2 { margin-top: 18px; }

footer { padding: 40px 0 56px; border-top: 1.5px solid var(--hairline); font-size: 14px; color: var(--text-3); }
footer .row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
footer .row a { text-decoration: none; color: var(--text-2); }
footer .row .grow { flex: 1; }
footer .row .grow a { text-decoration: underline; text-underline-offset: 2px; }

/* ── Reveal on scroll (only when motion is welcome, and only with the script) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .7s var(--settle); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Small screens ────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 12px; }
  .watch-stage { order: -1; }
  .steps, .features, .privacy, .pricing { grid-template-columns: 1fr; }
  .nav .links { display: none; }
  footer .row .grow { flex-basis: 100%; } /* the company name keeps one line; the links share the next */
}
@media (max-width: 380px) {
  .watch { width: 240px; }
}

/* ── Reduce Motion: every animation has a calm, still version ─────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .w-core, .js .w-ring { animation: none; }
  .w-ring { opacity: 0; }
  .w-done .disc, .w-done strong, .w-done span { animation: none !important; opacity: 1; transform: none; }
  .w-done .ripple { display: none; }
  .tap.go { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ledge { transition: none; }
  .faq summary::after { transition: none; }
}
