/* ── Styles: the same four looks as the app. Retro Sport is the default. ── */
:root,
[data-theme="retro"] {
  --bg: #f5efe0;
  --card: #ffffff;
  --line: #1e3a5f;
  --hairline: #e2d9c3;
  --red: #e8642c;
  --alt: #1e3a5f;
  --green: #2f8f6f;
  --text: #1e3a5f;
  --muted: #8a8578;
  --on-accent: #f5efe0;
  --radius: 14px;
  --radius-sm: 10px;
  --border-w: 2px;
  --display-weight: 800;
  --display-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --case: uppercase;
  --mono: "Courier New", Courier, monospace;
  --ring: solid;
  --ring-w: 14;
  --phone-radius: 26px;
}

[data-theme="brutal"] {
  --bg: #0b0b0b;
  --card: #1a1a1a;
  --line: #3a3a3a;
  --hairline: #2a2a2a;
  --red: #e24b4a;
  --alt: #e24b4a;
  --green: #5dcaa5;
  --text: #e8e4dc;
  --muted: #9a9a9a;
  --on-accent: #0b0b0b;
  --radius: 0px;
  --radius-sm: 0px;
  --border-w: 1px;
  --display-weight: 500;
  --display-font: "Menlo", "Consolas", monospace;
  --case: uppercase;
  --mono: "Menlo", "Consolas", monospace;
  --ring: ticks;
  --ring-w: 6;
  --phone-radius: 4px;
}

[data-theme="terminal"] {
  --bg: #0a0f0a;
  --card: #0d140d;
  --line: #1d3a1d;
  --hairline: #142814;
  --red: #33ff66;
  --alt: #33ff66;
  --green: #7dffb0;
  --text: #33ff66;
  --muted: #4a8a4a;
  --on-accent: #0a0f0a;
  --radius: 0px;
  --radius-sm: 0px;
  --border-w: 1px;
  --display-weight: 400;
  --display-font: "Courier New", Courier, monospace;
  --case: lowercase;
  --mono: "Courier New", Courier, monospace;
  --ring: dots;
  --ring-w: 4;
  --phone-radius: 4px;
}

[data-theme="dzen"] {
  --bg: #fafaf8;
  --card: #ffffff;
  --line: #eceae4;
  --hairline: #eceae4;
  --red: #2a2a2a;
  --alt: #8a867e;
  --green: #6f9e86;
  --text: #2a2a2a;
  --muted: #8a867e;
  --on-accent: #fafaf8;
  --radius: 18px;
  --radius-sm: 999px;
  --border-w: 1px;
  --display-weight: 300;
  --display-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --case: lowercase;
  --mono: "Courier New", Courier, monospace;
  --ring: solid;
  --ring-w: 4;
  --phone-radius: 30px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wrap { max-width: 980px; margin: 0 auto; padding: 24px 20px 60px; }

/* header */
header.site {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0 26px;
}
header.site img { width: 40px; height: 40px; }
header.site .name a {
  color: var(--text);
  text-transform: var(--case);
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 3px;
}
nav.lang { margin-left: auto; }
nav.lang a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  padding: 4px 10px;
  border: 1px solid var(--line);
}
nav.lang a + a { border-left: none; }
nav.lang a.on { color: var(--red); border-color: var(--red); }

/* hero */
.hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: center; padding: 20px 0 30px; }
.hero h1 {
  font-family: var(--display-font);
  font-weight: var(--display-weight);
  text-transform: var(--case);
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: 2px;
  margin: 0 0 14px;
}
.hero h1 .red { color: var(--red); }
.hero .sub { color: var(--muted); margin: 0 0 22px; max-width: 46ch; }
.hero-shot img {
  border-radius: var(--radius);
  width: 100%;
  max-width: 300px;
  display: block;
  margin: 0 auto;
  border: 1px solid var(--line);
}

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pill {
  font-family: var(--mono);
  border-radius: var(--radius-sm);
  font-size: 12px;
  letter-spacing: 2px;
  padding: 6px 10px;
  border: var(--border-w) solid var(--line);
  border-left: 3px solid var(--red);
  background: var(--card);
}

.stores { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.store-badge {
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--card);
  border: var(--border-w) solid var(--line);
  color: var(--text);
  text-decoration: none;
}
/* Google Play is not out yet: dimmed and non-interactive. */
.store-badge.is-soon { opacity: 0.45; pointer-events: none; }
.store-badge svg { width: 22px; height: 22px; fill: var(--text); flex: none; }
.store-badge small { display: block; font-size: 10px; color: var(--muted); }
.store-badge b { font-size: 15px; }
.soon { color: var(--muted); font-size: 12px; font-family: var(--mono); }

/* sections */
section { padding: 28px 0; border-top: 1px solid var(--hairline); }
h2 {
  font-family: var(--display-font);
  font-weight: var(--display-weight);
  text-transform: var(--case);
  letter-spacing: 3px;
  font-size: 20px;
  margin: 0 0 20px;
}
h2::before { content: "■ "; color: var(--red); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--card); border: var(--border-w) solid var(--line); border-radius: var(--radius); padding: 14px; }
.step img { width: 100%; border: var(--border-w) solid var(--line); border-radius: var(--radius-sm); }
.step h3 { font-family: var(--display-font); font-weight: var(--display-weight); text-transform: var(--case); font-size: 15px; letter-spacing: 1px; margin: 12px 0 6px; }
.step h3 .n { color: var(--red); margin-right: 8px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.features li {
  background: var(--card);
  border: var(--border-w) solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--muted);
}
.features li strong {
  display: block;
  color: var(--text);
  font-family: var(--display-font);
  font-weight: var(--display-weight);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.free-note {
  margin-top: 20px;
  font-family: var(--mono);
  letter-spacing: 1px;
  color: var(--green);
  font-size: 14px;
}

/* articles (privacy / terms) */
.back { color: var(--muted); text-decoration: none; font-family: var(--mono); font-size: 13px; }
article { max-width: 760px; }
article h1 { font-family: var(--display-font); font-weight: var(--display-weight); text-transform: var(--case); letter-spacing: 2px; font-size: 30px; margin: 18px 0 4px; }
article .updated { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
article h2 { font-size: 16px; margin-top: 26px; }
article a { color: var(--red); }
article ul { color: var(--muted); }
article p { color: var(--text); opacity: 0.85; }
.card[hidden] { display: none; }

footer { border-top: 1px solid var(--hairline); margin-top: 40px; padding-top: 18px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--red); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}

.watch-shots {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.watch-shots img {
  width: 190px;
  border: var(--border-w) solid var(--line);
  border-radius: 24px;
  background: #000;
}
.watch-shots p {
  flex: 1;
  min-width: 260px;
  color: var(--muted);
  font-size: 15px;
}

/* style picker */
.style-picker { display: flex; gap: 12px; flex-wrap: wrap; }
.style-btn {
  flex: 1 1 150px;
  cursor: pointer;
  padding: 14px 12px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  font: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.style-btn[aria-pressed="true"] { border-color: var(--red); }
.style-btn .swatches { display: flex; gap: 3px; }
.style-btn .sw { width: 22px; height: 34px; border: 1px solid rgba(128,128,128,0.35); }
.style-btn .nm {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Live hero mock: a working timer, drawn in the current style ── */
body, .phone, .step, .features li, .style-btn, .store-badge, .pill, h2, .hero h1 {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}

.phone {
  width: 290px;
  /* real phone proportions, so the mock reads as a device */
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: var(--border-w) solid var(--line);
  border-radius: var(--phone-radius);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}
.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px 2px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.signal { width: 34px; height: 9px; background:
  linear-gradient(to right, var(--muted) 0 5px, transparent 5px 8px,
  var(--muted) 8px 13px, transparent 13px 16px, var(--muted) 16px 21px,
  transparent 21px 24px, var(--muted) 24px 34px); opacity: .8; }
.phone-body {
  flex: 1;
  padding: 10px 18px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.mock-chip {
  height: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--green);
  text-transform: var(--case);
}
.mock-title {
  margin-bottom: 2px;
  font-family: var(--display-font);
  font-weight: var(--display-weight);
  text-transform: var(--case);
  letter-spacing: 4px;
  font-size: 15px;
  margin-bottom: 6px;
}

.ring-wrap { position: relative; width: 210px; margin: 6px auto 2px; }
.ring-wrap svg { width: 210px; height: 210px; display: block; }
.ring-digits {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 40px;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.phone.resting .ring-digits { color: var(--green); }
#mockRing .track { stroke: var(--hairline); fill: none; }
#mockRing .lit { stroke: var(--red); fill: none; transition: stroke .3s ease; }
.phone.resting #mockRing .lit { stroke: var(--green); }
#mockRing .tick { stroke: var(--hairline); }
#mockRing .tick.on { stroke: var(--red); }
.phone.resting #mockRing .tick.on { stroke: var(--green); }

.round-box {
  display: inline-block;
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  margin: 10px 0 14px;
}
.round-box b { display: block; font-family: var(--mono); font-size: 18px; font-weight: 400; }
.round-box small {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: var(--case);
}

.mock-rail {
  position: relative;
  width: 100%;
  margin-top: auto;
  height: 46px;
  /* keep the label clear of the resting knob */
  padding-left: 50px;
  padding-right: 8px;
  background: var(--card);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock-rail-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: var(--case);
}
.mock-knob {
  position: absolute;
  left: 3px;
  top: 3px;
  bottom: 3px;
  width: 44px;
  background: var(--red);
  color: var(--on-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  animation: nudge 2.4s ease-in-out infinite;
}
@keyframes nudge {
  0%, 70%, 100% { transform: translateX(0); }
  80% { transform: translateX(7px); }
  90% { transform: translateX(0); }
}

/* ── Page motion: reveal on scroll, lift on hover ── */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
.step, .features li, .style-btn { transition: transform .25s ease, border-color .25s ease, background-color .35s ease; }
.step:hover, .features li:hover { transform: translateY(-4px); }
.style-btn:hover { transform: translateY(-3px); }
.store-badge:not(.is-soon):hover { transform: translateY(-2px); }
.hero h1 .red { animation: accent-breathe 6s ease-in-out infinite; }
@keyframes accent-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .78; } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .mock-knob, .hero h1 .red { animation: none; }
  .step:hover, .features li:hover, .style-btn:hover, .store-badge:hover { transform: none; }
}
