/* PhoneVault public pages — plain HTML, no app, no JavaScript needed to read
   them. Built by scripts/build-site.mjs from site/content.mjs.
   The home page is the shop window: short lines, pictures, big buttons. The
   detail is one tap away on each service's own page. */
:root {
  --bg: #f5f7fc;
  --card: #ffffff;
  --ink: #0b1630;
  --ink-2: #44506b;
  --ink-3: #6f7c98;
  --line: #e4e9f3;
  --accent: #075cdd;
  --accent-2: #2f8bff;
  --accent-soft: #e9f1ff;
  --navy: #061a44;
  --ok: #12a05c;
  --ok-soft: #e6f7ee;
  --shadow: 0 18px 40px -18px rgba(8, 23, 66, .28);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 16.5px/1.6 Inter, -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.ic { width: 22px; height: 22px; flex: none; }

/* ── Top bar ── */
header.top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; }
header.top .wrap { display: flex; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 12px; }
a.brand {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  color: #fff; text-decoration: none; font-weight: 800; letter-spacing: -.01em; font-size: 18px;
}
a.brand img { width: 34px; height: 34px; border-radius: 9px; }
nav.main { display: flex; gap: 22px; font-size: 14.5px; font-weight: 600; }
nav.main a { color: rgba(255,255,255,.72); text-decoration: none; }
nav.main a:hover, nav.main a[aria-current="page"] { color: #fff; }
.actions { display: flex; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  padding: 10px 20px; font-weight: 700; font-size: 14.5px; text-decoration: none;
  border: 1.5px solid transparent; line-height: 1.2; transition: background-color .15s ease;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: #054bb6; }
.btn.light { background: #fff; color: var(--navy); }
.btn.light:hover { background: #e9eef8; }
.btn.ghost { border-color: rgba(255,255,255,.38); color: #fff; }
.btn.big { padding: 15px 28px; font-size: 16.5px; }
.link { font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ── Hero ── */
.hero { color: #fff; padding: 64px 0 0; background: var(--navy); overflow: hidden; }
.hero.small { padding-bottom: 52px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: end; }
.hero-grid > div:first-child { align-self: center; padding-bottom: 64px; }
.hero h1 { color: #fff; font-size: clamp(34px, 5.2vw, 58px); line-height: 1.06; margin: 0 0 18px; letter-spacing: -.03em; font-weight: 800; }
.hero h1 .soft { display: block; color: #9cc7ff; }
.hero p.lead { color: rgba(255,255,255,.8); font-size: 19px; max-width: 30em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .note { margin: 20px 0 0; color: rgba(255,255,255,.6); font-size: 14.5px; }
.hero .note a { color: #fff; font-weight: 700; }
.hero-art { display: flex; justify-content: center; }
.hero.small { padding-top: 44px; }
.hero.small h1 { font-size: clamp(30px, 4.8vw, 44px); line-height: 1.1; }
.hero.small p.lead { font-size: 18px; margin-bottom: 24px; }
.hero-ic {
  display: inline-flex; width: 56px; height: 56px; border-radius: 16px; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12); color: #b9dcff; margin-bottom: 16px;
}
.hero-ic .ic { width: 28px; height: 28px; }
.crumbs { font-size: 13.5px; color: rgba(255,255,255,.6); margin: 0 0 18px; }
.crumbs a { color: rgba(255,255,255,.8); text-decoration: none; }

/* ── App screens (real screenshots) ── */
.shot { display: block; height: auto; max-width: 100%; }
.shot.phone { width: 290px; border-radius: 30px; border: 8px solid #0b1630; background: #0b1630; box-shadow: 0 24px 48px -28px rgba(8, 23, 66, .45); }
.hero .shot.phone { border-color: #1a2c57; border-bottom: 0; border-radius: 30px 30px 0 0; box-shadow: none; aspect-ratio: 585 / 1060; object-fit: cover; object-position: top; }
.shot.paper { width: 400px; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 24px 48px -30px rgba(8, 23, 66, .35); }

/* ── Sections ── */
section.band { padding: 64px 0; }
section.band.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { color: var(--ink); font-size: clamp(25px, 3.6vw, 34px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.02em; font-weight: 800; }
h2.center { margin-bottom: 34px; }
section.band > .wrap > h2 { margin-bottom: 22px; }
h3 { color: var(--ink); font-size: 17px; margin: 0 0 4px; line-height: 1.3; }
p { margin: 0 0 14px; }
strong { color: var(--ink); }
.fine { color: var(--ink-3); font-size: 14.5px; margin-top: 26px; }
/* Service list */
.flist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.flist li { border-top: 1px solid var(--line); padding: 14px 0 16px; }
.flist a { display: block; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 17px; margin-bottom: 2px; }
.flist a:hover { color: var(--accent); text-decoration: underline; }
.flist span { display: block; font-size: 15.5px; color: var(--ink-2); line-height: 1.5; }

/* Picture rows */
.show { display: grid; gap: 64px; }
.show-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.show-row.flip .show-art { order: 2; }
.show-art { display: flex; justify-content: center; align-items: center; }
.show-row p { font-size: 18px; color: var(--ink-2); }
.show-row .btn { margin-right: 14px; }
.show-row .more { margin-top: 20px; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; margin: 9px 0; color: var(--ink); font-weight: 600; }
.ticks .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); stroke-width: 3; margin-top: 2px; }
.ticks.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.ticks.grid2 li { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; font-weight: 500; color: var(--ink-2); font-size: 15px; line-height: 1.45; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.steps li {
  counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 58px 20px 20px;
  position: relative; text-align: center;
}
.steps li::before {
  content: counter(step); position: absolute; left: 50%; top: 16px; transform: translateX(-50%); width: 34px; height: 34px;
  border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.steps p { margin: 0; font-size: 15px; }

/* Questions */
details.qa { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin: 10px 0; overflow: hidden; }
section.band.alt details.qa { background: var(--bg); }
details.qa summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; color: var(--ink); position: relative;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 500; color: var(--accent);
}
details.qa[open] summary::after { content: "–"; }
details.qa p { margin: 0; padding: 0 18px 16px; font-size: 15.5px; }

/* Final call */
.final {
  text-align: center; color: #fff; padding: 64px 0; background: var(--navy);
}
.final h2 { color: #fff; }
.final p { color: rgba(255,255,255,.78); font-size: 17.5px; margin-bottom: 24px; }
.final .cta { justify-content: center; }
.final.inset { border-radius: 26px; padding: 40px 24px; margin: 36px 0 22px; }
.final.inset h2 { font-size: 26px; }

/* Inner pages */
.page { padding-top: 34px; padding-bottom: 40px; }
.page section { margin-bottom: 34px; }
.page h2 { font-size: 24px; margin-bottom: 14px; }
.answer-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 10px; }
.answer-card h2 { font-size: 20px; }
.answer-card p { font-size: 17px; color: var(--ink); }
.related { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; justify-content: center; }
.related a {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px;
  text-decoration: none; font-size: 14.5px; font-weight: 700; background: var(--card); color: var(--ink);
}
.related a:hover { border-color: var(--accent); }
.related .ic { width: 18px; height: 18px; color: var(--accent); }

/* ── Footer ── */
footer.foot { background: #030c24; color: rgba(255,255,255,.66); padding: 44px 0 40px; font-size: 14.5px; }
footer.foot .cols { display: grid; gap: 26px; grid-template-columns: repeat(4, 1fr); }
footer.foot h2 { color: #fff; font-size: 15px; margin: 0 0 10px; font-weight: 700; letter-spacing: 0; }
footer.foot ul { list-style: none; padding: 0; margin: 0; }
footer.foot li { margin: 6px 0; }
footer.foot a { color: rgba(255,255,255,.72); text-decoration: none; }
footer.foot a:hover { color: #fff; }
footer.foot .legal { margin: 30px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.5); font-size: 13.5px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { margin-top: 0; }
  .hero-grid > div:first-child { padding-bottom: 8px; }
  .show-row, .show-row.flip { grid-template-columns: 1fr; gap: 22px; }
  .show-row.flip .show-art { order: 0; }
  .flist { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  header.top .wrap { gap: 8px; flex-wrap: wrap; padding: 10px 16px 0; }
  header.top .actions { gap: 6px; }
  header.top .btn { padding: 8px 13px; font-size: 14px; }
  a.brand { font-size: 16.5px; gap: 8px; }
  a.brand img { width: 30px; height: 30px; }
  nav.main {
    order: 3; width: 100%; gap: 17px; font-size: 14px; white-space: nowrap;
    overflow-x: auto; scrollbar-width: none; padding: 2px 0 11px;
  }
  nav.main::-webkit-scrollbar { display: none; }
  .btn { padding: 9px 16px; }
  .hero { padding: 40px 0 0; text-align: center; }
  .hero.small { padding-bottom: 44px; }
  .hero h1 { font-size: 31px; }
  .hero .cta { justify-content: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; font-size: 17.5px; }
  .hero.small { text-align: left; }
  .hero.small .cta { justify-content: flex-start; }
  .btn.big { padding: 14px 24px; font-size: 16px; }
  section.band { padding: 46px 0; }
  h2.center { margin-bottom: 24px; }
  .steps { grid-template-columns: 1fr; }
  .ticks.grid2 { grid-template-columns: 1fr; }
  .show { gap: 46px; }
  .shot.phone { width: 250px; }
  .shot.paper { width: 100%; }
  .show-row .btn { margin: 0 0 12px; }
  .show-row .link { display: inline-block; margin-top: 4px; }
  footer.foot .cols { grid-template-columns: repeat(2, 1fr); }
  .final { padding: 48px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Video guides: the /guides/ hub (featured video, topic chips, card grid)
   and one page per guide (big player, steps, up next). Cards are landscape
   thumbnails; on a guide page a phone gets the tall video, a laptop the wide. */
.ghero { padding-bottom: 56px; }
.ghero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: center; }
.ghero-grid > div { min-width: 0; }
.gstats { color: rgba(255,255,255,.75); margin: 0; font-size: 15px; }
.gstats b { color: #fff; font-size: 17px; }
.gstats span { margin: 0 6px; opacity: .5; }
.feature .flabel { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9cc7ff; }
.feature .gcard { background: #0d2560; border-color: #1a2c57; }
.feature .gcard .gt { color: #fff; }
.feature .gcard .gl { color: rgba(255,255,255,.72); }
.feature .gcard .ep { color: rgba(255,255,255,.6); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.chip { font: 600 14.5px/1 Inter, system-ui, sans-serif; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--accent-2); color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip:focus-visible, .gcard:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }

.ggrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 22px; }
.gcard { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 10px 16px; transition: transform .15s ease, box-shadow .15s ease; }
.gcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.gcard .thumb { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy); }
.gcard .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Bottom-left, so it never covers the episode title in the thumbnail. */
.play { position: absolute; left: 10px; bottom: 10px; width: 42px; height: 42px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.play circle { fill: rgba(255,255,255,.94); }
.play path { fill: var(--accent); }
.gcard.big .play { width: 56px; height: 56px; left: 14px; bottom: 14px; }
.dur { position: absolute; right: 8px; bottom: 8px; background: rgba(6,26,68,.86); color: #fff; font: 700 12.5px/1 Inter, system-ui, sans-serif; padding: 5px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.gcard .meta, .gpage .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 4px 0; }
.tag { font-size: 12.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; }
.ep { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.gcard .gt { margin: 0 4px; font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--ink); text-wrap: balance; }
.gcard .gl { margin: 0 4px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.gcard.big .gt { font-size: 21px; }
.gcard[hidden] { display: none; }

.gtop { padding-top: 28px; }
.gpage .crumbs { color: var(--ink-3); }
.gpage .crumbs a { color: var(--accent); }
.gp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.gp-main { min-width: 0; }
.stage { border-radius: 16px; overflow: hidden; background: var(--navy); }
.player { display: block; width: 100%; height: auto; max-width: 100%; background: var(--navy); }
.player.wide { aspect-ratio: 16 / 9; }
.player.tall { display: none; aspect-ratio: 9 / 16; max-height: 82vh; margin: 0 auto; width: auto; }
.gpage h1 { color: var(--ink); font-size: clamp(26px, 3.6vw, 36px); line-height: 1.15; letter-spacing: -.02em; margin: 10px 0 6px; text-wrap: balance; }
.gpage .gl { font-size: 17.5px; margin: 0 0 26px; max-width: 38em; }
.gpage h2 { color: var(--ink); font-size: 19px; margin: 0 0 12px; }
.gsteps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 40em; }
.gsteps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--ink); line-height: 1.5; }
.gsteps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 14px; }
.gp-side h2 { font-size: 17px; }
.upnext { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 12px; }
.upnext a { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
.upnext a:hover b { color: var(--accent); }
.upnext .mini { position: relative; display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy); }
.upnext .mini img { display: block; width: 100%; height: 100%; object-fit: cover; }
.upnext .mini .dur { right: 5px; bottom: 5px; font-size: 11px; padding: 3px 5px; }
.upnext b { display: block; font-size: 14.5px; line-height: 1.3; }
.gcta { margin-top: 18px; background: var(--navy); color: #fff; border-radius: 14px; padding: 18px; display: grid; gap: 12px; }
.gcta .btn { text-align: center; }

@media (max-width: 900px) {
  .ghero-grid { grid-template-columns: 1fr; gap: 28px; }
  .ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ggrid { grid-template-columns: 1fr; gap: 18px; }
  .player.wide { display: none; }
  .player.tall { display: block; width: 100%; max-height: none; }
}
@media (prefers-reduced-motion: reduce) { .gcard { transition: none; } .gcard:hover { transform: none; } }
