/* Bundle Up's website. The colours are the app's (`Shared/Look/Look.swift`),
   copied here once: change them there first. No inline style anywhere (the
   site's Content-Security-Policy refuses them): a sticker's place is a class. */

:root {
  /* Look.ink, inkSoft, inkFaint */
  --ink: #141B3C;
  --ink-soft: #454C6B;
  --ink-faint: #5E6480;
  --white: #FFFFFF;
  /* Look.panel, Look.badge, Look.ready */
  --panel: #E2ECF8;
  --badge: #FFD45E;
  --ready: #23874C;
  /* Look.paper: the snowsuit's deep blue, and the coldest tier */
  --deep-top: #2A6BDB;
  --deep: #1E5CC9;
  --deep-bottom: #1B54BC;
  --deeper: #35309F;
  /* Look.nightSky */
  --night-top: #161D4A;
  --night-bottom: #2F3F8C;
  /* Look.plainSky */
  --sky-top: #DCE6F1;
  --sky-bottom: #F4F6F9;
  /* Look.paper, one a tier: t-shirt, long sleeves, light jacket, mid-season, winter coat */
  --tier-orange: #FF9D5C;
  --tier-yellow: #FFC93F;
  --tier-green: #6ECB8C;
  --tier-teal: #55C2CD;
  --tier-blue: #52A6F8;
  /* Look.rainPaper */
  --rain-top: #86A3C0;
  --rain-bottom: #98B1CB;

  --gutter: 20px;
  --wide: 1120px;
  --radius: 28px;
  --shadow: 0 18px 40px rgba(20, 27, 60, 0.22);
  --body: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font: 500 1.0625rem/1.5 var(--body);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 3px solid var(--badge); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }

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

/* Celsius everywhere, Fahrenheit for a browser set to the United States
   (`head.js` puts `us` on the page). */
.f { display: none; }
.us .c { display: none; }
.us span.f { display: inline; }
.us img.f { display: block; }

/* ---------- The large letters ---------- */

.shout {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.94;
  text-wrap: balance;
}
.shout span { display: block; }
/* The last line: the badge's yellow with a dark line, as on the App Store pictures. */
.shout .mark {
  color: var(--badge);
  text-shadow:
    0.035em 0 0 var(--ink), -0.035em 0 0 var(--ink), 0 0.035em 0 var(--ink), 0 -0.035em 0 var(--ink),
    0.025em 0.025em 0 var(--ink), -0.025em 0.025em 0 var(--ink), 0.025em -0.025em 0 var(--ink), -0.025em -0.025em 0 var(--ink),
    0.07em 0.08em 0 var(--ink);
}

/* ---------- The bar at the top ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 800;
  font-size: 1.125rem;
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 8px rgba(20, 27, 60, 0.3); }
.lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
}
.lang:hover { background: rgba(255, 255, 255, 0.26); }

/* ---------- The first screen ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(120% 70% at 70% 62%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(180deg, var(--deep-top), var(--deep) 45%, var(--deep-bottom));
}
.hero-grid { display: grid; gap: 28px; padding-top: 10px; }
.hero h1 { font-size: clamp(2.5rem, 11.4vw, 5.25rem); }
.lead { margin-top: 18px; max-width: 34ch; font-size: 1.1875rem; line-height: 1.42; font-weight: 600; }
.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 22px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--badge);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 4px 0 var(--ink);
}
.soon svg { width: 20px; height: 20px; flex: none; }
a.soon { text-decoration: none; transition: translate 0.12s ease, box-shadow 0.12s ease; }
a.soon:hover { translate: 0 -2px; box-shadow: 0 6px 0 var(--ink); }
a.soon:active { translate: 0 3px; box-shadow: 0 1px 0 var(--ink); }
.fine { margin-top: 14px; font-size: 0.875rem; font-weight: 600; opacity: 0.82; }

/* The phone and what floats around it. Every size hangs on the phone's
   width, so the whole scene scales as one. */
.stage {
  --w: clamp(204px, 58vw, 300px);
  position: relative;
  height: calc(var(--w) * 2.06);
  margin-inline: calc(-1 * var(--gutter));
}
.phone {
  width: var(--w);
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.168);
  background: var(--white);
  box-shadow: var(--shadow);
}
.phone img { width: 100%; aspect-ratio: 720 / 1564; border-radius: calc(var(--w) * 0.138); background: var(--deep); }
.stage .phone {
  position: absolute;
  top: calc(var(--w) * 0.08);
  left: 50%;
  margin-left: calc(var(--w) * -0.5);
  transform: rotate(7deg);
  transform-origin: 50% 0;
}

.sticker {
  position: absolute;
  width: calc(var(--w) * var(--size, 0.4));
  filter: drop-shadow(0 8px 10px rgba(20, 27, 60, 0.28));
  rotate: var(--turn, 0deg);
  animation: float var(--time, 7s) ease-in-out infinite;
  animation-delay: var(--wait, 0s);
}
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 calc(var(--w) * -0.03); }
}

.hero .s1 { --size: 0.44; --turn: -10deg; --time: 7s; left: calc(50% - var(--w) * 0.86); top: calc(var(--w) * 0.34); }
.hero .s2 { --size: 0.36; --turn: 9deg; --time: 8s; --wait: -3s; left: calc(50% - var(--w) * 0.83); top: calc(var(--w) * 0.86); }
.hero .s3 { --size: 0.5; --turn: -6deg; --time: 9s; --wait: -5s; left: calc(50% - var(--w) * 0.92); top: calc(var(--w) * 1.36); }
.hero .s4 { --size: 0.5; --turn: 11deg; --time: 8s; --wait: -2s; left: calc(50% + var(--w) * 0.36); top: calc(var(--w) * -0.02); }
.hero .s5 { --size: 0.3; --turn: -8deg; --time: 6s; --wait: -4s; left: calc(50% + var(--w) * 0.58); top: calc(var(--w) * 0.5); }
.hero .s6 { --size: 0.44; --turn: 6deg; --time: 9s; --wait: -1s; left: calc(50% + var(--w) * 0.46); top: calc(var(--w) * 1.5); }

/* The evening notice, drawn as iOS shows one. */
.notice {
  position: absolute;
  left: calc(50% - var(--w) * 0.5);
  top: calc(var(--w) * 1.5);
  width: calc(var(--w) * 1.18);
  padding: calc(var(--w) * 0.05) calc(var(--w) * 0.058);
  border-radius: calc(var(--w) * 0.085);
  background: var(--white);
  color: var(--ink);
  font-size: calc(var(--w) * 0.047);
  line-height: 1.36;
  box-shadow: 0 0 0 calc(var(--w) * 0.012) var(--ink), 0.03em 0.6em 1.6em rgba(20, 27, 60, 0.35);
  rotate: -3deg;
}
.notice-top { display: flex; align-items: center; gap: 0.6em; color: var(--ink-faint); font-weight: 600; }
.notice-top img { width: 1.9em; height: 1.9em; border-radius: 0.45em; }
.notice-top .when { margin-left: auto; }
.notice-title { margin-block: 0.45em 0.2em; font-size: 1.26em; font-weight: 700; }
.notice p:not(.notice-title) { color: var(--ink-soft); font-weight: 500; }

/* Snow, as on the day's page: round flakes, slow. */
.snow { position: absolute; inset: 0; pointer-events: none; }
.snow i {
  position: absolute;
  top: -3%;
  left: var(--at);
  width: var(--dot, 7px);
  height: var(--dot, 7px);
  border-radius: 50%;
  background: var(--white);
  opacity: var(--see, 0.6);
  animation: fall var(--time, 14s) linear infinite;
  animation-delay: var(--wait, 0s);
}
@keyframes fall { to { transform: translate3d(24px, 108vh, 0); } }
.snow i:nth-child(1) { --at: 4%; --time: 15s; --wait: -2s; }
.snow i:nth-child(2) { --at: 13%; --dot: 5px; --time: 19s; --wait: -9s; --see: 0.45; }
.snow i:nth-child(3) { --at: 22%; --dot: 9px; --time: 13s; --wait: -5s; }
.snow i:nth-child(4) { --at: 31%; --dot: 4px; --time: 21s; --wait: -14s; --see: 0.4; }
.snow i:nth-child(5) { --at: 40%; --time: 16s; --wait: -7s; }
.snow i:nth-child(6) { --at: 49%; --dot: 5px; --time: 18s; --wait: -1s; --see: 0.5; }
.snow i:nth-child(7) { --at: 58%; --dot: 10px; --time: 14s; --wait: -11s; --see: 0.35; }
.snow i:nth-child(8) { --at: 66%; --dot: 5px; --time: 20s; --wait: -4s; }
.snow i:nth-child(9) { --at: 75%; --time: 15s; --wait: -12s; --see: 0.5; }
.snow i:nth-child(10) { --at: 83%; --dot: 4px; --time: 22s; --wait: -6s; --see: 0.45; }
.snow i:nth-child(11) { --at: 91%; --dot: 8px; --time: 13s; --wait: -8s; }
.snow i:nth-child(12) { --at: 97%; --dot: 5px; --time: 17s; --wait: -3s; --see: 0.4; }

/* ---------- To the degree: three days ---------- */

.days {
  padding-block: 64px 72px;
  background: linear-gradient(180deg, #EEF3FB, #D4E0F5);
}
.eyebrow { font-weight: 800; font-size: 0.9375rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.days h2, .more h2 { margin-top: 10px; font-size: clamp(2rem, 8.6vw, 3.5rem); }
.day-grid { display: grid; gap: 44px; margin-top: 40px; }
.day h3 { font-size: clamp(1.75rem, 7.6vw, 2.5rem); }
.day p { margin-top: 12px; max-width: 36ch; color: var(--ink-soft); font-weight: 600; }
.card {
  --w: clamp(196px, 54vw, 250px);
  position: relative;
  height: calc(var(--w) * 1.72);
  margin-top: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 3px var(--ink), 0 6px 0 3px var(--ink);
}
.card .phone {
  position: absolute;
  top: calc(var(--w) * 0.16);
  left: 50%;
  margin-left: calc(var(--w) * -0.5);
  transform-origin: 50% 0;
}
.card.ice { background: linear-gradient(180deg, var(--rain-top), var(--rain-bottom)); }
.card.ice .phone { transform: rotate(-6deg); }
.card.wheel { background: linear-gradient(180deg, var(--tier-yellow), var(--tier-orange)); }
.card.wheel .phone { transform: rotate(5deg); }
.card.evening { background: linear-gradient(180deg, var(--night-top), var(--night-bottom)); }
.card.evening .phone { transform: rotate(-4deg); }
.card .s1 { --size: 0.46; --turn: -12deg; --time: 8s; left: calc(50% - var(--w) * 0.92); top: calc(var(--w) * 0.08); }
.card .s2 { --size: 0.5; --turn: 10deg; --time: 9s; --wait: -4s; left: calc(50% + var(--w) * 0.4); top: calc(var(--w) * 1.08); }

/* ---------- What else it does ---------- */

.more { padding-block: 64px 72px; background: var(--white); }
.more-grid { display: grid; gap: 22px; margin-top: 32px; }
.fact {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--tier-blue);
  box-shadow: 0 0 0 3px var(--ink), 0 6px 0 3px var(--ink);
}
.fact .tile {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 3px 0 var(--ink);
}
.fact .tile svg { width: 28px; height: 28px; }
.fact:nth-child(6n + 2) { background: var(--tier-yellow); }
.fact:nth-child(6n + 3) { background: var(--tier-green); }
.fact:nth-child(6n + 4) { background: var(--tier-orange); }
.fact:nth-child(6n + 5) { background: var(--tier-teal); }
.fact:nth-child(6n + 6) { background: var(--panel); }
.fact h3 { margin-top: 16px; font-size: 1.3125rem; line-height: 1.2; font-weight: 800; }
.fact p { margin-top: 6px; font-weight: 600; }

/* ---------- The wardrobe, going by ---------- */

.rack {
  padding-block: 40px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--deep), var(--deep-bottom));
  color: var(--white);
}
.rack h2 { font-size: clamp(1.75rem, 7.6vw, 3rem); text-align: center; }
.rack p { margin: 12px auto 0; max-width: 36ch; text-align: center; font-weight: 600; opacity: 0.9; }
.row { display: flex; width: max-content; gap: 26px; margin-top: 28px; animation: slide 46s linear infinite; }
.row + .row { animation-direction: reverse; animation-duration: 58s; }
.row img { width: 104px; height: 104px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(20, 27, 60, 0.3)); }
.row img:nth-child(odd) { rotate: -7deg; }
.row img:nth-child(even) { rotate: 6deg; }
@keyframes slide { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- The last word ---------- */

.end {
  position: relative;
  padding-block: 72px 80px;
  overflow: hidden;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(2px 2px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 28% 62%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
    radial-gradient(3px 3px at 44% 12%, rgba(255, 255, 255, 0.8) 50%, transparent 51%),
    radial-gradient(2px 2px at 63% 30%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 74%, rgba(255, 255, 255, 0.6) 50%, transparent 51%),
    radial-gradient(3px 3px at 90% 16%, rgba(255, 255, 255, 0.85) 50%, transparent 51%),
    radial-gradient(2px 2px at 6% 84%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
    radial-gradient(2px 2px at 52% 88%, rgba(255, 255, 255, 0.5) 50%, transparent 51%),
    linear-gradient(180deg, var(--night-top), var(--night-bottom));
}
.count { font-size: clamp(4.5rem, 25vw, 11rem); letter-spacing: -0.05em; }
.count-line { margin: 10px auto 0; max-width: 24ch; font-size: 1.3125rem; line-height: 1.3; font-weight: 700; }
.end h2 { margin-top: 44px; font-size: clamp(1.75rem, 7.4vw, 3rem); }
.end .soon { margin-top: 28px; }

/* ---------- The foot ---------- */

.foot { padding-block: 32px 40px; background: var(--ink); color: var(--white); font-size: 0.9375rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot p { margin-top: 14px; max-width: 70ch; color: rgba(255, 255, 255, 0.72); font-size: 0.8125rem; }

/* ---------- A page of words: privacy, support, terms ---------- */

.page-top {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(180deg, var(--deep-top), var(--deep) 50%, var(--deep-bottom));
}
.page-top .title { --w: 250px; position: relative; padding-block: 26px 56px; }
.page-top h1 { max-width: 12ch; font-size: clamp(2.25rem, 10.4vw, 4.5rem); }
.page-top .sub { margin-top: 14px; max-width: 34ch; font-weight: 600; font-size: 1.125rem; }
.page-top .sticker { display: none; }
.page-body { padding-block: 0 72px; background: linear-gradient(180deg, #EEF3FB, #D4E0F5); }
.sheet {
  position: relative;
  top: -28px;
  margin-bottom: -28px;
  max-width: 760px;
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--ink), 0 6px 0 3px var(--ink);
}
.sheet h2 { margin-top: 28px; font-size: 1.3125rem; line-height: 1.25; font-weight: 800; }
.sheet h2:first-child { margin-top: 0; }
.sheet p, .sheet li { color: var(--ink-soft); }
.sheet p { margin-top: 8px; }
.sheet ol { margin: 8px 0 0; padding-left: 1.3em; }
.sheet li { margin-top: 4px; }
.sheet a { color: var(--deep-bottom); font-weight: 700; text-underline-offset: 3px; overflow-wrap: anywhere; }
.sheet .dated { margin-top: 28px; font-size: 0.875rem; color: var(--ink-faint); }
.mail {
  display: grid;
  gap: 4px;
  margin-bottom: 28px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--panel);
}
.mail strong { font-size: 1.125rem; }
.sheet .mail a { color: var(--ink); font-size: 1.125rem; }

.lost { min-height: 100vh; min-height: 100svh; display: grid; align-content: start; }
.lost h1, .lost h2 { font-size: clamp(2.5rem, 12vw, 5rem); }
.lost div { margin-top: 9vh; }
.lost div + div { margin-top: 56px; padding-bottom: 72px; }
.lost p { margin-top: 18px; font-size: 1.1875rem; font-weight: 600; }
.lost p a { font-weight: 800; }

/* ---------- Wider screens ---------- */

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .day-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .day { display: grid; grid-template-rows: auto auto 1fr; }
  .day h3 { font-size: clamp(1.25rem, 2.25vw, 2rem); }
  .card { --w: clamp(150px, 21vw, 250px); align-self: end; }
  .more-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 22px; }
  .row img { width: 132px; height: 132px; }
  .sheet { padding: 40px 44px; }
  .page-top .title { padding-block: 40px 84px; }
  .page-top .sticker { display: block; }
  .page-top .s1 { --size: 0.6; --turn: 10deg; right: 22%; top: 6px; left: auto; }
  .page-top .s2 { --size: 0.52; --turn: -8deg; --wait: -3s; right: 2%; top: 46px; left: auto; }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; gap: 16px; padding-top: 28px; }
  .hero h1 { font-size: clamp(3.5rem, 6.6vw, 5.75rem); }
  .lead { font-size: 1.3125rem; }
  .hero-copy { padding-block: 36px 72px; }
  .stage { --w: clamp(280px, 27vw, 350px); margin-inline: 0; height: calc(var(--w) * 2.1); }
  .notice { top: calc(var(--w) * 1.44); }
  .more-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Nothing moves for a parent who asked for that. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticker, .snow i, .row { animation: none; }
  .row { width: auto; flex-wrap: wrap; justify-content: center; }
  .row [aria-hidden="true"] { display: none; }
}
