/* SharedNotes website: one stylesheet for every page.
   The colors come from the app icon (navy, blue, violet) and from the app itself (the warm paper
   inside the phone). Only the fonts already on the visitor's device are used and nothing is loaded
   from anyone else's servers. Every animation is switched off for people who prefer less motion. */

/* ---------- Colors, fonts ---------- */

:root {
  color-scheme: light;
  --bg: #F6F7FC;
  --bg-2: #EEF1FB;
  --surface: #ECEFFA;
  --card: #FFFFFF;
  --ink: #131D38;
  --ink-soft: #4F5B7D;
  --rule: #D8DDF0;
  --link: #3F57D4;
  --btn-1: #3F57D4;
  --btn-2: #7A4FD3;
  --glass: rgba(246, 247, 252, 0.78);
  --edge: rgba(19, 29, 56, 0.10);
  --shadow-s: 0 1px 2px rgba(19, 29, 56, 0.06), 0 8px 24px rgba(19, 29, 56, 0.07);
  --shadow-l: 0 2px 6px rgba(19, 29, 56, 0.08), 0 30px 70px rgba(19, 29, 56, 0.16);

  --sky-0: #060A1A;
  --sky-1: #0D1530;
  --sky-2: #18214B;
  --sky-ink: #EDF0FF;
  --sky-soft: #B7C0E2;

  --blue: #6899F8;
  --violet: #8F5DD8;
  --lilac: #B883EF;
  --ice: #AFCFFE;
  --pink: #F4A6C8;
  --mint: #9ADBC0;
  --yellow: #F2E3A0;
  --peach: #F5C3A3;

  /* the app's own look, used inside the phone */
  --app-bg: #FBF7F2;
  --app-card: #EFE1D5;
  --app-ink: #2E0D14;
  --app-soft: #7A5A61;
  --app-rule: #E6D7CA;
  --app-burgundy: #A8455F;
  --app-blue: #A9C8F5;
  --app-lavender: #CDB6EE;
  --app-mint: #A8DDC4;
  --app-pink: #F2B2CD;
  --app-peach: #F4C3A5;
  --app-yellow: #F2E3A0;

  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0A1024;
    --bg-2: #0E162D;
    --surface: #141D3F;
    --card: #172046;
    --ink: #EDF0FF;
    --ink-soft: #A8B2D4;
    --rule: #263161;
    --link: #8EB0FF;
    --glass: rgba(10, 16, 36, 0.74);
    --edge: rgba(255, 255, 255, 0.10);
    --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-l: 0 2px 6px rgba(0, 0, 0, 0.4), 0 30px 70px rgba(0, 0, 0, 0.5);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A1024;
  --bg-2: #0E162D;
  --surface: #141D3F;
  --card: #172046;
  --ink: #EDF0FF;
  --ink-soft: #A8B2D4;
  --rule: #263161;
  --link: #8EB0FF;
  --glass: rgba(10, 16, 36, 0.74);
  --edge: rgba(255, 255, 255, 0.10);
  --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-l: 0 2px 6px rgba(0, 0, 0, 0.4), 0 30px 70px rgba(0, 0, 0, 0.5);
}

/* ---------- Basics ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

img, svg { max-width: 100%; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 650; }

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

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

button { font: inherit; color: inherit; }

/* on the dark sky the focus ring is white so it can be seen */
.sky :focus-visible { outline-color: #FFFFFF; }

/* the box of drawings that the page borrows its icons from: it takes up no room */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* the little line icons */
.ic { width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.2em; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: 10px;
}
.skip:focus { top: 1rem; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.9rem;
}

h1, h2, h3 { text-wrap: balance; margin: 0; }

.grad {
  background: linear-gradient(100deg, var(--ice) 0%, var(--lilac) 52%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--btn-1), var(--btn-2));
  box-shadow: 0 10px 30px rgba(92, 84, 220, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { box-shadow: 0 16px 40px rgba(92, 84, 220, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
/* a bright sweep that crosses the button now and then */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  animation: sweep 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sweep {
  0%, 62% { left: -60%; }
  100% { left: 140%; }
}

.btn-ghost {
  color: var(--sky-ink);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }

.btn-quiet {
  color: var(--ink);
  background: var(--card);
  border-color: var(--rule);
}
.btn-quiet:hover { border-color: var(--link); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.92rem; }

.copy {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.copy:hover { border-color: var(--link); }

/* ---------- Top bar ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  margin-bottom: calc(var(--header-h) * -1);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
/* over the dark sky the top bar is light on dark, whatever the page's colors are */
.on-sky .site-header {
  --ink: #EDF0FF;
  --ink-soft: #B7C0E2;
  --edge: rgba(255, 255, 255, 0.16);
  --surface: rgba(255, 255, 255, 0.1);
  --rule: rgba(255, 255, 255, 0.18);
  background: rgba(6, 10, 26, 0.3);
}
.on-sky .site-header .brand img { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.4); }
.site-header.is-stuck { border-bottom-color: var(--edge); box-shadow: 0 8px 30px rgba(7, 12, 30, 0.08); }

.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 3px;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--pink));
}

.bar {
  max-width: 1120px;
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 0.55rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem 1.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 650;
  font-size: 1.2rem;
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 22.37%;
  display: block;
  box-shadow: 0 0 0 1px var(--edge), 0 4px 12px rgba(19, 29, 56, 0.2);
  transition: transform 0.4s var(--ease);
}
.brand:hover img { transform: rotate(-8deg) scale(1.06); }

.site-nav ul { list-style: none; display: flex; gap: 0.2rem 1.6rem; margin: 0; padding: 0; }
.site-nav a {
  display: inline-block;
  padding: 0.3rem 0;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  font-size: 1rem;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--violet); }

.bar-actions { display: flex; align-items: center; gap: 0.6rem; }

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--edge);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.3s var(--ease);
}
.icon-btn:hover { background: var(--surface); border-color: var(--rule); }
.icon-btn svg { width: 20px; height: 20px; }

/* the sun or the moon, whichever is the other choice */
.theme-toggle .sun { display: none; }
.theme-toggle:hover svg { transform: rotate(18deg); }
.theme-toggle svg { transition: transform 0.4s var(--ease); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

.nav-toggle { display: none; }
html:not(.js) .theme-toggle { display: none; }

/* ---------- The sky (home page and the top of the other pages) ---------- */

.sky {
  position: relative;
  isolation: isolate;
  color: var(--sky-ink);
  overflow: clip;
  background:
    radial-gradient(1100px 640px at 80% -8%, rgba(143, 93, 216, 0.48), transparent 62%),
    radial-gradient(900px 600px at 2% 18%, rgba(104, 153, 248, 0.36), transparent 62%),
    radial-gradient(700px 500px at 50% 112%, rgba(244, 166, 200, 0.16), transparent 60%),
    linear-gradient(180deg, var(--sky-0), var(--sky-1) 62%, var(--sky-2));
}
.sky canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
/* a soft light that follows the pointer */
.sky::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 30%), rgba(143, 160, 255, 0.16), transparent 62%);
  pointer-events: none;
}
/* the sky melts into the page below */
.sky::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
.aurora {
  position: absolute;
  z-index: -1;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora.a { left: -18vmax; top: -22vmax; background: radial-gradient(circle, rgba(104, 153, 248, 0.5), transparent 65%); }
.aurora.b { right: -20vmax; top: -10vmax; background: radial-gradient(circle, rgba(143, 93, 216, 0.55), transparent 65%); animation-duration: 32s; animation-direction: alternate-reverse; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(5vmax, 4vmax, 0) scale(1.12); }
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 2.4rem) 1.5rem 7rem;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 3rem;
  align-items: center;
}

.sky .eyebrow { color: var(--sky-soft); }

.hero-icon {
  --tx: 0deg;
  --ty: 0deg;
  width: 76px;
  height: 76px;
  border-radius: 22.37%;
  display: block;
  margin-bottom: 1.6rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 18px 40px rgba(3, 6, 20, 0.55), 0 0 60px rgba(143, 93, 216, 0.4);
  transform: perspective(500px) rotateX(var(--tx)) rotateY(var(--ty));
  transition: transform 0.25s var(--ease);
}

.display {
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 1.3rem;
}
.display .hl { display: block; white-space: nowrap; }
.display .hl:last-child { white-space: normal; }

/* the word that changes: lists, plans, projects, errands */
.rotator {
  display: inline-grid;
  overflow: clip;
  padding-block: 0.12em;
  margin-block: -0.12em;
  transition: width 0.7s var(--ease);
}
.rot-word {
  grid-area: 1 / 1;
  width: max-content;
  justify-self: start;
  transform: translateY(105%);
  opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.5s;
}
.rot-word.is-on { transform: none; opacity: 1; }
.rot-word.was { transform: translateY(-105%); opacity: 0; }
.js .rot-word:not(.is-on):not(.was) { visibility: hidden; }
html:not(.js) .rot-word:not(:first-child) { display: none; }

.hero .lead {
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--sky-soft);
  max-width: 34rem;
  margin: 0 0 2rem;
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1rem; }

.fine { margin-top: 1.2rem; font-size: 0.9rem; color: var(--sky-soft); }

.hero-stage { --phone-w: clamp(240px, 24vw, 292px); position: relative; display: grid; justify-items: center; }
.phone-wrap { position: relative; width: var(--phone-w); }

/* little notes that float around the phone */
.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem 0.5rem 0.65rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--sky-ink);
  background: rgba(20, 29, 70, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px rgba(3, 6, 20, 0.4);
  white-space: nowrap;
  animation: bob 7s ease-in-out infinite;
}
.chip svg { width: 18px; height: 18px; color: var(--ice); flex: none; }
.chip { z-index: 4; }
.chip.c1 { right: calc(100% - 16px); top: 7%; }
.chip.c2 { left: calc(100% - 16px); top: 38%; animation-delay: -2.3s; }
.chip.c3 { left: calc(100% - 16px); bottom: 17%; animation-delay: -4.6s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- The phone ---------- */

.phone {
  position: relative;
  width: var(--phone-w);
  aspect-ratio: 9 / 19;
  border-radius: calc(var(--phone-w) * 0.15);
  padding: calc(var(--phone-w) * 0.026);
  background: linear-gradient(150deg, #3A4580 0%, #10173A 38%, #070B1E 62%, #2A356C 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 2px 0 rgba(255, 255, 255, 0.08) inset,
    0 50px 90px rgba(2, 5, 18, 0.65),
    0 0 140px rgba(143, 93, 216, 0.3);
}
.phone::before {
  content: "";
  position: absolute;
  right: -3px;
  top: 22%;
  width: 3px;
  height: 11%;
  border-radius: 2px;
  background: #222C5E;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: clip;
  border-radius: calc(var(--phone-w) * 0.125);
  background: var(--app-bg);
  color: var(--app-ink);
  container-type: size;
  font-family: var(--sans);
  line-height: 1.25;
  isolation: isolate;
}
.phone-screen::after {
  content: "";
  position: absolute;
  top: 2.4cqw;
  left: 50%;
  width: 27cqw;
  height: 7.4cqw;
  border-radius: 99px;
  background: #05070F;
  transform: translateX(-50%);
  z-index: 40;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(7%);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.screen.is-active { opacity: 1; transform: none; pointer-events: auto; }

.app-status {
  flex: none;
  height: 12.5cqw;
  padding: 3.4cqw 7cqw 0 8cqw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 3.9cqw;
  font-weight: 650;
}
.status-icons { display: inline-flex; align-items: center; gap: 1.6cqw; }
.status-icons .sig { width: 4.6cqw; height: 2.6cqw; background: linear-gradient(90deg, currentColor 0 18%, transparent 18% 27%, currentColor 27% 48%, transparent 48% 57%, currentColor 57% 78%, transparent 78% 87%, currentColor 87%); border-radius: 0.4cqw; opacity: 0.9; }
.status-icons .bat { width: 6.6cqw; height: 3cqw; border: 0.35cqw solid currentColor; border-radius: 1cqw; position: relative; }
.status-icons .bat::before { content: ""; position: absolute; inset: 0.4cqw; background: currentColor; border-radius: 0.5cqw; }

.app-nav {
  flex: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.8cqw 4cqw 2.4cqw;
}
.app-nav .back { display: inline-flex; align-items: center; gap: 0.6cqw; font-size: 4cqw; color: var(--app-soft); }
.app-nav .back svg { width: 4cqw; height: 4cqw; }
.app-nav strong { font-size: 5.1cqw; font-weight: 700; }
.app-nav .pen { justify-self: end; width: 9cqw; height: 9cqw; display: grid; place-items: center; border-radius: 50%; background: rgba(46, 13, 20, 0.06); }
.app-nav .pen svg { width: 4.4cqw; height: 4.4cqw; }

/* the Main Focus card */
.mf-card {
  flex: none;
  margin: 0 3cqw;
  padding: 3cqw 3cqw 2.4cqw;
  border-radius: 5.4cqw;
  background: var(--app-card);
  border: 0.3cqw solid rgba(46, 13, 20, 0.07);
}
.mf-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 1.2cqw; }
.mf-head strong { font-size: 5cqw; font-weight: 700; }
.mf-head small { display: block; font-size: 3.2cqw; color: var(--app-soft); font-weight: 400; margin-top: 0.3cqw; }
.mf-head .manage { display: inline-flex; align-items: center; gap: 1cqw; font-size: 3.8cqw; font-weight: 650; }
.mf-head .manage svg { width: 3.4cqw; height: 3.4cqw; }
.orbit-box { position: relative; margin-top: 0.4cqw; border-radius: 4cqw; background: rgba(46, 13, 20, 0.035); }
.orbit-box svg { display: block; width: 100%; height: auto; }

/* the orbit inside the phone */
.o-ring { fill: none; stroke: #2E0D14; stroke-opacity: 0.17; stroke-width: 1; stroke-dasharray: 2 5; }
.o-halo { fill: #2E0D14; fill-opacity: 0.07; }
.o-sun-text { fill: #FBF7F2; font: 650 9.5px var(--sans); letter-spacing: 0.16em; text-anchor: middle; }
.o-letter { font: 650 11px var(--sans); text-anchor: middle; pointer-events: none; }
.o-pill { fill: #FBF7F2; fill-opacity: 0.92; }
.o-name { fill: #2E0D14; fill-opacity: 0.8; font: 650 9.6px var(--sans); text-anchor: middle; pointer-events: none; }
.o-noplan { fill: none; stroke: #2E0D14; stroke-opacity: 0.5; stroke-width: 1.1; stroke-dasharray: 3 3; }
.o-done { opacity: 0; transform: scale(0.4); transform-box: fill-box; transform-origin: center; transition: opacity 0.3s, transform 0.4s var(--ease); }
.planet { cursor: pointer; outline: none; }
.planet .hit { fill: transparent; }
.planet .body-shape { transition: transform 0.3s var(--ease); transform-box: fill-box; transform-origin: center; }
.planet:hover .body-shape, .planet:focus-visible .body-shape { transform: scale(1.12); }
.planet:focus-visible .focus-ring { opacity: 1; }
.planet .focus-ring { fill: none; stroke: var(--app-burgundy); stroke-width: 1.6; opacity: 0; }
.planet.is-done .o-noplan { opacity: 0; }
.planet.is-done .o-done { opacity: 1; transform: none; }
.hint-ring { fill: none; stroke: var(--app-burgundy); stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
.is-quiet .hint-ring { display: none; }
@keyframes pulse {
  0% { opacity: 0.8; transform: scale(0.8); }
  80%, 100% { opacity: 0; transform: scale(1.9); }
}

/* the orbit sways a few degrees, like the real one; names stay upright */
@media (prefers-reduced-motion: no-preference) {
  .sway { transform-box: view-box; transform-origin: 150px 100px; animation: sway 24s ease-in-out infinite alternate; }
  .planet { transform-box: fill-box; transform-origin: center; animation: unsway 24s ease-in-out infinite alternate; }
}
@keyframes sway { from { transform: rotate(-3.5deg); } to { transform: rotate(3.5deg); } }
@keyframes unsway { from { transform: rotate(3.5deg); } to { transform: rotate(-3.5deg); } }

/* list rows (the real app's look) */
.app-field {
  flex: none;
  display: flex;
  align-items: center;
  gap: 2cqw;
  margin: 2.6cqw 4cqw 0;
  padding: 0 0 2.4cqw;
  border-bottom: 0.3cqw solid var(--app-rule);
  font-size: 4.3cqw;
  color: #7F6D68;
}
.app-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--app-ink);
  padding: 0;
  outline: none;
}
.app-field input::placeholder { color: #7F6D68; opacity: 1; }
.app-field button {
  width: 7cqw;
  height: 7cqw;
  border-radius: 50%;
  border: 0;
  background: rgba(46, 13, 20, 0.1);
  color: var(--app-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}
.app-field button:hover { background: rgba(46, 13, 20, 0.18); transform: scale(1.08); }
.app-field button svg { width: 3.8cqw; height: 3.8cqw; }

.app-list { list-style: none; margin: 0; padding: 0 4cqw; flex: none; }
.app-item {
  display: flex;
  align-items: center;
  gap: 3cqw;
  padding: 2.9cqw 0;
  border-bottom: 0.3cqw solid var(--app-rule);
  font-size: 4.4cqw;
  position: relative;
  transition: opacity 0.35s, transform 0.35s var(--ease), max-height 0.4s var(--ease), padding 0.4s var(--ease);
  max-height: 16cqw;
}
.app-item .check {
  flex: none;
  width: 6.6cqw;
  height: 6.6cqw;
  border-radius: 50%;
  border: 0.5cqw solid var(--app-ink);
  background: transparent;
  color: #FBF7F2;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.25s, transform 0.3s var(--ease);
}
.app-item .check svg { width: 3.8cqw; height: 3.8cqw; opacity: 0; transform: scale(0.4); transition: opacity 0.2s, transform 0.3s var(--ease); }
.app-item .check:hover { transform: scale(1.08); }
.app-item.is-done .check { background: var(--app-ink); }
.app-item.is-done .check svg { opacity: 1; transform: none; }
.app-item .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.3s; }
.app-item.is-done .t { color: #7F6D68; text-decoration: line-through; text-decoration-thickness: 0.3cqw; }
.app-item .tag { flex: none; font-size: 3cqw; padding: 0.5cqw 2cqw; border-radius: 99px; background: var(--app-card); color: var(--app-soft); }
.app-item .flag { flex: none; width: 3.6cqw; height: 3.6cqw; color: var(--app-ink); }
.app-item.is-new { animation: pop 0.5s var(--ease); }
.app-item.is-leaving { opacity: 0; transform: translateX(8%); max-height: 0; padding-block: 0; border-bottom-width: 0; }
@keyframes pop { from { opacity: 0; transform: translateY(-40%) scale(0.96); } to { opacity: 1; transform: none; } }

.c-pink { background: var(--app-pink); }
.c-lavender { background: var(--app-lavender); }
.c-blue { background: var(--app-blue); }
.c-mint { background: var(--app-mint); }
.c-yellow { background: var(--app-yellow); }
.c-peach { background: var(--app-peach); }
.app-item.hl .t { background: linear-gradient(transparent 12%, var(--app-lavender) 12% 92%, transparent 92%); padding-inline: 1cqw; border-radius: 1cqw; flex: 0 1 auto; }
.app-item.hl .grow { flex: 1; }

.app-section { flex: none; margin: 3.4cqw 4cqw 0; font-size: 3.4cqw; letter-spacing: 0.08em; text-transform: uppercase; color: var(--app-soft); font-weight: 650; display: flex; justify-content: space-between; }
.app-list.is-done-list .app-item { color: #7F6D68; }

.mf-folded {
  flex: none;
  margin: 0 3cqw;
  padding: 2.8cqw 3.6cqw;
  border-radius: 4.6cqw;
  background: var(--app-card);
  display: flex;
  align-items: center;
  gap: 2cqw;
  font-size: 4.3cqw;
}
.mf-folded strong { font-weight: 700; margin-right: auto; }
.mf-folded .dots { display: inline-flex; }
.mf-folded .dots i { width: 4.6cqw; height: 4.6cqw; border-radius: 50%; margin-left: -1.2cqw; border: 0.35cqw solid var(--app-card); }
.mf-folded svg { width: 3.6cqw; height: 3.6cqw; color: var(--app-soft); }

/* the project window that slides up when a planet is tapped */
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 2.4cqw 5cqw 6cqw;
  background: #FFFFFF;
  border-radius: 7cqw 7cqw 0 0;
  box-shadow: 0 -4cqw 12cqw rgba(46, 13, 20, 0.25);
  transform: translateY(104%);
  visibility: hidden;
  transition: transform 0.55s var(--ease), visibility 0s linear 0.55s;
}
.sheet.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.sheet-scrim { position: absolute; inset: 0; z-index: 19; background: rgba(46, 13, 20, 0.28); opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.sheet-scrim.is-open { opacity: 1; pointer-events: auto; }
.sheet-grab { width: 11cqw; height: 1.2cqw; border-radius: 99px; background: #E2D6CD; margin: 0 auto 3cqw; }
.sheet-head { display: flex; align-items: center; gap: 2.6cqw; }
.sheet-dot { width: 7.4cqw; height: 7.4cqw; border-radius: 50%; flex: none; border: 0.3cqw solid rgba(46, 13, 20, 0.18); display: grid; place-items: center; font-size: 3.6cqw; font-weight: 700; }
.sheet-head h3 { flex: 1; font-size: 5.2cqw; font-weight: 700; font-family: var(--sans); }
.sheet-close { width: 8cqw; height: 8cqw; border-radius: 50%; border: 0; background: rgba(46, 13, 20, 0.07); display: grid; place-items: center; cursor: pointer; }
.sheet-close svg { width: 3.6cqw; height: 3.6cqw; }
.sheet-label { margin: 4cqw 0 0; font-size: 3.3cqw; letter-spacing: 0.08em; text-transform: uppercase; color: var(--app-soft); font-weight: 650; }
.sheet .app-list { padding: 0; }
.sheet .app-item { padding-block: 2.6cqw; }
.sheet-progress { display: flex; align-items: center; gap: 3cqw; margin: 3.4cqw 0 0; font-size: 3.5cqw; color: var(--app-soft); }
.sheet-progress .meter { flex: 1; height: 1.6cqw; border-radius: 99px; background: #EFE4DB; overflow: hidden; }
.sheet-progress .meter i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--done, 0)); background: linear-gradient(90deg, var(--app-burgundy), #D77A94); border-radius: inherit; transition: transform 0.5s var(--ease); }

/* the share screen */
.share-body { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 3cqw 6cqw 0; text-align: center; }
.share-icon { width: 17cqw; height: 17cqw; border-radius: 50%; background: var(--app-card); display: grid; place-items: center; margin-top: 3cqw; }
.share-icon svg { width: 8cqw; height: 8cqw; }
.share-body h3 { font-family: var(--sans); font-size: 5.4cqw; margin: 3.4cqw 0 1.2cqw; }
.share-body p { font-size: 3.7cqw; color: var(--app-soft); line-height: 1.35; margin: 0 0 4cqw; }
.code {
  font-family: var(--mono);
  font-size: 9.4cqw;
  font-weight: 650;
  letter-spacing: 0.1em;
  padding: 2.6cqw 5cqw;
  border-radius: 4.4cqw;
  background: var(--app-card);
  border: 0.4cqw dashed rgba(46, 13, 20, 0.3);
}
.share-actions { display: grid; gap: 2.4cqw; width: 100%; margin-top: 4.6cqw; }
.app-btn {
  border: 0;
  border-radius: 99px;
  padding: 3.1cqw 4cqw;
  font-size: 4.2cqw;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.2s var(--ease), filter 0.2s;
}
.app-btn:hover { transform: scale(1.02); filter: brightness(1.05); }
.app-btn:active { transform: scale(0.98); }
.app-btn.primary { background: var(--app-ink); color: #FBF7F2; }
.app-btn.second { background: var(--app-card); color: var(--app-ink); }
.joined { display: flex; align-items: center; gap: 2.6cqw; margin-top: 4cqw; padding: 2.4cqw 3.6cqw 2.4cqw 2.4cqw; border-radius: 99px; background: #FFFFFF; box-shadow: 0 1cqw 5cqw rgba(46, 13, 20, 0.14); font-size: 3.8cqw; font-weight: 600; opacity: 0; transform: translateY(40%) scale(0.95); transition: opacity 0.45s, transform 0.5s var(--ease); }
.joined.is-on { opacity: 1; transform: none; }
.joined .av { width: 7.6cqw; height: 7.6cqw; border-radius: 50%; background: linear-gradient(135deg, var(--app-lavender), var(--app-pink)); display: grid; place-items: center; font-weight: 700; font-size: 3.6cqw; }
.joined small { display: block; font-size: 3cqw; color: var(--app-soft); font-weight: 400; }

.toast {
  position: absolute;
  left: 50%;
  bottom: 7cqw;
  z-index: 35;
  transform: translate(-50%, 140%);
  padding: 2.4cqw 4.6cqw;
  border-radius: 99px;
  background: var(--app-ink);
  color: #FBF7F2;
  font-size: 3.8cqw;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.35s;
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

.burst { position: absolute; z-index: 25; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; left: -1.2cqw; top: -1.2cqw; width: 2.4cqw; height: 2.4cqw; border-radius: 50%; animation: fly 0.9s var(--ease) forwards; }
@keyframes fly { from { opacity: 1; transform: translate(0, 0) scale(1); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.4); } }

.phone-tabs { display: inline-flex; gap: 0.3rem; margin-top: 1.8rem; padding: 0.3rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.phone-tabs button { border: 0; background: transparent; color: var(--sky-soft); padding: 0.45rem 1rem; border-radius: 999px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background-color 0.25s, color 0.25s; }
.phone-tabs button:hover { color: #FFFFFF; }
.phone-tabs button[aria-selected="true"] { background: #FFFFFF; color: #131D38; }
.phone-note { margin: 0.9rem 0 0; font-size: 0.85rem; color: var(--sky-soft); text-align: center; }

/* ---------- Sections on the home page ---------- */

.section { padding: 5rem 0; }
.section.tight { padding-top: 1rem; }
.section-head { max-width: 40rem; margin-bottom: 2.6rem; }
.section-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 4.2vw, 2.8rem); line-height: 1.1; letter-spacing: -0.015em; margin-bottom: 0.8rem; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; text-wrap: pretty; }

/* three steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; position: relative; }
.step {
  position: relative;
  padding: 1.7rem 1.5rem 1.6rem;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-s);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-l); }
.step-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--btn-1), var(--btn-2));
  box-shadow: 0 8px 22px rgba(92, 84, 220, 0.4);
  margin-bottom: 1.1rem;
}
.step h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 650; margin-bottom: 0.45rem; }
.step p { color: var(--ink-soft); font-size: 0.99rem; line-height: 1.55; }
.step-art { height: 78px; margin-bottom: 1rem; border-radius: 14px; background: var(--surface); display: grid; place-items: center; overflow: hidden; }
.step-art { color: var(--violet); }
.step-art svg { height: 100%; width: auto; max-width: 100%; }
.step-art .code-mini { font-family: var(--mono); font-weight: 650; letter-spacing: 0.1em; font-size: 1.35rem; padding: 0.35rem 0.9rem; border-radius: 12px; border: 2px dashed var(--rule); background: var(--card); }
.avs { display: flex; }
.avs span { width: 38px; height: 38px; border-radius: 50%; margin-left: -9px; border: 3px solid var(--surface); display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; color: #131D38; }
.avs span:first-child { margin-left: 0; }
.avs .a1 { background: var(--ice); }
.avs .a2 { background: var(--lilac); }
.avs .a3 { background: var(--pink); }
.avs .a4 { background: var(--mint); }
.key-note { margin-top: 1.4rem; display: flex; align-items: flex-start; gap: 0.8rem; padding: 1.05rem 1.3rem; border-radius: 16px; border: 1px solid var(--violet); background: color-mix(in srgb, var(--violet) 8%, transparent); font-size: 0.98rem; }
.key-note svg { width: 22px; height: 22px; flex: none; color: var(--violet); margin-top: 0.15rem; }

/* the grid of features */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.1rem; }
.tile {
  position: relative;
  overflow: hidden;
  padding: 1.7rem 1.6rem 1.5rem;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-s);
  min-width: 0;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s var(--ease), box-shadow 0.35s;
}
.tile:hover { box-shadow: var(--shadow-l); }
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--blue) 20%, transparent), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.tile:hover::before { opacity: 1; }
.tile > * { position: relative; }
.tile.t-a { grid-column: span 4; }
.tile.t-b { grid-column: span 2; }
.tile.t-c, .tile.t-d, .tile.t-e { grid-column: span 2; }
.tile.t-f { grid-column: span 6; }
.tile h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 650; margin: 0 0 0.5rem; }
.tile p { color: var(--ink-soft); font-size: 0.99rem; line-height: 1.55; max-width: 36rem; }
.tile .art { margin: 0 0 1.2rem; min-height: 84px; display: grid; align-items: center; }

.tile.t-a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 1.4rem; align-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--violet) 12%, var(--card)), var(--card) 60%); }
.tile.t-a .art { margin: 0; }
.mini-orbit { width: 100%; height: auto; display: block; }
.mini-orbit .ring { fill: none; stroke: var(--ink-soft); stroke-opacity: 0.4; stroke-width: 1; stroke-dasharray: 2 5; }
.mini-orbit .sunc { fill: #2E0D14; }
.mini-orbit text { fill: #FBF7F2; font: 650 8px var(--sans); letter-spacing: 0.16em; text-anchor: middle; }

/* week strip */
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.week .day { position: relative; text-align: center; font-size: 0.72rem; font-family: var(--mono); color: var(--ink-soft); padding: 0.45rem 0 1.9rem; border-radius: 10px; background: var(--surface); }
.week .day.today { background: color-mix(in srgb, var(--violet) 18%, var(--surface)); color: var(--ink); font-weight: 700; }
.week .task { position: absolute; left: 4px; right: 4px; top: 1.75rem; height: 1.15rem; border-radius: 7px; background: var(--btn-1); }
.week .task.slide { background: var(--violet); animation: slide-day 6s var(--ease) infinite; }
@keyframes slide-day {
  0%, 30% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(calc(100% + 6px)); opacity: 1; }
  80%, 100% { transform: translateX(calc(100% + 6px)); opacity: 1; }
}
.week .ghost { position: absolute; left: 4px; right: 4px; top: 1.75rem; height: 1.15rem; border-radius: 7px; border: 1.5px dashed var(--ink-soft); opacity: 0.45; }

.bell-row { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.bell { width: 54px; height: 54px; color: var(--violet); transform-origin: 50% 12%; animation: ring 4.5s ease-in-out infinite; }
@keyframes ring {
  0%, 62%, 100% { transform: rotate(0); }
  66% { transform: rotate(14deg); }
  70% { transform: rotate(-12deg); }
  74% { transform: rotate(10deg); }
  78% { transform: rotate(-8deg); }
  82% { transform: rotate(5deg); }
  86% { transform: rotate(0); }
}
.pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; background: var(--surface); color: var(--ink); border: 1px solid var(--rule); }
.pill svg { width: 15px; height: 15px; color: var(--violet); }

.sync-art { display: flex; align-items: center; justify-content: center; gap: 0.6rem; }
.dev { border: 2px solid var(--ink-soft); border-radius: 9px; display: grid; gap: 4px; padding: 7px; background: var(--surface); align-content: start; }
.dev.phone-s { width: 34px; height: 60px; }
.dev.pad-s { width: 76px; height: 58px; }
.dev i { display: block; height: 5px; border-radius: 3px; background: var(--rule); }
.dev i:nth-child(2) { width: 70%; background: var(--blue); }
.sync-line { position: relative; width: 64px; height: 4px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.sync-line::after { content: ""; position: absolute; top: 0; left: -30%; width: 30%; height: 100%; background: linear-gradient(90deg, transparent, var(--violet), transparent); animation: travel 2.6s linear infinite; }
@keyframes travel { from { left: -30%; } to { left: 100%; } }

.tile-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.9rem; font-weight: 650; font-size: 0.95rem; }
.tile-link svg { width: 16px; height: 16px; }
.toc-mobile summary svg { width: 18px; height: 18px; }

/* the promises */
.promise {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 3.4rem 2.4rem;
  color: var(--sky-ink);
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(143, 93, 216, 0.45), transparent 62%),
    radial-gradient(600px 400px at 0% 100%, rgba(104, 153, 248, 0.3), transparent 62%),
    linear-gradient(160deg, var(--sky-1), var(--sky-2));
  box-shadow: var(--shadow-l);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.4rem 3rem;
  align-items: center;
}
.promise .eyebrow { color: var(--sky-soft); }
.promise h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; margin-bottom: 0.9rem; }
.promise p { color: var(--sky-soft); }
.promise a { color: var(--ice); }
.switches { display: grid; gap: 0.7rem; }
.switch {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--sky-ink);
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s;
}
.switch:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }
.switch .label { flex: 1; font-weight: 650; }
.switch .label small { display: block; font-weight: 400; color: var(--sky-soft); font-size: 0.86rem; }
.switch .track { flex: none; position: relative; width: 52px; height: 30px; border-radius: 99px; background: rgba(255, 255, 255, 0.16); }
.switch .track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); transition: transform 0.3s var(--ease); }
.switch .state { flex: none; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; color: var(--sky-soft); width: 2.4rem; text-align: right; }
.switch.nope { animation: nope 0.55s var(--ease); }
.switch.nope .track::after { transform: translateX(6px); }
@keyframes nope {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-7px); }
  36% { transform: translateX(6px); }
  54% { transform: translateX(-4px); }
  72% { transform: translateX(3px); }
}
.promise-msg { min-height: 1.6em; margin-top: 0.4rem; font-size: 0.95rem; color: var(--ice); }

/* questions that open and close */
.qa-list { display: grid; gap: 0.7rem; max-width: 56rem; }
.qa {
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-s);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.qa[open] { border-color: color-mix(in srgb, var(--violet) 55%, var(--edge)); box-shadow: var(--shadow-l); }
.qa summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3, .qa summary h2 { flex: 1; font-family: var(--serif); font-weight: 600; font-size: 1.12rem; line-height: 1.3; }
.qa .plus { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); transition: transform 0.35s var(--ease), background-color 0.25s; }
.qa .plus::before, .qa .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--ink); transform: translate(-50%, -50%); }
.qa .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.35s var(--ease); }
.qa[open] .plus { transform: rotate(180deg); background: color-mix(in srgb, var(--violet) 22%, var(--surface)); }
.qa[open] .plus::after { transform: translate(-50%, -50%) rotate(0); }
.qa-body { padding: 0 1.3rem 1.3rem; max-width: 46rem; }
.qa[open] .qa-body { animation: unfold 0.4s var(--ease); }
@keyframes unfold { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.qa-body p { color: var(--ink); font-size: 1rem; }
.qa.is-hidden { display: none; }

/* the closing band */
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 28px;
  padding: 3rem 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2rem;
  align-items: center;
  justify-content: space-between;
  color: #FFFFFF;
  background: linear-gradient(120deg, #2F44B8, #6B45C9 55%, #A15BC8);
  box-shadow: var(--shadow-l);
}
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 260px at 15% 0%, rgba(255, 255, 255, 0.22), transparent 62%); }
.cta h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 3.6vw, 2.3rem); line-height: 1.1; margin-bottom: 0.4rem; }
.cta p { color: rgba(255, 255, 255, 0.86); }
.cta .btn-white { background: #FFFFFF; color: #1B2561; box-shadow: 0 12px 30px rgba(10, 14, 50, 0.35); }

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

.site-footer { border-top: 1px solid var(--rule); margin-top: 2rem; color: var(--ink-soft); font-size: 0.93rem; }
.site-footer .wrap { padding-top: 2rem; padding-bottom: 2.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; justify-content: space-between; }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem; margin: 0; padding: 0; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }
.to-top { display: inline-flex; align-items: center; gap: 0.4rem; }
.to-top svg { width: 16px; height: 16px; }

/* ---------- Privacy policy and support: a short sky, then the words ---------- */

.page-sky .hero-doc {
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 2.2rem) 1.5rem 5.6rem;
}
.page-sky h1 { font-family: var(--serif); font-weight: 650; font-size: clamp(2.2rem, 5vw, 3.3rem); line-height: 1.06; letter-spacing: -0.015em; margin-bottom: 0.7rem; }
.page-sky .meta { font-family: var(--mono); font-size: 0.82rem; color: var(--sky-soft); margin-bottom: 0.5rem; }
.page-sky .about { color: var(--sky-soft); max-width: 40rem; font-size: 1.02rem; }

.doc-layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: grid;
  grid-template-columns: 230px minmax(0, 700px);
  gap: 3.5rem;
  justify-content: center;
  margin-top: -3rem;
  position: relative;
}
.doc-layout.single { grid-template-columns: minmax(0, 760px); }

.toc { position: sticky; top: calc(var(--header-h) + 22px); align-self: start; padding-top: 4rem; }
.toc h2 { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 0.8rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.toc a { display: block; padding: 0.32rem 0 0.32rem 0.9rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; line-height: 1.35; transition: color 0.2s, border-color 0.2s; }
.toc a:hover { color: var(--ink); }
.toc a.is-current { color: var(--ink); border-left-color: var(--violet); font-weight: 650; }
.toc-mobile { display: none; }

.doc { min-width: 0; }

.tldr {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 20px;
  padding: 1.7rem 1.9rem;
  margin-bottom: 2.6rem;
  box-shadow: var(--shadow-l);
  position: relative;
  overflow: hidden;
}
.tldr::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--blue), var(--violet), var(--pink)); }
.tldr .eyebrow { margin-bottom: 0.6rem; }
.tldr p { font-size: 1.04rem; }

.doc-section { padding: 2.4rem 0; border-top: 1px solid var(--rule); }
.doc-section:first-of-type { border-top: 0; padding-top: 0.4rem; }
.doc-section h2 { display: flex; align-items: center; gap: 0.75rem; font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1.2; margin-bottom: 1rem; }
.doc-section h2 .ico { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #FFFFFF; background: linear-gradient(135deg, var(--btn-1), var(--btn-2)); box-shadow: 0 6px 16px rgba(92, 84, 220, 0.3); }
.doc-section h2 .ico svg { width: 20px; height: 20px; }
.doc ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.doc li { margin-bottom: 0.55rem; }
.doc li:last-child { margin-bottom: 0; }
.doc li::marker { color: var(--violet); }

code { font-family: var(--mono); font-size: 0.88em; background: var(--surface); padding: 0.1em 0.4em; border-radius: 4px; }

.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; margin: 1.4rem 0; }
.panel { background: var(--card); border: 1px solid var(--edge); border-radius: 16px; padding: 1.3rem 1.5rem; min-width: 0; box-shadow: var(--shadow-s); }
.panel .eyebrow { margin-bottom: 0.8rem; }
.panel ul { margin: 0; padding-left: 1.1rem; }
.panel li { margin-bottom: 0.4rem; font-size: 0.97rem; }
.panel.stored { border-top: 3px solid var(--blue); }
.panel.never { border-top: 3px solid var(--mint); }

.callout { border: 1px solid var(--violet); background: color-mix(in srgb, var(--violet) 8%, transparent); border-radius: 16px; padding: 1.1rem 1.4rem; margin: 1.4rem 0; }
.callout p { margin: 0; }

.doc-end { margin-top: 3rem; padding: 1.6rem 1.8rem; border-radius: 20px; background: var(--surface); color: var(--ink-soft); font-size: 0.97rem; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-top: 0.6rem; }
.address { font-family: var(--mono); font-size: 0.92rem; overflow-wrap: anywhere; margin: 0; }
.doc-end .address a { color: var(--ink); }

/* support: search, topics, questions */
.finder { display: grid; gap: 1rem; margin-bottom: 1.8rem; }
.search { position: relative; }
.search svg { position: absolute; left: 1.1rem; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.search input {
  width: 100%;
  padding: 1rem 1.2rem 1rem 3rem;
  border-radius: 16px;
  border: 1px solid var(--edge);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  box-shadow: var(--shadow-l);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.search input::placeholder { color: var(--ink-soft); opacity: 0.8; }
.search input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 25%, transparent), var(--shadow-l); }
.topics { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.topic { border: 1px solid var(--rule); background: var(--card); color: var(--ink); border-radius: 999px; padding: 0.4rem 0.95rem; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease); }
.topic:hover { border-color: var(--violet); transform: translateY(-1px); }
.topic[aria-pressed="true"] { background: linear-gradient(135deg, var(--btn-1), var(--btn-2)); border-color: transparent; color: #FFFFFF; }
.finder-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; font-size: 0.92rem; color: var(--ink-soft); }
.linkish { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.empty { display: none; padding: 1.4rem 1.6rem; border-radius: 18px; border: 1px dashed var(--rule); text-align: center; color: var(--ink-soft); }
.empty.is-on { display: block; }

.faq-list .qa { margin-bottom: 0.7rem; }
.faq-list .qa-body p { margin-bottom: 1rem; }
.faq-list .qa-body p:last-child { margin-bottom: 0; }
.faq-list .topic-tag { flex: none; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--surface); }

.contact-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; background: var(--card); border: 1px solid var(--edge); border-radius: 18px; padding: 1.2rem 1.5rem; box-shadow: var(--shadow-l); margin-bottom: 2rem; }
.contact-strip p { margin: 0; }
.contact-strip .address a { color: var(--ink); }

/* ---------- Page not found ---------- */

.lost { max-width: 1120px; margin: 0 auto; padding: calc(var(--header-h) + 2.6rem) 1.5rem 7rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 2rem; align-items: center; }
.lost h1 { font-family: var(--serif); font-weight: 650; font-size: clamp(2.3rem, 5.4vw, 3.8rem); line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 1rem; }
.lost .lead { color: var(--sky-soft); font-size: 1.18rem; margin-bottom: 1.8rem; }
.lost-art { width: 100%; max-width: 420px; justify-self: center; }
.lost-art svg { display: block; width: 100%; height: auto; }
.lost-art .ring { fill: none; stroke: #B7C0E2; stroke-opacity: 0.35; stroke-width: 1.2; stroke-dasharray: 2 6; }
@media (prefers-reduced-motion: no-preference) {
  .drifter { animation: wander 14s ease-in-out infinite alternate; }
}
@keyframes wander { from { transform: translate(0, 0) rotate(-6deg); } to { transform: translate(-70px, 34px) rotate(10deg); } }

/* ---------- Showing things as you scroll ---------- */

.rise { animation: rise 1s var(--ease) 0.15s backwards; }
.hero-copy > * { animation: rise 0.9s var(--ease) backwards; }
.hero-copy > :nth-child(2) { animation-delay: 0.05s; }
.hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.hero-copy > :nth-child(4) { animation-delay: 0.2s; }
.hero-copy > :nth-child(5) { animation-delay: 0.28s; }
.hero-copy > :nth-child(6) { animation-delay: 0.36s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { --d: 90ms; }
.js .reveal.d2 { --d: 180ms; }
.js .reveal.d3 { --d: 270ms; }
.js .reveal.d4 { --d: 360ms; }
.js .reveal.d5 { --d: 450ms; }

/* ---------- Smaller screens ---------- */

@media (max-width: 1320px) {
  .chip { display: none; }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: calc(var(--header-h) + 1.6rem); padding-bottom: 6rem; gap: 2.6rem; }
  .hero-stage { margin-top: 0.4rem; }
  .chip.c1 { left: 0; }
  .chip.c2 { right: 0; }
  .chip.c3 { left: 0; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.t-a, .tile.t-f { grid-column: span 2; }
  .tile.t-b, .tile.t-c, .tile.t-d, .tile.t-e { grid-column: span 1; }
  .promise { grid-template-columns: minmax(0, 1fr); }
  .doc-layout { grid-template-columns: minmax(0, 700px); margin-top: -2.4rem; }
  .toc { display: none; }
  .toc-mobile { display: block; margin-bottom: 1.8rem; }
  .toc-mobile summary { list-style: none; cursor: pointer; padding: 0.9rem 1.2rem; border-radius: 16px; background: var(--card); border: 1px solid var(--edge); font-weight: 650; display: flex; justify-content: space-between; box-shadow: var(--shadow-s); }
  .toc-mobile summary::-webkit-details-marker { display: none; }
  .toc-mobile ol { list-style: none; margin: 0.6rem 0 0; padding: 0.6rem 1.2rem; border-radius: 16px; background: var(--card); border: 1px solid var(--edge); }
  .toc-mobile a { display: block; padding: 0.4rem 0; color: var(--ink); text-decoration: none; }
  .lost { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  :root { --header-h: 58px; }
  .js .nav-toggle { display: inline-grid; }
  .js .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--edge); padding: 0.4rem 1.5rem 1rem; display: none; box-shadow: 0 20px 40px rgba(7, 12, 30, 0.12); }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
  .js .site-nav li:last-child a { border-bottom: 0; }
  .get-app { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 3.6rem 0; }
  .promise { padding: 2.4rem 1.4rem; border-radius: 22px; }
  .cta { padding: 2.2rem 1.5rem; border-radius: 22px; }
  .tile.t-a { grid-template-columns: minmax(0, 1fr); }
  .chip { display: none; }
  .hero-stage { --phone-w: min(76vw, 300px); }
}

@media (max-width: 520px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile.t-a, .tile.t-b, .tile.t-c, .tile.t-d, .tile.t-e, .tile.t-f { grid-column: span 1; }
  .doc-section h2 { font-size: 1.28rem; }
}

/* ---------- When people prefer less motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .rot-word:not(.is-on) { display: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn-primary::after { display: none; }
  .rot-word { transform: none; }
}

/* ---------- On paper ---------- */

@media print {
  body { background: #FFFFFF; color: #000000; font-size: 11.5pt; }
  .site-header, .sky, .toc, .toc-mobile, .copy, .skip, .site-footer, .finder, .finder-bar, .progress { display: none !important; }
  .doc-layout { display: block; margin: 0; padding: 0; }
  .tldr, .panel, .doc-end { box-shadow: none; background: #F2F2F2; }
  .qa { box-shadow: none; }
  a { color: #000000; }
}
