/* Vesper site styles.
   Look: fog, not darkness. Cool pale ground, ink type in a light weight, one faint cold glow.
   The only loud thing on any page is the call that answers itself. */

:root {
  --fog: #e8ebef;          /* page */
  --mist: #f4f6f8;         /* lifted surfaces */
  --ink: #1b2029;          /* text */
  --haze: #626b7c;         /* secondary text, AA on fog */
  --veil: rgba(27, 32, 41, .09);
  --glow: #c9d6ff;         /* the one cold light */
  --glass: rgba(255, 255, 255, .5);
  --night: #151922;        /* closing band */
  --on-night: #e4e8ef;
  --on-night-muted: #9aa3b5;
  --radius: 18px;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fog: #12151b; --mist: #1a1e26; --ink: #e4e8ef; --haze: #939cae;
    --veil: rgba(228, 232, 239, .1); --glow: #3f5185; --glass: rgba(255, 255, 255, .04);
    --night: #0c0f14; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fog: #12151b; --mist: #1a1e26; --ink: #e4e8ef; --haze: #939cae;
  --veil: rgba(228, 232, 239, .1); --glow: #3f5185; --glass: rgba(255, 255, 255, .04);
  --night: #0c0f14; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--fog); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { max-width: 72rem; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
@media (min-width: 760px) { .wrap { padding-left: 32px; padding-right: 32px; } }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--mist); padding: 8px 12px; z-index: 20; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--fog) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--veil); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.mark { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; font-size: 1.15rem; letter-spacing: .02em; text-decoration: none; }
.mark svg { width: 18px; height: 18px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--haze); font-size: .96rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { color: var(--fog); }
.menu { display: none; }
@media (max-width: 760px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--veil); border-radius: 999px; font-size: .95rem; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .menu-panel { display: grid; }
  .menu-panel { display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; gap: 2px;
    background: var(--mist); border: 1px solid var(--veil); border-radius: 14px; padding: 8px; box-shadow: 0 18px 40px rgba(20, 25, 35, .12); }
  .menu-panel a { padding: 10px 12px; border-radius: 10px; text-decoration: none; }
  .menu-panel a:hover { background: var(--fog); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--fog); font-weight: 500;
  padding: 11px 20px; border-radius: 999px; text-decoration: none; border: 1px solid var(--ink); font-size: .98rem; }
.btn:hover { opacity: .86; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--veil); }
.btn.ghost:hover { border-color: var(--haze); opacity: 1; }
.btn.small { padding: 8px 16px; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Type scale */
.display { font-weight: 300; font-size: clamp(2.6rem, 6.4vw, 4.8rem); line-height: 1.0; letter-spacing: -0.045em; margin: 0 0 24px; }
.h2 { font-weight: 300; font-size: clamp(1.9rem, 3.8vw, 2.8rem); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 14px; max-width: 20ch; }
.h3 { font-weight: 500; font-size: 1.1rem; margin: 0 0 6px; letter-spacing: -0.005em; }
.lede { color: var(--haze); font-size: 1.2rem; max-width: 36ch; margin: 0 0 32px; }
.sub { color: var(--haze); max-width: 54ch; margin: 0 0 44px; }
.muted { color: var(--haze); }

/* Hero */
.hero { display: grid; gap: 48px; padding: 56px 0 96px; align-items: center; }
@media (min-width: 940px) { .hero { grid-template-columns: 1fr 1fr; padding: 88px 0 128px; } }
.hero .display { max-width: 11ch; }
.demo-line { margin-top: 18px; color: var(--haze); font-size: .95rem; }
.demo-line a { color: var(--ink); font-variant-numeric: tabular-nums; }

/* The call: frosted glass, lines surface and fade */
.call-wrap { position: relative; min-width: 0; }
.call-wrap::before { content: ""; position: absolute; inset: -12% -10%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent 75%); opacity: .7; filter: blur(30px); }
@media (max-width: 760px) { .call-wrap::before { inset: -8% 0; } }
.call { position: relative; z-index: 1; margin: 0; background: var(--glass); border: 1px solid var(--veil); border-radius: 22px;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); padding: 24px 26px 6px; min-height: 25rem; }
.call-head { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; font-size: .9rem; color: var(--haze);
  padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--veil); }
.call-head .live { color: var(--ink); }
.call-head .live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ink);
  margin-right: 8px; vertical-align: 1px; animation: breathe 2.4s ease-in-out infinite; }
.line { margin: 0 0 16px; font-size: 1.06rem; line-height: 1.5; transition: opacity 1.2s ease, filter 1.2s ease; }
.line .who { display: block; font-size: .8rem; color: var(--haze); margin-bottom: 2px; }
.call-foot { font-size: .9rem; color: var(--haze); border-top: 1px solid var(--veil); padding: 14px 0; margin: 4px 0 0; transition: opacity 1.2s ease; }
.ghosting .line { opacity: 0; filter: blur(8px); }
.ghosting .line.on { opacity: 1; filter: blur(0); }
.ghosting .line.past-1 { opacity: .5; }
.ghosting .line.past-2 { opacity: .24; filter: blur(.6px); }
.ghosting .line.past-3 { opacity: .1; filter: blur(1.4px); }
@keyframes breathe { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .call-head .live::before { animation: none; } .line, .call-foot { transition: none; } }

/* Sections */
.section { padding: 96px 0; border-top: 1px solid var(--veil); }
.section.tight { padding: 72px 0; }
.grid-2 { display: grid; gap: 36px 64px; }
.grid-3 { display: grid; gap: 36px 48px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.item p { margin: 0; color: var(--haze); max-width: 42ch; }
.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 940px) { .split { grid-template-columns: 1fr 1.25fr; gap: 72px; } }

/* Steps: a real sequence, so they're numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; counter-reset: s; }
@media (min-width: 900px) { .steps.row { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.6rem 1fr; min-width: 0; }
.steps li::before { content: counter(s); font-weight: 300; font-size: 1.6rem; line-height: 1.1; color: var(--haze); }
.steps p { margin: 0; color: var(--haze); }

/* Owner's phone: what the owner actually receives */
.alert-stack { display: grid; gap: 12px; max-width: 26rem; }
.alert { background: var(--mist); border: 1px solid var(--veil); border-radius: 16px; padding: 14px 16px; }
.alert-top { display: flex; justify-content: space-between; gap: 12px; font-size: .82rem; color: var(--haze); margin-bottom: 4px; }
.alert b { font-weight: 500; display: block; }
.alert p { margin: 2px 0 0; font-size: .95rem; color: var(--haze); }
.alert.faded { opacity: .55; }

/* Industries list */
.industries { display: grid; gap: 0; border-top: 1px solid var(--veil); }
@media (min-width: 760px) { .industries { grid-template-columns: 1fr 1fr; column-gap: 64px; } }
.industry { padding: 22px 0; border-bottom: 1px solid var(--veil); min-width: 0; }
.industry h3 { margin: 0 0 4px; font-weight: 500; font-size: 1.1rem; }
.industry p { margin: 0; color: var(--haze); }
.industry .calls { margin-top: 8px; font-size: .94rem; }

/* Promises: rules Vesper keeps on every call */
.promises { display: grid; gap: 1px; background: var(--veil); border: 1px solid var(--veil); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .promises { grid-template-columns: 1fr 1fr; } }
.promise { background: var(--fog); padding: 24px; }
.promise p { margin: 0; color: var(--haze); }

/* FAQ */
.faq { border-top: 1px solid var(--veil); max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--veil); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-weight: 500; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.5px solid var(--haze); border-bottom: 1.5px solid var(--haze); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { margin: 0 0 20px; color: var(--haze); max-width: 62ch; }

/* Closing band */
.closing { background: var(--night); color: var(--on-night); padding: 96px 0; position: relative; overflow: hidden; }
.closing::before { content: ""; position: absolute; width: 640px; height: 640px; right: -160px; top: -260px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(150, 170, 230, .22), transparent 70%); }
.closing .h2 { max-width: 16ch; }
.closing p { color: var(--on-night-muted); max-width: 46ch; margin: 0 0 32px; }
.closing .btn { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.closing .btn.ghost { background: transparent; color: var(--on-night); border-color: rgba(228, 232, 239, .25); }
.closing a.plain { color: var(--on-night); }

/* Page heads (inner pages) */
.page-head { padding: 72px 0 56px; }
.page-head .display { font-size: clamp(2.4rem, 5.4vw, 4rem); max-width: 16ch; }

/* Contact */
.contact-cards { display: grid; gap: 16px; }
@media (min-width: 760px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-card { background: var(--mist); border: 1px solid var(--veil); border-radius: var(--radius); padding: 24px; min-width: 0; }
.contact-card p { margin: 0 0 14px; color: var(--haze); }
.contact-card .big { font-size: 1.15rem; color: var(--ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

/* Footer */
.site-footer { padding: 64px 0 48px; color: var(--haze); font-size: .95rem; border-top: 1px solid var(--veil); }
.foot { display: grid; gap: 32px; }
@media (min-width: 760px) { .foot { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot h4 { margin: 0 0 10px; font-size: .95rem; font-weight: 500; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-note { margin-top: 40px; font-size: .88rem; }

/* Legal pages */
.legal { max-width: 46rem; padding: 32px 0 96px; }
.legal h1 { font-weight: 300; font-size: 2.6rem; letter-spacing: -0.035em; margin: 0 0 6px; }
.legal .updated { color: var(--haze); margin: 0 0 40px; }
.legal h2 { font-size: 1.15rem; font-weight: 500; margin: 36px 0 8px; }
.legal p, .legal li { max-width: 68ch; }
.legal ul { padding-left: 1.2rem; }
