/* Dayside site. Colors come from the app: system grouped backgrounds, a
   monochrome accent, and the SkyPalette keyframes for every sky. */

@property --sky-top { syntax: "<color>"; inherits: true; initial-value: #3a3470; }
@property --sky-bottom { syntax: "<color>"; inherits: true; initial-value: #c4705f; }

:root {
  --ground: #f2f2f7;
  --surface: #ffffff;
  --ink: #1c1c1e;
  --ink-2: #6c6c70;
  --line: rgb(60 60 67 / 0.2);
  --button: #000000;
  --button-ink: #ffffff;
  --night-mix: 0%;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: 16px;
}
@media (min-width: 700px) {
  :root { --gutter: 32px; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #000000;
    --surface: #1c1c1e;
    --ink: #f2f2f7;
    --ink-2: #98989d;
    --line: rgb(84 84 88 / 0.65);
    --button: #ffffff;
    --button-ink: #000000;
    /* The app darkens every sky 18% toward #05070F in dark mode. */
    --night-mix: 18%;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Skies */

.sky {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--a), #05070f var(--night-mix)),
    color-mix(in srgb, var(--b), #05070f var(--night-mix)));
  color: #fff;
}
.sky-dawn { --a: #1c2458; --b: #4a4c85; }
.sky-day { --a: #2c66a8; --b: #5f97d2; }
.sky-golden { --a: #445792; --b: #e39a6a; }
.sky-dusk { --a: #3a3470; --b: #c4705f; }
.sky-night {
  --a: #111733; --b: #2a3363;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgb(255 255 255 / 0.8), transparent),
    radial-gradient(1px 1px at 27% 62%, rgb(255 255 255 / 0.6), transparent),
    radial-gradient(1.5px 1.5px at 41% 12%, rgb(255 255 255 / 0.7), transparent),
    radial-gradient(1px 1px at 58% 44%, rgb(255 255 255 / 0.5), transparent),
    radial-gradient(1.5px 1.5px at 73% 22%, rgb(255 255 255 / 0.8), transparent),
    radial-gradient(1px 1px at 86% 58%, rgb(255 255 255 / 0.6), transparent),
    radial-gradient(1px 1px at 93% 9%, rgb(255 255 255 / 0.7), transparent),
    linear-gradient(180deg,
      color-mix(in srgb, var(--a), #05070f var(--night-mix)),
      color-mix(in srgb, var(--b), #05070f var(--night-mix)));
}

/* Navigation */

.bar {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--gutter);
  color: #fff;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.bar-links { display: none; gap: 28px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.bar-links a { text-decoration: none; opacity: 0.85; }
.bar-links a:hover { opacity: 1; }
@media (min-width: 820px) {
  .bar-links { display: flex; }
}

/* App Store buttons: the app's monochrome accent, white on skies. */

.store {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-ink);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.store-light { background: #fff; color: #000; }
.store-small { min-height: 36px; padding: 0 16px; font-size: 15px; background: #fff; color: #000; }
.store:hover { filter: brightness(0.94); }

/* Hero: the visitor's own sky, set by sky.js. */

.hero {
  --sky-top: #3a3470;
  --sky-bottom: #c4705f;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
  color: #fff;
  overflow: clip;
  transition: --sky-top 1.8s ease-out, --sky-bottom 1.8s ease-out;
}
.js .hero { --sky-top: #111733; --sky-bottom: #2a3363; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 32px var(--gutter) 0;
}
.hero-copy { text-shadow: 0 1px 24px rgb(0 0 0 / 0.14); }
.now { margin: 0 0 24px; }
.now-place { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 600; }
.now-place svg { width: 14px; height: 14px; fill: currentColor; }
.now-time {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: clamp(76px, 12vw, 136px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.ampm { margin-left: 0.12em; font-size: 0.36em; font-weight: 400; letter-spacing: 0; }
.hero h1 {
  max-width: 12em;
  margin: 0;
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.lede { max-width: 32em; margin: 20px 0 0; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; opacity: 0.92; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 32px 0 0; }
.cta span { font-size: 15px; opacity: 0.85; }

.fan {
  --main: min(62vw, 300px);
  --side: min(48vw, 250px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: calc(var(--main) * 1.9);
  overflow: visible clip;
}
.fan .phone { --w: var(--side); position: relative; margin-top: calc(var(--w) * 0.24); }
.fan .fan-main { --w: var(--main); z-index: 1; margin: 0 calc(var(--side) * -0.36); }
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 24px; padding-top: 48px; }
  .hero-copy { align-self: center; padding-bottom: 72px; }
  .fan { height: 640px; }
}

/* Devices */

.phone {
  --w: 260px;
  flex: none;
  width: var(--w);
  margin: 0;
  padding: calc(var(--w) * 0.03);
  border-radius: calc(var(--w) * 0.16);
  background: #000;
  box-shadow:
    inset 0 0 0 calc(var(--w) * 0.007) #5b5b60,
    0 calc(var(--w) * 0.1) calc(var(--w) * 0.2) calc(var(--w) * -0.08) rgb(0 0 0 / 0.5);
}
.phone img { display: block; width: 100%; height: auto; border-radius: calc(var(--w) * 0.13); }

.ipad {
  --w: 420px;
  flex: none;
  width: var(--w);
  max-width: 100%;
  margin: 0;
  padding: calc(var(--w) * 0.028);
  border-radius: calc(var(--w) * 0.05);
  background: #000;
  box-shadow:
    inset 0 0 0 1.5px #5b5b60,
    0 30px 60px -24px rgb(0 0 0 / 0.55);
}
.ipad img { display: block; width: 100%; height: auto; border-radius: calc(var(--w) * 0.024); }

.watch {
  --w: 150px;
  position: relative;
  flex: none;
  width: var(--w);
  margin: 0;
  padding: calc(var(--w) * 0.075);
  border-radius: calc(var(--w) * 0.27);
  background: #000;
  box-shadow:
    inset 0 0 0 calc(var(--w) * 0.03) #3a3a3e,
    0 24px 40px -18px rgb(0 0 0 / 0.55);
}
.watch::after {
  content: "";
  position: absolute;
  top: 28%;
  right: calc(var(--w) * -0.045);
  width: calc(var(--w) * 0.06);
  height: 18%;
  border-radius: 3px;
  background: #3a3a3e;
}
.watch img { display: block; width: 100%; height: auto; border-radius: calc(var(--w) * 0.19); }

/* Sections */

.section { padding: clamp(64px, 8vw, 104px) 0; }
.section h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.028em;
}

/* Right now: live city skies. */

.world { padding-bottom: 0; }
.world-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.world-head p { max-width: 34em; margin: 0; color: var(--ink-2); font-size: 19px; }
@media (min-width: 900px) {
  .world-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; }
}
.tiles {
  display: flex;
  gap: 10px;
  margin: 32px calc(var(--gutter) * -1) 0;
  padding: 0 var(--gutter) 8px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.tiles::-webkit-scrollbar { display: none; }
.tile {
  --a: #3a3470;
  --b: #c4705f;
  display: flex;
  flex: 0 0 150px;
  flex-direction: column;
  min-height: 150px;
  padding: 14px 16px 16px;
  border-radius: 22px;
  scroll-snap-align: start;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--a), #05070f var(--night-mix)),
    color-mix(in srgb, var(--b), #05070f var(--night-mix)));
  color: #fff;
}
.glyph { width: 22px; height: 22px; margin-bottom: auto; fill: currentColor; color: #fff; }
.tile[data-glyph="sun"] .glyph,
.tile[data-glyph="rise"] .glyph,
.tile[data-glyph="set"] .glyph { color: #ffd60a; }
.city { margin-top: 16px; font-size: 15px; font-weight: 600; }
.time {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.time:empty, .offset:empty { display: none; }
.offset { font-size: 13px; opacity: 0.85; }
@media (min-width: 700px) {
  .tiles { display: grid; grid-template-columns: repeat(4, 1fr); margin: 40px 0 0; padding: 0; overflow: visible; }
}
@media (min-width: 1040px) {
  .tiles { grid-template-columns: repeat(6, 1fr); gap: 12px; }
}

/* Features */

.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.feature-copy { max-width: 34em; }
.feature-copy > p { margin: 20px 0 0; color: var(--ink-2); font-size: 19px; }
.points {
  margin: 28px 0 0;
  padding: 0 0 0 18px;
  border-radius: 14px;
  background: var(--surface);
  list-style: none;
  font-size: 16px;
}
.points li { padding: 13px 18px 13px 0; }
.points li + li { border-top: 0.5px solid var(--line); }

.stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(12px, 2.4vw, 32px);
  padding: clamp(32px, 6vw, 72px) clamp(16px, 4vw, 48px);
  border-radius: 32px;
}
.stage > .phone { --w: min(60vw, 290px); }
.stage-pair > .phone { --w: min(38vw, 250px); }
.stage-pair > .phone + .phone { margin-top: clamp(28px, 6vw, 64px); }
@media (min-width: 960px) {
  .feature-grid { grid-template-columns: 5fr 7fr; gap: 72px; }
  .feature-flip .feature-grid { grid-template-columns: 7fr 5fr; }
  .feature-flip .feature-copy { order: 2; }
}

/* iPad and Watch */

.devices .stage { margin-top: clamp(40px, 6vw, 64px); }
.stage-devices { flex-wrap: wrap; align-items: center; gap: 24px clamp(24px, 5vw, 64px); }
.stage-devices .ipad { --w: min(78vw, 560px); }
.stage-devices .watches { display: flex; gap: 20px; }
.stage-devices .watch { --w: min(34vw, 170px); }
@media (min-width: 960px) {
  .stage-devices { flex-wrap: nowrap; }
  .stage-devices .watches { flex-direction: column; gap: 28px; }
}

/* Heading beside its copy */

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: 72px; }
}
.devices .feature-copy > p { margin-top: 0; }

/* Free */

.free { padding-top: 0; }
.free p { max-width: 34em; margin: 0 0 16px; font-size: clamp(19px, 2vw, 23px); line-height: 1.45; }
.free p + p { color: var(--ink-2); font-size: 17px; }

/* FAQ */

.faq { padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .faq-grid h2 { position: sticky; top: 32px; }
}
.faq-list { border-bottom: 0.5px solid var(--line); }
.faq details { border-top: 0.5px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 12px; }
.faq details p { max-width: 36em; margin: -4px 0 20px; color: var(--ink-2); }

/* Closing */

.closing { padding: clamp(80px, 12vw, 140px) 0; text-align: center; }
.closing-inner { display: flex; flex-direction: column; align-items: center; }
.closing img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 16px 40px -12px rgb(0 0 0 / 0.6); }
.closing h2 { max-width: 14em; margin: 28px 0 0; font-size: clamp(34px, 4.6vw, 56px); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; }
.closing p { margin: 16px 0 32px; font-size: 19px; opacity: 0.88; }

/* Footer */

.foot { padding: 40px 0 48px; color: var(--ink-2); font-size: 15px; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 32px; }
.foot p { margin: 0; }
.foot ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.brand-foot { color: var(--ink); font-weight: 600; }
.fine { flex-basis: 100%; font-size: 13px; }

/* Support, privacy and 404 pages */

.page-top { padding-bottom: clamp(40px, 6vw, 72px); }
.page-top h1 { margin: 32px 0 0; font-size: clamp(38px, 5vw, 56px); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; }
.page-top .lede { margin-top: 12px; }
.prose { padding-top: 48px; padding-bottom: 72px; }
.prose > * { max-width: 680px; }
.prose h2 { margin: 48px 0 8px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.prose h3 { margin: 32px 0 4px; font-size: 19px; font-weight: 600; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); }
.prose li + li { margin-top: 8px; }
.panel { margin: 0 0 16px; padding: 20px 24px; border-radius: 18px; background: var(--surface); }
.panel h2 { margin-top: 0; }
.panel p:last-child { margin-bottom: 0; }
.meta { font-size: 15px; }
.lost { min-height: 100svh; display: flex; flex-direction: column; }
.lost .bar, .lost .wrap { width: 100%; }
.lost .wrap { margin-top: auto; margin-bottom: auto; padding-bottom: 96px; }
.lost h1 { max-width: 14em; margin: 0; font-size: clamp(34px, 5vw, 56px); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; }
.lost p { font-size: 19px; opacity: 0.9; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { transition: none; }
  .faq summary::after { transition: none; }
}
