/* Twistgrip site: the app's Night palette, Archivo and Martian Mono. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("fonts/martian-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg0: #07080B;
  --bg1: #0F1014;
  --bg2: #18191D;
  --bg3: #23252A;
  --bg4: #33353B;
  --tx1: #F4F5F8;
  --tx2: #BABEC6;
  --tx3: #8E929B;
  --volt: #D0FA40;
  --volt-hi: #E4FF8A;
  --ink-on-fill: #0B0C08;
  --case: #1B1D21;
  --case-edge: #4A4E56;
  --display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; color-scheme: dark; scrollbar-gutter: stable; }
h1, h2, h3, .display { text-wrap: balance; }
p, li { text-wrap: pretty; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg0);
  color: var(--tx1);
  font-family: var(--display);
  line-height: 1.5;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: var(--volt); }
a:hover { color: var(--volt-hi); }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--volt); color: var(--ink-on-fill); padding: 12px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* Header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--tx1); text-decoration: none; }
.brand:hover { color: var(--tx1); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.wordmark { font-weight: 900; font-size: 21px; letter-spacing: 0.01em; }
.wordmark span { color: var(--volt); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav a { color: var(--tx2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 12px 14px; border-radius: 999px; }
.nav a:hover { color: var(--tx1); }
.nav a[aria-current="page"] { color: var(--tx1); font-weight: 600; }
.nav .btn { margin-left: 8px; padding: 12px 20px; font-size: 15px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 16px 26px; border-radius: 999px;
  font-size: 17px; font-weight: 700; text-decoration: none;
}
.btn svg { flex: none; }
.btn-primary, .nav a.btn-primary { background: var(--volt); color: var(--ink-on-fill); }
.btn-primary:hover, .nav a.btn-primary:hover { background: var(--volt-hi); color: var(--ink-on-fill); }
.btn-ghost { color: var(--tx1); font-weight: 600; border: 1px solid var(--bg4); }
.btn-ghost:hover { color: var(--tx1); border-color: var(--tx3); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Type */
.kicker { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--volt); margin: 0; }
.display { margin: 0; font-size: clamp(46px, 6.6vw, 92px); line-height: 0.95; font-weight: 900; letter-spacing: -0.035em; }
.display span, .h2 span { color: var(--volt); }
.h2 { margin: 0; font-size: clamp(34px, 4.4vw, 60px); line-height: 1; font-weight: 900; letter-spacing: -0.03em; }
.lede { margin: 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--tx2); max-width: 34em; }
.meta { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--tx3); text-transform: uppercase; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 7vw, 96px); }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-copy .btn-row { padding-top: 4px; }
.hero-art { flex: 1 1 420px; min-width: 0; position: relative; height: 660px; }
.hero-art .glow {
  position: absolute; left: 50%; top: 46%; width: 620px; height: 620px; max-width: 160%;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(208, 250, 64, 0.14) 0%, rgba(208, 250, 64, 0.04) 45%, rgba(208, 250, 64, 0) 70%);
  pointer-events: none;
}
.phone {
  position: absolute; left: 50%; top: 0; transform: translateX(-42%);
  width: min(296px, 74%); aspect-ratio: 1080 / 2340;
  padding: 9px; border-radius: 46px; background: #16181C; border: 1px solid #3A3D44;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; }
.hero-art .watch { position: absolute; left: max(0px, calc(50% - 230px)); bottom: 8px; }

/* A round watch: the capture in a case */
.watch {
  width: 214px; height: 214px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--case); border: 2px solid var(--case-edge);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
}
.watch img { width: 88%; height: 88%; border-radius: 50%; }

/* What the bike reports */
.chips { border-top: 1px solid var(--bg3); border-bottom: 1px solid var(--bg3); }
.chips ul {
  list-style: none; margin: 0 auto; max-width: 1200px; padding: 18px var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--tx3);
}

/* Features */
.section { padding-top: clamp(64px, 9vw, 120px); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: 40px; }
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.row + .row { margin-top: 20px; }
.card {
  flex: 1 1 300px; min-width: 0;
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px; border-radius: 28px; background: var(--bg1); border: 1px solid var(--bg3);
}
.card.wide { flex: 2 1 600px; }
.card.mid { flex: 1 1 340px; }
.card .kicker { letter-spacing: 0.14em; font-weight: 400; }
.card h3 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.card.big h3 { font-size: 30px; }
.card p:not(.kicker) { margin: 0; font-size: 16px; line-height: 1.55; color: var(--tx2); max-width: 36em; }
.shot { margin-top: auto; border-radius: 20px; overflow: hidden; border: 1px solid var(--bg3); height: 340px; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot.tall { height: 400px; }
.shot.short { height: 300px; }
.shot.land { height: auto; aspect-ratio: 2340 / 1080; }
.card .after { margin-top: auto; padding-top: 12px; }

.events { list-style: none; margin: auto 0 0; padding: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.events li { background: var(--bg2); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.events b { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.events span { font-size: 14px; color: var(--tx3); }

/* Wrist */
.wrist { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: clamp(80px, 10vw, 140px); }
.wrist-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.wrist-copy p:not(.kicker) { margin: 0; font-size: 17px; line-height: 1.6; color: var(--tx2); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 12px; font-size: 16px; line-height: 1.5; }
.ticks svg { flex: none; margin-top: 2px; }
.watches { flex: 1.3 1 480px; min-width: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.watches figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.watches .watch { width: 210px; height: 210px; box-shadow: none; }
.watches figcaption { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--tx3); }

/* Privacy band */
.band {
  margin-top: clamp(80px, 10vw, 140px);
  padding: clamp(28px, 5vw, 56px); border-radius: 32px; background: var(--bg1); border: 1px solid var(--bg3);
  display: flex; flex-direction: column; gap: 32px;
}
.band-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.band-head > div { display: flex; flex-direction: column; gap: 14px; }
.band-head .h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; }
.band-head a { font-size: 16px; font-weight: 600; padding: 12px 0; text-decoration: none; }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.points div { display: flex; flex-direction: column; gap: 10px; }
.points h3 { margin: 0; font-size: 20px; font-weight: 700; }
.points p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--tx2); }

/* Closing call */
.cta { padding: clamp(80px, 10vw, 140px) 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.cta .display { font-size: clamp(38px, 5.4vw, 72px); line-height: 0.98; max-width: 12em; }
.cta .lede { font-size: 18px; max-width: 32em; }
.cta .btn-row { justify-content: center; padding-top: 8px; }
.cta-note { margin: 0; padding-top: 12px; font-size: 14px; color: var(--tx3); }
.cta-note a { color: var(--tx2); }

/* Footer */
.site-footer { border-top: 1px solid var(--bg3); }
.site-footer .wrap { padding-top: 40px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 24px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-top .wordmark { font-size: 19px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-footer nav a { color: var(--tx2); text-decoration: none; font-size: 15px; padding: 12px 14px; }
.site-footer nav a:hover { color: var(--tx1); }
.notice { margin: 0; font-size: 14px; line-height: 1.6; color: var(--tx2); display: flex; gap: 10px; align-items: baseline; }
.notice::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--volt); transform: translateY(-1px); }
.fine { margin: 0; font-size: 13px; line-height: 1.6; color: var(--tx3); max-width: 60em; }

/* Documents: privacy and support */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gutter) 96px; display: flex; flex-direction: column; gap: 40px; }
.doc.wide { max-width: 1200px; gap: 48px; }
.doc-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.doc-head h1 { margin: 0; font-size: clamp(40px, 5.6vw, 68px); line-height: 1; font-weight: 900; letter-spacing: -0.035em; }
.doc-head p:not(.kicker) { margin: 0; font-size: 18px; line-height: 1.6; color: var(--tx2); }
.doc section { display: flex; flex-direction: column; gap: 14px; }
.doc h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.doc section > p, .doc section > ul { margin: 0; font-size: 16px; line-height: 1.65; color: var(--tx2); }
.doc section > ul { padding-left: 22px; display: flex; flex-direction: column; gap: 12px; }
.doc strong { color: var(--tx1); }
.panel { background: var(--bg1); border: 1px solid var(--bg3); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.panel h2 { font-size: 22px; }
.panel p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--tx2); }
.fixes { display: flex; flex-direction: column; gap: 14px; }
.fix { background: var(--bg1); border: 1px solid var(--bg3); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.fix h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.fix-row { display: flex; flex-wrap: wrap; gap: 20px; }
.fix-row > div { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fix-row > div + div { border-left: 2px solid var(--volt); padding-left: 16px; }
.fix .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tx3); }
.fix-row > div + div .label { color: var(--volt); }
.fix p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--tx2); }
.perms { display: flex; flex-direction: column; gap: 10px; }
.perm { background: var(--bg1); border: 1px solid var(--bg3); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.perm h3 { margin: 0; font-size: 17px; font-weight: 700; }
.perm p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--tx2); }

.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.spec { background: var(--bg1); border: 1px solid var(--bg3); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.spec .label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--tx3); }
.spec .value { font-size: 20px; font-weight: 700; }
.spec .note { font-size: 15px; line-height: 1.5; color: var(--tx2); }

.faq { max-width: 860px; }
.faq h2 { font-size: 30px; font-weight: 900; letter-spacing: -0.02em; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--bg1); border: 1px solid var(--bg3); border-radius: 18px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-size: 18px; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-weight: 400; font-size: 20px; color: var(--volt); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { display: flex; flex-direction: column; gap: 10px; padding: 0 0 18px; font-size: 16px; line-height: 1.65; color: var(--tx2); }
.faq .answer p { margin: 0; }

.doc .contact { background: var(--bg1); border: 1px solid var(--bg3); border-radius: 28px; padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: row; flex-wrap: wrap; gap: 32px; align-items: flex-start; scroll-margin-top: 24px; }
.contact > div { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.contact h2 { font-size: 30px; font-weight: 900; letter-spacing: -0.02em; }
.contact p:not(.kicker) { margin: 0; font-size: 16px; line-height: 1.65; color: var(--tx2); }
.contact h3 { margin: 0; font-size: 16px; font-weight: 700; }
.contact ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.6; color: var(--tx2); }
.mail { font-weight: 600; }

[id] { scroll-margin-top: 16px; }

@media (max-width: 600px) {
  .nav { gap: 0; }
  .nav a { padding: 12px 10px; }
  .nav .btn { margin-left: 4px; padding: 12px 16px; }
  .hero-art { height: 560px; }
  .hero-art .watch { width: 160px; height: 160px; }
  .watches .watch { width: 180px; height: 180px; }
  .shot, .shot.tall { height: 320px; }
  .chips ul { justify-content: flex-start; }
}

/* Windows High Contrast and similar: keep buttons, cards and the focus ring visible
   once the user's palette replaces backgrounds. */
@media (forced-colors: active) {
  .btn, .card, .panel, .perm, .spec, .fix, .doc .contact, .faq details { border: 1px solid CanvasText; }
  .btn-primary { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  :focus-visible { outline-color: Highlight; }
}
