/* TimeRabbit beta site. Colours are the dark tokens of the TimeRabbit design system. */
:root {
  color-scheme: dark;
  --ground: #111113;
  --surface: #1c1d21;
  --sunken: #26272c;
  --line: #2c2d33;
  --hatch: #3a3b42;
  --ink: #f2f2f3;
  --ink-muted: #9a9ba2;
  --action: #1a6be2;
  --action-hover: #1258c4;
  --action-text: #5aa0ff;
  --now: #ff6b4d;
  --now-fill: #d9381e;
  --danger: #ff8a80;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-xl: 24px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  /* Motion curves from the animate skill; built-in ease-out is too weak for UI. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
@media (min-width: 720px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--action-text); text-underline-offset: 3px; transition: color 150ms ease; }
a:hover { color: var(--ink); }
/* An outline, not a shadow: it survives forced colours and shows on native checkboxes in Safari. */
:focus-visible { outline: 2px solid var(--action-text); outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
kbd {
  font: 600 14px var(--font-sans);
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--sunken);
  box-shadow: inset 0 -1px 0 var(--hatch);
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 12px 16px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--radius-sm);
  background: var(--action); color: #fff;
  font: 600 16px var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.button:hover { background: var(--action-hover); color: #fff; }
.button:active { transform: scale(0.97); }
.button:disabled { opacity: .6; cursor: default; transform: none; }
.button-large { min-height: 52px; padding: 0 26px; font-size: 17px; }
.button-small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.button-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hatch); }
.button-quiet:hover { background: var(--sunken); color: var(--ink); }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgb(17 17 19 / .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo { display: flex; color: var(--ink); padding: 9px 0; }
.logo-mark {
  display: block; width: 130px; aspect-ratio: 2261 / 470;
  background: currentColor;
  -webkit-mask: url(/assets/logo.svg) no-repeat center / contain; mask: url(/assets/logo.svg) no-repeat center / contain;
}
.logo-small { width: 96px; color: var(--ink-muted); }
.top-nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.top-nav a { color: var(--ink-muted); text-decoration: none; padding: 12px 0; }
.top-nav a:hover { color: var(--ink); }
.top .button { margin-left: auto; }
@media (max-width: 719px) { .top-nav { display: none; } }

/* Hero */
.hero { padding: 72px 0 0; overflow: hidden; }
.hero-copy { max-width: 760px; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
.hero h1 span { color: var(--ink-muted); }
.lede { font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: var(--ink-muted); max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font-size: 14px; color: var(--ink-muted); }

.hero-shot { margin: 64px auto 0; max-width: 1320px; padding: 0 var(--gutter); }
.hero-shot img { margin: 0 auto; }
/* The hour ruler echoes the app's timeline; the red mark is "now", the only use of red on the site. */
.ruler { position: relative; height: 28px; margin: 0 4% 8px; border-bottom: 1px solid var(--line); }
.ruler span {
  position: absolute; left: calc((var(--h) - 8) * 10%); transform: translateX(-50%);
  font-size: 12px; font-weight: 500; color: var(--ink-muted); font-variant-numeric: tabular-nums;
}
.ruler .now { position: absolute; top: 0; bottom: -1px; left: var(--at); width: 2px; margin-left: -1px; background: var(--now); }
.ruler .now time {
  position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -2px);
  padding: 1px 6px; border-radius: 6px; background: var(--now-fill); color: #fff;
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
@media (max-width: 719px) { .ruler span:nth-child(even) { display: none; } }

/* A day with TimeRabbit: a vertical timeline, the page's own structure */
section { scroll-margin-top: 80px; }
.day { padding: 120px 0 40px; }
.day h2 { margin-bottom: 56px; }
.day-list { list-style: none; margin: 0; padding: 0; position: relative; }
.day-list::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 7px; width: 1px; background: var(--line); }
.day-list li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 0 0 64px 32px; }
.day-list li::before {
  content: ""; position: absolute; left: 3px; top: 7px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--ground); box-shadow: inset 0 0 0 2px var(--ink-muted);
  transition: background-color 300ms ease, box-shadow 300ms ease;
}
/* As you scroll, the step in the middle of the screen is "now" (the only red on the site) and the ones above are done. */
.day-list li.is-past::before { background: var(--ink-muted); }
.day-list li.is-now::before { background: var(--now); box-shadow: inset 0 0 0 2px var(--now), 0 0 0 4px rgb(255 107 77 / .2); }
.stamp { transition: color 300ms ease; }
.day-list li.is-now .stamp { color: var(--now); }
/* Steps and marked blocks rise in once; site.js adds .reveal only when motion is welcome, so nothing is hidden
   without it. Siblings in one group follow each other by --reveal-delay. */
.reveal { opacity: 0; transform: translateY(12px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity 500ms var(--ease-out) var(--reveal-delay, 0ms), transform 500ms var(--ease-out) var(--reveal-delay, 0ms);
}
.stamp { font-size: 14px; font-weight: 600; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.step { display: flex; flex-direction: column; gap: 12px; max-width: 920px; }
.step p { color: var(--ink-muted); font-size: 17px; max-width: 36em; }
/* Light screenshots stay at about their real size, so they read as the app, not as white walls on a dark page. */
.shot { margin-top: 20px; max-width: min(100%, 760px); }
.shot-strip { max-width: min(100%, 656px); }
@media (min-width: 900px) {
  .day-list::before { left: 127px; }
  .day-list li { grid-template-columns: 112px minmax(0, 1fr); gap: 32px; padding-left: 0; }
  .day-list li::before { left: 123px; }
  .stamp { text-align: right; padding-right: 16px; }
}

/* Tools */
.tools { padding: 80px 0; border-top: 1px solid var(--line); }
.tools h2 { margin-bottom: 40px; }
.tools-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .tools-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.tool { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 2px solid var(--ink); }
.tool p { color: var(--ink-muted); }
.tool-next { border-top-style: dashed; border-top-color: var(--hatch); }
.shot-wide { margin: 56px auto 0; max-width: min(100%, 900px); }

/* Privacy */
.privacy { padding: 96px 0; background: var(--surface); }
.privacy h2 { max-width: 14em; }
.section-lede { margin-top: 16px; font-size: 18px; color: var(--ink-muted); max-width: 36em; }
.privacy-grid { display: grid; gap: 40px; margin: 48px 0 32px; }
@media (min-width: 900px) { .privacy-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.privacy ul { margin: 16px 0 0; padding: 0; list-style: none; }
.privacy li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink-muted); }
.privacy li:last-child { border-bottom: 1px solid var(--line); }

/* Join */
.join { padding: 112px 0; }
.join-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .join-grid { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; } }
.join-copy { display: flex; flex-direction: column; gap: 16px; }
.join-copy > p { font-size: 18px; color: var(--ink-muted); }
.note { margin: 16px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.note p { font-size: 16px; color: var(--ink); }
.note footer { margin-top: 8px; font-size: 14px; color: var(--ink-muted); }

.join-form { display: flex; flex-direction: column; gap: 32px; padding: 32px; border-radius: var(--radius-xl); background: var(--surface); }
@media (max-width: 599px) { .join-form { padding: 24px 16px; margin: 0 calc(var(--gutter) * -0.5); } }
.field { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, legend { font-weight: 600; font-size: 16px; padding: 0; }
legend { margin-bottom: 10px; }
.hint { font-size: 14px; color: var(--ink-muted); margin-top: -6px; }
input[type="email"], input[type="text"] {
  width: 100%; min-height: 48px; padding: 0 14px;
  font: 16px var(--font-sans); color: var(--ink);
  background: var(--ground); border: 1px solid #6b6c74; border-radius: var(--radius-sm);
}
input[type="email"], input[type="text"] { transition: border-color 150ms ease; }
input[type="email"]:focus, input[type="text"]:focus { border-color: var(--action-text); }
.choices { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 560px) { .choices { grid-template-columns: 1fr 1fr; } }
.choices-stack { grid-template-columns: 1fr !important; }
.choices label { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.choices input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--action); }
.other { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.other label { font-size: 14px; color: var(--ink-muted); }
.js .other[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.join-form .button { align-self: flex-start; }

/* The dialog after a download */
.after {
  width: min(600px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: auto;
  border: 0; border-radius: var(--radius-xl); background: var(--surface); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 24px 64px rgb(0 0 0 / .5);
}
.after::backdrop { background: rgb(0 0 0 / .6); }
/* The dialog fades and grows in from the centre, and leaves the same way. */
.after, .after::backdrop {
  opacity: 0;
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out), overlay 250ms allow-discrete, display 250ms allow-discrete;
}
.after { transform: scale(0.96); }
.after[open], .after[open]::backdrop { opacity: 1; transform: none; }
@starting-style {
  .after[open], .after[open]::backdrop { opacity: 0; }
  .after[open] { transform: scale(0.96); }
}
/* Reduced motion keeps the fades and drops the movement. */
@media (prefers-reduced-motion: reduce) {
  .after { transform: none; transition: opacity 250ms var(--ease-out), overlay 250ms allow-discrete, display 250ms allow-discrete; }
  .button:active { transform: none; }
}
.after-form, .after-done { display: flex; flex-direction: column; gap: 24px; padding: 32px; }
@media (max-width: 599px) { .after-form, .after-done { padding: 24px 16px; } }
.after h2 { font-size: 28px; letter-spacing: -0.02em; }
.after h2:focus { outline: none; }
.after-form > p, .after-done p { color: var(--ink-muted); }
.after-form > .fine { margin-top: -16px; }
.after [data-questions] { display: flex; flex-direction: column; gap: 24px; }
.optional { font-weight: 400; color: var(--ink-muted); }
.after-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.after-form[hidden], .after-done[hidden], .form-error[hidden] { display: none; }
.form-error { color: var(--danger); }

/* FAQ */
.faq { padding: 80px 0 112px; border-top: 1px solid var(--line); }
.faq h2 { margin-bottom: 32px; }
.faq-list { max-width: 820px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 20px 0; font-size: 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary { transition: color 150ms ease; }
summary:hover { color: var(--action-text); }
/* The plus turns into a cross when open. */
summary::after { content: "+"; color: var(--ink-muted); font-weight: 400; font-size: 22px; line-height: 1; transition: transform 200ms var(--ease-out); }
details[open] summary::after { transform: rotate(45deg); }
/* Answers slide open where the browser can animate to auto height; elsewhere they open at once. */
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  details::details-content { block-size: 0; overflow: clip; transition: block-size 200ms var(--ease-out), content-visibility 200ms allow-discrete; }
  details[open]::details-content { block-size: auto; }
}
details p { padding: 0 0 20px; color: var(--ink-muted); max-width: 40em; }

/* Footer */
.bottom { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--ink-muted); }
.bottom-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.bottom a { color: var(--ink-muted); display: inline-flex; align-items: center; min-height: 44px; }
.tap { display: inline-flex; align-items: center; min-height: 44px; }
.bottom a:hover { color: var(--ink); }

/* Plain pages: privacy, thanks, form errors */
.page { padding: 72px 0 112px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 16px; }
.page h2 { font-size: 24px; letter-spacing: -0.01em; margin: 40px 0 12px; }
.page p, .page li { color: var(--ink-muted); font-size: 17px; }
.page p + p { margin-top: 12px; }
.page ul { padding-left: 20px; }
.page li + li { margin-top: 8px; }
.page strong { color: var(--ink); font-weight: 600; }
.page .actions { margin-top: 32px; }
.notice { max-width: 560px; margin: 0 auto; padding: 96px 16px; display: flex; flex-direction: column; gap: 16px; }
.notice h1 { font-size: 36px; letter-spacing: -0.02em; }
.notice p { color: var(--ink-muted); font-size: 18px; }
