/* IntervalTicker pages: styled like the app (black, orange work, blue rest, seven-segment digits). */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: #000000;
  color: #F2F2F5;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Geist, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: #4FB4F0; }
a:hover { color: #8FD0F7; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #4FB4F0; outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 10px;
  background: #F2F2F5;
  color: #000000;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 16px; color: #000000; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Seven-segment digits ---------- */
.seg { display: inline-flex; align-items: flex-end; gap: 0.12em; transform: skewX(-6deg); flex: none; line-height: 1; }
.d7 { position: relative; width: 1em; height: 1.75em; flex: none; }
.sh, .sv { position: absolute; background: var(--off); }
.sh {
  left: 0.125em; width: 0.75em; height: 0.17em;
  clip-path: polygon(0 50%, 0.085em 0, calc(100% - 0.085em) 0, 100% 50%, calc(100% - 0.085em) 100%, 0.085em 100%);
}
.sv {
  width: 0.17em; height: 0.71em;
  clip-path: polygon(50% 0, 100% 0.085em, 100% calc(100% - 0.085em), 50% 100%, 0 calc(100% - 0.085em), 0 0.085em);
}
.s-a { top: 0; }
.s-b { left: 0.83em; top: 0.125em; }
.s-c { left: 0.83em; top: 0.915em; }
.s-d { top: 1.58em; }
.s-e { left: 0; top: 0.915em; }
.s-f { left: 0; top: 0.125em; }
.s-g { top: 0.79em; }
.c7 { position: relative; width: 0.3em; height: 1.75em; flex: none; }
.dot7 { position: absolute; left: 0.065em; width: 0.17em; height: 0.17em; border-radius: 50%; background: var(--on); }
.dot7.t { top: 0.48em; }
.dot7.u { top: 1.1em; }
.s7 { position: relative; width: 0.55em; height: 1.75em; flex: none; }
.bar7 { position: absolute; left: 0.19em; top: 0.12em; width: 0.16em; height: 1.5em; transform: skewX(-20deg); background: var(--on); }
.seg .on { background: var(--on); }

.seg-accent { --on: var(--accent); --off: var(--ghost); }
.seg-gray { --on: #8E8E93; --off: #222226; }
.seg-upper { --on: #C9C2FF; --off: #2A2648; }
.seg-light { --on: #E5E5EA; --off: #26262B; }
.seg-clock { --on: #F2F2F5; --off: #1E1E21; }
.seg-day { --on: #A1A1A8; --off: #26262B; }
.fs13 { font-size: 13px; }
.fs16 { font-size: 16px; }
.fs17 { font-size: 17px; }

/* ---------- Header ---------- */
.site-header { padding-top: 24px; }
.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 12px 18px 12px 12px;
  border: 2px solid #1FA2DC;
  border-radius: 32px;
  background: #0B1316;
  box-shadow: 0 0 26px rgba(31, 162, 220, 0.28);
}
.brand { display: flex; align-items: center; gap: 14px; color: #F2F2F5; text-decoration: none; border-radius: 14px; }
.brand:hover { color: #F2F2F5; }
.brand img { display: block; width: 50px; height: 50px; flex: none; border-radius: 11px; box-shadow: 0 0 0 1px #24323A; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #1FA2DC; line-height: 1.1; }
.brand-by { font-size: 13px; color: #8E8E93; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 72px;
  padding: 8px 10px;
  border-radius: 14px;
  color: #A1A1A8;
  text-decoration: none;
  font-size: 13px;
}
.nav-links a:hover { color: #E5E5EA; }
.nav-links a[aria-current="page"] { color: #1FA2DC; }
.nav-links svg { display: block; width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { max-width: 1200px; margin: 0 auto; padding: 72px 24px 40px; text-align: center; }
.hero h1 { margin: 0; font-size: clamp(36px, 11vw, 92px); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.hero .tagline { margin: 18px auto 0; max-width: 680px; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.3; font-weight: 500; color: #D1D1D6; }
.hero .lede { margin: 16px auto 0; max-width: 640px; font-size: 18px; line-height: 1.6; color: #8E8E93; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; margin-top: 30px; }
.btn-beta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 15px 30px;
  border-radius: 999px;
  background: #FF6B2C;
  color: #0B0B0D;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 32px rgba(255, 107, 44, 0.45);
}
.btn-beta:hover { background: #FF8048; color: #0B0B0D; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; }
.hero .note { margin: 14px auto 0; max-width: 520px; font-size: 15px; line-height: 1.5; color: #8E8E93; }

/* ---------- Live demo ---------- */
.demo {
  --accent: #FF6B2C;
  --ghost: rgb(41, 17, 7);
  --glow: rgba(255, 107, 44, 0.55);
  --glow-soft: rgba(255, 107, 44, 0.22);
  --rim: rgba(255, 107, 44, 0.45);
  --knob: rgb(255, 188, 160);
  --deg: 0deg;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 28px;
  background: #0A0A0C;
  border: 1px solid #222226;
  border-radius: 40px;
}
.timer-card {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 32px;
  background: #000000;
  border: 1px solid #18181B;
  border-radius: 30px;
}
.timer-name { margin: 0; font-size: 30px; font-weight: 700; }
.timer-sub { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 9px; margin: 10px 0 0; color: #8E8E93; font-size: 18px; }

/* The ring scales as one piece: sizes are in container units (440px wide = the design size). */
.ring { position: relative; width: min(100%, 440px); aspect-ratio: 1 / 1; margin-top: 28px; container-type: inline-size; }
.ticks {
  position: absolute; inset: 0; border-radius: 50%;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.73cqi), #000 calc(100% - 2.5cqi));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.73cqi), #000 calc(100% - 2.5cqi));
}
.ticks-base { background: repeating-conic-gradient(from -0.35deg, #3A3A40 0deg 0.7deg, transparent 0.7deg 6deg); }
.ticks-lit-mask {
  position: absolute; inset: 0;
  -webkit-mask-image: conic-gradient(#000 var(--deg), transparent 0deg);
  mask-image: conic-gradient(#000 var(--deg), transparent 0deg);
}
.ticks-lit { background: repeating-conic-gradient(from -0.35deg, var(--accent) 0deg 0.7deg, transparent 0.7deg 6deg); }
.ticks-major {
  position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(from -0.8deg, #7A7A82 0deg 1.6deg, transparent 1.6deg 90deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 20px), #000 calc(100% - 19px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 20px), #000 calc(100% - 19px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4.55cqi), #000 calc(100% - 4.32cqi));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4.55cqi), #000 calc(100% - 4.32cqi));
}
.band {
  position: absolute; inset: 0; border-radius: 50%;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 22px), #000 calc(100% - 21px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 22px), #000 calc(100% - 21px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5cqi), #000 calc(100% - 4.77cqi));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5cqi), #000 calc(100% - 4.77cqi));
}
.ring-track, .ring-arc, .ring-knob-arm { position: absolute; inset: 28px; inset: 6.36cqi; }
.ring-track .band { background: #1C1C20; }
.ring-arc { filter: drop-shadow(0 0 10px var(--glow)); filter: drop-shadow(0 0 2.27cqi var(--glow)); }
.ring-arc .band { background: conic-gradient(var(--accent) var(--deg), transparent 0deg); }
.ring-cap {
  position: absolute; left: 50%; top: 0; border-radius: 50%; background: var(--accent);
  width: 22px; height: 22px; margin-left: -11px;
  width: 5cqi; height: 5cqi; margin-left: -2.5cqi;
}
.ring-knob-arm { transform: rotate(var(--deg)); }
.ring-knob {
  position: absolute; left: 50%; border-radius: 50%; background: var(--knob);
  top: -4px; width: 30px; height: 30px; margin-left: -15px;
  box-shadow: 0 0 0 4px var(--accent), 0 0 24px 6px var(--glow);
  top: -0.91cqi; width: 6.82cqi; height: 6.82cqi; margin-left: -3.41cqi;
  box-shadow: 0 0 0 0.91cqi var(--accent), 0 0 5.45cqi 1.36cqi var(--glow);
}
.ring-face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; gap: 2.73cqi;
}
.phase { margin: 0; font-weight: 700; letter-spacing: 0.22em; color: var(--accent); font-size: 24px; font-size: 5.45cqi; line-height: 1.2; }
.timer-digits { font-size: 80px; font-size: 18.18cqi; filter: drop-shadow(0 0 14px var(--glow)); filter: drop-shadow(0 0 3.18cqi var(--glow)); }
.round { display: flex; align-items: center; color: var(--accent); font-weight: 700; letter-spacing: 0.14em; font-size: 22px; font-size: 5cqi; gap: 14px; gap: 3.18cqi; line-height: 1.2; }
.round-digits { font-size: 20px; font-size: 4.55cqi; }
.next {
  margin: 2px 0 0; border-radius: 999px; background: #1C1C1F; color: #A1A1A8; font-weight: 600; letter-spacing: 0.16em; line-height: 1.3;
  font-size: 15px; padding: 8px 18px;
  font-size: max(11px, 3.41cqi); padding: 1.82cqi 4.09cqi;
}

.controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }
.ctl {
  display: flex; align-items: center; justify-content: center; padding: 0;
  border-radius: 50%; border: 2px solid var(--rim); background: #121214; color: #E5E5EA;
  cursor: pointer; box-shadow: 0 0 16px var(--glow-soft);
}
.ctl:hover { background: #1A1A1D; }
.ctl svg { display: block; }
.ctl-stop { width: 56px; height: 56px; color: #C7C7CC; }
.ctl-skip { width: 70px; height: 70px; }
.ctl-play { width: 98px; height: 98px; border-color: var(--knob); background: var(--accent); color: #FFFFFF; box-shadow: 0 0 36px var(--glow); }
.ctl-play:hover { background: var(--accent); filter: brightness(1.08); }
.ctl-play > span { display: flex; }

.running { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 10px 4px; }
.eyebrow { margin: 0 0 6px; font-size: 14px; font-weight: 600; letter-spacing: 0.2em; color: #8E8E93; }
.run-list { position: relative; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0 0 0 30px; list-style: none; }
.run-list::before { content: ""; position: absolute; left: 10px; top: 24px; bottom: 24px; width: 2px; background: #1E1E22; }
.run-item {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  padding: 16px; border-radius: 24px; background: #16171B; border: 1px solid #26272C;
}
.run-item.active { background: #1B1932; border: 2px solid #6E5CE6; box-shadow: 0 0 24px rgba(110, 92, 230, 0.35); }
.run-dot { position: absolute; left: -26px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; }
.run-item.active .run-dot { left: -27px; width: 14px; height: 14px; margin-top: -7px; }
.dot-blue { background: #3B8CF0; }
.dot-cyan { background: #2FA6E0; }
.dot-yellow { background: #D8C14A; }
.tile { width: 56px; height: 56px; flex: none; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.tile svg { display: block; width: 26px; height: 26px; }
.tile-purple { background: #4A3E9C; color: #E4E0FF; }
.tile-teal { background: #1D6F8E; color: #DDF3FF; }
.tile-gold { background: #5C4C14; color: #FFF1B8; }
.tile-rust { background: #6A2A12; color: #FFD9C7; }
.tile-gray { background: #2A2A30; color: #E5E5EA; }
.run-text { flex: 1 1 120px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.run-name { font-size: 20px; font-weight: 700; line-height: 1.25; }
.run-note { font-size: 15px; color: #8E8E93; line-height: 1.4; }
.run-item.active .run-note { color: #B3AEDB; }
.run-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 15px; color: #8E8E93; }
.run-in { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #8E8E93; }
.running-caption { margin: 10px 0 0; max-width: 420px; color: #8E8E93; font-size: 15px; line-height: 1.55; }

/* ---------- Sections ---------- */
.section-title { margin: 0; font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.05; }
.section-text { margin: 16px 0 0; max-width: 480px; color: #8E8E93; font-size: 18px; line-height: 1.6; }
.section-text + .section-text { margin-top: 14px; }

.list-section { padding-top: 120px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px 72px; }
.list-shot { flex: 0 1 360px; min-width: 0; margin: 0 auto; }
.shot-frame { padding: 11px; background: #19191B; border: 1px solid #2E2E33; border-radius: 54px; }
.shot-frame img { display: block; width: 100%; height: auto; border-radius: 43px; }
.list-shot figcaption { margin-top: 16px; font-size: 15px; line-height: 1.5; color: #8E8E93; text-align: center; }
.list-text { flex: 1 1 420px; min-width: 0; }

.clock-section { padding-top: 120px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.clock-text { flex: 1 1 340px; min-width: 0; }
.clock-wrap { flex: 1 1 560px; min-width: 0; }
.clock-card {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding: 32px 20px 36px; background: #111113; border: 1px solid #232327; border-radius: 40px;
  container-type: inline-size;
}
.date-pill {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px;
  padding: 10px 22px; border: 1px solid #2C2C31; border-radius: 999px;
  color: #A1A1A8; font-size: 17px; font-weight: 600; letter-spacing: 0.2em;
}
.date-pill svg { display: block; flex: none; }
.clock-row { display: flex; align-items: flex-end; gap: 18px; }
/* Sized to the card so a four-digit time like 10:10 always fits. */
.clock-digits { font-size: clamp(40px, 7vw, 100px); font-size: clamp(34px, 15.5cqi, 120px); }
.ampm { padding-bottom: 0.25em; font-size: clamp(22px, 2.6vw, 34px); font-weight: 500; color: #A1A1A8; }
.next-alarm { margin: 0; color: #8E8E93; font-size: 16px; font-weight: 600; letter-spacing: 0.2em; text-align: center; }

.features { padding-top: 120px; }
.feature-grid { display: flex; flex-wrap: wrap; gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.feature {
  flex: 1 1 360px; min-width: 0; display: flex; align-items: flex-start; gap: 18px;
  padding: 20px; background: #141417; border: 1px solid #232327; border-radius: 24px;
}
.feature h3 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; }
.feature p { margin: 6px 0 0; font-size: 16px; line-height: 1.55; color: #8E8E93; }

/* ---------- Footer ---------- */
.site-footer {
  max-width: 1200px; margin: 120px auto 0; padding: 32px 24px 48px;
  border-top: 1px solid #1E1E22;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px;
  color: #8E8E93; font-size: 15px;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Text pages (beta and support, privacy) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 72px 24px 0; }
.doc h1 { margin: 0; font-size: clamp(38px, 5.5vw, 64px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; }
.doc .lede { margin: 18px 0 0; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: #C7C7CC; }
.doc .updated { margin: 14px 0 0; font-size: 15px; color: #8E8E93; }
.doc h2 { margin: 56px 0 0; font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; scroll-margin-top: 24px; }
.doc p, .doc li { font-size: 17px; line-height: 1.65; color: #B4B4BB; }
.doc p { margin: 14px 0 0; }
.doc ul, .doc ol { margin: 14px 0 0; padding-left: 1.3em; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: #6E6E76; }
.doc ol li::marker { color: #FF8A57; font-weight: 700; }
.doc strong { color: #F2F2F5; font-weight: 600; }
.callout { margin: 28px 0 0; padding: 22px 24px; background: #111113; border: 1px solid #232327; border-radius: 24px; }
.callout p:first-child { margin-top: 0; }
.callout .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 20px; }

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  .hero { padding-top: 48px; }
  .demo { padding: 14px; gap: 20px; border-radius: 30px; }
  .timer-card { padding: 22px 10px 24px; border-radius: 24px; }
  .timer-name { font-size: 26px; }
  .timer-sub { font-size: 16px; gap: 7px; }
  .controls { gap: 12px; margin-top: 24px; }
  .ctl-stop { width: 46px; height: 46px; }
  .ctl-skip { width: 56px; height: 56px; }
  .ctl-play { width: 76px; height: 76px; }
  .running { padding: 4px 0; }
  .run-list { padding-left: 24px; }
  .run-list::before { left: 7px; }
  .run-dot { left: -22px; }
  .run-item.active .run-dot { left: -23px; }
  .run-item { padding: 14px; border-radius: 20px; }
  .tile { width: 48px; height: 48px; border-radius: 14px; }
  .list-section, .clock-section, .features { padding-top: 88px; }
  .clock-card { padding: 26px 14px 30px; border-radius: 30px; }
  .date-pill { font-size: 14px; letter-spacing: 0.14em; padding: 8px 16px; }
  .next-alarm { font-size: 14px; letter-spacing: 0.14em; }
  .site-footer { margin-top: 88px; }
  .doc { padding-top: 48px; }
}

@media (max-width: 380px) {
  .wrap, .hero, .doc, .site-footer { padding-left: 16px; padding-right: 16px; }
  .demo { padding: 10px; }
  .timer-card { padding: 20px 8px 22px; }
  .controls { gap: 8px; }
  .ctl-stop { width: 44px; height: 44px; }
  .ctl-skip { width: 48px; height: 48px; }
  .ctl-play { width: 64px; height: 64px; }
}
