/* Forecast Notes: product page, support and privacy. Colors are sampled from the app icon. */
:root {
  --navy-0: #0f5eda;
  --navy-1: #013fac;
  --navy-2: #01165f;
  --navy-3: #000f4a;
  --sky: #2792fc;
  --sun: #ffd23f;

  --bg: #f5f7fc;
  --surface: #ffffff;
  --text: #0b1530;
  --muted: #56607a;
  --rule: #dfe4ef;
  --accent: #0f5eda;
  --fresh: #1f9d55;
  --stale: #e07b00;
  --old: #d93636;
  --shadow: 0 1px 2px rgba(11, 21, 48, .06), 0 12px 32px rgba(11, 21, 48, .08);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #050a1a;
    --surface: #0c1530;
    --text: #e9eefa;
    --muted: #9aa6c2;
    --rule: #1c2748;
    --accent: #5aa8ff;
    --fresh: #3ccf7a;
    --stale: #ff9f2e;
    --old: #ff6b6b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --bg: #050a1a;
  --surface: #0c1530;
  --text: #e9eefa;
  --muted: #9aa6c2;
  --rule: #1c2748;
  --accent: #5aa8ff;
  --fresh: #3ccf7a;
  --stale: #ff9f2e;
  --old: #ff6b6b;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------- Sky: the blue band behind the hero and page headers ---------- */

.sky {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(60vw 60vw at 92% -6%, rgba(255, 200, 25, .36), rgba(255, 200, 25, 0) 70%),
    radial-gradient(90vw 70vw at 100% 0%, var(--sky) 0%, rgba(39, 146, 252, 0) 70%),
    linear-gradient(160deg, var(--navy-0) 0%, var(--navy-1) 38%, var(--navy-2) 78%, var(--navy-3) 100%);
}
.sky a { color: #fff; }

/* Teletype text drifting behind the hero, the raw bulletin the app starts from. */
.teletype {
  position: absolute;
  inset: -10% -5% auto auto;
  width: 70ch;
  margin: 0;
  font: 13px/1.6 var(--mono);
  color: rgba(255, 255, 255, .07);
  white-space: pre;
  pointer-events: none;
  user-select: none;
  transform: rotate(-8deg);
  animation: drift 90s linear infinite;
}
@keyframes drift { from { translate: 0 0; } to { translate: 0 -50%; } }

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 10, 50, .4); }
.topbar nav { display: flex; gap: 20px; font-size: 15px; }
.topbar nav a { text-decoration: none; opacity: .82; }
.topbar nav a:hover, .topbar nav a[aria-current] { opacity: 1; }

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

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  padding-top: 24px;
  padding-bottom: 0;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; padding-top: 40px; }
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

.hero h1 {
  font: 800 clamp(44px, 7.4vw, 82px)/1.02 var(--display);
  letter-spacing: -.03em;
  margin: 0 0 22px;
}
.hero h1 em, .gold { font-style: normal; color: var(--sun); }

.hero .lede {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
  color: rgba(255, 255, 255, .84);
  max-width: 30em;
  margin: 0 0 30px;
}

.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 8px; }

/* Stand-in for Apple's App Store badge until there's a listing to link to. */
.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  line-height: 1.15;
}
.soon svg { width: 22px; height: 22px; flex: none; }
.soon small { display: block; font-size: 11px; opacity: .8; }
.soon strong { display: block; font-size: 17px; font-weight: 600; }

.ghost {
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .3);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.ghost:hover { background: rgba(255, 255, 255, .08); }

.devices {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 420px;
  margin-bottom: -90px;
}
.devices .phone { --w: min(300px, 64vw); transform: rotate(3deg); }
.devices .watch {
  --w: min(150px, 32vw);
  position: absolute;
  left: max(0px, calc(50% - var(--w) * 2.1));
  bottom: 120px;
  z-index: 2;
  transform: rotate(-5deg);
}
@media (min-width: 900px) {
  .devices { margin-bottom: -120px; justify-content: flex-end; padding-right: 24px; }
  .devices .watch { left: auto; right: 270px; bottom: 150px; }
}

.sky-foot { height: 140px; }

/* ---------- Device frames ---------- */

.phone {
  --w: 260px;
  width: var(--w);
  flex: none;
  padding: calc(var(--w) * .03);
  border-radius: calc(var(--w) * .165);
  background: #0d0d10;
  box-shadow: 0 0 0 1.5px #3b3d46 inset, 0 30px 70px rgba(0, 6, 40, .45), 0 6px 18px rgba(0, 6, 40, .25);
}
.phone img {
  width: 100%;
  aspect-ratio: 1260 / 2736;
  border-radius: calc(var(--w) * .14);
  background: #fff;
}

.watch {
  --w: 180px;
  width: var(--w);
  flex: none;
  padding: calc(var(--w) * .07);
  border-radius: calc(var(--w) * .27);
  background: linear-gradient(145deg, #3a3c44, #121317 55%, #2a2b31);
  box-shadow: 0 0 0 1px #4a4c55 inset, 0 24px 50px rgba(0, 0, 0, .5);
  position: relative;
}
.watch::after {
  content: "";
  position: absolute;
  right: calc(var(--w) * -.045);
  top: 30%;
  width: calc(var(--w) * .06);
  height: 18%;
  border-radius: 4px;
  background: linear-gradient(90deg, #2a2b30, #6a6c74);
}
.watch img {
  width: 100%;
  aspect-ratio: 422 / 514;
  border-radius: calc(var(--w) * .2);
  background: #000;
}

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

section { padding: 96px 0; }
section + section { padding-top: 24px; }

.kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
h2 {
  font: 800 clamp(32px, 4.6vw, 52px)/1.06 var(--display);
  letter-spacing: -.025em;
  margin: 0 0 18px;
}
.section-lede { font-size: 19px; color: var(--muted); max-width: 36em; margin: 0 0 40px; }

/* Before and after */

.compare {
  display: grid;
  gap: 20px;
  align-items: stretch;
}
@media (min-width: 860px) {
  .compare { grid-template-columns: 1fr auto 1fr; gap: 24px; }
}
.pane {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
}
.pane-label {
  margin: 0;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pane.raw { background: #0c0f16; color: #c9d1e3; }
.pane.raw .pane-label { background: #161b26; color: #8c97b0; }
.pane.raw pre {
  margin: 0;
  padding: 20px;
  font: 13px/1.6 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  flex: 1;
}
.pane.nice { background: var(--surface); }
.pane.nice .pane-label { background: var(--sun); color: #3a2a00; }
.reader { padding: 20px 22px 24px; font-size: 16.5px; line-height: 1.55; flex: 1; }
.reader .office { font-weight: 700; font-size: 19px; margin: 0; }
.reader .meta { margin: 2px 0 18px; font-size: 13.5px; color: var(--muted); }
.reader .meta .age { color: var(--fresh); }
.reader h3 { margin: 18px 0 8px; font-size: 15px; letter-spacing: .02em; color: var(--accent); }
.reader h3:first-of-type { margin-top: 0; }
.reader ul { margin: 0; padding-left: 1.1em; }
.reader li { margin-bottom: 8px; }
.reader p { margin: 0 0 10px; }
.reader .issued { color: var(--muted); font-size: 14px; }

.arrow {
  align-self: center;
  justify-self: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 22px;
  box-shadow: var(--shadow);
}
@media (max-width: 859px) { .arrow { transform: rotate(90deg); margin: -6px 0; } }

/* Phone gallery */

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 16px 28px;
  margin: 0 -16px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) {
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; padding: 8px 0 0; margin: 0; }
}
.shot { scroll-snap-align: center; margin: 0; }
.shot .phone { --w: 100%; max-width: 250px; margin: 0 auto 22px; padding: 8px; border-radius: 36px; box-shadow: var(--shadow); }
.shot .phone img { border-radius: 29px; }
.shot figcaption strong { display: block; font-size: 18px; margin-bottom: 4px; }
.shot figcaption { color: var(--muted); font-size: 15.5px; line-height: 1.45; max-width: 250px; margin: 0 auto; }
.shot figcaption strong { color: var(--text); }

.ages { display: inline-flex; gap: 6px; margin-top: 8px; font-size: 12.5px; font-weight: 600; }
.ages span { padding: 2px 8px; border-radius: 99px; border: 1px solid currentColor; }
.ages .f { color: var(--fresh); }
.ages .s { color: var(--stale); }
.ages .o { color: var(--old); }

/* Watch band */

.night {
  background:
    radial-gradient(50vw 40vw at 80% 0%, rgba(39, 146, 252, .22), rgba(39, 146, 252, 0) 70%),
    #02040b;
  color: #eef2fb;
  padding: 110px 0;
}
.night .kicker { color: var(--sun); }
.night .section-lede { color: #9aa6c2; }
.watches {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 4vw, 48px);
  flex-wrap: wrap;
  margin-top: 16px;
}
.watches figure { margin: 0; text-align: center; }
.watches .watch { --w: clamp(150px, 22vw, 210px); margin: 0 auto 18px; }
.watches figcaption { color: #9aa6c2; font-size: 15px; max-width: 220px; margin: 0 auto; }
.watches figcaption strong { display: block; color: #fff; font-size: 17px; }
.watches figure:nth-child(2) { translate: 0 28px; }
@media (max-width: 560px) { .watches figure:nth-child(2) { translate: 0; } }

/* iPad and the rest */

.split {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) { .split { grid-template-columns: 1.15fr .85fr; } }
.tablet {
  padding: 12px;
  border-radius: 34px;
  background: #0d0d10;
  box-shadow: 0 0 0 1.5px #3b3d46 inset, var(--shadow);
}
.tablet img { border-radius: 24px; aspect-ratio: 2064 / 2752; width: 100%; background: #fff; }
.tablet-crop { max-height: 560px; overflow: hidden; border-radius: 34px; -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.ticks li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.ticks .ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.ticks .ic svg { width: 22px; height: 22px; }
.ticks strong { display: block; }
.ticks span { color: var(--muted); font-size: 16px; }

/* Privacy band */

.promise { text-align: center; padding: 120px 0; }
.promise h2 { font-size: clamp(36px, 6.4vw, 72px); }
.promise h2 span { display: inline-block; }
.promise p { color: rgba(255, 255, 255, .82); font-size: 19px; max-width: 34em; margin: 0 auto 24px; }
.promise a { font-weight: 600; }

/* Closing */

.closing { text-align: center; }
.closing img { width: 120px; height: 120px; border-radius: 27px; margin: 0 auto 22px; box-shadow: var(--shadow); }
.closing h2 { margin-bottom: 10px; }
.closing p { color: var(--muted); margin: 0 auto 26px; max-width: 30em; }
.closing .soon { border-color: transparent; }

/* ---------- Support and privacy pages ---------- */

.page-head { padding-bottom: 56px; }
.page-head h1 {
  font: 800 clamp(40px, 6vw, 60px)/1.05 var(--display);
  letter-spacing: -.025em;
  margin: 28px 0 10px;
}
.page-head p { margin: 0; color: rgba(255, 255, 255, .8); font-size: 18px; max-width: 34em; }

.doc { max-width: 720px; margin: 0 auto; padding: 56px 16px 32px; }
.doc h2 { font-size: 26px; letter-spacing: -.015em; margin: 48px 0 10px; }
.doc h3 { font-size: 18px; margin: 0 0 6px; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .lede { font-size: 20px; line-height: 1.5; color: var(--muted); }

.contact {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 20px 22px;
  margin: 0 0 40px;
  box-shadow: var(--shadow);
}
.contact .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: #fff; }
.contact .ic svg { width: 22px; height: 22px; }
.contact p:last-child { margin-bottom: 0; }
.closing-contact { margin-top: 40px; }

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); padding: 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  font-weight: 600;
  font-size: 17.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { margin: -4px 2px 18px; color: var(--muted); }

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--rule);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 14px;
}
footer.site .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.site a { color: inherit; }
footer.site p { margin: 14px 0 0; max-width: 46em; }
.maker { font-style: italic; font-family: ui-serif, "New York", Georgia, serif; }

/* ---------- Reveal on scroll (only when the script runs) ---------- */

.js .reveal { opacity: 0; translate: 0 24px; transition: opacity .8s ease, translate .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  .teletype { animation: none; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
  .faq summary::after { transition: none; }
}
