/* RZ Calendar's website. One column of 1080 px on ink, as the app and every brand picture. A sticky header; the
   hero splits text | iPhone; a key to the LEDs; then one scene per section, a headline beside one picture, sides
   alternating; the numbers; privacy; the plans; the close. Everything stacks under 860 px. Tokens follow
   docs/DESIGN.md and docs/assets/brand/brand.json. */
:root {
  color-scheme: dark;
  --ink: #0A0A0B;
  --panel: #161618;
  --paper: #F2F2F7;
  --t2: #C7C7CC;
  --t3: #A1A1A6;
  --t4: #8E8E93;
  --line: #26262C;
  --now: #FF453A;
  --blue: #4099DF;
  --font: "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --section: 88px;
}
* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ink); }
::selection { background: rgba(64, 153, 223, .45); color: #fff; }
a { color: inherit; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; border-radius: 4px; }
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.032em; line-height: 1.04; text-wrap: balance; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 40; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; text-decoration: none; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* Buttons and small type. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 15px 26px;
  font-weight: 600; font-size: 15px; line-height: 1; text-decoration: none; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 10px 30px -12px rgba(242, 242, 247, .35);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 14px 34px -12px rgba(242, 242, 247, .5); }
.btn:active { transform: translateY(1px); }
.btn.small { padding: 9px 16px; font-size: 13px; box-shadow: none; }
/* Before the app is on the store the store buttons are not links: an outlined pill with a lit LED. */
.btn.soon, .btn.soon:hover { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px #3A3A42; transform: none; cursor: default; }
.btn.soon::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); box-shadow: 0 0 8px rgba(64, 153, 223, .9); }
.eyebrow { margin: 0 0 18px; font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--t4); }
.cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
.cta .price { font-size: 14px; color: var(--t4); }

/* The header: the ring and the wordmark, Privacy, Support and the store button; it stays at the top, over a blur. */
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(10, 10, 11, .72);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.bar.moved { border-bottom-color: var(--line); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.top nav { display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--t3); }
.top nav a:not(.btn) { text-decoration: none; transition: color .15s ease; }
.top nav a:not(.btn):hover, footer a:hover { color: var(--paper); }
.wordmark { display: inline-flex; align-items: center; gap: 11px; color: var(--paper); text-decoration: none; }
/* The ring beside the wordmark: the favicon's small-size ring (a wider slot for the red marker), 1.2 × the type. */
.wordmark .ring { width: 29px; height: 29px; flex: none; display: block; }
.wordmark .name { display: inline-flex; align-items: baseline; gap: .14em; font-weight: 700; letter-spacing: -.04em; font-size: 24px; line-height: 1; }
.wordmark i { width: .2em; height: .2em; border-radius: .06em; background: var(--now); box-shadow: 0 0 .45em rgba(255, 69, 58, .8); display: inline-block; }
.wordmark .prod { font-weight: 500; letter-spacing: -.02em; margin-left: .34em; }

/* The hero: the slogan, the paragraph, the store button and the promise; the iPhone beside them, turned a little,
   on a field of faint LEDs. */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px 48px; align-items: center; padding-block: 56px 84px; }
.hero h1 { font-size: clamp(42px, 5.9vw, 72px); letter-spacing: -.038em; line-height: 1; }
.hero .lede { font-size: 19px; color: var(--t2); max-width: 44ch; margin: 26px 0 0; }
.hero .cta { margin-top: 34px; }
.hero .promise { margin: 24px 0 0; font-size: 14px; color: var(--t3); }
.hero .text { position: relative; z-index: 1; }
.stage { position: relative; width: 100%; max-width: min(310px, calc((100svh - 150px) * .45)); margin: 0 auto; min-width: 0; }
.leds { pointer-events: none; }
.leds svg { width: 100%; height: 100%; display: block; }
.stage .leds {
  position: absolute; inset: -8% -75% -10% -48%; z-index: 0;
  -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 25%, transparent 100%);
  opacity: .42;
}
.stage .leds .lit rect { animation: led-on .6s ease-out both; animation-delay: var(--d); }
@keyframes led-on { from { opacity: 0; } }
/* The pictures' LEDs light up as each scrolls in (draw.js adds .motion, .reveal and .shown). */
.motion .reveal:not(.shown) .on { opacity: 0; }
.motion .reveal.shown .on { animation: led-on .5s ease-out both; animation-delay: var(--d, 0ms); }

/* The iPhone in 3D: the face at the front, sixteen frame-shaped layers behind it for the aluminium side, the keys
   on the sides, a shadow on the floor. --depth is the phone's thickness, 11 % of its width, as an iPhone's. */
.device {
  --depth: 11cqw; --ry: -22deg; --rx: 7deg; --rz: 2.5deg;
  container-type: inline-size; position: relative; z-index: 1;
  width: 100%; aspect-ratio: 417 / 876; perspective: 2200px;
}
.device.lock { --ry: -20deg; --rx: 6deg; --rz: 2deg; }
.device .body { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz)); }
.device .layer {
  position: absolute; inset: 0; border-radius: 16.07% / 7.65%;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 14%, rgba(255, 255, 255, 0) 86%, rgba(255, 255, 255, .1));
  transform: translateZ(calc(var(--depth) * var(--i) / -16));
}
.device .face { position: absolute; inset: 0; transform: translateZ(.5px); }
.device .face svg { display: block; width: 100%; height: 100%; }
.device .key { position: absolute; width: calc(var(--depth) * .42); border-radius: 3px; background: linear-gradient(90deg, #54545b, #2c2c31 50%, #4a4a51); }
.device .key.left { left: 0; transform-origin: 0 50%; transform: translateX(-1.5px) translateZ(calc(var(--depth) * -.29)) rotateY(90deg); }
.device .key.right { right: 0; transform-origin: 100% 50%; transform: translateX(1.5px) translateZ(calc(var(--depth) * -.29)) rotateY(-90deg); }
.device .key.cam { background: linear-gradient(90deg, #1c1d22, #34363e 50%, #1c1d22); transform: translateX(.6px) translateZ(calc(var(--depth) * -.29)) rotateY(-90deg); }
.device .floor {
  position: absolute; left: 4%; right: -4%; bottom: -5%; height: 9%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0));
  filter: blur(10px); transform: translateX(6%);
}
/* The hero phone turns to face you as it scrolls away, where the browser can tie an animation to scrolling;
   elsewhere it keeps its tilt. */
@keyframes face-on { to { transform: rotateX(2deg) rotateY(-6deg) rotateZ(.5deg); } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .device.hero { view-timeline: --phone block; }
    .device.hero .body { animation: face-on linear both; animation-timeline: --phone; animation-range: contain 40% exit 80%; }
  }
}

/* The key: four ideas, eight LEDs each, under the hero. */
.legend { list-style: none; margin: 0; padding: 30px 0 34px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 32px; border-top: 1px solid var(--line); }
.legend li { display: grid; gap: 4px; min-width: 0; align-content: start; }
.legend .key { display: block; width: 117px; height: 30px; margin-bottom: 10px; }
.legend .key svg { display: block; width: 100%; height: 100%; overflow: visible; }
.legend b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.legend li > span:last-child { font-size: 14px; color: var(--t3); }

/* Features: a headline beside one picture. The widget pictures stand on the phone's wallpaper. */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; padding-block: var(--section); border-top: 1px solid var(--line); }
.feature h2, .plans h2 { font-size: clamp(30px, 3.8vw, 46px); }
.feature .text > p:not([class]) { font-size: 18px; color: var(--t2); max-width: 44ch; margin: 18px 0 0; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 7px; margin: 0 0 20px; font: 500 12px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--t3); }
.tags em { font-style: normal; font-size: 10px; letter-spacing: .08em; padding: 4px 6px 3px; border-radius: 5px; border: 1px solid #34343B; color: var(--t3); margin-right: 10px; }
.tags em.pro { color: #A9D2F5; border-color: rgba(64, 153, 223, .5); background: rgba(64, 153, 223, .12); }
.try { margin: 22px 0 0; display: inline-flex; align-items: center; gap: 9px; font: 500 13px/1 var(--mono); color: var(--t3); }
.try::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); box-shadow: 0 0 8px rgba(64, 153, 223, .9); }
.feature .pic { width: 100%; max-width: 420px; margin: 0 auto; min-width: 0; }
.feature .pic svg { display: block; width: 100%; height: auto; }
/* Each feature card stands on one of the ring's four colours: dark at the top, the colour itself at the foot, and
   behind the widgets a large arc of the ring (its band 36 % of the radius, as the mark's). */
.feature { --c: var(--blue); }
.feature.c-copper { --c: #D07936; }
.feature.c-jade { --c: #04AB82; }
.feature.c-amethyst { --c: #A67BD4; }
.feature .pic:not(.stage) {
  position: relative; isolation: isolate; overflow: hidden;
  max-width: 500px; padding: clamp(24px, 6.4vw, 64px) clamp(22px, 5.6vw, 58px); border-radius: clamp(30px, 5vw, 48px);
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--c) 26%, #08080B) 0%,
    color-mix(in oklab, var(--c) 58%, #08080B) 52%,
    var(--c) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.feature .pic:not(.stage)::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 30%; width: 138%; aspect-ratio: 1; translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, transparent 63.5%, color-mix(in oklab, var(--c) 82%, #fff) 64%, color-mix(in oklab, var(--c) 82%, #fff) 99.5%, transparent 100%);
  opacity: .3;
}
/* On colour the widgets cast a shadow, so they lie on the card and are not printed on it. */
.feature .pic:not(.stage) svg { filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .42)); }
.feature.flip .pic { order: -1; }
.feature .stage { max-width: 290px; }
/* The Large widget takes a tap: four buttons lie over its weeks. */
.pic .box { position: relative; }
.pic .hit { position: absolute; left: 3.5%; right: 3.5%; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; transition: background .15s ease; }
.pic .hit:hover { background: rgba(255, 255, 255, .05); }
.pic .hit:focus-visible { outline-offset: 0; }
/* The palette picker: the app's tiles, small. Five thin LEDs, then the name; under them the week's names in the
   shades they get. */
.palettes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; max-width: 46ch; }
.palettes button {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px 8px 10px;
  border-radius: 10px; border: 1px solid #2E2E35; background: rgba(255, 255, 255, .03);
  color: var(--t2); font: 500 13.5px/1 var(--font); cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.palettes button:hover { border-color: #4A4A53; color: var(--paper); }
.palettes button[aria-pressed="true"] { border-color: var(--blue); background: rgba(64, 153, 223, .13); color: var(--paper); }
.palettes i { display: inline-flex; gap: 2px; }
.palettes u { display: block; width: 3px; height: 14px; border-radius: 1px; text-decoration: none; }
.names { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
.names span { position: relative; padding: 5px 9px 5px 17px; border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 1; color: var(--t2); background: color-mix(in srgb, var(--c) 18%, transparent); }
.names span::before { content: ""; position: absolute; left: 7px; top: 50%; width: 3px; height: 10px; margin-top: -5px; border-radius: 1px; background: var(--c); }
.fine { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.fine p { font-size: 15px; color: var(--t3); margin: 0 0 12px; max-width: 54ch; }
.fine b { color: var(--t2); font-weight: 600; }
.fine a { color: var(--paper); text-underline-offset: 3px; }
/* Privacy, short: the promise on the left, what is read and why on the right (Google's review reads the right). */
.privacy { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px 64px; align-items: start; padding-block: 64px; border-top: 1px solid var(--line); }
.privacy h2 { font-size: clamp(26px, 3vw, 34px); }
.privacy .lead p { font-size: 17px; color: var(--t2); max-width: 42ch; margin: 16px 0 0; }
.privacy .fine { margin-top: 0; padding-top: 0; border-top: 0; }

/* The numbers: what you get, in the 5 × 7 matrix of the Clock's weekend face. */
.numbers { padding-block: 60px 56px; border-top: 1px solid var(--line); }
.numbers dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; max-width: 820px; }
.numbers dl > div { display: flex; align-items: center; gap: 18px; min-width: 0; }
.numbers dt { flex: none; width: 43px; }
.numbers dt svg { display: block; width: 100%; height: auto; }
.numbers dd { margin: 0; font-size: 16px; line-height: 1.3; color: var(--t2); max-width: 12ch; }
.numbers > p { margin: 34px 0 0; font-size: 16px; color: var(--t3); }

/* Free and Pro. */
.plans { padding-block: var(--section); border-top: 1px solid var(--line); }
.plans .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.plans .cols > div { min-width: 0; border: 1px solid var(--line); border-radius: 24px; padding: 28px 30px 24px; background: linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, 0)); }
.plans .cols > .pro {
  border-color: rgba(64, 153, 223, .55);
  background: radial-gradient(120% 70% at 100% 0%, rgba(64, 153, 223, .16), rgba(64, 153, 223, 0) 60%), linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, 0));
}
.plans h3 { font-size: 22px; letter-spacing: -.02em; }
.plans .sub { margin: 8px 0 18px; font-size: 15px; color: var(--t3); }
.plans ul { margin: 0; padding: 0; list-style: none; }
.plans li { padding: 10px 0 10px 26px; position: relative; color: var(--t2); font-size: 16px; border-top: 1px solid var(--line); }
.plans li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 10px; height: 7px; border-radius: 2px; background: var(--paper); opacity: .8; }
.plans .pro li::before { background: var(--blue); opacity: 1; box-shadow: 0 0 8px rgba(64, 153, 223, .8); }

/* The close: the second line and the store button, over the LED field coming up from the foot. */
.close { position: relative; padding-block: 104px 112px; border-top: 1px solid var(--line); text-align: center; }
.close .leds {
  position: absolute; inset: 0 -12%; z-index: 0; opacity: .3;
  -webkit-mask-image: radial-gradient(60% 95% at 50% 100%, #000 10%, transparent 78%);
  mask-image: radial-gradient(60% 95% at 50% 100%, #000 10%, transparent 78%);
}
.close h2, .close .cta { position: relative; z-index: 1; }
.close h2 { font-size: clamp(36px, 5.4vw, 64px); letter-spacing: -.038em; }
.close .cta { justify-content: center; margin-top: 32px; }

/* The footer: the ring, then Privacy, Support and the legal name. */
footer {
  border-top: 1px solid var(--line); padding-block: 26px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--t4);
}
footer .ring svg { width: 26px; height: 26px; display: block; }
footer .right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
footer a { color: var(--t3); text-decoration: none; transition: color .15s ease; }

/* Privacy and Support read as one column of text. */
article { max-width: 68ch; padding-block: 40px 56px; }
article h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -.025em; line-height: 1.1; margin: 0 0 8px; }
article .dated { font: 13px var(--mono); color: var(--t4); margin: 0 0 28px; }
article h2 { font-size: 20px; margin: 32px 0 8px; letter-spacing: -.015em; line-height: 1.2; }
article p, article li { color: var(--t2); font-size: 16px; }
article ul { padding-left: 20px; margin: 8px 0; }
article li { margin: 6px 0; }
article a { color: var(--paper); text-underline-offset: 3px; }
article .contact { font-size: 18px; color: var(--paper); }
.placeholder { border-bottom: 1px dashed var(--t4); color: var(--paper); }

@media (max-width: 860px) {
  :root { --section: 60px; }
  .hero { grid-template-columns: 1fr; padding-block: 36px 56px; gap: 40px; }
  .hero h1 { font-size: clamp(38px, 11vw, 56px); }
  .stage { max-width: 280px; }
  .stage .leds { inset: -2% -45% -8% -45%; }
  .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .pic { order: 1; }
  .feature .pic { max-width: 400px; }
  .privacy { grid-template-columns: 1fr; gap: 20px; }
  .plans .cols { grid-template-columns: 1fr; }
  .close { padding-block: 72px 80px; }
}
@media (max-width: 560px) {
  .numbers dl { gap: 20px 14px; }
  .numbers dl > div { flex-direction: column; align-items: flex-start; gap: 12px; }
  .numbers dd { font-size: 14px; }
  .top nav a:not(.btn) { display: none; }
  .plans .cols > div { padding: 24px 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .bar { transition: none; }
  .btn:hover { transform: none; }
  .stage .leds .lit rect { animation: none; }
}
