/* IDLE website. Static, no framework, no build step, no trackers, no cookies.
   Colors mirror IdleColor (Packages/IdleUI/Sources/IdleUI/Theme/IdleColor.swift) with the
   2026-10-17 audit values (muted #5E6B80, gold text #8D6621). Light only since 2026-11-21, like the app
   (UIUserInterfaceStyle Light), with a warmer page: cream, a sunrise hero and gold accents.
   Springs are MotionSpec's (response / damping, k = (2π/R)², c = 4πD/R) sampled into linear(). */

/* ---------- Fonts (Nunito from Packages/IdleUI/Sources/IdleUI/Resources/Fonts, OFL) ---------- */

@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito_400Regular.woff") format("woff"), url("fonts/Nunito_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito_700Bold.woff") format("woff"), url("fonts/Nunito_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito_900Black.woff") format("woff"), url("fonts/Nunito_900Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
/* Arial resized to Nunito's widths and line box, so the swap does not move the layout. */
@font-face {
  font-family: "Nunito Fallback";
  src: local("Arial"), local("ArialMT");
  font-weight: 400;
  size-adjust: 100.3%;
  ascent-override: 100.8%;
  descent-override: 35.2%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Nunito Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 700;
  size-adjust: 97.3%;
  ascent-override: 103.9%;
  descent-override: 36.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Nunito Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 900;
  size-adjust: 101.8%;
  ascent-override: 99.3%;
  descent-override: 34.7%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light;

  --bg: #FFFCF7;
  --surface: #FFFFFF;
  --raised: #FFF6E9;
  --sky: #E6F0FB;
  --stage: #DCE9F8;
  --primary: #3B7DD8;
  --primary-deep: #1E4E8C;
  --level-lip: #13345E;
  --heading: #1E4E8C;
  --text: #2A3445;
  --muted: #5E6B80;
  --gold: #E8B84A;
  --gold-deep: #B8862B;
  --gold-text: #8D6621;
  --gold-tint: #FBF3DF;
  --gold-lip: #EBD9A8;
  --lip: #D9E6F6;
  --chip-lip: #C5DAF3;
  --chip-text: #1E4E8C;
  --status-ink: #0F1B2D;
  --island: #000000;
  --island-minutes: #8EBBF0;
  --link: #1E4E8C;
  --link-hover: #3B7DD8;
  --focus: #3B7DD8;
  --phone-edge: #2A3445;
  --quiet: #FFFFFF;
  --soft: 0 12px 32px rgba(30, 78, 140, 0.08), 0 2px 6px rgba(30, 78, 140, 0.04);
  --phone-shadow: 0 32px 64px rgba(30, 78, 140, 0.22), 0 10px 20px rgba(13, 24, 42, 0.12);
  --cream: #FFF6E8;
  --sunrise: linear-gradient(180deg, #CFE3FA 0%, #E4EFFC 36%, #FFF3E1 76%, #FFE7CF 100%);

  --r16: 16px;
  --r20: 20px;
  --r24: 24px;

  --font: "Nunito", "Nunito Fallback", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* MotionSpec springs. A browser without linear() treats the property as invalid and falls back to `ease`. */
  --spring-calm: linear(0, 0.079, 0.236, 0.403, 0.551, 0.671, 0.764, 0.833, 0.883, 0.919, 0.945, 0.962, 0.974, 0.983, 0.988, 0.992, 0.995, 0.997, 0.998, 0.998, 1);
  --spring-springy: linear(0, 0.061, 0.197, 0.359, 0.516, 0.655, 0.767, 0.853, 0.916, 0.959, 0.987, 1.003, 1.011, 1.015, 1.015, 1.013, 1.011, 1.009, 1.006, 1.004, 1.003, 1.002, 1.001, 1, 1);
  --spring-party: linear(0, 0.045, 0.153, 0.293, 0.441, 0.581, 0.706, 0.809, 0.891, 0.952, 0.995, 1.023, 1.038, 1.045, 1.046, 1.042, 1.036, 1.03, 1.023, 1.017, 1.011, 1.007, 1.004, 1.001, 1, 0.999, 0.998, 0.998, 0.998, 0.998, 0.998, 0.999, 1);
  /* sine in-out for loops (MotionSpec: loops on a 0/50/100 keyframe, never `alternate`) */
  --ease-sine: cubic-bezier(0.37, 0, 0.63, 1);
}

@media (prefers-contrast: more) {
  :root { --muted: #4F5B6E; }
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3 {
  margin: 0;
  color: var(--heading);
  font-weight: 900;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.5rem + 3.6vw, 4rem); line-height: 1.05; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 1.45rem + 1.3vw, 2.25rem); line-height: 1.15; letter-spacing: -0.019em; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }

p, ul, ol, dl, figure { margin: 0; }
p { text-wrap: pretty; }
strong { font-weight: 700; }

a {
  color: var(--link);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: var(--link-hover); }

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

.skip {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: var(--r16);
  background: var(--surface);
  color: var(--link);
  box-shadow: 0 4px 0 var(--lip);
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 768px) {
  .wrap { padding-inline: 32px; }
}

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

/* ---------- Header ---------- */

.top__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 24px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--heading);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand:hover { color: var(--heading); }
.brand > svg { width: 40px; height: auto; flex: none; }

.nav {
  display: flex;
  justify-content: center;
  gap: 2px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
.nav a:hover { background: var(--sky); color: var(--heading); }
.nav a[aria-current="page"] { background: var(--sky); color: var(--heading); }

@media (max-width: 959px) {
  .top__bar { grid-template-columns: 1fr auto; }
  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    margin-inline: -16px;
    padding: 0 12px 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
}
@media (min-width: 768px) and (max-width: 959px) {
  .nav { margin-inline: -32px; padding-inline: 28px; }
}

/* ---------- Buttons: solid lips that the button sinks onto (MotionSpec "Press & release", Calm) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  margin-bottom: 4px;
  padding: 0 24px;
  border-radius: var(--r16);
  background: var(--primary);
  color: #FFFFFF;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--primary-deep), 0 8px 18px rgba(59, 125, 216, 0.35);
  transition: transform 440ms var(--spring-calm), box-shadow 160ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: #FFFFFF; }
.btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 transparent;
  transition-duration: 60ms;
}

.btn--quiet {
  background: var(--quiet);
  color: var(--link);
  box-shadow: 0 4px 0 var(--lip), var(--soft);
}
.btn--quiet:hover { color: var(--link-hover); }
.screen .btn--quiet { box-shadow: 0 4px 0 var(--chip-lip), var(--soft); }

/* Small labels on blue fail AA, so the small button is primaryDeep with the Lv badge's lip (8.32:1). */
.btn--small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 1rem;
  background: var(--primary-deep);
  box-shadow: 0 4px 0 var(--level-lip);
}

/* ---------- Chips ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--chip-text);
  font-size: 0.9375rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 3px 0 var(--chip-lip);
}
.chip svg { width: 15px; height: 15px; flex: none; }
.chip--gold { background: var(--gold-tint); color: var(--gold-text); box-shadow: 0 3px 0 var(--gold-lip); }
.chip--deep { background: var(--primary-deep); color: #FFFFFF; box-shadow: 0 3px 0 var(--level-lip); }
.chips { display: flex; flex-wrap: wrap; gap: 12px 10px; }

/* ---------- Hero: the top of a phone, blown up ---------- */

.hero { padding-top: 4px; }

.screen {
  position: relative;
  padding: 0 20px 48px;
  border-radius: 32px;
  background: var(--stage);
  text-align: center;
  overflow: hidden;
}

.stage {
  --top: 12px;
  --island-w: 196px;
  --island-h: 36px;
  --mo-w: 168px;
  --tuck: -24px;
  position: relative;
  height: calc(var(--top) + var(--island-h) + var(--mo-w) * 0.511 + 10px);
  margin-inline: -20px;
}
@media (min-width: 640px) {
  .stage { max-width: 600px; margin-inline: auto; }
}

.stage__time,
.stage__battery {
  position: absolute;
  top: calc(var(--top) + var(--island-h) / 2);
  transform: translateY(-50%);
}
/* Centered in the "ears" either side of the island, the way iOS lays out the status bar. */
.stage__time {
  left: calc((100% - var(--island-w)) / 4);
  translate: -50% 0;
  display: grid;
  color: var(--status-ink);
  font-size: 1.0625rem;
  font-weight: 900;
  line-height: 1;
}
.stage__time > span { grid-area: 1 / 1; }
.stage__battery { right: calc((100% - var(--island-w)) / 4); translate: 50% 0; width: 26px; height: 13px; color: var(--status-ink); }

.island {
  position: absolute;
  z-index: 2;
  top: var(--top);
  left: 0;
  right: 0;
  width: var(--island-w);
  height: var(--island-h);
  margin-inline: auto;
  border-radius: 999px;
  background: var(--island);
}
.island__z,
.island__m {
  position: absolute;
  top: 50%;
  right: calc(var(--island-h) * 0.38);
  transform: translateY(-50%);
}
.island__z { width: calc(var(--island-h) * 0.8); }
.island__m {
  color: var(--island-minutes);
  font-size: calc(var(--island-h) * 0.43);
  font-weight: 900;
  line-height: 1;
}

/* Everything above the island's middle is clipped, so a tucked-in Mo never peeks over the top. */
.stage__clip {
  position: absolute;
  top: calc(var(--top) + var(--island-h) / 2);
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}
.stage__mo {
  position: absolute;
  top: calc(var(--island-h) / 2 - var(--mo-w) * 0.222);
  left: 50%;
  width: var(--mo-w);
  margin-left: calc(var(--mo-w) / -2);
}
.stage__mo svg { width: 100%; height: auto; }
.breathe { transform-origin: 50% 0; }

@media (min-width: 640px) {
  .screen { padding: 0 32px 64px; border-radius: 48px; }
  .stage {
    --top: 16px;
    --island-w: 320px;
    --island-h: 52px;
    --mo-w: 240px;
    --tuck: -34px;
  }
  .stage__time { font-size: 1.25rem; }
  .stage__battery { width: 30px; height: 15px; }
}

.hero__copy { max-width: 780px; margin: 20px auto 0; }
.lead {
  margin: 20px auto 0;
  max-width: 34em;
  font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.3125rem);
  line-height: 1.5;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 32px;
}
.actions > .btn { min-width: 220px; }
.fine {
  margin-top: 14px;
  font-size: 0.9375rem;
  font-weight: 700;
}

/* The one orchestrated moment: at 3:15 a gap opens and Mo pops out of the island, awake.
   Final state is the static state, so Reduce Motion (and any browser without the animations) shows it as is. */
.face-nap { opacity: 0; }
.face-up { opacity: 1; }
.island__z { opacity: 0; }
.time-before { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .island { animation: island-pop 440ms var(--spring-springy) 1.1s both; }
  .island__z { animation: fade-out 160ms ease 1.1s both; }
  .island__m { animation: fade-in 220ms ease 1.16s both; }
  .time-before { animation: fade-out 1ms linear 1.1s both; }
  .time-after { animation: fade-in 1ms linear 1.1s both; }
  .drop { animation: mo-drop 740ms var(--spring-party) 1.1s both; }
  .face-nap { animation: fade-out 120ms ease 1.1s both; }
  .face-up { animation: fade-in 120ms ease 1.1s both; }
  /* B5: breathe 1.00 to 1.03 over 3.2 s, Mo's one loop on this page; stops after 4 cycles (WCAG 2.2.2) */
  .breathe { animation: breathe 3.2s var(--ease-sine) 4; }
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes island-pop { from { transform: scale(0.94, 0.9); } to { transform: none; } }
@keyframes mo-drop { from { transform: translateY(var(--tuck)); } to { transform: none; } }
@keyframes breathe { 50% { transform: scale(1.03); } }

/* ---------- Page bands and section heads ---------- */

.band { padding-block: clamp(56px, 7vw, 96px); }
.band--tint { background: var(--sky); }
.band--flush { padding-top: 0; }

.head { max-width: 40rem; }
.head > p { margin-top: 14px; font-size: 1.125rem; }
.head + * { margin-top: 40px; }

.page-head { padding-block: clamp(32px, 5vw, 64px) 8px; }
.page-head .lead { margin-inline: 0; }

.more { margin-top: 20px; }

/* ---------- Phone frame for the real screenshots ---------- */

.phone {
  --pw: 248px;
  width: var(--pw);
  max-width: 100%;
  flex: none;
  padding: calc(var(--pw) * 0.035);
  border-radius: calc(var(--pw) * 0.165);
  background: #000000;
  box-shadow: 0 0 0 2px var(--phone-edge), var(--phone-shadow);
}
.phone img,
.phone video {
  width: 100%;
  border-radius: calc(var(--pw) * 0.13);
  background: #F7FAFE;
}
.phone video { aspect-ratio: 1178 / 2556; object-fit: cover; }
@media (min-width: 1024px) {
  .phone { --pw: 264px; }
}

/* ---------- Gap, quest, loot (a real sequence, so it is an ordered list) ---------- */

.loop {
  display: flex;
  gap: 20px;
  margin-inline: -16px;
  padding: 8px 16px 24px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  counter-reset: step;
}
.loop > li {
  flex: 0 0 auto;
  width: 264px;
  scroll-snap-align: start;
  counter-increment: step;
}
.loop .phone { margin-inline: auto; }
.loop figcaption { margin-top: 28px; }
.loop h3 { display: flex; align-items: center; gap: 10px; }
.loop h3::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  margin-bottom: 3px;
  border-radius: 12px;
  background: var(--primary-deep);
  color: #FFFFFF;
  font-size: 1.0625rem;
  box-shadow: 0 3px 0 var(--level-lip);
}
.loop p { margin-top: 8px; }

@media (min-width: 880px) {
  .loop {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
  .loop > li { width: auto; }
}

/* ---------- Mo in the Dynamic Island (compact states from IslandStates.dc.html) ---------- */

.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.states { display: grid; gap: 20px; list-style: none; padding: 0; }
.state {
  display: grid;
  grid-template-columns: auto;
  gap: 10px;
  align-items: center;
}
@media (min-width: 560px) {
  .state { grid-template-columns: 252px minmax(0, 1fr); gap: 20px; }
}
.state h3 { font-size: 1.125rem; }
.state p { margin-top: 2px; }

.pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 252px;
  height: 40px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  background: var(--island);
  color: #FFFFFF;
  font-size: 1.0625rem;
  font-weight: 900;
  line-height: 1;
}
.pill > svg:first-child { width: 40px; height: auto; }
.pill__trail { display: inline-flex; align-items: center; gap: 4px; }
.pill__trail svg { width: 16px; height: 16px; }
.pill__trail--blue { color: #8EBBF0; }
.pill__trail--gold { color: #E8B84A; }

/* ---------- Cards and grids ---------- */

.card {
  padding: 24px;
  border-radius: var(--r20);
  background: var(--surface);
  box-shadow: 0 4px 0 var(--lip), var(--soft);
}
.card > h2 { font-size: clamp(1.375rem, 1.25rem + 0.6vw, 1.625rem); }
.card > h2 + p { margin-top: 12px; }
.card > h3 + p,
.card > h3 + .chips,
.card > p + p { margin-top: 8px; }
.card > h2 ~ p + p { margin-top: 12px; }

.panel {
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r24);
  background: var(--surface);
  box-shadow: 0 4px 0 var(--lip), var(--soft);
}

.grid { display: grid; gap: 20px; }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Moods and closet: Mo's art from MoPlaybook.dc.html */
.moods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; }
@media (min-width: 720px) { .moods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .moods { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.mood {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 12px 18px;
  border-radius: var(--r20);
  background: var(--surface);
  box-shadow: 0 4px 0 var(--lip), var(--soft);
  text-align: center;
}
.mood > svg { width: 132px; height: auto; margin-bottom: 8px; }
.mood h3 { font-size: 1.0625rem; }
.mood p { color: var(--muted); font-size: 0.9375rem; line-height: 1.35; }

.closet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; }
@media (min-width: 960px) { .closet { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 12px 20px;
  border-radius: var(--r20);
  background: var(--surface);
  box-shadow: 0 4px 0 var(--lip), var(--soft);
  text-align: center;
}
.item > svg { width: 140px; height: auto; }
.item .chip { white-space: normal; text-align: center; justify-content: center; padding-block: 4px; border-radius: 16px; }
.item h3 { font-size: 1.0625rem; }

.vibe { display: flex; flex-direction: column; gap: 12px; }
.vibe__top { display: flex; align-items: center; gap: 14px; }
.vibe__top > svg { width: 84px; height: auto; flex: none; }
.vibe__top p { color: var(--muted); font-weight: 700; }
.bubble {
  align-self: flex-start;
  padding: 12px 16px;
  border-radius: 20px 20px 20px 6px;
  background: var(--raised);
  font-size: 1rem;
  line-height: 1.45;
}

/* Feature rows */
.feature {
  display: grid;
  gap: 32px;
  align-items: center;
}
.feature + .feature { margin-top: clamp(56px, 7vw, 96px); }
.feature__art { display: flex; justify-content: center; }
.feature__text > * + * { margin-top: 14px; }
.feature__text h2 + p { margin-top: 16px; }
@media (min-width: 860px) {
  .feature { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; }
  .feature--flip .feature__art { order: -1; }
  .feature--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

.step-no {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--primary-deep);
  color: #FFFFFF;
  font-size: 1.0625rem;
  font-weight: 900;
  box-shadow: 0 3px 0 var(--level-lip);
}

.ticks { display: grid; gap: 10px; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M7.5 13.5l3.5 3.5 7.5-8' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* Connectors */
.connectors { display: grid; gap: 14px; list-style: none; padding: 0; }
.connector {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: start;
  padding: 18px 20px;
  border-radius: var(--r20);
  background: var(--surface);
  box-shadow: 0 4px 0 var(--lip), var(--soft);
}
.connector__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--sky);
  color: var(--primary);
}
.connector__icon svg { width: 24px; height: 24px; }
.connector__icon--gold { background: var(--gold-tint); color: var(--gold-deep); }
.connector__icon--green { background: #EDF8F3; color: #23A26F; }
.connector__icon--purple { background: #F4F2FC; color: #7B5BD6; }
.connector h3 { font-size: 1.125rem; }
.connector p { font-size: 1rem; }

/* Boss card (Today's boss row, rebuilt in HTML) */
.boss {
  width: min(100%, 360px);
  padding: 20px;
  border-radius: var(--r20);
  background: var(--surface);
  box-shadow: 0 4px 0 var(--lip), var(--soft);
}
.boss__row { display: flex; align-items: center; gap: 12px; }
.boss__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--sky);
  color: var(--primary-deep);
  flex: none;
}
.boss__icon svg { width: 24px; height: 24px; }
.boss__name { font-weight: 900; color: var(--heading); }
.boss__when { margin-left: auto; font-weight: 700; color: var(--muted); }
.bar {
  position: relative;
  height: 12px;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--sky);
  overflow: hidden;
}
.bar > span { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--primary-deep); }
.bar > span + span { background: var(--gold); }
.boss__note { margin-top: 12px; color: var(--muted); font-size: 0.9375rem; font-weight: 700; }

/* Widgets (spec section 4), rebuilt in HTML */
.widgets { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.widget {
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 4px 0 var(--lip), var(--soft);
  padding: 16px;
}
.widget--small { width: 158px; height: 158px; display: flex; flex-direction: column; justify-content: space-between; }
.widget--small > svg { width: 72px; height: auto; }
.widget--medium { width: min(100%, 338px); min-height: 158px; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 12px; align-items: center; }
.widget--medium > svg { width: 72px; height: auto; grid-row: span 3; align-self: center; }
.widget__big { font-size: 1.25rem; font-weight: 900; color: var(--heading); line-height: 1.2; }
.widget__sub { font-size: 0.9375rem; font-weight: 700; line-height: 1.3; }
.widget__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.widget__go {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--primary-deep);
  color: #FFFFFF;
  font-size: 0.9375rem;
  font-weight: 900;
  box-shadow: 0 3px 0 var(--level-lip);
}
.bars { display: flex; gap: 4px; }
.bars > span { width: 28px; height: 8px; border-radius: 999px; background: var(--sky); }
.bars > span.on { background: var(--gold); }
.streak { display: inline-flex; align-items: center; gap: 4px; color: var(--gold-text); font-weight: 900; }
.streak svg { width: 18px; height: 18px; }

/* Status label for things that are not in this beta */
.soon {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--gold-tint);
  color: var(--gold-text);
  font-size: 0.9375rem;
  font-weight: 900;
  box-shadow: 0 3px 0 var(--gold-lip);
}

.soon--inline { min-height: 24px; margin-left: 6px; padding: 0 10px; font-size: 0.8125rem; vertical-align: 2px; }

/* Sample-data caption under the screenshots */
.shots-note { margin-top: 16px; color: var(--muted); font-size: 0.9375rem; font-weight: 700; }
.loop + .shots-note { margin-top: 4px; text-align: center; }

/* Judges: what is planned and not in the 1.0 build */
.stack + .planned { margin-top: 16px; }
.planned ul { margin-top: 10px; padding-left: 1.2em; }
.planned li + li { margin-top: 6px; }

/* ---------- Long-form pages (privacy, FAQ, support, judges) ---------- */

.prose { max-width: 42rem; }
.prose > * + * { margin-top: 16px; }
.prose > h2 { margin-top: 48px; font-size: clamp(1.5rem, 1.35rem + 0.7vw, 1.875rem); }
.prose > h2 + * { margin-top: 12px; }
.prose > h3 { margin-top: 28px; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 8px; }
.prose .updated { color: var(--muted); font-weight: 700; }

.short {
  padding: 24px;
  border-radius: var(--r24);
  background: var(--sky);
  box-shadow: 0 4px 0 var(--chip-lip);
}
.short h2 { font-size: 1.375rem; }
.short ul { margin-top: 12px; }

.faq { max-width: 44rem; list-style: none; padding: 0; }
.faq > li + li { margin-top: 40px; }
.faq h2 { font-size: clamp(1.375rem, 1.25rem + 0.6vw, 1.625rem); }
.faq p { margin-top: 10px; }
.faq p + p { margin-top: 12px; }

.pending {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--gold-tint);
  color: var(--gold-text);
  font-size: 0.875rem;
  font-weight: 900;
  vertical-align: 2px;
}

.mail {
  display: inline-flex;
  font-size: clamp(1.375rem, 1.2rem + 1vw, 1.875rem);
  font-weight: 900;
  word-break: break-word;
}

/* Judges */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding: 0; list-style: none; }
.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r16);
  background: var(--surface);
  box-shadow: 0 4px 0 var(--lip);
  text-decoration: none;
}

.demo { display: grid; gap: 40px; align-items: start; }
.demo .phone { margin-inline: auto; }
@media (min-width: 860px) {
  .demo { grid-template-columns: auto minmax(0, 1fr); gap: 64px; }
}
.timeline { display: grid; gap: 10px; margin-top: 20px; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 12px; }
.timeline time { color: var(--muted); font-weight: 900; font-variant-numeric: tabular-nums; }

.credit {
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r24);
  background: var(--primary-deep);
  color: #FFFFFF;
  box-shadow: 0 4px 0 var(--level-lip);
}
.credit__quote { margin: 0; font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.625rem); font-weight: 700; line-height: 1.45; }
.credit__note { margin-top: 14px; font-size: 1.0625rem; font-weight: 700; opacity: 0.9; }
.credit h2 { color: #FFFFFF; }
.credit h2 + .credit__quote { margin-top: 16px; }

.stack { display: grid; gap: 16px; list-style: none; padding: 0; }
@media (min-width: 640px) { .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stack h3 { font-size: 1.125rem; }
.stack p { margin-top: 6px; font-size: 1rem; }

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

.foot { padding-block: 24px 40px; }
.beta {
  display: grid;
  gap: 12px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r24);
  background: var(--surface);
  box-shadow: 0 4px 0 var(--lip), var(--soft);
}
.beta h2 { font-size: clamp(1.5rem, 1.35rem + 0.7vw, 1.875rem); }
.beta p { max-width: 44rem; }
@media (min-width: 860px) {
  .beta { grid-template-columns: auto minmax(0, 1fr); gap: 8px 32px; align-items: center; }
  .beta > svg { grid-row: span 2; }
}
.beta > svg { width: 120px; height: auto; }

.foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 32px;
}
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 4px; padding: 0; list-style: none; }
.foot__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}
.foot__links a:hover { background: var(--sky); color: var(--heading); }
.foot__made { color: var(--muted); font-weight: 700; }

/* ---------- Warm polish (2026-11-21, Jaiden: "less cold, more professional and appealing") ---------- */

::selection { background: #FBE3A6; color: var(--text); }

/* A frosted header that stays put while the page scrolls under it. */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 252, 247, 0.84);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  box-shadow: 0 1px 0 rgba(30, 78, 140, 0.07);
}

/* The hero is a sky at sunrise, with clouds drifting by and a couple of gold sparkles. */
.screen {
  background: var(--sunrise);
  box-shadow: 0 4px 0 #EED9B8, 0 28px 64px rgba(232, 184, 74, 0.18);
}
.screen::before,
.screen::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90'%3E%3Cg fill='%23FFFFFF'%3E%3Ccircle cx='80' cy='52' r='34'/%3E%3Ccircle cx='44' cy='60' r='24'/%3E%3Ccircle cx='116' cy='60' r='24'/%3E%3Ccircle cx='62' cy='34' r='22'/%3E%3Ccircle cx='98' cy='36' r='19'/%3E%3Crect x='30' y='58' width='100' height='26' rx='13'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.9;
  display: none;
}
.screen::before { left: 3%; top: 46%; width: 150px; height: 84px; }
.screen::after { right: 4%; top: 66%; width: 110px; height: 62px; opacity: 0.75; }
@media (min-width: 960px) {
  .screen::before,
  .screen::after { display: block; }
}
.screen > * { position: relative; z-index: 1; }
.hero__copy { position: relative; }
.hero__copy::before {
  content: "";
  position: absolute;
  top: -30px;
  right: clamp(4px, 4vw, 24px);
  width: 46px;
  height: 46px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'%3E%3Cpath d='M18 4l3.6 10.4L32 18l-10.4 3.6L18 32l-3.6-10.4L4 18l10.4-3.6z' fill='%23E8B84A'/%3E%3Cpath d='M37 26l1.8 5.2L44 33l-5.2 1.8L37 40l-1.8-5.2L30 33l5.2-1.8z' fill='%23F3CF7A'/%3E%3C/svg%3E") center / contain no-repeat;
}

@keyframes drift { 50% { transform: translateX(14px); } }
@keyframes twinkle { 50% { transform: scale(0.86) rotate(8deg); opacity: 0.7; } }
@media (prefers-reduced-motion: no-preference) {
  .screen::before { animation: drift 11s var(--ease-sine) infinite; }
  .screen::after { animation: drift 14s var(--ease-sine) -5s infinite reverse; }
  .hero__copy::before { animation: twinkle 3.2s var(--ease-sine) infinite; }
}

/* Warm bands instead of pale blue ones. */
.band--tint { background: linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%); }

/* Every section title gets a short gold bar under it. */
.head > h2::after,
.page-head > h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 6px;
  margin-top: 16px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, #F3CF7A 100%);
}

/* Step numbers in gold, like the app's loot. */
.loop h3::before,
.step-no {
  background: var(--gold);
  color: #4A330A;
  box-shadow: 0 3px 0 var(--gold-deep);
}

/* Phones get a little life: a slight tilt on wide screens and a lift on hover. */
.phone { transition: transform 600ms var(--spring-springy); }
@media (min-width: 880px) {
  .loop > li:nth-child(1) .phone { rotate: -2deg; }
  .loop > li:nth-child(3) .phone { rotate: 2deg; }
}
@media (hover: hover) {
  .phone:hover { transform: translateY(-6px); }
  .card,
  .panel { transition: transform 440ms var(--spring-calm), box-shadow 300ms ease-out; }
  .card:hover,
  .panel:hover { transform: translateY(-3px); box-shadow: 0 4px 0 var(--lip), 0 18px 40px rgba(30, 78, 140, 0.12); }
}

/* The short version on Privacy and Terms reads warmer in gold. */
.short {
  background: var(--gold-tint);
  box-shadow: 0 4px 0 var(--gold-lip);
}

/* Links: a softer underline. */
a { text-underline-offset: 3px; text-decoration-thickness: 2px; }

/* The footer closes on a warm card. */
.foot { background: linear-gradient(180deg, var(--bg) 0%, var(--cream) 60%); }
.beta {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--gold-tint) 100%);
  box-shadow: 0 4px 0 var(--gold-lip), var(--soft);
}

/* ---------- Help Center (faq.html), after Instagram's help center: search, topics, questions that open ---------- */

[hidden] { display: none !important; }

.help-head .lead { max-width: 40rem; }
.help-search { position: relative; max-width: 560px; margin-top: 28px; }
.help-search svg { position: absolute; left: 18px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.help-search input {
  width: 100%;
  min-height: 56px;
  padding: 0 20px 0 52px;
  border: 0;
  border-radius: var(--r16);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  box-shadow: 0 4px 0 var(--lip), var(--soft);
  -webkit-appearance: none;
  appearance: none;
}
.help-search input::placeholder { color: var(--muted); }
.help-search input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.help-status { min-height: 1.4em; margin-top: 10px; color: var(--muted); font-size: 0.9375rem; font-weight: 700; }
.help-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 8px; }
.help-popular > span { margin-right: 4px; color: var(--muted); font-size: 0.9375rem; font-weight: 900; }
.help-popular .chip { text-decoration: none; }
.help-popular .chip:hover { background: var(--stage); color: var(--heading); }

.help { display: grid; gap: 28px; padding-top: 28px; }
@media (min-width: 900px) {
  .help { grid-template-columns: 272px minmax(0, 1fr); gap: 44px; align-items: start; }
  .help-nav { position: sticky; top: 96px; }
  .help-nav li + li { margin-top: 2px; }
}
.help-nav ul { margin: 0; padding: 0; list-style: none; }
.help-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 6px 12px 6px 8px;
  border-radius: 14px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}
.help-nav a:hover { background: var(--sky); color: var(--heading); }
.help-nav a[aria-current="true"] { background: var(--gold-tint); color: var(--heading); font-weight: 900; }
.help-nav__icon,
.help-topic__icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--sky);
  color: var(--primary-deep);
}
.help-nav__icon svg,
.help-topic__icon svg { width: 20px; height: 20px; }
.help-nav a[aria-current="true"] .help-nav__icon { background: var(--gold); color: #4A330A; }
@media (max-width: 899px) {
  .help-nav { margin-inline: -16px; overflow-x: auto; scrollbar-width: none; }
  .help-nav::-webkit-scrollbar { display: none; }
  .help-nav ul { display: flex; gap: 8px; width: max-content; padding: 2px 16px 8px; }
  .help-nav a { min-height: 44px; padding: 4px 14px 4px 6px; background: var(--surface); box-shadow: 0 3px 0 var(--lip); white-space: nowrap; }
  .help-nav__icon { width: 32px; height: 32px; border-radius: 10px; }
}

.help-topic,
.qa { scroll-margin-top: 150px; }
@media (min-width: 960px) {
  .help-topic,
  .qa { scroll-margin-top: 100px; }
}
.help-topic + .help-topic { margin-top: 44px; }
.help-topic h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.375rem, 1.25rem + 0.6vw, 1.625rem); }
.qa-list {
  margin-top: 16px;
  border-radius: var(--r20);
  background: var(--surface);
  box-shadow: 0 4px 0 var(--lip), var(--soft);
  overflow: hidden;
}
.qa + .qa { border-top: 1px solid rgba(30, 78, 140, 0.09); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 20px;
  color: var(--heading);
  font-weight: 900;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { background: var(--raised); }
.qa summary:focus-visible { outline-offset: -3px; border-radius: 0; }
.qa summary svg { flex: none; color: var(--primary); transition: rotate 360ms var(--spring-calm); }
.qa[open] summary svg { rotate: 180deg; }
.qa[open] { background: linear-gradient(180deg, var(--raised) 0, var(--surface) 72px); }
.qa:target { box-shadow: inset 4px 0 0 var(--gold); }
.qa__a { padding: 0 20px 20px; }
.qa__a > * + * { margin-top: 10px; }

.help-empty { padding: 20px 24px; border-radius: var(--r20); background: var(--gold-tint); font-weight: 700; box-shadow: 0 4px 0 var(--gold-lip); }

.help-more { margin-top: 56px; }
.help-more h2 { font-size: clamp(1.375rem, 1.25rem + 0.6vw, 1.625rem); }
.help-more__grid { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 720px) { .help-more__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.help-more__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border-radius: var(--r20);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 4px 0 var(--lip), var(--soft);
  transition: transform 440ms var(--spring-calm);
}
.help-more__card:hover { color: var(--text); transform: translateY(-3px); }
.help-more__card .help-topic__icon { margin-bottom: 6px; background: var(--gold-tint); color: var(--gold-deep); }
.help-more__card strong { color: var(--heading); font-size: 1.0625rem; font-weight: 900; }
.help-more__card span:last-child { color: var(--muted); font-size: 0.9375rem; font-weight: 700; overflow-wrap: anywhere; }

/* The header button says just "Download" where the full label would wrap. */
.top__bar .btn--small { gap: 0; white-space: nowrap; }
@media (max-width: 440px) { .hide-sm { display: none; } }

/* Until the App Store link exists the buttons are labels, not links (2026-12-01). */
.btn--soon { cursor: default; pointer-events: none; }
@media (max-width: 440px) { .actions .btn { padding-inline: 18px; font-size: 1.0625rem; } }

/* ---------- Reduce Motion: no pops, no bounce, no breathing; the press still sinks, just without animating ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
