/* YapVault site. Colours and type follow the 1.1.0 app and its App Store set:
   label paper, label ink, record red, the search highlighter and key black
   (LibraryArtwork.swift, tools/compose_app_store_frames.py in voice-app),
   on the light oak desk the recorder sits on. Words are Avenir Next, as in
   the app; Jost (the YAPVAULT badge's face, SIL OFL) stands in where Avenir
   Next is not installed. */

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/jost-latin.woff2") format("woff2");
}

:root {
  --ground: #F7F5F1;
  --paper: #F4F1E8;
  --rule: #DDD8C9;
  --ink: #1F3B8A;
  --red: #D9442E;
  --red-deep: #B02616;
  --amber: #F7C63E;
  --black: #101012;
  --text: #24252B;
  --muted: #56575E;
  --display: "Avenir Next", "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --body: "Avenir Next", "Avenir", "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--body); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
::selection { background: #FFE04D; color: var(--black); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.t2 { color: var(--red); }
h2 .t2 { display: inline-block; }

/* ── Top bar: key black, with the recorder's badge ─────────────────── */
.bar { background: var(--black); color: var(--paper); }
.bar-in { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }
.badge { display: inline-block; position: relative; padding: 5px 12px 9px; border: 2px solid #C7CAD0; border-radius: 4px; background: #060607; color: #F2F3F5; font-family: "Jost", "Avenir Next", "Futura", sans-serif; font-weight: 800; font-size: 19px; line-height: 1; letter-spacing: 0.05em; text-decoration: none; box-shadow: inset 0 0 0 1px #000, 0 1px 0 #55585E; }
.badge::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px; background: var(--red); }
.badge:hover { color: #fff; }
.bar-links { margin-left: auto; display: flex; align-items: center; gap: 10px 28px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.bar-links a { color: #D9D6CC; text-decoration: none; }
.bar-links a:hover { color: #fff; }

/* Keys: the app's square push keys */
.key { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 7px; border: 2px solid #000; background: linear-gradient(#2B2B2F, #19191C); color: var(--paper); font-family: var(--body); font-size: 17px; font-weight: 600; line-height: 1.2; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 3px 0 #000, 0 8px 16px rgba(0,0,0,.28); cursor: pointer; }
.key:hover { color: #fff; background: linear-gradient(#35353A, #1F1F23); }
.key:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 1px 0 #000; }
.key svg { flex: none; }
.key-paper { background: var(--paper); color: var(--black); border-color: #000; padding: 9px 15px; font-size: 14.5px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.14); }
.key-paper:hover { background: #fff; color: var(--black); }
.bar-links a.key-paper, .bar-links a.key-paper:hover { color: var(--black); }

/* ── Hero: the product page header, "Just talk." ────────────────────── */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(540px, 42.6vw, 800px); background: var(--red); }
.hero-copy { align-self: center; width: 100%; max-width: 560px; margin-left: auto; padding: 56px 56px 56px 24px; }
.hero h1 { font-weight: 900; font-size: clamp(76px, 10.4vw, 168px); line-height: 0.9; letter-spacing: -0.02em; color: var(--paper); }
.hero h1 .talk { display: block; color: var(--black); }
.hero h1 .kicker { display: table; margin: 0 0 22px; font-family: var(--body); font-size: 14px; line-height: 1.5; letter-spacing: 0.09em; text-transform: uppercase; }
.hero-sub { margin-top: 28px; font-size: 24px; line-height: 1.38; font-weight: 500; color: #FFF6F1; max-width: 21em; text-wrap: pretty; }
.hero-cta { margin-top: 30px; display: flex; align-items: center; gap: 16px 18px; flex-wrap: wrap; }
.tag { display: inline-block; padding: 7px 12px 6px; background: var(--paper); border-top: 4px solid var(--black); border-radius: 3px; color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
.hero-media { position: relative; background: #CFC7BC url("hero-recorder.jpg") 22% 0 / cover no-repeat; overflow: hidden; }
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 22% 0; display: block; }
.hero-media::before { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 27px; background: linear-gradient(90deg, var(--black) 0 9px, var(--amber) 9px 18px, var(--paper) 18px 27px); box-shadow: 6px 0 14px rgba(0,0,0,.28); }

.promise { border-bottom: 1px solid var(--rule); }
.promise ul { list-style: none; margin: 0 auto; padding: 22px 24px; max-width: 1120px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink); }
.promise li + li::before { content: "·"; margin-right: 14px; color: var(--red); }

/* ── Chapters ───────────────────────────────────────────────────────── */
.chapter { max-width: 1120px; margin: 0 auto; padding: 104px 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 72px; align-items: center; }
.chapter.flip { grid-template-columns: minmax(0, 470px) minmax(0, 1fr); }
.chapter.flip .stage { order: -1; }
.chapter + .chapter { padding-top: 16px; }
.chapter.solo { grid-template-columns: minmax(0, 1fr); padding-top: 104px; padding-bottom: 8px; }
.chapter.solo .copy { max-width: 760px; }
.copy { max-width: 500px; }
.chapter.flip .copy { justify-self: end; }
.counter { display: inline-flex; margin-bottom: 22px; padding: 3px; gap: 2px; background: var(--black); border-radius: 4px; font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1; }
.counter i { font-style: normal; display: block; width: 19px; padding: 5px 0 4px; text-align: center; color: #F2F0EA; background: linear-gradient(#3A3A3F, #1B1B1E 50%, #2C2C30); border-radius: 2px; }
.counter i:last-child { background: linear-gradient(#FFFFFF, #E4E1D8); color: var(--red-deep); }
h2 { font-weight: 900; font-size: clamp(38px, 4.9vw, 58px); line-height: 1.02; letter-spacing: -0.012em; color: var(--ink); text-wrap: balance; }
.copy p { margin-top: 20px; font-size: 19px; text-wrap: pretty; }
.copy p.note { margin-top: 16px; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* A phone on the oak, under a colour field with a striped edge: the App Store frame */
.stage { --field: var(--red); --s1: var(--black); --s2: var(--amber); --s3: var(--paper); position: relative; display: flex; justify-content: center; padding: 52px 24px 48px; border-radius: 10px; overflow: hidden; background: #CDBB9D url("oak.jpg") center / cover no-repeat; }
.stage::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 36%; background: linear-gradient(to bottom, var(--field) 0, var(--field) calc(100% - 21px), var(--s1) calc(100% - 21px), var(--s1) calc(100% - 14px), var(--s2) calc(100% - 14px), var(--s2) calc(100% - 7px), var(--s3) calc(100% - 7px), var(--s3) 100%); box-shadow: 0 6px 14px rgba(0,0,0,.22); }
.f-ink { --field: var(--ink); --s1: var(--red); --s2: var(--amber); --s3: var(--paper); }
.f-amber { --field: var(--amber); --s1: var(--ink); --s2: var(--red); --s3: var(--paper); }
.f-black { --field: var(--black); --s1: var(--red); --s2: var(--amber); --s3: var(--ink); }
.phone { position: relative; z-index: 1; width: 100%; max-width: 292px; border: 8px solid #0C0C0D; border-radius: 15.4% / 7.2%; background: #0C0C0D; overflow: hidden; box-shadow: 0 16px 28px rgba(0,0,0,.42), 0 2px 4px rgba(0,0,0,.3); }
.phone img { display: block; width: 100%; height: auto; }
.phone::after { content: ""; position: absolute; top: 1.5%; left: 50%; width: 28.6%; aspect-ratio: 126 / 37; transform: translateX(-50%); background: #000; border-radius: 99px; }

/* ── Ask: a band in key black ───────────────────────────────────────── */
.band { position: relative; }
.band::before { content: ""; display: block; height: 21px; background: linear-gradient(to bottom, var(--s1) 0 7px, var(--s2) 7px 14px, var(--s3) 14px 21px); }
.band-black { --s1: var(--red); --s2: var(--amber); --s3: var(--paper); background: var(--black); color: #D5D5DA; }
.band-black h2 { color: var(--paper); }
.band-black .t2 { color: var(--amber); }
.band-in { max-width: 1120px; margin: 0 auto; padding: 96px 24px 104px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.band-black .counter { background: #000; box-shadow: 0 0 0 1px #3A3A3F; }
.labels { display: grid; gap: 16px; }

/* Cassette labels: paper under a red stripe, in a black shell */
.label { background: var(--paper); border: 3px solid var(--black); border-bottom-width: 7px; border-radius: 6px; padding: 0 22px 18px; color: var(--text); }
.label::before { content: ""; display: block; height: 6px; margin: 0 -22px 16px; background: var(--red); }
.label h3 { font-weight: 700; font-size: 21px; line-height: 1.2; color: var(--ink); }
.label p { margin-top: 6px; font-size: 16.5px; line-height: 1.5; }
.band-black .label { border-color: #000; box-shadow: 0 0 0 1px #3A3A3F; }

/* ── Three more, side by side ───────────────────────────────────────── */
.trio { max-width: 1120px; margin: 0 auto; padding: 104px 24px 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.trio .stage { padding: 40px 20px 36px; }
.trio .phone { max-width: 218px; border-width: 6px; }
.trio h2 { margin-top: 26px; font-size: clamp(28px, 2.9vw, 34px); line-height: 1.08; }
.trio p { margin-top: 12px; font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.sizes { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.sizes span { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.sizes b { display: block; height: 10px; border-radius: 2px; background: #B9B4A6; }
.sizes .on { color: var(--ink); }
.sizes .on b { background: var(--ink); }

/* ── Also in the app ────────────────────────────────────────────────── */
.also { max-width: 1120px; margin: 0 auto; padding: 96px 24px 104px; }
.also h2 { max-width: 15em; }
.also-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.also .rest { margin-top: 30px; max-width: 46em; font-size: 17.5px; color: var(--text); }

/* ── Questions ──────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--rule); }
.faq-in { max-width: 760px; margin: 0 auto; padding: 96px 24px 104px; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-top: 2px solid var(--black); }
.faq details:last-of-type { border-bottom: 2px solid var(--black); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 5px; background: var(--black); color: var(--paper); font-family: var(--body); font-size: 22px; font-weight: 500; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; background: var(--red-deep); }
.faq details p { padding: 0 46px 22px 0; font-size: 17px; text-wrap: pretty; }

/* ── Free ───────────────────────────────────────────────────────────── */
.band-amber { --s1: var(--ink); --s2: var(--red); --s3: var(--paper); background: var(--amber); color: #2A2410; text-align: center; }
.band-amber .t2 { color: var(--red-deep); }
.free { max-width: 760px; margin: 0 auto; padding: 88px 24px 100px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.free h2 { font-size: clamp(42px, 6vw, 68px); }
.free p { max-width: 34em; font-size: 19px; text-wrap: pretty; }
.free .note { font-size: 15px; line-height: 1.55; color: #3D3514; max-width: 44em; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.foot { background: var(--black); color: #B9B8BF; font-size: 14.5px; }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 36px 24px 40px; display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.foot .badge { font-size: 15px; padding: 4px 9px 8px; }
.foot .badge::after { left: 9px; right: 9px; bottom: 4px; }
.foot-links { margin-left: auto; display: flex; gap: 10px 26px; flex-wrap: wrap; }
.foot a:not(.badge) { color: #D9D6CC; text-decoration: none; }
.foot a:not(.badge):hover { color: #fff; text-decoration: underline; }
.foot .legal { flex-basis: 100%; color: #9C9BA3; }

/* ── Text pages: privacy, terms, contact ────────────────────────────── */
.page { max-width: 760px; margin: 0 auto; padding: 64px 24px 104px; }
.page-narrow { max-width: 600px; }
.page h1 { font-weight: 900; font-size: clamp(40px, 6vw, 56px); line-height: 1.02; letter-spacing: -0.012em; color: var(--ink); }
.page .dates { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.page .lede { margin-top: 36px; font-size: 20px; line-height: 1.6; color: var(--text); }
.prose { margin-top: 36px; display: flex; flex-direction: column; gap: 34px; font-size: 17px; line-height: 1.7; }
.prose h2 { font-weight: 700; font-size: 23px; line-height: 1.25; letter-spacing: 0; color: var(--ink); margin-bottom: 10px; text-wrap: initial; }
.prose h3 { font-family: var(--body); font-weight: 700; font-size: 17.5px; color: var(--text); margin: 22px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin: 0 0 8px; }
.prose strong { font-weight: 700; color: var(--black); }
.prose .small { color: var(--muted); font-size: 15.5px; }
.legalbox { background: var(--paper); border: 2px solid var(--black); border-radius: 6px; padding: 18px 20px; font-size: 14px; line-height: 1.65; letter-spacing: 0.01em; }
.legalbox p { margin: 0 0 12px; }
.legalbox p:last-child { margin-bottom: 0; }

.form { margin-top: 36px; display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; background: #FFFEFA; border: 2px solid var(--black); border-bottom-width: 4px; border-radius: 6px; padding: 12px 14px; font: inherit; font-size: 17px; color: var(--text); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--amber); outline-offset: 2px; }
.form .key { align-self: flex-start; }

/* ── Narrower screens ───────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero-copy { padding-right: 40px; }
  .hero-sub { font-size: 22px; }
  .chapter, .chapter.flip { gap: 48px; }
  .band-in { gap: 48px; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { max-width: none; margin: 0; padding: 56px 24px 52px; }
  .hero h1 { font-size: clamp(84px, 26vw, 150px); }
  .hero-media { aspect-ratio: 1 / 1; max-height: 560px; width: 100%; }
  .hero-media::before { top: 0; bottom: auto; left: 0; right: 0; width: auto; height: 21px; background: linear-gradient(to bottom, var(--black) 0 7px, var(--amber) 7px 14px, var(--paper) 14px 21px); box-shadow: 0 6px 14px rgba(0,0,0,.28); }
  .chapter, .chapter.flip { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 72px 24px; }
  .chapter + .chapter { padding-top: 8px; }
  .chapter.flip .stage { order: 0; }
  .chapter.solo { padding-bottom: 0; }
  .chapter.flip .copy { justify-self: start; }
  .copy { max-width: none; }
  .band-in { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 72px 24px 80px; }
  .trio { grid-template-columns: minmax(0, 1fr); padding-top: 72px; gap: 56px; }
  .trio .phone { max-width: 250px; }
  .also { padding: 72px 24px 80px; }
  .also-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-in { padding: 72px 24px 80px; }
  .free { padding: 64px 24px 76px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .bar-in { padding: 12px 16px; gap: 10px 16px; }
  .bar-links { gap: 8px 18px; font-size: 14.5px; }
  .bar-links .key-paper { display: none; }
  .hero-sub { font-size: 21px; }
  .stage { padding: 40px 20px 36px; }
  .phone { max-width: 250px; }
  .faq summary { font-size: 18.5px; }
  .faq details p { padding-right: 0; }
  .foot-links { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .key:active { transform: none; }
}
