:root {
  --ink: #15132b;
  --ink-soft: #55597a;
  --paper: #f4f5fa;
  --surface: #ffffff;
  --indigo: #5b4cf0;
  --indigo-deep: #3b2fd9;
  --lilac: #e8e6fd;
  --coral: #e8590c;
  --night: #14122e;
  --line: #e2e5f0;
  --radius-card: 20px;
  --radius-phone: 34px;
  --shadow-soft: 0 1px 2px rgba(17, 19, 39, 0.05), 0 8px 24px rgba(17, 19, 39, 0.07);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1180px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
}

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

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

/* ---------- Header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img {
  border-radius: 10px;
}

.top nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.top nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.top nav a:hover {
  color: var(--ink);
}

.top-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}
.top-cta:hover {
  background: var(--indigo);
}

/* ---------- Shared phone frame ---------- */
.phone {
  position: relative;
  aspect-ratio: 720 / 1480;
  padding: 9px;
  border-radius: var(--radius-phone);
  background: #0c0d18;
  box-shadow: 0 0 0 1.5px #3a3f58 inset, 0 30px 60px -20px rgba(24, 18, 80, 0.35);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-phone) - 9px);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(56px, 8vw, 104px);
}

.hero h1 {
  font-size: clamp(2.9rem, 7.4vw, 5.8rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.lede {
  max-width: 34ch;
  margin-top: 26px;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
}

.play {
  display: inline-block;
  margin-top: 30px;
  margin-left: -10px; /* the official badge has built-in padding */
}
.play img {
  width: 220px;
}

.fine {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.hero-art {
  position: relative;
  isolation: isolate;
  height: clamp(440px, 52vw, 620px);
}
.hero-art .phone {
  position: absolute;
  width: clamp(200px, 22vw, 290px);
}
.hero-art .front {
  right: 4%;
  top: 0;
  z-index: 1;
}
.hero-art .tilt-back {
  left: 6%;
  top: 9%;
  transform: rotate(-7deg);
  opacity: 0.95;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 12% 0 4% 10%;
  border-radius: 48px;
  background: var(--lilac);
  z-index: -1;
}

/* ---------- Try the shelf ---------- */
.try {
  max-width: calc(860px + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--gutter);
}

.try-head p {
  max-width: 56ch;
  margin-top: 16px;
  color: var(--ink-soft);
}

.shelf {
  list-style: none;
  margin: 36px 0 0;
  padding: 22px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 10px;
}

.card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 78px;
  padding: 12px 10px 12px 14px;
  border-radius: var(--radius-card);
  background: var(--paper);
}
.card.pinned {
  background: var(--lilac);
}

.tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--tile);
  font-size: 1.55rem;
}

.meta {
  display: grid;
  min-width: 0;
  flex: 1;
}
.meta strong {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.meta span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.meta em {
  font-style: normal;
  font-weight: 700;
  color: var(--indigo);
  margin-right: 6px;
}

.acts {
  display: flex;
  gap: 2px;
}

.toggle {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8a8fac;
  cursor: pointer;
}
.toggle:hover {
  background: rgba(91, 76, 240, 0.08);
}
.toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.toggle[aria-pressed="true"] {
  color: var(--coral);
}
.toggle[aria-pressed="true"] svg {
  fill: currentColor;
}
.toggle.pop svg {
  animation: pop 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop {
  0% { transform: scale(0.6); }
  100% { transform: scale(1); }
}

.try-status {
  min-height: 1.6em;
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Features ---------- */
.features {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) var(--gutter);
  display: grid;
  gap: clamp(64px, 8vw, 104px);
}

.feature {
  display: grid;
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 7vw, 104px);
}
.feature.flip {
  grid-template-columns: minmax(0, 1fr) minmax(200px, 300px);
}
.feature.flip .phone {
  order: 2;
}

.feature-copy {
  max-width: 52ch;
}
.feature-copy p {
  margin-top: 18px;
  font-size: 1.12rem;
  color: var(--ink-soft);
}
.feature-copy ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.feature-copy li {
  position: relative;
  padding-left: 28px;
}
.feature-copy li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--indigo);
}

.ops {
  margin: 24px 0 0;
  display: grid;
  gap: 8px;
}
.ops div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}
.ops dt code {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--lilac);
  color: var(--indigo-deep);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
}
.ops dd {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Themes ---------- */
.themes {
  margin-top: clamp(80px, 11vw, 140px);
  padding: clamp(64px, 9vw, 112px) var(--gutter) 0;
  background: var(--night);
  color: #eef0fa;
  overflow: hidden;
}
.themes-copy {
  max-width: var(--max);
  margin: 0 auto;
}
.themes-copy p {
  max-width: 50ch;
  margin-top: 18px;
  font-size: 1.12rem;
  color: #a3a8c5;
}

.trio {
  max-width: 900px;
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 3vw, 40px);
  align-items: end;
  /* phones rise out of the band and get cropped at the bottom edge */
  margin-bottom: -18%;
}
.trio .phone:nth-child(2) {
  transform: translateY(-36px);
}
.trio .phone {
  box-shadow: 0 0 0 1.5px #3a3f58 inset;
}
.themes::after {
  content: "";
  display: block;
  height: 1px;
}

/* ---------- Privacy ---------- */
.privacy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 250px);
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(80px, 11vw, 140px) var(--gutter) clamp(48px, 7vw, 88px);
}
.privacy-copy {
  max-width: 58ch;
}
.privacy-copy p {
  margin-top: 18px;
  font-size: 1.12rem;
  color: var(--ink-soft);
}
.privacy-copy .plain {
  padding: 18px 20px;
  border-left: 4px solid var(--indigo);
  border-radius: 0 14px 14px 0;
  background: var(--surface);
  font-size: 1rem;
}
.text-link {
  display: inline-block;
  margin-top: 20px;
  font-weight: 700;
  color: var(--indigo);
  text-underline-offset: 4px;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: calc(780px + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter);
}
.faq h2 {
  margin-bottom: 24px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-weight: 700;
  font-size: 1.12rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--indigo);
  transition: transform 200ms ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  max-width: 62ch;
  padding-bottom: 22px;
  color: var(--ink-soft);
}

/* ---------- Closing ---------- */
.closing {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 22px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: clamp(40px, 6vw, 72px) auto 0;
  padding: clamp(64px, 9vw, 104px) var(--gutter);
  border-radius: 40px 40px 0 0;
  background: linear-gradient(160deg, var(--indigo-deep), var(--indigo) 55%, #7b5cf5);
  color: #fff;
}
.closing > img {
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(10, 8, 60, 0.35);
}
.closing h2 {
  max-width: 14ch;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}
.closing .play {
  margin: 4px 0 0;
}

/* ---------- Footer ---------- */
.foot {
  display: grid;
  gap: 10px;
  padding: 36px var(--gutter) 44px;
  background: var(--night);
  color: #a3a8c5;
  font-size: 0.95rem;
  text-align: center;
}
.foot a {
  color: #eef0fa;
  text-underline-offset: 3px;
}
.foot p:nth-child(2) {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.foot .legal {
  font-size: 0.82rem;
  color: #7d82a3;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .top nav {
    display: none;
  }
  .top-cta {
    margin-left: auto;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-art {
    height: 460px;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }
  .hero-art .phone {
    width: 210px;
  }
  .feature,
  .feature.flip,
  .privacy {
    grid-template-columns: 1fr;
  }
  .feature .phone,
  .privacy .phone {
    width: min(260px, 70%);
    margin: 0 auto;
  }
  .feature.flip .phone {
    order: 0;
  }
  .trio {
    margin-bottom: -30%;
  }
}

@media (max-width: 480px) {
  .card {
    gap: 12px;
    padding-left: 10px;
  }
  .shelf {
    padding: 12px;
  }
  .tile {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
  }
  .toggle {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .toggle.pop svg {
    animation: none;
  }
  .faq summary::after {
    transition: none;
  }
}
