/* Pocket Bud website. Layout follows parking.vasojevich.com (same publisher);
   colors come from the app: mint canvas, emerald accent, deep pocket green. */
:root {
  --canvas: #eef3f0;
  --paper: #f8fbf9;
  --mint: #dce9e1;
  --ink: #0e1b15;
  --soft: #56675e;
  --green: #0c7d55;
  --green-deep: #08603f;
  --green-light: #5fd3a3;
  --line: rgba(14, 27, 21, 0.12);
  --dark: #0f2a20;
  --dark-soft: #a9c2b5;
  --max: 1240px;
  --header: 76px;
  --space: clamp(80px, 10vw, 136px);
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 48px, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--paper); padding: 10px 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section { padding-block: var(--space); }

.display { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; margin: 0; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--soft); margin: 0; max-width: 32em; }
.accent { color: var(--green); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; height: var(--header); background: rgba(238, 243, 240, 0.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 22px; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.top nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.top nav > a:not(.btn) { text-decoration: none; color: var(--soft); transition: color 0.15s; white-space: nowrap; }
.top nav > a:not(.btn):hover { color: var(--ink); }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; }
.lang a { padding: 6px 10px; border-radius: 999px; text-decoration: none; color: var(--soft); }
.lang a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px; font: 600 15px/1 var(--body); letter-spacing: 0.01em; text-decoration: none; border: 1.5px solid transparent; transition: background 0.15s, border-color 0.15s, transform 0.15s; white-space: nowrap; cursor: pointer; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-ghost { border-color: rgba(14, 27, 21, 0.28); color: var(--ink); background: transparent; }
.btn-soon { cursor: default; color: var(--soft); }
.btn-soon svg { color: var(--green); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 14px; }
.note { margin: 16px 0 0; font-size: 14px; color: var(--soft); }

/* Device frame: the same bezel for every screenshot. */
.device { position: relative; padding: 9px; border-radius: 46px; background: #0b1611; box-shadow: 0 50px 90px -45px rgba(15, 42, 32, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06) inset; }
.device img { width: 100%; border-radius: 38px; }

/* Hero */
.hero { min-height: min(calc(100svh - var(--header)), 960px); display: flex; align-items: center; padding-block: 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(52px, min(6.3vw, 11svh), 108px); line-height: 1.04; margin-bottom: 28px; }
.hero h1 span { display: block; white-space: nowrap; }
.hero .lead { margin-bottom: 34px; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art::before { content: ""; position: absolute; top: 8%; bottom: 6%; left: 12%; right: -40%; border-radius: 40px; background: var(--green); }
.hero-art .device { width: min(100%, 320px, calc((min(100svh, 1036px) - var(--header) - 110px) / 1.86)); }

/* Live Bud card on the hero: phrases in four languages, each one logged. */
.demo { position: absolute; z-index: 2; left: -14%; bottom: 9%; width: min(300px, 70%); display: flex; gap: 12px; align-items: flex-end; }
.demo img { width: 64px; flex: none; filter: drop-shadow(0 14px 18px rgba(15, 42, 32, 0.35)); }
.demo-card { flex: 1; min-width: 0; display: grid; gap: 8px; }
.say, .logged { margin: 0; border-radius: 18px; box-shadow: 0 30px 60px -28px rgba(15, 42, 32, 0.55); transition: opacity 0.35s ease, transform 0.35s ease; }
.say { padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; font-size: 15px; line-height: 1.35; }
.say small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--green); margin-bottom: 2px; }
.logged { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--dark); color: #eaf5ef; font-size: 14px; }
.logged svg { width: 16px; height: 16px; flex: none; color: var(--green-light); }
.logged span { flex: 1; }
.logged b { font-weight: 600; font-variant-numeric: tabular-nums; }
.demo .out { opacity: 0; transform: translateY(6px); }

/* Statement and numbers */
.intro .wrap:not(.numbers) { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.intro h2 { font-size: clamp(40px, 4.6vw, 66px); }
.intro h2 em { font-style: normal; color: var(--green); }
.intro .copy p { margin: 0 0 18px; color: var(--soft); max-width: 32em; }
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.numbers div { padding: 32px 24px 0 0; }
.numbers b { display: block; font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(40px, 4.2vw, 60px); line-height: 1; color: var(--green); white-space: nowrap; }
.numbers span { display: block; margin-top: 10px; font-size: 15px; color: var(--soft); max-width: 16em; }

/* Section heading row */
.head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(40px, 5vw, 64px); }
.head h2 { font-size: clamp(44px, 5.4vw, 76px); }
.head p { margin: 0; max-width: 26em; color: var(--soft); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { position: relative; display: flex; flex-direction: column; border-radius: 32px; padding: 34px 32px 0; height: 660px; overflow: hidden; background: var(--mint); }
.step:nth-child(1) { background: var(--dark); color: #eaf5ef; }
.step:nth-child(2) { background: var(--green); color: #fff; }
.step .num { font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: 0.08em; opacity: 0.75; margin: 0 0 18px; }
.step h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 34px; line-height: 1; margin: 0 0 14px; }
.step p { margin: 0; font-size: 16px; opacity: 0.9; }
.step .device { position: absolute; left: 50%; top: 270px; width: 78%; max-width: 300px; transform: translateX(-50%); }

/* Feature rows */
.feature-row { padding-block: calc(var(--space) * 0.6); }
#how { padding-bottom: calc(var(--space) * 0.6); }
.feature-row .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.feature-row.flip .copy { order: 2; }
.feature-row h2 { font-size: clamp(44px, 5.2vw, 74px); margin-bottom: 26px; }
.feature-row .copy p { margin: 0 0 18px; color: var(--soft); max-width: 30em; }
.stage { position: relative; display: flex; justify-content: center; padding: clamp(40px, 6vw, 72px) 0; border-radius: 36px; background: var(--mint); }
.stage .device { width: min(64%, 300px); }
.checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 9px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.voices { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
.voices li { padding: 9px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; font-size: 15px; }

/* Feature grid */
.features { background: var(--paper); }
.grid6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 28px; overflow: hidden; border: 1px solid var(--line); }
.grid6 article { background: var(--paper); padding: 40px 36px; }
.grid6 svg { width: 42px; height: 42px; margin-bottom: 26px; }
.grid6 h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; }
.grid6 p { margin: 0; font-size: 16px; color: var(--soft); }

/* Plus band */
.plus { background: var(--dark); color: #eaf5ef; }
.plus .wrap { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.plus h2 { font-size: clamp(44px, 5.2vw, 74px); margin-bottom: 26px; }
.plus h2 em { font-style: normal; color: var(--green-light); }
.plus p { color: var(--dark-soft); margin: 0 0 18px; max-width: 30em; }
.plus ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.plus li { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; border: 1px solid rgba(234, 245, 239, 0.16); border-radius: 20px; font-weight: 500; line-height: 1.35; }
.plus li svg { width: 20px; height: 20px; flex: none; color: var(--green-light); margin-top: 1px; }

/* Privacy */
.privacy .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); }
.privacy h2 { font-size: clamp(44px, 5.2vw, 74px); }
.privacy p { margin: 0 0 18px; color: var(--soft); max-width: 34em; }
.links { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 30px; font-weight: 600; font-size: 15px; }
.links a { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* FAQ */
.faq { background: var(--paper); }
.faq .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); }
.faq h2 { font-size: clamp(44px, 5.2vw, 74px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--green); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 24px; color: var(--soft); max-width: 40em; }

/* Join band: the pocket, stitched. */
.join .panel { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; align-items: center; padding: clamp(48px, 6vw, 88px); border-radius: 40px; background: var(--green); color: #fff; overflow: hidden; }
.join .panel::after { content: ""; position: absolute; inset: 14px; border: 2px dashed rgba(255, 255, 255, 0.4); border-radius: 28px; pointer-events: none; }
.join h2 { font-size: clamp(54px, 7vw, 108px); margin-bottom: 22px; }
.join p { margin: 0 0 28px; color: rgba(255, 255, 255, 0.88); max-width: 30em; }
.join .btn-primary { background: #fff; color: var(--green-deep); }
.join .btn-primary:hover { background: var(--paper); }
.join .btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.join .btn-soon svg { color: #fff; }
.join .mark { width: min(220px, 70%); justify-self: center; transform: rotate(6deg); filter: drop-shadow(0 30px 30px rgba(8, 40, 27, 0.4)); }

/* Footer */
.footer { background: var(--dark); color: #eaf5ef; padding-block: 72px 36px; }
.footer .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer .brand { color: #eaf5ef; margin-bottom: 18px; }
.footer p { margin: 0; color: var(--dark-soft); font-size: 15px; max-width: 24em; }
.footer h3 { margin: 0 0 16px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dark-soft); font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .legal { grid-column: 1 / -1; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(234, 245, 239, 0.12); display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between; font-size: 13px; color: var(--dark-soft); }

/* Legal pages */
.page main.wrap { max-width: 760px; padding-block: 72px 104px; }
.page h1 { font-size: clamp(48px, 7vw, 88px); margin-bottom: 18px; }
.page main h2 { font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin: 48px 0 12px; }
.page main p { color: #2e3d35; }
.page .updated { color: var(--soft); font-size: 15px; margin-bottom: 32px; }

/* Tester application dialog */
dialog.apply { width: min(560px, 100% - 32px); max-height: calc(100svh - 32px); padding: 0; border: 0; border-radius: 28px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(15, 42, 32, 0.6); }
dialog.apply::backdrop { background: rgba(15, 42, 32, 0.55); backdrop-filter: blur(4px); }
dialog.apply form, dialog.apply .done { display: grid; gap: 18px; padding: clamp(28px, 5vw, 40px); position: relative; }
dialog.apply [hidden] { display: none; }
dialog.apply h2 { font-size: clamp(34px, 6vw, 48px); padding-right: 44px; }
dialog.apply .intro-text, dialog.apply .done p { margin: 0; color: var(--soft); }
dialog.apply label { display: grid; gap: 8px; font-weight: 600; font-size: 15px; }
dialog.apply input[type="text"], dialog.apply input[type="email"], dialog.apply input[type="tel"] { font: inherit; font-weight: 400; padding: 14px 16px; border: 1.5px solid rgba(14, 27, 21, 0.22); border-radius: 14px; background: #fff; color: var(--ink); }
dialog.apply input::placeholder { color: #6f7f77; }
dialog.apply input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(12, 125, 85, 0.18); }
dialog.apply .hint { font-weight: 400; font-size: 13px; color: var(--soft); }
dialog.apply fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
dialog.apply legend { width: 100%; margin-bottom: 8px; font-weight: 600; font-size: 15px; padding: 0; }
dialog.apply .choice { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; padding: 10px 18px; border: 1.5px solid rgba(14, 27, 21, 0.22); border-radius: 999px; font-weight: 500; cursor: pointer; }
dialog.apply .choice:has(input:checked) { border-color: var(--green); background: rgba(12, 125, 85, 0.07); }
dialog.apply .choice input { accent-color: var(--green); margin: 0; }
dialog.apply .consent { margin: 0; font-size: 13px; color: var(--soft); }
dialog.apply .consent a { color: var(--ink); }
dialog.apply .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
dialog.apply button[type="submit"], dialog.apply .done .btn { justify-self: start; }
dialog.apply button[disabled] { opacity: 0.6; cursor: wait; }
dialog.apply .close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--mint); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
dialog.apply .close svg { width: 18px; height: 18px; }
.status { min-height: 1.5em; margin: 0; font-weight: 600; }
.status.error { color: #b3261e; }

@media (max-width: 1180px) {
  .top nav > a:not(.btn) { display: none; }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .step { height: 640px; }
  .grid6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 32px, var(--max)); }
  .hero { min-height: 0; padding-block: 36px 64px; }
  .hero .wrap, .intro .wrap:not(.numbers), .feature-row .wrap, .plus .wrap, .privacy .wrap, .faq .wrap, .join .panel { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(44px, 12.5vw, 88px); margin-bottom: 20px; }
  .hero .lead { margin-bottom: 26px; }
  .hero-art { margin-top: 16px; }
  .hero-art::before { left: 18%; right: -10%; }
  .hero-art .device { width: min(72%, 300px); }
  .demo { left: 0; width: min(280px, 78%); }
  .demo img { width: 52px; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head { flex-direction: column; align-items: start; }
  .step { height: 620px; padding: 30px 26px 0; }
  .step .device { top: 250px; width: 72%; }
  .feature-row.flip .copy { order: 0; }
  .grid6, .plus ul { grid-template-columns: 1fr; }
  .grid6 article { padding: 32px 26px; }
  .join .mark { display: none; }
  .footer .wrap { grid-template-columns: 1fr; }
  .top nav { gap: 12px; }
}
@media (max-width: 600px) {
  /* The hero's own apply button is on the first screen. */
  .top nav .btn { display: none; }
}
@media (max-width: 420px) {
  .brand { font-size: 19px; }
  .brand span { display: none; }
  .btn { padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .say, .logged { transition: none; }
}
