/* Turnos website. Same tokens as the app (app/lib/ui/theme/tokens.dart): the
   light and dark palettes, the shift colours, Archivo, and the one orange that
   means "act here". Motion is decoration: every section reads without it, and
   prefers-reduced-motion turns it off. No inline styles anywhere: the CSP in
   _headers forbids them. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-500.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-800.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --chrome: #f3f3f6;
  --paper: #ffffff;
  --sunk: #f1f1f4;
  --cell: #ececf1;
  --line: #e2e2e8;
  --line-strong: #cbcbd4;
  --ink: #15151a;
  --muted: #63636c;
  --faint: #9d9da6;
  --action: #d2461c;
  --on-action: #ffffff;
  --action-text: #b53b16;
  --hl: rgb(210 70 28 / 0.26);
  /* Shift colours: fill and the ink that reads on it (ShiftPalette). */
  --m: #f5c63c;
  --m-ink: #1b1608;
  --t: #86c8e8;
  --t-ink: #08141f;
  --n: #35336a;
  --n-ink: #f3eedf;
  --glass: rgb(255 255 255 / 0.86);
  --glass-line: rgb(21 21 26 / 0.08);
  --sheet: #fffdf6;
  --sheet-line: #e6dfcd;
  --sheet-ink: #2b2a26;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.04), 0 4px 14px rgb(0 0 0 / 0.05);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 32px rgb(0 0 0 / 0.08);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.04), 0 32px 72px -24px rgb(24 24 48 / 0.28);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light;
  interpolate-size: allow-keywords;
}

@media (prefers-color-scheme: dark) {
  :root {
    --chrome: #0e0e11;
    --paper: #1c1c21;
    --sunk: #141418;
    --cell: #26262c;
    --line: #2c2c33;
    --line-strong: #44444e;
    --ink: #ededf2;
    --muted: #a0a0aa;
    --faint: #6b6b75;
    --action-text: #ff7a4d;
    --hl: rgb(255 122 77 / 0.34);
    --n: #6b6bba;
    --n-ink: #ffffff;
    --glass: rgb(28 28 33 / 0.82);
    --glass-line: rgb(255 255 255 / 0.09);
    --sheet: #f2eee3;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4), 0 4px 14px rgb(0 0 0 / 0.3);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px rgb(0 0 0 / 0.45);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.4), 0 32px 72px -24px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--chrome);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--action-text);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
  border-radius: 10px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.nb {
  white-space: nowrap;
}

.i {
  flex: none;
  width: 1.1em;
  height: 1.1em;
}

.wrap {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}

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

.skip:focus {
  top: 16px;
}

/* --- Header: a glass bar that stays, like the app's tab bar ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 58px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--glass-line);
  border-radius: 100px;
  background: var(--glass);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  font-size: 16px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 100px;
  color: var(--muted);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.site-nav a:hover {
  background: var(--sunk);
  color: var(--ink);
}

/* --- Buttons ---------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 100px;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s;
}

.button .i {
  transition: translate 0.2s var(--ease);
}

.button:hover .i {
  translate: 3px 0;
}

.button:active {
  transform: scale(0.97);
}

.button.primary {
  background: var(--action);
  color: var(--on-action);
  box-shadow: 0 6px 18px -6px rgb(210 70 28 / 0.6);
}

.button.primary:hover {
  box-shadow: 0 12px 26px -8px rgb(210 70 28 / 0.7);
}

.button.secondary {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.button.light {
  background: #ffffff;
  color: #b53b16;
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.35);
}

.button.big {
  min-height: 56px;
  padding: 0 26px;
  font-size: 18px;
}

.button[disabled] {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

.site-header .button {
  min-height: 42px;
  padding: 0 18px;
  font-size: 15px;
}

/* --- Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 104px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.aurora {
  position: absolute;
  inset: -30% -10% -10%;
  z-index: -1;
  pointer-events: none;
}

.aurora span {
  position: absolute;
  width: 52vmax;
  height: 52vmax;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0%, transparent 64%);
  opacity: 0.7;
  animation: drift 20s ease-in-out infinite alternate;
}

.aurora span:nth-child(1) {
  --c: rgb(245 198 60 / 0.5);
  top: 0;
  right: -14%;
}

.aurora span:nth-child(2) {
  --c: rgb(134 200 232 / 0.5);
  top: 30%;
  right: 18%;
  animation-duration: 24s;
  animation-delay: -8s;
}

.aurora span:nth-child(3) {
  --c: rgb(210 70 28 / 0.18);
  top: -10%;
  left: -20%;
  animation-duration: 28s;
  animation-delay: -14s;
}

@keyframes drift {
  to {
    translate: 7vmax 5vmax;
    scale: 1.15;
  }
}

.hero-text > * {
  animation: rise 0.9s var(--ease) both;
}

.hero-text > :nth-child(2) {
  animation-delay: 0.08s;
}

.hero-text > :nth-child(3) {
  animation-delay: 0.16s;
}

.hero-text > :nth-child(4) {
  animation-delay: 0.24s;
}

.hero-text > :nth-child(5) {
  animation-delay: 0.32s;
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 26px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 7px 14px 7px 12px;
  border-radius: 100px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--action);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(210 70 28 / 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 10px rgb(210 70 28 / 0);
  }
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 5.8vw, 74px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hl {
  background-image: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: underline 1.1s 0.55s var(--ease) forwards;
}

@keyframes underline {
  to {
    background-size: 100% 100%;
  }
}

.lead {
  max-width: 32em;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 22px);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.soon {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(350px, 80vw);
  padding: 20px 0;
}

.device {
  position: relative;
  padding: 11px;
  border-radius: 54px;
  background: linear-gradient(145deg, #2c2c33, #0c0c0f);
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.1), 0 44px 90px -30px rgb(24 24 48 / 0.5), inset 0 0 0 1.5px #3c3c44;
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease);
  animation: rise 1s 0.1s var(--ease) both;
}

.device img {
  border-radius: 44px;
  background: var(--paper);
}

/* Glass cards that float over the pictures. */
.float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 9px;
  border: 1px solid var(--glass-line);
  border-radius: 18px;
  background: var(--glass);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(1.7);
  backdrop-filter: blur(18px) saturate(1.7);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.25;
  white-space: nowrap;
  animation: pop-in 0.8s var(--spring) both, bob 6s ease-in-out infinite;
}

.float strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.badge {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.badge .i {
  width: 21px;
  height: 21px;
}

.b-morning {
  background: var(--m);
  color: var(--m-ink);
}

.b-action {
  background: var(--action);
  color: #ffffff;
}

.b-ink {
  background: var(--ink);
  color: var(--chrome);
}

.f-alarm {
  top: 5%;
  left: -20%;
  animation-delay: 0.8s, 0s;
}

.f-love {
  top: 44%;
  right: -22%;
  animation-delay: 1.1s, -2s;
}

.f-claude {
  bottom: 15%;
  left: -20%;
  animation-delay: 1.4s, -4s;
}

@keyframes pop-in {
  from {
    opacity: 0;
    scale: 0.6;
  }
}

@keyframes bob {
  50% {
    translate: 0 -10px;
  }
}

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

  .hero-visual {
    width: min(300px, 72vw);
  }
}

/* --- Ticker ------------------------------------------------------------------ */

.ticker {
  display: flex;
  overflow: hidden;
  padding: 4px 0 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker ul {
  display: flex;
  flex: none;
  gap: 12px;
  margin: 0;
  padding: 0 12px 0 0;
  list-style: none;
  animation: ticker 48s linear infinite;
}

.ticker:hover ul {
  animation-play-state: paused;
}

.ticker li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 12px;
  border-radius: 100px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.ticker .i {
  color: var(--action-text);
}

@keyframes ticker {
  to {
    transform: translateX(-100%);
  }
}

/* --- Sections ----------------------------------------------------------------- */

section {
  padding: clamp(64px, 8.5vw, 112px) 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--action-text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker .i {
  width: 17px;
  height: 17px;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(36px, 4.8vw, 58px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

h3 {
  margin: 0 0 8px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.section-lead {
  max-width: 40em;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.8vw, 20px);
  text-wrap: pretty;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
}

.split.flip > :first-child {
  order: 2;
}

.text > p {
  color: var(--muted);
  text-wrap: pretty;
}

.ticks {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ticks .i {
  width: 24px;
  height: 24px;
  margin-top: 1px;
  padding: 4px;
  border-radius: 50%;
  background: rgb(210 70 28 / 0.12);
  color: var(--action-text);
}

.note {
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split.flip > :first-child {
    order: 0;
  }
}

/* --- The photo, read by Claude -------------------------------------------------- */

.scan {
  position: relative;
  display: grid;
  gap: 20px;
}

.paper {
  position: relative;
  overflow: hidden;
  padding: 18px 16px 16px;
  border-radius: 14px;
  background: var(--sheet);
  color: var(--sheet-ink);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 26px 50px -20px rgb(40 30 10 / 0.38);
  rotate: -1.6deg;
  font-family: "Courier New", ui-monospace, monospace;
}

.paper-head {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.paper table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: clamp(11px, 1.35vw, 14px);
  font-weight: 700;
}

.paper th,
.paper td {
  padding: 6px 0;
  border: 1px solid var(--sheet-line);
  text-align: center;
}

.paper thead th {
  opacity: 0.6;
}

.paper tbody th {
  width: 30%;
  padding-left: 6px;
  overflow: hidden;
  text-align: left;
  white-space: nowrap;
}

.paper thead th:first-child {
  width: 30%;
}

.paper .me th,
.paper .me td {
  background: rgb(210 70 28 / 0.16);
}

.paper .me th {
  color: #b53b16;
}

.beam {
  position: absolute;
  top: -64px;
  right: 0;
  left: 0;
  height: 64px;
  border-bottom: 2px solid var(--action);
  background: linear-gradient(to bottom, transparent, rgb(210 70 28 / 0.16) 70%, rgb(210 70 28 / 0.42));
  opacity: 0;
  pointer-events: none;
}

.draft {
  padding: 18px;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
}

.draft-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
}

.draft-title .i {
  color: var(--action-text);
}

.draft-title strong {
  color: var(--ink);
}

.draft-days {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.draft-days li {
  display: grid;
  place-items: center;
  align-content: center;
  aspect-ratio: 1 / 1.3;
  border-radius: 10px;
  font-size: clamp(13px, 1.6vw, 17px);
  font-weight: 800;
  line-height: 1.1;
}

.draft-days b {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.7;
}

.draft-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.draft-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.draft-legend i {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.draft-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 0;
  border-radius: 100px;
  background: var(--action);
  color: #ffffff;
  font-weight: 800;
}

.scan-wrap {
  display: grid;
  min-width: 0;
}

.replay {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 10px 16px 10px 12px;
  border: 0;
  border-radius: 100px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.replay[hidden] {
  display: none;
}

.replay .i {
  color: var(--action-text);
}

/* Played once on screen (app.js); without it, the read is already done. */
.scan.armed .paper .me th,
.scan.armed .paper .me td {
  background: transparent;
}

.scan.armed .paper .me th {
  color: inherit;
}

.scan.armed .draft-days li {
  opacity: 0;
  scale: 0.4;
}

.scan.armed .draft-cta {
  opacity: 0.35;
}

.scan.play .beam {
  animation: beam 1.5s 0.2s ease-in-out both;
}

.scan.play .paper .me th,
.scan.play .paper .me td {
  animation: row-on 0.5s 1.45s var(--ease) both;
}

.scan.play .paper .me th {
  animation-name: row-on, row-name;
}

.scan.play .draft-days li {
  animation: cell-in 0.5s var(--spring) both;
  animation-delay: calc(1.85s + var(--i, 0) * 70ms);
}

.scan.play .draft-cta {
  animation: cta-on 0.6s 2.8s var(--ease) both;
}

@keyframes beam {
  0% {
    top: -64px;
    opacity: 0;
  }
  12%,
  88% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

@keyframes row-on {
  to {
    background: rgb(210 70 28 / 0.16);
  }
}

@keyframes row-name {
  to {
    color: #b53b16;
  }
}

@keyframes cell-in {
  from {
    opacity: 0;
    scale: 0.4;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes cta-on {
  to {
    opacity: 1;
  }
}

/* Shift colours, wherever a day shows one. */
.s-M {
  background: var(--m);
  color: var(--m-ink);
}

.s-T {
  background: var(--t);
  color: var(--t-ink);
}

.s-N {
  background: var(--n);
  color: var(--n-ink);
}

.s-L {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--muted);
}

/* --- Try it: paint a month (built by app.js) --------------------------------- */

.demo {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 48px);
}

.demo > .phone {
  grid-column: 1 / -1;
  justify-self: center;
}

.demo-card {
  padding: clamp(14px, 2.6vw, 22px);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
}

.demo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 2px 4px 14px;
}

.demo-month {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.demo-month span {
  color: var(--muted);
  font-weight: 700;
}

.demo-sum {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.brushes {
  display: flex;
  gap: 8px;
  margin: 0 -4px 14px;
  padding: 2px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.brushes::-webkit-scrollbar {
  display: none;
}

.brush {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 10px;
  border: 0;
  border-radius: 14px;
  background: var(--sunk);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.15s;
}

.brush:active {
  transform: scale(0.96);
}

.brush[aria-pressed="true"] {
  background: var(--ink);
  box-shadow: none;
  color: var(--chrome);
}

.brush .sw {
  width: 18px;
  height: 18px;
  border-radius: 6px;
}

.brush .sw-clear {
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px currentColor;
  opacity: 0.6;
}

.brush .i {
  width: 18px;
  height: 18px;
}

.week,
.grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.week {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.grid {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.day {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  aspect-ratio: 1 / 1.14;
  padding: 4px;
  border: 0;
  border-radius: 12px;
  background: var(--cell);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.day .num {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.day.today {
  box-shadow: inset 0 0 0 2px var(--action);
}

.day.today .num {
  color: var(--action-text);
}

.day .shift {
  display: grid;
  flex: 1;
  place-items: center;
  border-radius: 8px;
  font-size: clamp(13px, 2.2vw, 16px);
  font-weight: 800;
}

.day .shift:empty {
  visibility: hidden;
}

.day.pop .shift {
  animation: cell-in 0.42s var(--spring) var(--d, 0ms) both;
}

.day .mate {
  height: 0;
  border-radius: 3px;
  transition: height 0.25s var(--ease);
}

.grid.with-mate .day .mate {
  height: 6px;
}

.mate.s-L {
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

.day .heart {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--action);
  box-shadow: 0 2px 6px rgb(210 70 28 / 0.45);
  color: #ffffff;
  pointer-events: none;
  scale: 0;
  transition: scale 0.35s var(--spring);
}

.day .heart .i {
  width: 13px;
  height: 13px;
}

.grid.with-mate .day.both .heart {
  scale: 1;
  transition-delay: calc(var(--i, 0) * 16ms);
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px 0 8px;
  border: 0;
  border-radius: 100px;
  background: var(--sunk);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.knob {
  position: relative;
  width: 42px;
  height: 26px;
  border-radius: 100px;
  background: var(--line-strong);
  transition: background-color 0.2s;
}

.knob::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.3);
  transition: translate 0.25s var(--spring);
}

.switch[aria-checked="true"] .knob {
  background: var(--action);
}

.switch[aria-checked="true"] .knob::after {
  translate: 16px 0;
}

.text-button {
  padding: 10px 8px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.button.attention,
.switch.attention {
  animation: nudge 2.4s ease-in-out infinite;
}

@keyframes nudge {
  0%,
  60%,
  100% {
    box-shadow: 0 6px 18px -6px rgb(210 70 28 / 0.6), 0 0 0 0 rgb(210 70 28 / 0.45);
  }
  85% {
    box-shadow: 0 6px 18px -6px rgb(210 70 28 / 0.6), 0 0 0 12px rgb(210 70 28 / 0);
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  padding: 18px 20px;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.3s, color 0.3s;
}

.stat strong {
  display: block;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.stat span {
  color: var(--muted);
  font-size: 15px;
}

.stat.love.on {
  background: var(--action);
  box-shadow: 0 18px 40px -18px rgb(210 70 28 / 0.7);
  color: #ffffff;
}

.stat.love.on span {
  color: rgb(255 255 255 / 0.88);
}

.stat.love:not(.on) strong {
  color: var(--faint);
}

.stats-note {
  grid-column: 1 / -1;
  margin: 4px 4px 0;
  color: var(--muted);
  font-size: 15px;
}

.try-note {
  max-width: 40em;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 900px) {
  .demo {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-card {
    margin-inline: -4px;
  }

  .week,
  .grid {
    gap: 4px;
  }

  .day {
    padding: 3px;
    border-radius: 10px;
  }
}

/* --- Under the hood (English page) ---------------------------------------------------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.steps-grid .tile {
  padding-top: 26px;
}

.step-n {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 14px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--chrome);
  font-size: 20px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Together ---------------------------------------------------------------------- */

.together-visual {
  position: relative;
  justify-self: center;
  width: min(460px, 100%);
}

.screen-crop {
  overflow: hidden;
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
}

.live {
  position: absolute;
  top: -18px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 16px 8px 14px;
  border: 1px solid var(--glass-line);
  border-radius: 100px;
  background: var(--glass);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(1.7);
  backdrop-filter: blur(18px) saturate(1.7);
  font-size: 15px;
  font-weight: 800;
  animation: bob 6s ease-in-out infinite;
}

/* --- Every day: bento tiles ------------------------------------------------------------ */

.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 14px 14px 28px;
  border-radius: 32px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

@media (hover: hover) {
  .tile:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg);
  }
}

.tile h3,
.tile p {
  padding: 0 14px;
}

.tile p {
  margin: 0;
  color: var(--muted);
}

.tile-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 230px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--sunk);
}

.art-alarm {
  background: radial-gradient(circle at 50% 40%, #33316e, #121128 75%);
}

.ring {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 2px solid rgb(245 198 60 / 0.5);
  border-radius: 50%;
  animation: ripple 2.4s ease-out infinite;
}

.ring:nth-child(2) {
  animation-delay: 0.8s;
}

.ring:nth-child(3) {
  animation-delay: 1.6s;
}

@keyframes ripple {
  from {
    opacity: 0.9;
    scale: 0.6;
  }
  to {
    opacity: 0;
    scale: 2.3;
  }
}

.alarm-face {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  color: #ffffff;
}

.alarm-face strong {
  font-size: 68px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.alarm-face span {
  color: rgb(255 255 255 / 0.72);
  font-size: 14px;
}

.alarm-face .bell {
  width: 30px;
  height: 30px;
  color: var(--m);
  transform-origin: 50% 12%;
  animation: ring-bell 2.4s ease-in-out infinite;
}

@keyframes ring-bell {
  0%,
  58%,
  100% {
    rotate: 0deg;
  }
  62% {
    rotate: 16deg;
  }
  66% {
    rotate: -14deg;
  }
  70% {
    rotate: 10deg;
  }
  74% {
    rotate: -8deg;
  }
  78% {
    rotate: 4deg;
  }
  82% {
    rotate: 0deg;
  }
}

.art-hours {
  grid-template-columns: auto auto;
  align-items: end;
  place-content: center;
  gap: clamp(20px, 4vw, 36px);
  background: linear-gradient(160deg, rgb(245 198 60 / 0.22), var(--sunk) 70%);
}

.hours-total {
  display: grid;
  margin: 0;
  font-size: clamp(64px, 8vw, 84px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.hours-total small {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 130px;
}

.bar {
  position: relative;
  width: 28px;
  border-radius: 9px 9px 6px 6px;
  transform-origin: bottom;
}

.bar:nth-child(1) {
  height: 90%;
  background: var(--m);
}

.bar:nth-child(2) {
  height: 95%;
  background: var(--t);
}

.bar:nth-child(3) {
  height: 76%;
  background: var(--n);
}

.bar:nth-child(4) {
  height: 100%;
  background: var(--action);
}

.bar i {
  position: absolute;
  top: -20px;
  left: 50%;
  translate: -50% 0;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

#horas.armed .bar {
  scale: 1 0;
}

#horas.play .bar {
  animation: grow 0.9s var(--spring) both;
  animation-delay: calc(0.15s + var(--i, 0) * 110ms);
}

@keyframes grow {
  from {
    scale: 1 0;
  }
  to {
    scale: 1 1;
  }
}

.art-share {
  background: linear-gradient(160deg, rgb(134 200 232 / 0.3), var(--sunk) 70%);
}

.bubble {
  width: min(250px, 82%);
  padding: 8px 8px 6px;
  border-radius: 20px 20px 20px 6px;
  background: var(--paper);
  box-shadow: var(--shadow);
  rotate: -3deg;
  animation: bob 7s ease-in-out infinite;
}

.mini {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  padding: 8px;
  border-radius: 13px;
  background: var(--chrome);
}

.mini i {
  aspect-ratio: 1;
  border-radius: 4px;
}

.mini i:not([class]) {
  background: var(--cell);
}

.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 0;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
}

.meta span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--faint);
  font-weight: 500;
}

.meta .i {
  width: 15px;
  height: 15px;
  color: #3b9ae1;
}

.art-looks {
  background: linear-gradient(160deg, rgb(53 51 106 / 0.18), var(--sunk) 70%);
}

.look {
  position: absolute;
  inset: 26px clamp(18px, 6%, 40px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  gap: 8px;
  padding: 14px;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
  opacity: 0;
  animation: look 12s infinite;
}

.look:nth-child(2) {
  animation-delay: 3s;
}

.look:nth-child(3) {
  animation-delay: 6s;
}

.look:nth-child(4) {
  animation-delay: 9s;
}

.look b {
  grid-column: 1 / -1;
  font-size: 15px;
  font-weight: 800;
}

.look i {
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.look i:not([class]) {
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--muted);
}

.look-hours i {
  font-size: 12px;
}

.look-full {
  gap: 0 2px;
}

.look-full i {
  border-radius: 4px;
}

.look-dark {
  background: #0e0e11;
  color: #ededf2;
}

.look-dark .s-N {
  background: #6b6bba;
  color: #ffffff;
}

.look-dark i:not([class]) {
  box-shadow: inset 0 0 0 1.5px #44444e;
  color: #a0a0aa;
}

@keyframes look {
  0% {
    opacity: 0;
    translate: 0 14px;
  }
  4%,
  25% {
    opacity: 1;
    translate: 0 0;
  }
  29%,
  100% {
    opacity: 0;
    translate: 0 -14px;
  }
}

@media (max-width: 760px) {
  .bento {
    grid-template-columns: 1fr;
  }
}

/* --- Privacy band ------------------------------------------------------------------- */

.private .box {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 40px;
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 40px;
  background: radial-gradient(90% 120% at 100% 0%, rgb(107 107 186 / 0.35), transparent 60%), #15151a;
  color: #ededf2;
}

.private .text > p,
.private .ticks li {
  color: #c6c6ce;
}

.private .kicker {
  color: #ff7a4d;
}

.private .ticks .i {
  background: rgb(255 122 77 / 0.16);
  color: #ff7a4d;
}

.private .phone.small {
  justify-self: center;
  width: min(270px, 66vw);
  margin-bottom: calc(-1 * clamp(32px, 5vw, 64px) - 120px);
}

@media (max-width: 900px) {
  .private .box {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  .private .box {
    background: radial-gradient(90% 120% at 100% 0%, rgb(107 107 186 / 0.3), transparent 60%), #1c1c21;
    box-shadow: inset 0 0 0 1px var(--line);
  }
}

/* --- Phone frames ------------------------------------------------------------------- */

.phone {
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(145deg, #2c2c33, #0c0c0f);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #3c3c44;
}

.phone img {
  border-radius: 38px;
  background: var(--paper);
}

.phone.small {
  width: min(300px, 76vw);
}

/* --- Pricing --------------------------------------------------------------------------- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 940px;
}

.plan {
  position: relative;
  padding: clamp(26px, 3vw, 38px);
  border-radius: 32px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.plan.plus {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    conic-gradient(from var(--angle), var(--action), var(--m), var(--t), var(--n), var(--action)) border-box;
  box-shadow: var(--shadow-lg);
  animation: spin 8s linear infinite;
}

@keyframes spin {
  to {
    --angle: 360deg;
  }
}

.plan h3 {
  margin: 0;
}

.price {
  margin: 6px 0 20px;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.price small {
  display: block;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.plan ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.plan li .i {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--action-text);
}

.plan .note {
  margin: 18px 0 0;
}

@media (max-width: 720px) {
  .plans {
    grid-template-columns: 1fr;
  }
}

/* --- Questions --------------------------------------------------------------------------- */

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 880px;
}

.faq details {
  padding: 0 22px;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.25s;
}

.faq details[open] {
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 19px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .i {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 50%;
  background: var(--sunk);
  color: var(--muted);
  transition: rotate 0.3s var(--ease), background-color 0.2s, color 0.2s;
}

.faq details[open] summary .i {
  background: var(--action);
  color: #ffffff;
  rotate: 45deg;
}

.faq details p {
  margin: 0 0 20px;
  color: var(--muted);
}

.faq details::details-content {
  block-size: 0;
  overflow-y: clip;
  transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete;
}

.faq details[open]::details-content {
  block-size: auto;
}

/* --- Call to action and footer --------------------------------------------------- */

.cta {
  padding-top: 24px;
}

.cta .box {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 7vw, 92px) clamp(20px, 5vw, 64px);
  border-radius: 40px;
  background:
    radial-gradient(110% 140% at 0% 0%, rgb(255 138 92 / 0.5), transparent 55%),
    radial-gradient(90% 120% at 100% 100%, rgb(120 30 8 / 0.55), transparent 60%),
    var(--action);
  box-shadow: 0 30px 80px -34px rgb(210 70 28 / 0.7);
  color: #ffffff;
  text-align: center;
}

.cta h2 {
  color: #ffffff;
}

.cta .lead {
  margin-inline: auto;
  color: rgb(255 255 255 / 0.9);
}

.cta .actions {
  justify-content: center;
}

.site-footer {
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 15px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-left: auto;
}

.site-footer a {
  color: var(--muted);
}

/* --- Text pages (privacy, deleting the account, 404) ---------------------------------- */

.page {
  padding: 32px 0 64px;
}

.page article {
  max-width: 760px;
  padding: clamp(24px, 5vw, 52px);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.page h1 {
  margin-bottom: 8px;
  font-size: clamp(34px, 5vw, 48px);
}

.page h2 {
  margin: 34px 0 8px;
  font-size: 25px;
  letter-spacing: -0.015em;
}

.page p,
.page li {
  color: var(--ink);
}

.page .updated {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
}

.steps {
  padding-left: 22px;
}

.steps li {
  margin: 10px 0;
}

/* --- Small screens ----------------------------------------------------------------------- */

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }

  .site-nav {
    display: none;
  }

  .site-header .button {
    margin-left: auto;
  }

  .float {
    gap: 8px;
    padding: 7px 12px 7px 7px;
    border-radius: 15px;
    font-size: 12px;
  }

  .float strong {
    font-size: 13px;
  }

  .badge {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .badge .i {
    width: 17px;
    height: 17px;
  }

  .f-alarm {
    top: 2%;
    left: -9%;
  }

  .f-love {
    top: 42%;
    right: -9%;
  }

  .f-claude {
    bottom: 13%;
    left: -8%;
  }
}

/* --- Appear on scroll, where the browser can tie it to the scroll itself ------------------- */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 28%;
    }

    @keyframes reveal {
      from {
        opacity: 0;
        translate: 0 48px;
        scale: 0.97;
      }
      to {
        opacity: 1;
        translate: 0 0;
        scale: 1;
      }
    }
  }
}

/* --- Less motion, when asked --------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-delay: 0s !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ticker {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .ticker ul {
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
    padding: 0 16px;
    animation: none;
  }

  .ticker ul[aria-hidden] {
    display: none;
  }

  .ring {
    display: none;
  }

  .look {
    animation: none !important;
  }

  .look:first-child {
    opacity: 1;
  }
}
