/* Tickface — the site wears the app's own furniture: near-black ground, one orange, hard edges. */

@font-face {
  font-family: "Departure Mono";
  src: url("assets/fonts/departure-mono.woff") format("woff");
  font-display: swap;
}

:root {
  --ground: #0B0B0A;
  --surface: #141412;
  --raised: #1A1A17;
  --rule: #262622;
  --tick: #3A3833;
  --text: #EDEAE2;
  --dim: #A5A093;
  --muted: #807B70;
  --accent: #FF6A1F;
  --display: "Chakra Petch", system-ui, sans-serif;
  --mono: "Departure Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(18px, 4.5vw, 60px);
  --ease: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 500 17px/1.6 var(--display);
  padding-inline: var(--gutter);
  overflow-x: hidden;
}

a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--accent); color: #0B0B0A; padding: 10px 14px; z-index: 20; }

.wrap { max-width: 1160px; margin-inline: auto; }

.label {
  font: 400 11.5px/1.4 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* --- header ------------------------------------------------------------------------------------ */

.bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 18px;
  border-bottom: 1.5px solid var(--rule);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 11px; font: 700 20px/1 var(--display); color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand img { display: block; border-radius: 7px; }
.bar nav { display: flex; gap: 22px; margin-left: auto; }
.bar nav a { color: var(--dim); text-decoration: none; font: 400 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; transition: color .18s var(--ease); }
.bar nav a:hover { color: var(--text); }
@media (max-width: 720px) { .bar nav { display: none; } .bar .button.small { margin-left: auto; } }

/* --- buttons ----------------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  background: var(--accent);
  color: #0B0B0A;
  font: 400 13px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid var(--accent);
  transition: transform .16s var(--ease), filter .16s var(--ease);
}
.button:hover { filter: brightness(1.07); }
.button:active { transform: scale(.97); }
.button.ghost { background: transparent; color: var(--text); border-color: var(--rule); }
.button.ghost:hover { border-color: var(--tick); }
.button.small { padding: 11px 16px; font-size: 11.5px; }
.button.play svg { flex: 0 0 auto; }

/* --- hero -------------------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding-block: clamp(40px, 7vw, 84px) clamp(32px, 5vw, 60px);
}
h1 {
  font: 700 clamp(40px, 6.6vw, 76px)/1 var(--display);
  letter-spacing: -.025em;
  margin: 14px 0 18px;
  text-wrap: balance;
}
.lede { color: var(--dim); font-size: clamp(17px, 2vw, 20px); max-width: 44ch; margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.trust { margin: 20px 0 0; font: 400 11.5px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* --- the interactive demo ------------------------------------------------------------------------ */

.demo-panel { display: grid; gap: 18px; justify-items: center; }
.phone {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 9 / 19.5;
  border: 9px solid #17171A;
  border-radius: 34px;
  background: #000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6), inset 0 0 0 1.5px #2C2C29;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  transition: transform .3s var(--ease);
}
.phone:active { cursor: grabbing; }
@media (hover: hover) and (pointer: fine) {
  .phone:hover { transform: translateY(-4px); }
}
.phone canvas { width: 100%; height: 100%; display: block; }
.phone .glass {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 38%);
}

.demo-controls { display: grid; gap: 12px; justify-items: center; width: min(100%, 360px); }
.demo-title { margin: 0; display: flex; gap: 10px; align-items: baseline; }
.demo-title strong { font: 700 19px/1 var(--display); }
.demo-title span { font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips button {
  background: transparent;
  border: 1.5px solid var(--rule);
  color: var(--dim);
  font: 400 11px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 11px 13px;
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.chips button:hover { color: var(--text); border-color: var(--tick); }
.chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #0B0B0A; }

.looks { display: flex; align-items: center; gap: 8px; }
.looks button {
  width: 26px; height: 26px; padding: 0; cursor: pointer;
  background: var(--swatch); border: 1.5px solid var(--rule);
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}
.looks button:hover { transform: translateY(-2px); }
.looks button[aria-pressed="true"] { border-color: var(--accent); transform: translateY(-2px); }

/* The app's Set button: orange floods in from the left as a wave, then the note appears. */
.set {
  position: relative;
  width: 148px; height: 46px;
  background: var(--surface);
  border: 0;
  color: var(--text);
  font: 400 14px/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.set::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .62s var(--ease);
}
.set span, .set { isolation: isolate; }
.set.filling::before { transform: scaleX(1); }
.set.filling { color: #0B0B0A; transition: color .3s .18s var(--ease); }
.set > * { position: relative; }
.set-note { margin: 0; font: 400 11.5px/1.7 var(--mono); letter-spacing: .06em; color: var(--muted); text-align: center; max-width: 34ch; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .demo-panel { order: -1; }
}

/* --- proof strip --------------------------------------------------------------------------------- */

.proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1.5px solid var(--rule);
}
.proof div { padding: 18px 20px; display: grid; gap: 6px; }
.proof div + div { border-left: 1.5px solid var(--rule); }
.proof strong { font: 700 clamp(24px, 3.4vw, 34px)/1 var(--display); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof div:nth-child(3) { border-left: 0; }
  .proof div:nth-child(n+3) { border-top: 1.5px solid var(--rule); }
}

/* --- sections ------------------------------------------------------------------------------------ */

section { padding-block: clamp(48px, 7vw, 88px); }
section + section { border-top: 1.5px solid var(--rule); }
h2 { font: 700 clamp(27px, 3.8vw, 44px)/1.06 var(--display); letter-spacing: -.02em; margin: 10px 0 14px; text-wrap: balance; max-width: 20ch; }
h3 { font: 700 19px/1.25 var(--display); margin: 0; }
p.body { color: var(--dim); max-width: 62ch; margin: 0 0 8px; }
.after-cta { margin-top: 28px; }

.grid, .price-grid {
  display: grid;
  gap: 1.5px;
  background: var(--rule);
  border: 1.5px solid var(--rule);
  margin-top: 26px;
}
.grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.price-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cell { background: var(--ground); padding: 22px; display: grid; gap: 8px; align-content: start; transition: background .2s var(--ease); }
.cell:hover { background: var(--surface); }
.cell p { margin: 0; color: var(--dim); font-size: 15.5px; }
.cell .count { font: 400 11px/1 var(--mono); letter-spacing: .14em; color: var(--accent); }
.cell.accent { background: color-mix(in srgb, var(--accent) 9%, var(--ground)); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 5vw, 56px); align-items: center; }
.split.reverse .shot { order: -1; }
@media (max-width: 720px) { .split.reverse .shot { order: 0; } }
.shot { margin: 0; }
.shot img { width: min(100%, 300px); border-radius: 18px; border: 1.5px solid var(--rule); display: block; margin-inline: auto; height: auto; }

ul.plain { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; }
ul.plain li { position: relative; padding-left: 22px; color: var(--dim); font-size: 16px; }
ul.plain li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border: 1.5px solid var(--accent); }

/* --- FAQ ----------------------------------------------------------------------------------------- */

.faq { margin-top: 24px; border-top: 1.5px solid var(--rule); }
.faq details { border-bottom: 1.5px solid var(--rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  font: 700 18px/1.35 var(--display);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font: 400 20px/1 var(--mono); color: var(--accent);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 20px; color: var(--dim); max-width: 64ch; }

/* --- final call to action -------------------------------------------------------------------------- */

.final { text-align: center; }
.final h2 { margin-inline: auto; }
.final .body { margin-inline: auto; }
.final .cta { justify-content: center; margin-top: 24px; }
.final .trust { text-align: center; }

/* --- footer ---------------------------------------------------------------------------------------- */

footer {
  border-top: 1.5px solid var(--rule);
  padding-block: 30px 90px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 26px;
  align-items: center;
  justify-content: space-between;
}
footer a, footer .links a { color: var(--muted); text-decoration: none; font: 400 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
footer a:hover { color: var(--text); }
footer .links { display: flex; flex-wrap: wrap; gap: 20px; }

/* --- sticky call to action, phones only -------------------------------------------------------------- */

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--ground) 94%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1.5px solid var(--rule);
  transform: translateY(110%);
  transition: transform .3s var(--ease);
  z-index: 12;
}
.sticky-cta span { font: 400 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.sticky-cta.show { transform: none; }
@media (max-width: 720px) { .sticky-cta { display: flex; } }

/* --- reveals ------------------------------------------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}

/* --- document pages (privacy, terms) ------------------------------------------------------------------- */

.doc { max-width: 72ch; margin-inline: auto; padding-block: clamp(32px, 6vw, 60px); }
.doc h1 { font-size: clamp(32px, 5vw, 50px); margin-bottom: 10px; }
.doc h2 { font-size: clamp(20px, 2.6vw, 25px); margin-top: 36px; max-width: none; }
.doc h3 { margin: 24px 0 6px; }
.doc p, .doc li { color: var(--dim); }
.doc strong { color: var(--text); }
.doc ul, .doc ol { padding-left: 20px; display: grid; gap: 8px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1.5px solid var(--rule); vertical-align: top; }
.doc th { font: 400 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stamp { font: 400 11.5px/1.7 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
