/* Prep a Constable marketing site.
   Fonts are the app's own (Fraunces, Manrope), self-hosted. No remote requests, no tracking. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6f4ee;
  --sheet: #fffdf8;
  --ink: #101b30;
  --soft: #44505f;
  --rule: #d9d4c6;
  --navy: #1a3a6c;
  --navy-deep: #12284c;
  --on-navy: #f3f1ea;
  --on-navy-soft: #c5cfe0;
  --link: #1a3a6c;
  --mark: #e1fa09;
  --focus: #1a3a6c;
  --bezel: #0d1626;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #10161f;
    --sheet: #18212e;
    --ink: #f2f4f8;
    --soft: #c3ccd9;
    --rule: #2f3c50;
    --navy: #b9d0ff;
    --navy-deep: #0b1830;
    --link: #b9d0ff;
    --focus: #e1fa09;
    --bezel: #05090f;
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

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

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

::selection { background: var(--mark); color: #101b30; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: 0;
  transform: translateY(-140%);
  background: var(--navy-deep);
  color: #fff;
  padding: 12px 16px;
  z-index: 40;
  border-radius: 0 0 8px 8px;
}
.skip:focus { transform: none; }

/* ---- Header ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding-top: env(safe-area-inset-top);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }

.menu-btn { display: none; }

.site-header nav { display: flex; flex-wrap: wrap; gap: 0 6px; }

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 6px;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }

/* With JavaScript, small screens get a Menu button; without it the links simply wrap. */
@media (max-width: 859px) {
  .js .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    min-width: 44px;
    padding: 0 14px;
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink);
    background: transparent;
    border: 1.5px solid var(--ink);
    border-radius: 8px;
    cursor: pointer;
  }
  .js .menu-btn::before {
    content: "";
    width: 16px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
  }
  .js .site-header nav { display: none; flex-basis: 100%; flex-direction: column; padding: 4px 0 12px; border-top: 1px solid var(--rule); }
  .js .site-header nav.open { display: flex; }
  .js .site-header nav a { min-height: 48px; padding: 0 4px; font-size: 1.0625rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .js .site-header nav a:last-child { border-bottom: 0; }
}

/* ---- Disclaimer --------------------------------------------------------- */

.disclaimer { background: var(--navy-deep); color: var(--on-navy); font-size: 0.95rem; line-height: 1.5; }
.disclaimer p { margin: 0; padding: 12px 0; }
.disclaimer strong { color: var(--mark); }

/* ---- Shared bits -------------------------------------------------------- */

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0 0 14px;
}

.lede { font-size: 1.2rem; line-height: 1.55; color: var(--soft); max-width: 34em; }

.section { padding-block: clamp(56px, 9vw, 104px); }
.section h2 { font-size: clamp(1.9rem, 3.2vw + 1rem, 3rem); margin-bottom: 18px; }

main [id] { scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top) + 16px); }

.mark { background: linear-gradient(transparent 62%, var(--mark) 62%, var(--mark) 94%, transparent 94%); }
@media (prefers-color-scheme: dark) { .mark { background: none; text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 0.12em; text-underline-offset: 0.12em; } }

/* A phone: the screenshot inside a plain dark bezel. The aspect ratio is fixed so nothing shifts as it loads. */
.device {
  margin: 0;
  width: min(100%, 300px);
  padding: 9px;
  background: var(--bezel);
  border-radius: 42px;
  box-shadow: 0 1px 0 1px rgba(255, 255, 255, 0.08) inset, 0 24px 48px -18px rgba(16, 27, 48, 0.45);
}
.device img { width: 100%; aspect-ratio: 1320 / 2868; border-radius: 34px; background: #f6f4ee; }

/* ---- Hero ---------------------------------------------------------------- */

.hero { display: grid; gap: 40px; padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6.2vw + 0.6rem, 4.6rem); margin-bottom: 22px; }
.hero .device { justify-self: center; }

.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 28px 0 22px; padding-top: 22px; border-top: 1px solid var(--rule); }
.price-line b { font-family: var(--serif); font-size: 2.6rem; line-height: 1; letter-spacing: -0.02em; }
.price-line span { color: var(--soft); }

.stores { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-start; }
.stores li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.store { display: flex; align-items: center; height: 48px; }
.badge-apple { height: 44px; width: auto; max-width: none; flex: none; }
.badge-play { height: 64px; width: auto; max-width: none; flex: none; margin: -10px; }
.soon { margin: 0; font-size: 0.85rem; font-weight: 700; color: var(--soft); }

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 56px; }
  .hero .device { justify-self: end; width: min(100%, 320px); }
}

/* ---- What is inside: a ledger, not cards -------------------------------- */

.inside { background: var(--sheet); border-block: 1px solid var(--rule); }
.inside-head { display: grid; gap: 8px 48px; margin-bottom: 28px; }
.inside-head .lede { margin: 0; }

.ledger { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ledger li { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: 2px 18px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.ledger .n { font-family: var(--serif); font-size: 2.1rem; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.ledger h3 { font-family: var(--sans); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0; line-height: 1.35; }
.ledger p { grid-column: 2; margin: 0; color: var(--soft); }

@media (min-width: 760px) {
  .inside-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
  .ledger li { grid-template-columns: 7.5rem minmax(0, 15rem) minmax(0, 1fr); gap: 0 28px; padding: 20px 0; }
  .ledger .n { font-size: 2.6rem; }
  .ledger p { grid-column: 3; }
}

/* ---- How you use it: text beside a phone, sides alternate ---------------- */

.uses { display: grid; gap: clamp(56px, 8vw, 96px); margin-top: clamp(32px, 5vw, 56px); }
.use { display: grid; gap: 28px; align-items: center; }
.use .device { justify-self: center; width: min(100%, 270px); }
.use h3 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.05rem); margin-bottom: 14px; }
.use p { color: var(--soft); max-width: 32em; }
.use .facts { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--rule); max-width: 32em; }
.use .facts li { padding: 10px 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 16px; }
.use .facts b { font-weight: 700; }
.use .facts span { color: var(--soft); text-align: right; }
.step { font-family: var(--serif); font-size: 1rem; color: var(--soft); margin: 0 0 8px; }

@media (min-width: 760px) {
  .use { grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; }
  .use .device { width: 100%; justify-self: end; }
  .use.flip { grid-template-columns: 300px minmax(0, 1fr); }
  .use.flip .device { order: -1; justify-self: start; }
}

/* ---- Law: the one dark band ---------------------------------------------- */

.law { background: var(--navy-deep); color: var(--on-navy); }
.law a { color: #fff; }
.law :focus-visible { outline-color: var(--mark); }
.law .eyebrow { color: var(--on-navy-soft); }
.law-grid { display: grid; gap: 40px; align-items: start; }
.law-copy p { color: var(--on-navy-soft); max-width: 36em; }
.law-copy .stamp {
  display: inline-block;
  margin: 4px 0 22px;
  padding: 8px 14px;
  border: 1.5px solid var(--mark);
  border-radius: 4px;
  color: var(--mark);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.law .device { justify-self: center; width: min(100%, 270px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }

@media (min-width: 860px) {
  .law-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; }
  .law .device { width: 100%; position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---- Account note -------------------------------------------------------- */

.account { border-bottom: 1px solid var(--rule); }
.account .wrap { display: grid; gap: 12px 56px; padding-block: clamp(40px, 6vw, 64px); }
.account h2 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.05rem); }
.account p { margin: 0; color: var(--soft); }
@media (min-width: 860px) { .account .wrap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }

/* ---- Price --------------------------------------------------------------- */

.price { display: grid; gap: 32px 72px; }
.section .price-big { font-family: var(--serif); font-size: clamp(4rem, 10vw + 1rem, 7.5rem); line-height: 0.95; letter-spacing: -0.03em; margin: 0 0 14px; }
.price-terms { color: var(--soft); max-width: 24em; }
.price-list { list-style: none; margin: 0 0 24px; padding: 0; border-top: 2px solid var(--ink); }
.price-list li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.price-small { color: var(--soft); font-size: 1rem; }
@media (min-width: 860px) { .price { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }

/* ---- FAQ ----------------------------------------------------------------- */

.faq-band { background: var(--sheet); border-block: 1px solid var(--rule); }
.faq-grid { display: grid; gap: 24px 72px; align-items: start; }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 1.5rem; line-height: 1; flex: none; width: 1.2rem; text-align: center; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 18px; color: var(--soft); max-width: 40em; }
@media (min-width: 860px) { .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } .faq-grid h2 { position: sticky; top: calc(var(--header-h) + 32px); } }

/* ---- Download ------------------------------------------------------------ */

.download { display: grid; gap: 20px; }
.download .lede { margin-bottom: 8px; }
.download .links a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 18px; }

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

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--sheet);
  color: var(--soft);
  font-size: 0.95rem;
  padding: 40px 0 calc(40px + env(safe-area-inset-bottom));
}
.site-footer .brand { margin-bottom: 14px; }
.site-footer p { margin: 0 0 10px; max-width: 46em; }
.site-footer a { color: var(--link); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-links a, .site-footer p > a[href^="mailto"] { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- Legal and support pages (their text is not changed) ------------------ */

.prose { max-width: 800px; padding-block: 40px 72px; }
.prose h1 { font-size: clamp(2rem, 4vw + 1rem, 3rem); margin: 0 0 12px; }
.prose h2 { font-size: 1.45rem; margin: 2em 0 0.5em; line-height: 1.2; }
.prose h3 { font-family: var(--sans); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0; margin: 1.5em 0 0.4em; line-height: 1.35; }
.prose .lede { font-size: 1.15rem; color: var(--ink); max-width: none; }
.prose .note, .note { color: var(--soft); font-size: 0.95rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose a { overflow-wrap: anywhere; }
.prose .card { margin: 16px 0; padding: 16px 18px; background: var(--sheet); border: 1px solid var(--rule); border-left: 4px solid var(--navy); border-radius: 6px; }
.prose .card strong { display: block; margin-bottom: 4px; }
.prose .card a { display: inline-flex; align-items: center; min-height: 44px; }

@media print {
  .site-header, .menu-btn, .stores { display: none; }
  .device { box-shadow: none; }
}
