/* PassCall — "The Window" design. Mobile-first, no build step. */

:root {
  --ink: #15100E;
  --ink-2: #1F1715;
  --ink-3: #2B211E;
  --cream: #F4EDE3;
  --sand: #E8DCC9;
  --paper: #FFFCF7;
  --red: #9E2A2B;
  --red-hi: #C73B3C;
  --amber: #E8B86D;
  --green: #5BD08A;
  --text: #1B1513;
  --muted: #6F645C;
  --line: #E0D5C6;
  --on-dark: #F4EDE3;
  --on-dark-muted: rgba(244, 237, 227, .68);
  --line-dark: rgba(244, 237, 227, .14);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --max: 1200px;
  --gutter: 16px;
  --r-lg: 24px;
  --r: 16px;
  --r-sm: 10px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  color: var(--text); background: var(--cream); -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--red); text-underline-offset: .18em; }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
h1, h2 { font-family: var(--display); font-optical-sizing: auto; }
h1 { font-size: clamp(2.6rem, 5.5vw + .5rem, 5rem); line-height: 1; letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 3vw + .5rem, 3.25rem); letter-spacing: -.02em; }
h3 { font-size: 1.15rem; font-weight: 600; }
h1 em, h2 em { font-style: italic; font-weight: 500; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 100; padding: .6rem 1rem; background: var(--amber); color: var(--ink); border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.reg { font-size: .5em; font-weight: 500; line-height: 0; vertical-align: super; margin-left: .04em; }

.eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.1rem; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.lede { font-size: clamp(1.125rem, .5vw + 1rem, 1.3rem); line-height: 1.5; }
.muted { color: var(--muted); }
.small { font-size: .9375rem; }
.measure { max-width: 60ch; }

/* Dark theme sections */
.dark { background: var(--ink); color: var(--on-dark); }
.dark h1, .dark h2, .dark h3 { color: var(--on-dark); }
.dark h1 em, .dark h2 em { color: var(--amber); }
.dark .lede, .dark p { color: var(--on-dark-muted); }
.dark .eyebrow { color: var(--amber); }
.dark a { color: var(--on-dark); }
.dark .muted { color: var(--on-dark-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.35rem; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hi); color: #fff; }
.dark .btn--primary { background: var(--red-hi); }
.dark .btn--primary:hover { background: #D94A4B; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--text); }
.dark .btn--ghost { color: var(--on-dark); border-color: var(--line-dark); }
.dark .btn--ghost:hover { border-color: var(--on-dark); background: rgba(244, 237, 227, .06); }
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: #F0C784; color: var(--ink); }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.0625rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 16, 14, .82); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line-dark); color: var(--on-dark);
}
.top__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 36px; width: auto; filter: brightness(0) invert(1); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid var(--line-dark); border-radius: 12px; background: transparent; color: var(--on-dark); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.top.is-open .icon-menu { display: none; }
.top.is-open .icon-close { display: block; }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink-2); border-bottom: 1px solid var(--line-dark); padding: .75rem var(--gutter) 1.25rem; }
.top.is-open .nav { display: block; }
.nav__list { list-style: none; margin: 0 0 1rem; padding: 0; }
.nav__list a { display: block; padding: .75rem .25rem; color: var(--on-dark); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line-dark); }
.nav__list a:hover, .nav__list a[aria-current="page"] { color: var(--amber); }
.nav__actions { display: flex; flex-direction: column; gap: .6rem; }
.nav__actions .btn { width: 100%; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav { display: flex; position: static; align-items: center; gap: 2.25rem; background: none; border: 0; padding: 0; }
  .nav__list { display: flex; gap: 1.75rem; margin: 0; }
  .nav__list a { padding: .3rem 0; border: 0; font-size: .95rem; }
  .nav__actions { flex-direction: row; gap: .6rem; }
  .nav__actions .btn { width: auto; padding: .65rem 1.15rem; font-size: .95rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(70% 55% at 10% 0%, rgba(158, 42, 43, .42), transparent 65%),
    radial-gradient(45% 45% at 92% 70%, rgba(232, 184, 109, .16), transparent 65%),
    var(--ink);
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 7rem);
}
.hero__grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.hero__copy h1 { max-width: 14ch; }
.hero__copy .lede { max-width: 44ch; margin-top: 1.25rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__note { margin-top: 1.5rem; font-size: .875rem; color: var(--on-dark-muted); display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.hero__note span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__note svg { width: 16px; height: 16px; color: var(--amber); }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; }
}

/* Portrait "screens" */
.stage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.75rem, 3vw, 1.75rem); align-items: end; padding: 1.5rem 0; max-width: 560px; margin-inline: auto; }
.frame { position: relative; border-radius: 18px; padding: 7px; background: #0B0807; box-shadow: 0 40px 70px -25px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .07), 0 0 90px -20px rgba(232, 184, 109, .35); }
.frame img { width: 100%; aspect-ratio: 330 / 534; object-fit: cover; border-radius: 12px; background: #333; }
.frame--a { transform: translateY(1.75rem) rotate(-2.5deg); }
.frame--b { transform: rotate(2deg); }
.chip { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .7rem; border-radius: 999px; background: rgba(21, 16, 14, .72); color: var(--on-dark); font-size: .75rem; font-weight: 600; letter-spacing: .02em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(91, 208, 138, .7); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(91, 208, 138, .7); } 70% { box-shadow: 0 0 0 9px rgba(91, 208, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 208, 138, 0); } }
.stage__badge { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%) rotate(-3deg); background: var(--amber); color: var(--ink); padding: .55rem 1rem; border-radius: 999px; font-weight: 600; font-size: .8rem; letter-spacing: .02em; white-space: nowrap; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .7); }

/* ---------- Ticker strip ---------- */
.ticker { background: var(--ink-2); border-block: 1px solid var(--line-dark); color: var(--on-dark-muted); }
.ticker ul { list-style: none; margin: 0; padding: .9rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2rem; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.ticker li { display: inline-flex; align-items: center; gap: 2rem; }
.ticker li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { max-width: 18ch; }

/* The idea: statement + copy */
.idea { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.idea__statement h2 { font-size: clamp(2.25rem, 4vw + .5rem, 4rem); max-width: 14ch; }
.idea__copy p { font-size: 1.125rem; }
.idea__copy .small { font-size: .9375rem; }
@media (min-width: 900px) { .idea { grid-template-columns: 1.1fr 1fr; align-items: start; } .idea__copy { padding-top: .75rem; } }

/* Proof: two screens on dark */
.proof { background: radial-gradient(60% 50% at 50% 100%, rgba(232, 184, 109, .14), transparent 70%), var(--ink); }
.proof .section-head { text-align: center; }
.proof .section-head h2 { margin-inline: auto; max-width: 24ch; }
.proof .section-head .lede { max-width: 52ch; margin-inline: auto; }
.screen-figure { margin: 0; }
.screen-figure__frame { border-radius: var(--r-lg); padding: 8px; background: #0B0807; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .07), 0 0 120px -30px rgba(232, 184, 109, .35); }
.screen-figure__frame img { width: 100%; border-radius: 18px; }
.screen-figure__caption { display: grid; gap: .75rem; margin-top: 1.5rem; }
.caption-chip { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border: 1px solid var(--line-dark); border-radius: var(--r-sm); background: rgba(244, 237, 227, .04); color: var(--on-dark-muted); font-size: .95rem; }
.caption-chip strong { color: var(--on-dark); font-weight: 600; }
.caption-chip .num { font-family: var(--display); font-size: 1.35rem; color: var(--amber); line-height: 1; }
@media (min-width: 640px) { .screen-figure__caption { grid-template-columns: 1fr 1fr; } }

/* How it works */
.how { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.how__drawing { background: var(--sand); border-radius: var(--r-lg); padding: clamp(1.25rem, 4vw, 2.5rem); display: grid; place-items: center; }
.how__drawing img { width: 100%; max-width: 460px; mix-blend-mode: multiply; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: "0" counter(step); font-family: var(--display); font-size: 2.25rem; line-height: 1; color: var(--red); font-style: italic; }
.steps h3 { margin-bottom: .25rem; }
.steps p { color: var(--muted); font-size: 1rem; }
@media (min-width: 900px) { .how { grid-template-columns: 5fr 7fr; align-items: center; } }

/* What you need: spec rows */
.spec { list-style: none; margin: 0; padding: 0; }
.spec li { display: grid; gap: .35rem; padding: 1.35rem 0; border-top: 1px solid var(--line); }
.spec li:last-child { border-bottom: 1px solid var(--line); }
.spec__label { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
.spec__desc { color: var(--muted); }
.spec__tag { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
@media (min-width: 640px) { .spec li { grid-template-columns: 9rem 1fr 1fr; align-items: baseline; gap: 1.5rem; } }
.need { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .need { grid-template-columns: 5fr 7fr; align-items: start; } .need .section-head { margin-bottom: 0; } }

/* Final CTA */
.cta { position: relative; overflow: hidden; background: radial-gradient(60% 70% at 50% 110%, rgba(158, 42, 43, .55), transparent 70%), var(--ink); text-align: center; }
.cta h2 { font-size: clamp(2.5rem, 5vw + .5rem, 4.75rem); max-width: 14ch; margin-inline: auto; }
.cta .lede { max-width: 46ch; margin-inline: auto; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }

/* ---------- Page hero (About / Contact) ---------- */
.page-hero { background: radial-gradient(60% 60% at 0% 0%, rgba(158, 42, 43, .38), transparent 65%), var(--ink); padding-block: clamp(3rem, 7vw, 5.5rem); }
.page-hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.page-hero h1 { font-size: clamp(2.5rem, 4.5vw + .5rem, 4.5rem); max-width: 14ch; }
.page-hero .lede { max-width: 50ch; margin-top: 1rem; }
.page-hero .frame { max-width: 320px; margin-inline: auto; }
@media (min-width: 900px) { .page-hero__grid { grid-template-columns: 1.2fr .8fr; } .page-hero .frame { margin-inline: auto 0; transform: rotate(2deg); } }

/* Story */
.story { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.story__quote { font-family: var(--display); font-size: clamp(1.6rem, 2vw + .75rem, 2.5rem); line-height: 1.2; letter-spacing: -.01em; color: var(--text); }
.story__quote em { color: var(--red); font-style: italic; }
.story__copy p { font-size: 1.125rem; }
@media (min-width: 900px) { .story { grid-template-columns: 1fr 1.2fr; align-items: start; } }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; } }
.details { list-style: none; margin: 0; padding: 0; }
.details li { padding: 1.25rem 0; border-top: 1px solid var(--line); display: grid; gap: .2rem; }
.details li:last-child { border-bottom: 1px solid var(--line); }
.details .spec__tag { margin-bottom: .1rem; }
.details .val { font-family: var(--display); font-size: 1.5rem; line-height: 1.15; }
.details .val a { color: var(--text); text-decoration: none; }
.details .val a:hover { color: var(--red); text-decoration: underline; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: 0 30px 60px -40px rgba(27, 21, 19, .35); }
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .875rem; color: var(--muted); }
.field input, .field textarea { font: inherit; color: var(--text); background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: .8rem .95rem; width: 100%; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(158, 42, 43, .18); background: #fff; }
.field textarea { min-height: 160px; resize: vertical; }
.field--hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form__footer .small { color: var(--muted); }
.form-status { margin-top: 1rem; font-size: .95rem; min-height: 1.4em; }
.form-status.is-success { color: #1F6B3A; font-weight: 600; }
.form-status.is-error { color: var(--red); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-dark-muted); border-top: 1px solid var(--line-dark); padding-block: 3rem 2rem; font-size: .9375rem; }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { color: var(--amber); }
.footer__grid { display: grid; gap: 2rem; }
.footer__brand img { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.footer__brand p { margin-top: 1rem; max-width: 34ch; }
.footer h3 { color: var(--on-dark); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .75rem; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer__bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; color: rgba(244, 237, 227, .5); }
.footer__bottom--bare { margin-top: 0; border-top: 0; padding-top: 0; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.nav--static { display: flex; position: static; background: none; border: 0; padding: 0; }
