/* Orbit: a 70s sunset-stripe palette, pushed to full brightness. */
:root {
  --sun: #FFC21A;
  --tang: #FF6A13;
  --pink: #FF2E88;
  --grape: #7A2CF5;
  --teal: #00BFB3;
  --ink: #2B0F3A;
  --paper: #FFFCF6;
  --white: #FFFFFF;
  --ink-soft: #5B4766;

  --display: "Fraunces", "Cooper Black", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, sans-serif;

  --gutter: clamp(20px, 6vw, 96px);
  --section: clamp(112px, 15vw, 224px);
  --wide: 1360px;
  --text: 34rem;

  color-scheme: light;
}

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

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

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

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
}
.skip:focus { top: 16px; }

kbd {
  display: inline-block;
  min-width: 1.6em;
  margin: 0 2px;
  padding: 0 6px;
  border: 2px solid currentColor;
  border-bottom-width: 4px;
  border-radius: 8px;
  font: 600 0.85em/1.5 var(--body);
  text-align: center;
}

/* Buttons: a fat pill with a hard offset shadow, like a 70s sticker. */
.btn {
  --shadow: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--pink);
  color: var(--white);
  font: 750 1rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--shadow);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow); }
.btn-small { padding: 12px 20px; }
.btn-big { padding: 22px 38px; font-size: 1.25rem; box-shadow: 6px 6px 0 var(--shadow); }
.btn-big:hover { box-shadow: 9px 9px 0 var(--shadow); }
.btn-light { background: var(--sun); color: var(--ink); }

/* Nav */
.nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 28px var(--gutter);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  font: 800 1.5rem/1 var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.brand img { width: 40px; height: 40px; }
.nav nav { display: flex; gap: 28px; }
.nav nav a { font-weight: 600; text-decoration: none; }
.nav nav a:hover { text-decoration: underline; }

/* Hero */
.hero {
  position: relative;
  background: var(--sun);
  padding: clamp(150px, 16vw, 210px) var(--gutter) clamp(72px, 9vw, 140px);
  overflow: hidden;
  isolation: isolate;
}
.hero-copy {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.hero-title {
  font-size: clamp(4rem, 13vw, 11.5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.hero-lede {
  max-width: 36rem;
  margin: clamp(28px, 3vw, 40px) auto 0;
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: clamp(36px, 4vw, 52px);
}
.hero-note { font-size: 0.95rem; line-height: 1.5; color: var(--ink-soft); }

/* The stage keeps the window and both halves of the orbit in one coordinate system (1600×1000). */
.stage {
  position: relative;
  width: min(100%, var(--wide));
  aspect-ratio: 1600 / 1000;
  margin: clamp(16px, 3vw, 40px) auto 0;
}
.orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.orbit-front { z-index: 2; }
.window {
  position: absolute;
  z-index: 1;
  left: 13.75%;
  top: 14%;
  width: 72.5%;
  margin: 0;
  border-radius: clamp(8px, 1.1vw, 16px);
  overflow: hidden;
  background: var(--white);
  box-shadow:
    0 0 0 1.5px rgba(43, 15, 58, 0.18),
    0 30px 60px -20px rgba(43, 15, 58, 0.45),
    0 70px 120px -40px rgba(122, 44, 245, 0.35);
}
.window img { width: 100%; }

.ring { fill: none; stroke-width: 30; }
.r1 { stroke: var(--grape); }
.r2 { stroke: var(--pink); }
.r3 { stroke: var(--tang); }
.r4 { stroke: var(--teal); }
.moon { fill: var(--white); stroke: var(--ink); stroke-width: 6; }

/* The one entrance: the orbit sweeps in. */
@media (prefers-reduced-motion: no-preference) {
  .rings { animation: sweep 1.6s cubic-bezier(.2,.8,.2,1) both; }
  .ring { stroke-dasharray: 1; animation: draw 1.8s cubic-bezier(.3,.7,.2,1) both; }
  .r2 { animation-delay: 80ms; }
  .r3 { animation-delay: 160ms; }
  .r4 { animation-delay: 240ms; }
  .moon { animation: pop 600ms 1.2s cubic-bezier(.3,1.6,.5,1) both; transform-box: fill-box; transform-origin: center; }
  .window { animation: rise 1s 100ms cubic-bezier(.2,.8,.2,1) both; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes sweep { from { transform: rotate(-30deg); transform-origin: 800px 560px; } }
@keyframes pop { from { transform: scale(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }

/* Sections */
.section-title {
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  max-width: 15ch;
}

.features {
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: var(--section) var(--gutter) 0;
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  align-items: center;
  gap: clamp(40px, 6vw, 112px);
  margin-top: clamp(96px, 12vw, 176px);
}
.feature-flip { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); }
.feature-flip .feature-text { order: 2; }
.feature-text h3 { font-size: clamp(2rem, 3.4vw, 3rem); }
.feature-text p {
  max-width: var(--text);
  margin-top: 22px;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

/* A solid color mat around each screenshot, like a framed print. */
.mat {
  margin: 0;
  padding: clamp(18px, 4.5%, 56px);
  border-radius: clamp(20px, 3vw, 40px);
}
.mat img {
  border-radius: clamp(6px, 0.8vw, 12px);
  box-shadow: 0 0 0 1px rgba(43, 15, 58, 0.16), 0 24px 48px -18px rgba(43, 15, 58, 0.5);
}
.mat-pink { background: var(--pink); }
.mat-teal { background: var(--teal); }
.mat-tang { background: var(--tang); }
.mat-grape { background: var(--grape); }

.extras {
  list-style: none;
  margin: clamp(120px, 14vw, 200px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(48px, 5vw, 72px) clamp(32px, 5vw, 80px);
}
.extras li { padding-top: 22px; border-top: 6px solid var(--c, var(--ink)); }
.extras li:nth-child(6n+1) { --c: var(--grape); }
.extras li:nth-child(6n+2) { --c: var(--pink); }
.extras li:nth-child(6n+3) { --c: var(--tang); }
.extras li:nth-child(6n+4) { --c: var(--sun); }
.extras li:nth-child(6n+5) { --c: var(--teal); }
.extras li:nth-child(6n+6) { --c: var(--ink); }
.extras h3 { font-size: 1.6rem; }
.extras p { margin-top: 10px; color: var(--ink-soft); }

/* Under the hood: the stack reads as the same stripes as the orbit. */
.inside {
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: var(--section) var(--gutter) 0;
}
.inside-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 112px);
  align-items: end;
}
.inside-head p { max-width: var(--text); font-size: 1.2rem; color: var(--ink-soft); }
.stack {
  list-style: none;
  margin: clamp(56px, 7vw, 96px) 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.layer {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: 24px;
  padding: clamp(22px, 2.6vw, 36px) clamp(24px, 4vw, 56px);
  border-radius: 999px;
}
.layer-name {
  font: 850 clamp(2rem, 4vw, 3.4rem)/1 var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  letter-spacing: -0.02em;
}
.layer-text { font-size: 1.1rem; font-weight: 500; }
.layer-sun { background: var(--sun); }
.layer-tang { background: var(--tang); }
.layer-pink { background: var(--pink); }
.layer-teal { background: var(--teal); }

/* Privacy */
.privacy {
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: var(--section) var(--gutter) 0;
}
.privacy-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  padding: clamp(56px, 9vw, 136px) clamp(28px, 7vw, 112px);
  border-radius: clamp(28px, 4vw, 56px);
  background: var(--grape);
  color: var(--white);
}
.privacy-card h2 {
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 900;
  color: var(--sun);
  line-height: 0.95;
}
.privacy-card p { max-width: 28rem; font-size: 1.3rem; line-height: 1.55; }

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(40px, 6vw, 112px);
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: var(--section) var(--gutter) 0;
}
.faq .section-title { position: sticky; top: 48px; align-self: start; max-width: 8ch; }
.faq-list { border-top: 3px solid var(--ink); }
details { border-bottom: 3px solid var(--ink); }
summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  font: 700 clamp(1.2rem, 1.8vw, 1.45rem)/1.3 var(--body);
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 3px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 3px 14px no-repeat,
    var(--sun);
  transition: transform 200ms ease, background-color 200ms ease;
}
details[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--pink);
}
details p { max-width: 40rem; padding: 0 56px 32px 0; color: var(--ink-soft); }

/* Finale: the orbit's stripes again, rising like a 70s sunrise. */
.finale {
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: var(--section) var(--gutter) clamp(24px, 3vw, 40px);
}
.finale-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  padding: clamp(88px, 11vw, 160px) 24px clamp(200px, 22vw, 320px);
  border-radius: clamp(28px, 4vw, 56px);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
.sunrise {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
.sunrise-grape { fill: var(--grape); }
.sunrise-pink { fill: var(--pink); }
.sunrise-tang { fill: var(--tang); }
.sunrise-teal { fill: var(--teal); }
.sunrise-sun { fill: var(--sun); }
.finale-card h2 {
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 900;
  color: var(--white);
  max-width: 12ch;
}
.finale-card .btn { --shadow: var(--pink); border-color: var(--white); }

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 40px var(--gutter) 56px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.footer nav { display: flex; gap: 24px; }
.footer a { text-decoration: none; font-weight: 600; }
.footer a:hover { text-decoration: underline; }

/* Download modal */
.modal {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 56px clamp(24px, 6vw, 48px) 44px;
  border: 3px solid var(--ink);
  border-radius: 36px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  box-shadow: 10px 10px 0 var(--ink);
}
/* The dialog takes focus when it opens; its controls show their own focus rings. */
.modal:focus-visible { outline: none; }
.modal::backdrop {
  background: rgba(43, 15, 58, 0.55);
  backdrop-filter: blur(6px);
}
.modal[open] { animation: modal-in 260ms cubic-bezier(.2,.9,.3,1.2); }
.modal[open]::backdrop { animation: fade 200ms ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .modal[open], .modal[open]::backdrop { animation: none; }
  html { scroll-behavior: auto; }
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.modal-close:hover { background: rgba(43, 15, 58, 0.08); }
.modal-icon { width: 112px; height: 112px; margin: 0 auto 20px; }
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  margin-bottom: 32px;
  border: 2px solid var(--ink);
  border-radius: 999px;
}
.tabs button {
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 650 0.95rem/1 var(--body);
  cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.modal h2 { font-size: clamp(2rem, 6vw, 2.6rem); }
.modal-meta { margin: 12px 0 30px; color: var(--ink-soft); }
.modal-fine { margin-top: 26px; font-size: 0.92rem; color: var(--ink-soft); }
.modal-hint {
  margin: -8px 0 28px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--sun);
  font-weight: 600;
}
.soon {
  display: inline-block;
  padding: 16px 30px;
  border: 3px dashed var(--ink);
  border-radius: 999px;
  font: 750 1.1rem/1 var(--body);
}
.install {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  text-align: left;
  display: grid;
  gap: 16px;
}
/* Each step's text is one <span>, so the grid sees two cells: the number and the text. */
.install li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 14px;
}
.install li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c);
  font: 800 1.1rem/1 var(--display);
}
.install li:nth-child(1) { --c: var(--sun); }
.install li:nth-child(2) { --c: var(--pink); }
.install li:nth-child(3) { --c: var(--teal); }

[hidden] { display: none !important; }

/* Smaller screens */
@media (max-width: 960px) {
  .nav nav { display: none; }
  .feature, .feature-flip { grid-template-columns: 1fr; }
  .feature-flip .feature-text { order: 0; }
  .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inside-head, .privacy-card, .faq { grid-template-columns: 1fr; }
  .faq .section-title { position: static; max-width: 15ch; }
  .layer { grid-template-columns: 1fr; gap: 6px; border-radius: 32px; }
}

@media (max-width: 640px) {
  body { font-size: 1.05rem; }
  .nav { padding-top: 20px; }
  .brand span { display: none; }
  /* Let the orbit run off the edges so the window stays big. */
  .stage { width: 136%; margin-left: -18%; }
  .extras { grid-template-columns: 1fr; }
  .btn-big { padding: 20px 30px; font-size: 1.15rem; }
  details p { padding-right: 0; }
  .footer { flex-direction: column; align-items: flex-start; }
}
