@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Cal Sans";
  src: url("assets/fonts/CalSans.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --surface: #131313;
  --surface-2: #1b1b1b;
  --text: #f5f5f4;
  --text-2: #b4b4b0;
  --text-3: #7c7c78;
  --rec: #ff3b30;

  --wordmark: "Cal Sans", "Manrope", system-ui, sans-serif; /* the "Loopie" wordmark only */
  --body: "Manrope", system-ui, -apple-system, sans-serif;

  --max: 1120px;
  --gutter: 24px;
  --section: 128px;
  --radius: 20px;
}
@media (max-width: 720px) {
  :root { --gutter: 16px; --section: 88px; --radius: 16px; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
h1, h2 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; text-wrap: balance; }
h3 { font-weight: 700; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(36px, 4.6vw, 52px); margin-top: 12px; }
.section-head h2:first-child { margin-top: 0; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-sub { margin-top: 16px; font-size: 18px; color: var(--text-2); }

/* ---------- Buttons ---------- */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: 14px;
  font: 700 16px/1 var(--body);
  border: 0;
  transition: background-color .15s ease;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; margin-top: -3px; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; }
.btn-secondary { background: var(--surface-2); }
.btn-secondary:hover { background: #242424; }
.btn-sm { height: 38px; padding: 0 16px; border-radius: 10px; font-size: 14px; }
.btn-block { width: 100%; }
button.btn { cursor: pointer; }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
}
.nav-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
/* Proportions from the app's SplashView: mark as wide as the type size, gap about a quarter of it */
.brand { display: flex; align-items: center; gap: 0.24em; font-family: var(--wordmark); font-size: 24px; line-height: 1; }
.brand-mark { width: 1em; height: 1.075em; flex: none; }
.brand-mark path { fill: none; stroke: currentColor; stroke-width: 6; stroke-linecap: square; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; color: var(--text-2); }
.nav-links > a:not(.btn):hover { color: var(--text); }
@media (max-width: 560px) { .nav-links > a:not(.btn) { display: none; } }

/* ---------- Hero + how it works (one pinned phone) ---------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; }

.hero {
  min-height: calc(100vh - 64px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 48px 0;
}
.hero h1 { font-size: clamp(44px, 6vw, 76px); max-width: 10ch; }
.lede { margin-top: 20px; max-width: 30em; font-size: clamp(17px, 1.4vw, 18px); color: var(--text-2); }
.hero .buttons { margin-top: 36px; }
.hero .btn[aria-disabled="true"] { cursor: default; }
.free-note { margin-top: 18px; font-size: 15px; color: var(--text-3); }
.free-note strong { color: var(--text); font-weight: 700; }
.pill { height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 10px; background: var(--surface-2); color: var(--text); font-size: 14px; font-weight: 600; }


/* ---------- Media slots ---------- */
.media { position: relative; overflow: hidden; border-radius: 12px; background: var(--surface); }
.media > img, .media > video { width: 100%; height: auto; }
.media-mac { border-radius: 12px; box-shadow: 0 40px 80px -24px rgba(0,0,0,.9); }
.device {
  border-radius: 13% / 6%;
  box-shadow: 0 0 0 6px #1a1a1a, 0 40px 80px -24px rgba(0,0,0,.9);
}
.device > img, .device > video { aspect-ratio: var(--ar); object-fit: cover; }

/* Shown until the real screenshot / video file exists */
.media.is-missing { aspect-ratio: var(--ar); }
.media.is-missing > img, .media.is-missing > video { display: none; }
.media.is-missing::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: grid; place-items: center; padding: 12px;
  text-align: center; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text-3);
  background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(255,255,255,.025) 10px 20px), var(--surface);
}

/* Steps */
.steps { list-style: none; padding: 0; }
.step {
  display: grid; grid-template-columns: 40px 1fr; gap: 0 20px;
  padding: 32px 0; min-height: 60vh; align-content: center;
  color: var(--text-3);
  transition: color .3s ease;
}
.step.is-active { color: var(--text); }
.step p { margin-top: 8px; max-width: 30em; color: inherit; }
.step.is-active p { color: var(--text-2); }
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 800;
  background: var(--surface-2);
  transition: background-color .3s, color .3s;
}
.step.is-active .step-num { background: var(--text); color: var(--bg); }
.step-media { display: none; }

/* The pinned phone, level with the hero at the top */
.how-stage {
  position: sticky; top: 64px;
  height: calc(100vh - 64px);
  display: grid; place-items: center;
  padding: 40px 0;
}
.how-stage .media { grid-area: 1 / 1; height: 100%; max-height: 740px; width: auto; aspect-ratio: var(--ar); opacity: 0; transition: opacity .35s ease; }
.how-stage .media.is-active { opacity: 1; }
.how-stage .media > img, .how-stage .media > video { height: 100%; }

@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .how-stage { display: none; }
  .hero { min-height: 0; padding: 56px 0 24px; }
  .hero .step-media { display: block; width: min(280px, 72%); margin: 56px auto 0; align-self: center; }
  .step { min-height: 0; color: var(--text); padding: 40px 0; }
  .step p { color: var(--text-2); }
  .step .step-num { background: var(--text); color: var(--bg); }
  .step .step-media { display: block; grid-column: 2; width: min(240px, 70%); margin-top: 28px; }
}

/* ---------- Pro ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan {
  display: flex; flex-direction: column;
  padding: 32px; border-radius: var(--radius);
  background: var(--surface);
}
.plan-plus { background: #202020; }
.plan-later { background: rgba(255, 255, 255, 0.025); }
.plan-later .plan-top, .plan-later .ticks { color: var(--text-3); }
.plan-top { padding-bottom: 8px; }
.plan h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--text); color: var(--bg); }
.tag-muted { background: var(--surface-2); color: var(--text-2); }
.plan-price { margin-top: 12px; font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan-price-tbc { font-size: 28px; line-height: 44px; color: var(--text-2); }
.plan-desc { margin-top: 10px; color: var(--text-2); font-size: 15px; }
.ticks { list-style: none; padding: 24px 0 0; display: grid; align-content: start; gap: 12px; flex: 1; font-size: 15px; color: var(--text-2); }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%230a0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.ticks li.minus::before { background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 8h6' stroke='%237c7c78' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.ticks strong { color: var(--text); font-weight: 700; }
.ticks-plain li { padding-left: 0; }
.ticks-plain li::before { display: none; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin: 20px auto 0; }
.compare-item figcaption { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--text-3); text-align: center; }
.media-square { border-radius: var(--radius); }

@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .plan { padding: 24px; }
  .compare { gap: 12px; }
}

/* ---------- Details ---------- */
.features { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 32px; }
/* The app's own symbols, tinted by currentColor */
.feature-icon {
  display: block; width: 28px; height: 28px; margin-bottom: 16px;
  background: currentColor;
  -webkit-mask: var(--icon) left center / contain no-repeat;
  mask: var(--icon) left center / contain no-repeat;
}
.features h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.features p { margin-top: 6px; font-size: 15px; color: var(--text-2); }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Closing CTA ---------- */
.cta-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta-inner img { border-radius: 16px; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.cta h2 { margin-top: 24px; font-size: clamp(32px, 4.2vw, 48px); }
.cta .buttons { margin-top: 32px; justify-content: center; }

/* ---------- Footer ---------- */
.footer { font-size: 14px; color: var(--text-3); }
.footer-brand { font-family: var(--wordmark); font-size: 17px; color: var(--text-2); }
.footer-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.footer nav { display: flex; gap: 24px; }
.footer a:hover { color: var(--text); }

/* ---------- Download picker ---------- */
.download-dialog {
  width: min(460px, calc(100vw - 32px)); padding: 32px; border: 0; border-radius: 24px;
  background: var(--surface); color: var(--text);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.9);
}
.download-dialog::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.download-dialog h2 { font-size: 28px; }
.dialog-sub { margin-top: 8px; color: var(--text-2); }
.dialog-close-form { position: absolute; top: 16px; right: 16px; }
.dialog-close {
  width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--surface-2); color: var(--text-2); font: 400 22px/1 var(--body);
}
.dialog-close:hover { color: var(--text); }
.device-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.device-option {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 20px; border-radius: 16px; background: var(--surface-2);
}
.device-option[href]:hover { background: #242424; }
.device-name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.device-req { font-size: 14px; color: var(--text-3); }
.device-option .tag { margin-top: 12px; background: rgba(255, 255, 255, 0.08); }
.dialog-note { margin-top: 20px; font-size: 14px; color: var(--text-3); }
.text-link { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--text-3); }

/* ---------- Roadmap ---------- */
.vote-note { margin-top: 12px; font-size: 15px; color: var(--text-3); }
.roadmap-list { list-style: none; padding: 0 !important; margin-top: 20px !important; display: grid; gap: 8px; }
.roadmap-list li + li { margin-top: 0; }
.roadmap-item {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 24px; border-radius: 16px; background: var(--surface);
}
.roadmap .roadmap-item h3 { margin-top: 0; color: var(--text); }
.roadmap .roadmap-item p { margin-top: 4px; }
.vote {
  flex: none; height: 38px; padding: 0 16px; border: 0; border-radius: 10px;
  background: var(--surface-2); color: var(--text); font: 700 14px/1 var(--body); cursor: pointer;
}
.vote:disabled { color: var(--text-3); cursor: default; }

/* ---------- Text pages (privacy, support) ---------- */
.doc { padding: 72px 0 var(--section); }
.doc .wrap { max-width: calc(720px + var(--gutter) * 2); }
.doc h1 { font-size: clamp(36px, 5vw, 52px); }
.doc .updated { margin-top: 12px; font-size: 14px; color: var(--text-3); }
.doc .intro { margin-top: 24px; font-size: 19px; color: var(--text-2); }
.doc h2 { margin-top: 56px; font-size: 24px; letter-spacing: -0.02em; }
.doc h3 { margin-top: 32px; font-size: 17px; }
.doc p, .doc ul { margin-top: 12px; color: var(--text-2); }
.doc ul { padding-left: 20px; }
.doc li + li { margin-top: 6px; }
.doc a:not(.btn) { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--text-3); }
.doc strong { color: var(--text); }
.contact-card { margin-top: 32px; padding: 24px; border-radius: var(--radius); background: var(--surface); }
.contact-card p:first-child { margin-top: 0; }
.faq { margin-top: 20px; display: grid; gap: 8px; }
.faq details { padding: 18px 20px; border-radius: 14px; background: var(--surface); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-3); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; }

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