@font-face {
  font-family: Inter;
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --accent: #3D38B5;
  --band: #3D38B5;
  --line: rgba(0, 0, 0, 0.12);
  --bar-bg: rgba(255, 255, 255, 0.85);
  --bar-solid: #ffffff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --bg: #000000;
    --bg-alt: #161617;
    --accent: #A7A4FF;
    --line: rgba(255, 255, 255, 0.18);
    --bar-bg: rgba(0, 0, 0, 0.8);
    --bar-solid: #000000;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.47 Inter, -apple-system, system-ui, sans-serif;
  overflow-wrap: break-word;
  /* short pages (404) keep the footer at the bottom of the screen */
  display: flex; flex-direction: column; min-height: 100svh;
}
main { flex-grow: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.1; }
h1 { font-size: clamp(40px, 7vw, 64px); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
h3 { font-size: 21px; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding-left: 1.2em; }
li { margin: 0.4em 0; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 680px; }
.section, .section-alt, .band { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section h2, .section-alt h2 { margin-bottom: 24px; }
.note { color: var(--text-2); margin-top: 24px; }

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

.skip { position: absolute; left: 12px; top: -80px; z-index: 20; background: var(--bg); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* bar */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: var(--bar-solid);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .bar { background: var(--bar-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
}
.bar-in { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; text-decoration: none; margin-right: auto; }
.brand img { border-radius: 7px; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px;
  display: flex; flex-direction: column; padding: 8px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
}
.menu nav a { padding: 10px 12px; color: var(--text); text-decoration: none; border-radius: 8px; }
.menu nav a:hover { background: var(--bg-alt); }
.badge { display: inline-block; line-height: 0; border-radius: 8px; flex: none; }
.badge img { display: block; }
.bar .badge { order: 3; }

/* hero */
.hero { text-align: center; padding: 56px 0 72px; overflow: hidden; }
.pitch { max-width: 640px; margin: 20px auto 28px; font-size: clamp(17px, 1.6vw + 12px, 21px); line-height: 1.38; color: var(--text-2); }
.hero .phone { margin: 48px auto 0; }

/* phone frame: bezel 3% of width, screen radius 13%, outer radius larger */
.phone {
  --w: min(300px, 70vw);
  width: var(--w);
  padding: calc(var(--w) * 0.03);
  background: #000;
  border-radius: 16.5% / 7.6%;
  box-shadow: 0 0 0 1px rgba(128, 128, 128, 0.35), 0 24px 48px -12px rgba(0, 0, 0, 0.35);
}
.phone picture, .phone img { display: block; }
.screen { width: 100%; height: auto; border-radius: 13.5% / 6.2%; background: var(--bg-alt); }

/* feature rows */
.row { display: flex; flex-direction: column; align-items: center; gap: 32px; padding: 48px 0; }
.row + .row { border-top: 1px solid var(--line); }
.row-text h2 { margin-bottom: 16px; }
.row-text ul { color: var(--text-2); }
.paid { color: var(--accent); font-weight: 600; }

/* privacy band */
.band { background: var(--band); color: #fff; }
.band h2 { margin-bottom: 16px; }
.band h3 { margin: 32px 0 8px; }
.band a { color: #fff; font-weight: 600; }
.band :focus-visible { outline-color: #fff; }

/* steps */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 16px; }
.steps li { counter-increment: step; display: flex; gap: 16px; align-items: flex-start; margin: 0; }
.steps li::before {
  content: counter(step); flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--bg); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps span { padding-top: 5px; }

/* unlock cards */
.cards { display: grid; gap: 20px; }
.card { background: var(--bg); border-radius: 20px; padding: 28px; }
.card h3 { margin-bottom: 12px; }

/* faq */
.q { border-bottom: 1px solid var(--line); }
.q summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; list-style: none; position: relative; }
.q summary::-webkit-details-marker { display: none; }
/* chevron: points down when closed, up when open */
.q summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px;
  border: solid var(--text-2); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg);
}
.q[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.q p { color: var(--text-2); }

/* footer */
.footer { padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 14px; }
.footer .links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 16px; }
.footer a { color: var(--text-2); }
.footer p { margin: 0 0 8px; }

/* the bar is too narrow for brand, menu and badge on small phones; the hero has its own badge */
@media (max-width: 479px) {
  .bar .badge { display: none; }
}

/* wide: inline menu, alternating rows */
@media (min-width: 734px) {
  .menu { order: 2; }
  .row { flex-direction: row; justify-content: space-between; gap: 64px; padding: 72px 0; }
  .row:nth-child(even) { flex-direction: row-reverse; }
  .row-text { flex: 1; max-width: 400px; }
  .row .phone { flex: none; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1068px) {
  .hero { padding-top: 80px; }
}
/* a closed <details> hides its content; where ::details-content can undo that, the menu goes inline, elsewhere it stays a dropdown */
@supports selector(::details-content) {
  @media (min-width: 734px) {
    .menu summary { display: none; }
    .menu::details-content { content-visibility: visible; }
    .menu nav { position: static; flex-direction: row; min-width: 0; padding: 0; border: 0; background: none; gap: 4px; }
    .menu nav a { color: var(--text-2); font-size: 14px; }
    .menu nav a:hover { background: none; color: var(--text); }
  }
}

/* reveal: content is visible unless JS is running */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* reading column: privacy policy, 404 */
.prose { max-width: 680px; padding-top: 56px; padding-bottom: 72px; }
.prose h2 { margin: 48px 0 16px; }
.prose h3 { font-size: 20px; font-weight: 600; margin: 28px 0 8px; }
.prose h1 + p { margin-top: 12px; color: var(--text-2); }
