@font-face {
  font-family: "Bricolage";
  src: url("bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Plex";
  src: url("plex.woff2") format("woff2");
  font-weight: 100 700;
  font-stretch: 85% 100%;
  font-display: swap;
}

:root {
  --paper: #eef1f5;
  --sheet: #ffffff;
  --ink: #151b27;
  --ink-soft: #3a4252;
  --muted: #5b6475;
  --rule: #d5dae3;
  --navy: #141a26;
  --navy-2: #1e2533;
  --amber: #e8a33d;
  --amber-ink: #8a5608;
  --slate: #7f8aa0;
  --blue: #4f8fc0;
  --gold: #c49a1c;
  --green: #4fa37b;

  --display: "Bricolage", "Segoe UI", system-ui, sans-serif;
  --body: "Plex", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--amber-ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font: 700 19px/1 var(--display); letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: flex; gap: 6px; }
.site-nav a {
  font-weight: 500; font-size: 15px; text-decoration: none;
  padding: 7px 12px; border-radius: 8px; color: var(--ink-soft);
}
.site-nav a:hover { background: #e1e6ed; color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--ink); color: #fff; }

/* Home hero */
.hero { padding: 72px 0 0; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: end;
}
.hero-copy { padding-bottom: 72px; align-self: center; }
.app-id { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.app-id img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 6px 18px rgba(20, 26, 38, 0.18); }
.app-id strong { display: block; font: 700 20px/1.2 var(--display); }
.app-id span { color: var(--muted); font-size: 15px; }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
.hero h1 {
  font-size: clamp(44px, 6.4vw, 78px);
  line-height: 0.98;
  font-weight: 800;
  font-stretch: 94%;
  letter-spacing: -0.022em;
  max-width: 12ch;
}
.lede { font-size: 20px; line-height: 1.55; color: var(--ink-soft); max-width: 34em; margin: 24px 0 32px; }

.availability {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff;
  padding: 12px 18px 12px 14px; border-radius: 12px;
  font-weight: 500; font-size: 15px;
}
.availability svg { flex: none; }
.availability small { display: block; color: #aab2c2; font-size: 13px; font-weight: 400; }

.hero-phone {
  background: var(--navy);
  border-radius: 40px 40px 0 0;
  padding: 26px 26px 0;
  justify-self: end;
  width: min(100%, 400px);
}
.hero-phone img { width: 100%; border-radius: 26px 26px 0 0; aspect-ratio: 660 / 1000; object-fit: cover; object-position: top; }

/* Stage track: the signature element */
.track { background: var(--navy); color: #e7eaf0; padding: 56px 0 64px; }
.track h2 { font-size: 28px; color: #fff; margin-bottom: 36px; font-weight: 700; }
.stages { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.stages::before {
  content: ""; position: absolute; top: 11px; left: 12px; right: calc(25% - 12px);
  height: 2px; background: linear-gradient(90deg, var(--slate), var(--blue), var(--gold), var(--green));
}
.stage { position: relative; padding-right: 24px; }
.stage-dot {
  width: 24px; height: 24px; border-radius: 50%;
  border: 3px solid var(--c); background: var(--navy);
  position: relative; margin-bottom: 18px;
}
.stage:last-child .stage-dot { background: var(--c); }
.stage h3 { font-size: 22px; font-weight: 700; color: var(--c); margin-bottom: 6px; }
.stage p { margin: 0; color: #aab2c2; font-size: 15px; line-height: 1.5; max-width: 22ch; }

/* Feature rows */
.features { padding: 96px 0 40px; }
.feature {
  display: grid; grid-template-columns: 320px 1fr; gap: 72px; align-items: center;
  padding: 0 0 88px;
}
.feature:nth-child(even) { grid-template-columns: 1fr 320px; }
.feature:nth-child(even) .shot { order: 2; }
.shot {
  background: var(--navy); border-radius: 34px; padding: 12px;
  box-shadow: 0 24px 48px -24px rgba(20, 26, 38, 0.45);
}
.shot img { width: 100%; border-radius: 24px; aspect-ratio: 660 / 1180; object-fit: cover; object-position: top; }
.feature h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; font-weight: 750; max-width: 14ch; margin-bottom: 18px; }
.feature p { color: var(--ink-soft); max-width: 36em; margin: 0 0 14px; }
.feature ul { margin: 18px 0 0; padding: 0; list-style: none; max-width: 36em; }
.feature li { padding: 10px 0 10px 22px; border-top: 1px solid var(--rule); position: relative; }
.feature li::before {
  content: ""; position: absolute; left: 2px; top: 19px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--amber);
}

/* Promise strip */
.promise { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--sheet); }
.promise .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.promise div { padding: 32px 28px 32px 0; }
.promise div + div { padding-left: 28px; border-left: 1px solid var(--rule); }
.promise h3 { font-size: 19px; margin-bottom: 6px; }
.promise p { margin: 0; color: var(--muted); font-size: 15px; }

/* Document pages (support, privacy) */
.doc-head { padding: 64px 0 40px; border-bottom: 1px solid var(--rule); }
.doc-head h1 { font-size: clamp(38px, 5vw, 56px); line-height: 1.02; font-weight: 800; font-stretch: 90%; letter-spacing: -0.03em; }
.doc-head p { color: var(--ink-soft); font-size: 19px; max-width: 36em; margin: 16px 0 0; }
.doc-head .meta { color: var(--muted); font-size: 15px; margin-top: 12px; }

.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding: 48px 0 96px; }
.toc { position: sticky; top: 24px; align-self: start; }
.toc p { font-weight: 600; font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-soft); font-size: 15px; }
.toc a:hover { border-left-color: var(--amber); color: var(--ink); }

.prose { max-width: 70ch; }
.prose section { padding-bottom: 12px; scroll-margin-top: 24px; }
.prose h2 { font-size: 26px; font-weight: 700; margin: 28px 0 10px; }
.prose section:first-child h2 { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--amber); }
.prose strong { color: var(--ink); }

.callout {
  background: var(--sheet); border: 1px solid var(--rule); border-left: 4px solid var(--green);
  border-radius: 10px; padding: 18px 22px; margin: 0 0 28px;
}
.callout p { margin: 0; color: var(--ink); }

/* Support */
.contact-card {
  background: var(--navy); color: #fff; border-radius: 20px; padding: 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  margin-bottom: 40px;
}
.contact-card h2 { color: #fff; margin: 0 0 4px; font-size: 24px; }
.contact-card p { margin: 0; color: #aab2c2; }
.button {
  display: inline-block; background: var(--amber); color: var(--navy);
  font-weight: 600; text-decoration: none; padding: 13px 22px; border-radius: 12px;
}
.button:hover { background: #f2b457; color: var(--navy); }

.faq-group { margin-bottom: 36px; scroll-margin-top: 24px; }
.faq-group > h2 { font-size: 24px; margin: 0 0 8px; }
details { border-bottom: 1px solid var(--rule); }
summary {
  list-style: none; cursor: pointer; padding: 16px 36px 16px 0; position: relative;
  font-weight: 600; font-size: 17px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 24px; width: 10px; height: 10px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
details[open] summary::after { transform: rotate(-135deg); top: 28px; }
details > div { padding: 0 0 18px; color: var(--ink-soft); max-width: 64ch; }
details > div p { margin: 0 0 10px; }

/* Footer */
.site-footer { background: var(--navy); color: #aab2c2; padding: 40px 0; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: #e7eaf0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 880px) {
  .hero { padding-top: 44px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { padding-bottom: 0; }
  .hero-phone { justify-self: center; }
  .stages { grid-template-columns: 1fr; gap: 26px; }
  .stages::before { top: 12px; bottom: 12px; left: 11px; right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--slate), var(--blue), var(--gold), var(--green)); }
  .stage { display: grid; grid-template-columns: 24px 1fr; column-gap: 18px; padding: 0; }
  .stage-dot { margin: 2px 0 0; grid-row: span 2; }
  .stage p { max-width: none; }
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; gap: 32px; padding-bottom: 64px; }
  .feature:nth-child(even) .shot { order: 0; }
  .shot { max-width: 300px; }
  .promise .wrap { grid-template-columns: 1fr; }
  .promise div, .promise div + div { padding: 22px 0; border-left: 0; }
  .promise div + div { border-top: 1px solid var(--rule); }
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
}

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

/* Availability block is now a link to the App Store */
a.availability { text-decoration: none; transition: background .15s ease, transform .15s ease; }
a.availability:hover { background: var(--navy-2); transform: translateY(-1px); }
a.availability span { color: #fff; }

/* Cross-promotion for the developer's other app */
.also { background: var(--sheet); border-top: 1px solid var(--rule); padding: 56px 0 64px; }
.also h2 { font-size: 22px; margin: 0 0 20px; color: var(--muted); font-weight: 500; }
.also-card {
  display: grid; gap: 8px; max-width: 620px;
  background: var(--navy); color: #e7eaf0;
  border-radius: 16px; padding: 24px 26px; text-decoration: none;
  transition: transform .15s ease;
}
.also-card:hover { transform: translateY(-2px); }
.also-name { font-family: var(--display); font-size: 26px; font-weight: 700; color: #fff; }
.also-blurb { font-size: 16px; line-height: 1.5; color: #aab2c2; }
.also-go { font-size: 15px; font-weight: 500; color: var(--amber); }
