/* -----------------------------------------------------------------
   Purr site - single-file stylesheet.
   "Blush Terracotta" brand layer: warm cream background, warm
   brown-black text (never pure black), one clay-coral accent that
   ties to the app icon, soft claymorphic shadows and squircles.
   Self-hosted Quicksand (display/wordmark) + Figtree (body).
   No framework, no build.
   ----------------------------------------------------------------- */

/* ----- Brand webfonts (self-hosted, variable weight) ----- */
@font-face {
  font-family: "Quicksand";
  src: url("assets/fonts/Quicksand_wght_.woff2") format("woff2"),
       url("assets/fonts/Quicksand_wght_.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/Figtree_wght_.woff2") format("woff2"),
       url("assets/fonts/Figtree_wght_.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FBE9E3;          /* cream page background          */
  --bg-alt: #FDF1EC;      /* ivory raised surface / card    */
  --ink: #3A2A26;         /* warm text - never pure black   */
  --ink-soft: #6E534B;    /* secondary text                 */
  --ink-faint: #7F6359;   /* tertiary / captions            */
  --line: #EAD2C8;        /* warm divider                   */
  --line-soft: #F1DDD5;   /* faintest divider               */
  --accent: #D26551;      /* clay-coral - matches the icon  */
  --accent-hover: #C2563F;
  --accent-press: #B14B36;
  --accent-soft: #F7D9D0; /* faint coral wash               */
  --accent-ink: #A3412D;  /* coral for small text           */
  --on-accent: #FFF6F2;   /* text on clay-coral / gradient  */

  --gradient: linear-gradient(135deg, #F3A99A 0%, #E8826E 100%);

  /* claymorphic shadows - soft, warm brown tint, no hard black */
  --shadow-sm: 0 1px 2px rgba(150, 80, 64, 0.10), 0 2px 6px rgba(150, 80, 64, 0.06);
  --shadow-md: 0 4px 12px rgba(150, 80, 64, 0.12), 0 12px 28px rgba(150, 80, 64, 0.10);
  --shadow-lg: 0 12px 30px rgba(150, 80, 64, 0.16), 0 30px 60px rgba(150, 80, 64, 0.12);

  --radius-pill: 999px;
  --radius-card: 24px;
  --max-w: 1120px;

  --font: "Figtree", ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "Quicksand", ui-rounded, "Hiragino Maru Gothic ProN", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
code {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Monaco, monospace;
  font-size: 0.9em;
  background: var(--accent-soft);
  color: var(--ink);
  padding: 2px 6px;
  border-radius: 6px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 760px; }
.center { text-align: center; }

/* -----------------------------------------------------------------
   Pill navigation - sticky at top
   ----------------------------------------------------------------- */
.nav-wrap {
  position: sticky;
  top: 16px;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 7px 7px 7px 20px;
  background: rgba(253, 241, 236, 0.45);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  backdrop-filter: saturate(150%) blur(18px);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6),
              0 6px 22px rgba(150, 80, 64, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.55);
  max-width: 880px;
  width: 100%;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  color: var(--accent);
}
.nav-brand:hover { text-decoration: none; }
.nav-brand img { width: 40px; height: 30px; }

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--accent-ink); text-decoration: none; }

.nav-cta { font-size: 14px; padding: 9px 16px; gap: 6px; }

/* -----------------------------------------------------------------
   Buttons - clay-coral primary, ivory ghost
   ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
  border: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); }
.btn-primary:active { background: var(--accent-press); }

.btn-ghost {
  background: var(--bg-alt);
  color: var(--accent-ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-ghost:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); }

.btn-lg { padding: 14px 24px; font-size: 16px; }

/* -----------------------------------------------------------------
   Hero
   ----------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 104px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.4vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 auto 36px;
  max-width: 900px;
}
.hero-title .accent { display: block; color: var(--accent); text-wrap: balance; }

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

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

/* -----------------------------------------------------------------
   Generic section
   ----------------------------------------------------------------- */
.section {
  padding: 92px 0;
  border-top: 1px solid var(--line-soft);
}
.section-alt { background: var(--bg-alt); }

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-ink);
  margin: 0 0 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -0.01em;
  line-height: 1.12;
  font-weight: 700;
  margin: 0 0 14px;
  max-width: 720px;
}
.center .section-title { margin-left: auto; margin-right: auto; }

.section-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 0 56px;
}
.center .section-sub { margin-left: auto; margin-right: auto; }

/* -----------------------------------------------------------------
   How it works - 3 steps
   ----------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 72px;
}

.step {
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.step-num {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.step h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.step p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.step-num svg { display: block; }
#features .steps { margin-bottom: 0; }

/* -----------------------------------------------------------------
   Live demo (hero).
   Pure CSS + a small scene engine in script.js. The HUD pill mirrors
   the app: dark pill, mic / wand icon, five-bar waveform.
   ----------------------------------------------------------------- */
.demo { max-width: 720px; margin: 0 auto; }

.demo-stage {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}
/* A soft coral glow behind the window. */
.demo-stage::before {
  content: "";
  position: absolute;
  inset: -50px -40px;
  background: radial-gradient(closest-side, rgba(243, 169, 154, 0.45), transparent);
  pointer-events: none;
}

.demo-window {
  position: relative;
  width: 100%;
  max-width: 620px;
  text-align: left;
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(150, 80, 64, 0.04);
}
.demo-dot { width: 11px; height: 11px; border-radius: 50%; }
.demo-dot.r { background: #E8826E; }
.demo-dot.y { background: #E6B566; }
.demo-dot.g { background: #8FB98A; }
.demo-app {
  margin-left: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-faint);
}

.demo-doc { min-height: 168px; padding: 24px 26px 60px; }
.demo-text {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
  min-height: 1.6em;
}
.demo-text::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: demoCaret 1.05s steps(1) infinite;
}
@keyframes demoCaret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.demo-text .sel {
  background: var(--accent-soft);
  border-radius: 4px;
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.demo-text .swap { color: var(--accent); font-weight: 600; }

/* spoken-phrase bubble */
.demo-said {
  position: absolute;
  left: 50%;
  bottom: 74px;
  transform: translate(-50%, 6px);
  max-width: 78%;
  padding: 7px 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.demo-said.on { opacity: 1; transform: translate(-50%, 0); }
.demo-said::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 9px;
  height: 9px;
  background: var(--accent);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}

/* HUD pill - mirrors the app's floating recorder */
.demo-hud {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, 8px);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  background: rgba(28, 18, 15, 0.88);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(60, 30, 22, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.demo-hud.on { opacity: 1; transform: translate(-50%, 0); }
.demo-hud-ic { display: inline-flex; color: #fff; }
.demo-hud-ic svg { display: block; }
.demo-hud-lbl {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
/* Smart-typing live preview: reserve a fixed width and head-truncate, so the
   pill mirrors the in-progress sentence without resizing per word. */
.demo-hud.preview .demo-hud-lbl {
  width: 188px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}
.demo-hud-lbl.dim { opacity: 0.78; }

.demo-wave { display: none; align-items: center; gap: 3px; height: 22px; }
.demo-hud.live .demo-wave { display: inline-flex; }
.demo-wave i {
  width: 3.5px;
  height: 6px;
  border-radius: 2px;
  background: #fff;
  transform-origin: center;
}
.demo-wave i:nth-child(1) { height: 10px; animation-delay: 0s; }
.demo-wave i:nth-child(2) { height: 15px; animation-delay: 0.12s; }
.demo-wave i:nth-child(3) { height: 22px; animation-delay: 0.06s; }
.demo-wave i:nth-child(4) { height: 15px; animation-delay: 0.18s; }
.demo-wave i:nth-child(5) { height: 10px; animation-delay: 0.09s; }
.demo-hud.live .demo-wave i { animation: demoWave 0.62s ease-in-out infinite; }
@keyframes demoWave {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

/* transcribing spinner (mirrors the app's progress indicator) */
.demo-spin {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: demoSpin 0.7s linear infinite;
}
@keyframes demoSpin { to { transform: rotate(360deg); } }

/* meeting mode: speaker labels in the transcript + the recording placeholder */
.demo-text .demo-spk { color: var(--accent); font-weight: 700; }
.demo-text.nocaret::after { display: none; }
.demo-rec { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-faint); }
.demo-recdot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #E8826E;
  animation: demoPulse 1.1s ease-in-out infinite;
}
@keyframes demoPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* caption */
.demo-cap {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin-bottom: 16px;
}
.demo-key kbd {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 8px;
  padding: 6px 11px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  transition: transform 0.1s ease, background 0.1s ease, color 0.1s ease, box-shadow 0.1s ease;
}
.demo-key.down kbd {
  transform: translateY(1px);
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent-press);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}
.demo-cap-txt { margin: 0; font-size: 15.5px; color: var(--ink-soft); text-align: left; }
.demo-cap-txt strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .demo-text::after { animation: none; }
  .demo-hud.live .demo-wave i { animation: none; }
  .demo-spin { animation: none; }
  .demo-recdot { animation: none; }
}

@media (max-width: 600px) {
  .demo-text { font-size: 17px; }
  .demo-doc { padding: 20px 20px 56px; }
  .demo-cap { flex-direction: column; gap: 10px; }
  .demo-cap-txt { text-align: center; }
  .demo-hud.preview .demo-hud-lbl { width: 140px; }
}

/* -----------------------------------------------------------------
   Video demo: a poster that becomes the YouTube player on click
   (script.js).
   ----------------------------------------------------------------- */
#how { padding-bottom: 72px; }
#how .steps { margin-bottom: 44px; }

.video { max-width: 820px; margin: 0 auto; text-align: center; }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #17110f;
  /* A thin cream frame, so the dark video sits on the page. */
  box-shadow: 0 0 0 8px var(--bg-alt), 0 0 0 9px var(--line), var(--shadow-lg);
}
.video-frame img,
.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video-poster { display: block; width: 100%; height: 100%; }

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--accent);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.18), 0 12px 32px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.video-poster:hover .video-play,
.video-poster:focus-visible .video-play {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.24), 0 14px 36px rgba(0, 0, 0, 0.34);
}
.video-poster:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

.video-cap {
  margin: 18px auto 0;
  max-width: 560px;
  font-size: 15.5px;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  .video-play { transition: none; }
}

@media (max-width: 600px) {
  .video-frame { box-shadow: 0 0 0 6px var(--bg-alt), 0 0 0 7px var(--line), var(--shadow-lg); }
  .video-play { width: 60px; height: 60px; }
  .video-play svg { width: 32px; height: 32px; }
}

/* -----------------------------------------------------------------
   FAQ accordion (native <details>)
   ----------------------------------------------------------------- */
.faq { display: grid; gap: 12px; }

.faq details {
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 4px 22px;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.faq details[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-size: 16.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); }

.faq details > p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 15.5px;
  max-width: 64ch;
}

/* -----------------------------------------------------------------
   About section - personal story + QR download card
   ----------------------------------------------------------------- */
.section-about { background: var(--bg); }

.about-prose {
  margin: 0 0 56px;
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--ink);
}
.about-prose p {
  margin: 0 0 18px;
}
.about-prose p:last-of-type { margin-bottom: 0; }
.about-sign {
  margin-top: 28px !important;
  font-style: italic;
  color: var(--ink-soft);
}

.qr-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
  border-radius: 32px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.qr-card-art {
  background: var(--accent-soft);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  place-items: center;
}
.qr-card-art img {
  width: 200px;
  height: 200px;
  display: block;
}

.qr-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-ink);
  margin: 0 0 10px;
}

.qr-card-body h3 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 10px;
}

.qr-sub {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.qr-card-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.qr-card-ctas .btn { padding: 11px 18px; font-size: 14.5px; }

/* Single-CTA download button: a touch larger, to read as the only
   thing the user is meant to click. */
.btn-download {
  padding: 13px 26px !important;
  font-size: 15px !important;
  gap: 9px;
}

.qr-fineprint {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-faint);
  line-height: 1.5;
}
.qr-fineprint code {
  font-size: 0.85em;
}

/* -----------------------------------------------------------------
   Legal pages (privacy, terms, disclaimer)
   ----------------------------------------------------------------- */
.legal {
  padding: 96px 0 80px;
}
.legal article {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}
.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.01em;
  line-height: 1.12;
  font-weight: 700;
  margin: 0 0 8px;
}
.legal h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 36px 0 10px;
  color: var(--ink);
}
.legal-meta {
  margin: 0 0 32px;
  font-size: 13.5px;
  color: var(--ink-faint);
}
.legal p, .legal ul, .legal ol {
  margin: 0 0 14px;
  color: var(--ink-soft);
}
.legal ul, .legal ol {
  padding-left: 20px;
}
.legal li {
  margin-bottom: 6px;
}
.legal strong { color: var(--ink); font-weight: 700; }
.legal h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: 22px 0 6px;
  color: var(--ink);
}
.legal figure { margin: 24px 0 20px; }
.legal figure img { display: block; width: 100%; height: auto; border-radius: 18px; }
.legal figcaption { margin-top: 8px; font-size: 13.5px; color: var(--ink-faint); }
.legal a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-underline-offset: 2px;
}
.legal a:hover { text-decoration-color: var(--accent); }

/* -----------------------------------------------------------------
   Compare, contact and error pages
   ----------------------------------------------------------------- */
.compare-wrap { max-width: 1080px; }
.compare-scroll { overflow-x: auto; margin: 24px 0 8px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-alt); }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.compare th, .compare td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.compare thead th { color: var(--ink); font-size: 14px; background: var(--accent-soft); }
.compare tbody th { color: var(--ink); font-weight: 700; width: 17%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .us { background: rgba(210, 101, 81, 0.08); color: var(--ink); }
.compare thead .us { background: #F3CFC4; }
/* The feature names stay in view while the table scrolls sideways on a phone. */
.compare tbody th, .compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg-alt); }
.compare thead th:first-child { background: var(--accent-soft); }
.legal .compare a { text-decoration: none; }
.compare sup { font-size: 11px; }
/* Two apps fit a phone without scrolling sideways. */
.compare-two { min-width: 0; }
.compare-two tbody th { width: 46%; }
/* Wider tables that still fit the narrow article column on a laptop. */
.compare-fit { min-width: 640px; }
.legal .scroll-hint { display: none; font-size: 14px; margin: 18px 0 -12px; }
@media (max-width: 820px) { .legal .scroll-hint { display: block; } }
.legal .sources { font-size: 14px; padding-left: 22px; }
.legal .sources li { word-break: break-word; }
.compare-ctas { justify-content: flex-start; margin: 22px 0 8px; }
/* Buttons inside legal-style pages keep their own colors, not the link style. */
.legal a.btn { text-decoration: none; }
.legal a.btn-primary { color: var(--on-accent); }

.contact-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 22px 0 18px; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; color: var(--ink); font-size: 15px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--bg-alt); color: var(--ink); font: inherit; font-size: 16px; font-weight: 400;
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.contact-form button { justify-self: start; }
.contact-form .optional { color: var(--ink-faint); font-weight: 400; }
.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.legal .contact-msg { min-height: 24px; margin: 0; font-size: 15px; }
.legal .contact-msg.ok { color: var(--accent-press); font-weight: 700; }
.legal .contact-msg.err { color: #A3341F; }

body:has(.error-page) { display: flex; flex-direction: column; min-height: 100vh; }
.error-page { flex: 1; display: flex; align-items: center; text-align: center; }
.error-page .hero-ctas { margin-top: 26px; }

/* -----------------------------------------------------------------
   Footer
   ----------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 44px 0 40px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-faint);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  color: var(--accent);
}
.footer-brand:hover { text-decoration: none; }
.footer-brand img { width: 35px; height: 26px; }
.footer a { text-decoration: underline; text-decoration-color: var(--line); }
.footer a:hover { color: var(--accent-ink); text-decoration-color: var(--accent); }
.footer-line { margin: 0 0 8px; }
.footer-legal {
  margin: 0;
  font-size: 13px;
}
.footer-legal a { margin: 0 4px; }
.footer-legal span { color: var(--line); margin: 0 2px; }

/* -----------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------- */
@media (max-width: 880px) {
  .nav-pill { gap: 14px; padding: 8px 8px 8px 16px; }
  .nav-links { gap: 18px; font-size: 14px; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero { padding: 96px 0 60px; }
}

@media (max-width: 720px) {
  .qr-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 22px;
    gap: 22px;
  }
  .qr-card-art { justify-self: center; padding: 14px; }
  .qr-card-art img { width: 180px; height: 180px; }
  .qr-card-ctas { justify-content: center; }
}

@media (max-width: 600px) {
  .nav-links { display: none; } /* keep nav slim on phones; CTA stays */
  .nav-pill { padding: 6px 6px 6px 14px; }
  .nav-brand { font-size: 21px; }
  .nav-cta { padding: 8px 14px; }
  .hero-ctas { flex-direction: column; align-items: stretch; padding: 0 12px; }
  .qr-card-ctas .btn { width: 100%; justify-content: center; }
  .btn-lg { justify-content: center; }
}
