:root {
  --night: #16193a;
  --dusk: #3b2f63;
  --rose: #e79bb0;
  --sun: #ffcb5c;
  --sky: #d7e8f5;
  --paper: #f5f9fc;
  --ink: #16193a;
  --ink-soft: #454a6b;
  --moon: #eef0ff;
  --moon-soft: #bcc0e6;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --gutter: clamp(1rem, 5vw, 4rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 400 1.125rem/1.6 var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }
a:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; border-radius: 4px; }

h1, h2 {
  font-family: var(--display);
  font-variation-settings: "wdth" 85;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Hero */

.hero {
  position: relative;
  min-height: min(100svh, 60rem);
  display: flex;
  flex-direction: column;
  color: var(--moon);
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
}

.sky { position: absolute; inset: 0; z-index: -1; }

.sun {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(70vw, 34rem);
  aspect-ratio: 1;
  translate: -50% 62%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #ffe3a1 0%, var(--sun) 38%, #f59f6c 70%, transparent 71%);
  box-shadow: 0 0 12rem 4rem rgba(255, 180, 110, 0.35);
  animation: rise 3.2s cubic-bezier(.2, .7, .2, 1) .3s both;
}

@keyframes rise {
  from { translate: -50% 110%; opacity: .2; }
  to { translate: -50% 62%; opacity: 1; }
}

.bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.5rem var(--gutter);
  font-size: 1rem;
}

.wordmark {
  font: 700 1.35rem var(--display);
  font-variation-settings: "wdth" 80;
  letter-spacing: -0.01em;
}

.bar a { text-decoration: none; color: var(--moon-soft); }
.bar a:hover { color: var(--moon); }

.hero-inner {
  padding: 0 var(--gutter) clamp(9rem, 30vh, 18rem);
  margin-top: auto;
  max-width: 64rem;
}

.clock {
  font: 800 clamp(7rem, 30vw, 22rem)/0.8 var(--display);
  font-variation-settings: "wdth" 75, "opsz" 96;
  letter-spacing: -0.05em;
  margin: 0 0 1.5rem -0.05em;
  color: #2c2f63;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700;
  max-width: 14em;
}

.lede {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--moon-soft);
  max-width: 32em;
  margin: 1.25rem 0 0;
}

.status {
  display: inline-block;
  margin: 2rem 0 0;
  padding: .6rem 1.1rem;
  border: 1px solid rgba(238, 240, 255, .35);
  border-radius: 999px;
  font-size: 1rem;
}

/* Features */


.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  /* Full-bleed band so each section can carry its own slice of the sunrise. */
  padding: 5rem max(var(--gutter), (100% - 68rem) / 2);
  background: linear-gradient(to bottom, var(--from), var(--to));
}

.copy { max-width: 34rem; }

.feature h2, .yours h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.feature p { margin: 0 0 1.25rem; }

.feature ul { margin: 0; padding: 0; list-style: none; }

.feature li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .6rem;
}

.feature li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
}

.on-dark { color: var(--moon); }
.on-dark p, .on-dark li { color: var(--moon-soft); }
.on-dusk { color: var(--night); }
.on-dusk p, .on-dusk li { color: #2a2150; }
.on-light { color: var(--ink); }
.on-light p, .on-light li { color: var(--ink-soft); }

.phone {
  margin: 0;
  width: clamp(14rem, 24vw, 18rem);
  padding: .55rem;
  border-radius: 2.4rem;
  background: #0d0f24;
  box-shadow: 0 2rem 4rem -1.5rem rgba(22, 25, 58, .55);
}

.phone img { border-radius: 1.9rem; }

.yours {
  padding: 6rem max(var(--gutter), (100% - 44rem) / 2) 4rem;
  text-align: center;
}

.yours p { font-size: 1.3rem; color: var(--ink-soft); }

footer {
  padding: 2rem var(--gutter) 3rem;
  text-align: center;
  font-size: .95rem;
  color: var(--ink-soft);
}

footer p { max-width: 40rem; margin: 0 auto; }

.made-in {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

/* Inline SVG because flag emoji render as plain letters on Windows. */
.flag {
  width: 1.35rem;
  height: .9rem;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(22, 25, 58, .15);
}

@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; padding-block: 3.5rem; }
  .phone { justify-self: center; width: min(72vw, 17rem); }
  .hero-inner { padding-bottom: 24vh; }
}

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

/* Text pages such as the privacy policy */

.doc { background: var(--paper); }
.doc .bar { color: var(--ink); }
.doc .bar a { color: var(--ink); }

.prose {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem var(--gutter) 4rem;
  color: var(--ink-soft);
}

.prose h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 700; color: var(--ink); }
.prose h2 { font-size: 1.6rem; font-weight: 700; color: var(--ink); margin: 2.5rem 0 .75rem; }
.prose .updated { margin-top: .5rem; font-size: 1rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .6rem; }
.prose strong { color: var(--ink); font-weight: 600; }

.footer-links { margin-bottom: 1rem; }
