/* SpotEasy marketing site — civic-premium: ink, bone, one brand-blue accent. */

:root {
  /* Type */
  --font-display: "Space Grotesk", Arial, sans-serif;
  --font-body: "DM Sans", Arial, sans-serif;
  --fs-1: 0.8125rem;   /* 13px — ticket / meta */
  --fs-2: 0.9375rem;   /* 15px — small UI */
  --fs-3: 1rem;        /* 16px — body floor */
  --fs-4: 1.125rem;    /* 18px — lede */
  --fs-5: 1.5rem;      /* 24px — subhead */
  --fs-6: clamp(2.25rem, 5vw, 3.75rem);  /* 36–60px — section */
  --fs-7: clamp(2.75rem, 7vw, 5.25rem);  /* 44–84px — hero */

  /* Color */
  --ink: #0E1A24;
  --ink-soft: #1B2B38;
  --bone: #F4F0E8;
  --paper: #FFFFFF;
  --brand: #0192D1;        /* FILL ONLY — never body text */
  --brand-deep: #00689B;   /* deeper shade, text-safe on light surfaces */
  --muted: #5A6873;
  --line: #D9D3C7;
  --line-dark: rgba(244, 240, 232, 0.24);

  /* Space — 8px base */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 96px;
  --maxw: 1200px;

  /* Form */
  --r-ticket: 2px;
  --r-pill: 999px;
  --stub-w: 96px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-3);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul { margin-top: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
p, li { overflow-wrap: break-word; }
img, svg { max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brand-deep);
  outline-offset: 3px;
  border-radius: 1px;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: var(--sp-2);
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--bone);
  padding: 12px 18px;
  border-radius: var(--r-ticket);
  text-decoration: none;
}
.skip-link:focus { top: var(--sp-2); }

.wrap {
  width: min(100% - (var(--sp-3) * 2), var(--maxw));
  margin-inline: auto;
}

.section { padding-block: clamp(64px, 9vw, 124px); scroll-margin-top: 88px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: none;
  color: var(--muted);
  margin-bottom: var(--sp-2);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--brand-deep);
  border-radius: var(--r-pill);
  background: var(--brand-deep);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: var(--fs-3);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn:active { transform: translateY(1px); }

.btn--sm { min-height: 44px; padding: 0 18px; font-size: var(--fs-2); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--bone); }

/* Disabled / coming-soon action — visibly quieter, not clickable. */
.btn--soon,
.btn[aria-disabled="true"] {
  background: transparent;
  border-color: var(--line);
  border-style: dashed;
  color: var(--muted);
  cursor: not-allowed;
  pointer-events: none;
}
.btn--soon:hover,
.btn[aria-disabled="true"]:hover { background: transparent; color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bone);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 78px;
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { display: block; height: 27px; width: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.site-nav a {
  font-size: var(--fs-2);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding-block: clamp(64px, 10vw, 132px) clamp(72px, 11vw, 148px);
}
.hero-copy { max-width: 46ch; }
.kicker {
  font-family: var(--font-display);
  font-size: var(--fs-1);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: var(--sp-3);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-7);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-width: 13ch;
  margin-bottom: var(--sp-3);
}
.hero-lede {
  font-size: var(--fs-4);
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: var(--sp-4);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.hero-actions--compact .btn { min-height: 42px; padding-inline: 16px; font-size: var(--fs-1); }
.hero-note {
  font-size: var(--fs-2);
  color: var(--muted);
  margin: var(--sp-2) 0 0;
}

/* ---------- Ticket motif ---------- */
.ticket-stage { position: relative; isolation: isolate; width: 100%; --notch-bg: var(--bone); }
.ticket-stage::before {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-ticket);
  z-index: -1;
}
.ticket {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--stub-w);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-ticket);
  transform: rotate(-1.4deg);
  max-width: 460px;
}
/* Perforation notches */
.ticket::before, .ticket::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: var(--r-pill);
  background: var(--notch-bg);
  border: 1px solid var(--line);
  right: calc(var(--stub-w) - 9px);
  z-index: 2;
}
.ticket::before { top: -10px; }
.ticket::after { bottom: -10px; }

.ticket-main { min-width: 0; padding: var(--sp-3) var(--sp-3) var(--sp-2); }
.ticket-head, .ticket-foot {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticket-head { padding-bottom: var(--sp-2); border-bottom: 1px solid var(--line); }
.ticket-foot { padding-top: var(--sp-2); border-top: 1px solid var(--line); }

.ticket-body { display: flex; align-items: center; gap: var(--sp-3); padding-block: var(--sp-3); }
.qr {
  width: clamp(104px, 12vw, 148px);
  height: auto;
  flex: none;
  fill: var(--brand);
  shape-rendering: crispEdges;
  background: var(--paper);
}
.ticket-meta { display: flex; flex-direction: column; min-width: 0; }
.ticket-meta-label {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticket-time {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.ticket-sub { font-size: var(--fs-2); color: var(--ink-soft); }

.ticket-stub {
  position: relative;
  border-left: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding-block: var(--sp-3);
  min-width: 0;
}
.paid-seal {
  position: relative;
  width: 78px;
  height: 78px;
  flex: none;
  border-radius: var(--r-pill);
  border: 2px solid var(--brand-deep);
  color: var(--brand-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-12deg);
}
.paid-seal::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--brand-deep);
  border-radius: var(--r-pill);
}
.seal-word {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}
.seal-mark {
  font-family: var(--font-display);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-top: 5px;
}
.stub-orient {
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--muted);
  writing-mode: vertical-rl;
}

/* One orchestrated reveal: the PAID seal stamps down. */
html.js .paid-seal--reveal { opacity: 0; transform: rotate(-34deg) scale(1.65); }
html.js .paid-seal--reveal.is-sealed {
  animation: seal-stamp 0.62s cubic-bezier(0.2, 0.9, 0.25, 1.15) forwards;
}
@keyframes seal-stamp {
  0%   { opacity: 0; transform: rotate(-34deg) scale(1.65); }
  65%  { opacity: 1; transform: rotate(-9deg) scale(0.94); }
  100% { opacity: 1; transform: rotate(-12deg) scale(1); }
}

/* ---------- Proof strip ---------- */
.proof { border-block: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.proof-item { padding: var(--sp-5) var(--sp-4) var(--sp-5) 0; border-right: 1px solid var(--line); }
.proof-item:not(:first-child) { padding-left: var(--sp-4); }
.proof-item:last-child { border-right: 0; padding-right: 0; }
.proof-num {
  font-family: var(--font-display);
  font-size: var(--fs-1);
  font-weight: 700;
  color: var(--brand-deep);
  letter-spacing: 0.1em;
}
.proof-item h2 {
  font-family: var(--font-display);
  font-size: var(--fs-5);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: var(--sp-2) 0;
}
.proof-item p { color: var(--ink-soft); margin: 0; max-width: 36ch; }

/* ---------- Shared section head ---------- */
.section-head { max-width: 30ch; margin-bottom: var(--sp-6); }
.section-head h2,
.faq-head h2,
.cities-head h2,
.install-copy h2,
.why-statement h2 {
  font-family: var(--font-display);
  font-size: var(--fs-6);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: var(--sp-3);
}

/* ---------- How it works ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
}
.lane { position: absolute; top: 21px; left: 0; right: 0; height: 1px; background: var(--line); }
.step { position: relative; min-width: 0; }
.step-num {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: var(--fs-2);
  font-weight: 700;
  color: var(--ink);
}
.step h3 {
  font-family: var(--font-display);
  font-size: var(--fs-5);
  letter-spacing: -0.02em;
  margin: var(--sp-3) 0 var(--sp-1);
}
.step--lead h3 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
.step p { color: var(--ink-soft); margin: 0; max-width: 38ch; }

/* ---------- Why drivers ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.why-statement > p:last-child { color: var(--ink-soft); max-width: 44ch; font-size: var(--fs-4); }
.benefits { list-style: none; padding: 0; margin: 0; }
.benefits li { border-top: 1px solid var(--line); padding: var(--sp-3) 0 var(--sp-3) var(--sp-3); position: relative; }
.benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--sp-3) + 9px);
  width: 8px;
  height: 8px;
  background: var(--brand);
}
.benefits h3 { font-family: var(--font-display); font-size: var(--fs-4); margin-bottom: var(--sp-1); }
.benefits p { color: var(--ink-soft); margin: 0; font-size: var(--fs-2); }

/* ---------- Cities & operators (quiet, dark) ---------- */
.cities { background: var(--ink); color: var(--bone); }
.cities .eyebrow { color: var(--bone); opacity: 0.72; }
.cities-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.cities-head > p:last-child { color: var(--bone); opacity: 0.78; max-width: 44ch; font-size: var(--fs-4); }
.cities-list { display: flex; flex-direction: column; }
.cities-item { border-top: 1px solid var(--line-dark); padding: var(--sp-3) 0 var(--sp-3) var(--sp-3); position: relative; }
.cities-item:last-child { border-bottom: 1px solid var(--line-dark); }
.cities-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--sp-3) + 9px);
  width: 8px;
  height: 8px;
  background: var(--brand);
}
.cities-item h3 { font-family: var(--font-display); font-size: var(--fs-4); margin-bottom: var(--sp-1); }
.cities-item p { color: var(--bone); opacity: 0.78; margin: 0; font-size: var(--fs-2); max-width: 46ch; }
.cities :focus-visible { outline-color: var(--bone); }

/* ---------- Install band ---------- */
.install { background: var(--paper); border-block: 1px solid var(--line); }
.install-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.install-copy > p:last-child { color: var(--ink-soft); max-width: 34ch; font-size: var(--fs-4); }
.ticket-stage--install { --notch-bg: var(--paper); }
.ticket-stage--install::before { inset: 12px -12px -12px 12px; }
.ticket--cta { max-width: 560px; --stub-w: 104px; }
.ticket--cta .ticket-main { padding: var(--sp-3); }
.cta-ticket-body { display: flex; align-items: center; gap: var(--sp-3); padding-block: var(--sp-3); }
.qr--cta { width: 108px; }
.cta-ticket-copy p {
  font-family: var(--font-display);
  font-size: var(--fs-4);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}
.cta-ticket-copy .hero-actions { gap: var(--sp-1); }
.ticket--cta .paid-seal { width: 72px; height: 72px; }

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq-head { position: sticky; top: 112px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-of-type { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  font-family: var(--font-display);
  font-size: var(--fs-4);
  font-weight: 600;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details p { color: var(--ink-soft); max-width: 58ch; margin: 0 0 var(--sp-3); }
.faq-plus { position: relative; flex: none; width: 14px; height: 14px; margin-top: 9px; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: var(--brand-deep); }
.faq-plus::before { top: 6px; left: 0; right: 0; height: 2px; }
.faq-plus::after { left: 6px; top: 0; bottom: 0; width: 2px; transition: transform 0.18s ease; }
details[open] .faq-plus::after { transform: scaleY(0); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--bone); }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-4);
  align-items: end;
  padding-block: var(--sp-6) var(--sp-4);
}
.footer-brand img { display: block; height: 27px; width: auto; }
.footer-brand p { color: var(--bone); opacity: 0.78; margin: var(--sp-2) 0 0; font-size: var(--fs-2); max-width: 40ch; }
.footer-nav { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.footer-nav a { font-size: var(--fs-2); text-decoration: none; color: var(--bone); border-bottom: 1px solid transparent; }
.footer-nav a:hover { border-bottom-color: var(--brand); }
.copyright {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line-dark);
  padding-top: var(--sp-3);
  margin: 0;
  font-size: var(--fs-1);
  color: var(--bone);
  opacity: 0.7;
}
.site-footer :focus-visible { outline-color: var(--bone); }

/* ---------- Responsive: tablet ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-bottom: var(--sp-6); }
  .hero-copy { max-width: 52ch; }
  .ticket-stage { max-width: 460px; }
  .steps { gap: var(--sp-3); }
  .why-grid, .cities-grid, .install-grid, .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .cities-head > p:last-child, .why-statement > p:last-child, .install-copy > p:last-child { max-width: 52ch; }
}

/* ---------- Responsive: phone (390px) ---------- */
@media (max-width: 600px) {
  :root { --stub-w: 76px; }
  .wrap { width: min(100% - 32px, var(--maxw)); }
  .header-inner { flex-wrap: wrap; min-height: 0; padding-block: 12px; gap: 12px; }
  .brand { order: 1; }
  .header-inner > .btn { order: 2; margin-left: auto; }
  .site-nav { order: 3; width: 100%; justify-content: space-between; gap: 4px; }
  .site-nav a { font-size: 0.8125rem; padding-block: 4px; }

  .hero { gap: var(--sp-5); padding-block: var(--sp-5) var(--sp-6); }
  .hero h1 { max-width: none; font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .hero-lede { font-size: var(--fs-3); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-actions--compact { flex-direction: row; }
  .hero-actions--compact .btn { width: auto; flex: 1 1 0; }

  .ticket { transform: none; }
  .ticket-stage { --notch-bg: var(--bone); }
  .ticket-main { padding: var(--sp-2) var(--sp-2) var(--sp-1); }
  .ticket-body { gap: var(--sp-2); padding-block: var(--sp-2); }
  .qr { width: clamp(88px, 26vw, 116px); }
  .ticket-time { font-size: 2.25rem; }
  .ticket-head, .ticket-foot { font-size: 0.5625rem; letter-spacing: 0.06em; }
  .paid-seal { width: 58px; height: 58px; }
  .seal-word { font-size: 0.875rem; }
  .stub-orient { font-size: 0.5rem; }
  .ticket-stage--install { --notch-bg: var(--paper); }
  .ticket--cta { --stub-w: 78px; }
  .ticket--cta .paid-seal { width: 58px; height: 58px; }
  .cta-ticket-body { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
  .qr--cta { width: 84px; }
  .cta-ticket-copy { width: 100%; }
  .cta-ticket-copy .hero-actions { flex-direction: column; }
  .cta-ticket-copy .hero-actions--compact { flex-direction: column; }

  .proof-grid { grid-template-columns: 1fr; }
  .proof-item, .proof-item:not(:first-child) {
    padding: var(--sp-3) 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .proof-item:last-child { border-bottom: 0; }

  .section-head { margin-bottom: var(--sp-5); }
  .steps { display: block; }
  .lane { top: 0; bottom: 0; left: 20px; right: auto; width: 1px; height: auto; }
  .step { padding-left: var(--sp-5); margin-bottom: var(--sp-4); }
  .step:last-child { margin-bottom: 0; }
  .step-num { margin-left: -40px; }

  .benefits li::before, .cities-item::before { top: calc(var(--sp-3) + 9px); }
  .footer-inner { grid-template-columns: 1fr; gap: var(--sp-3); }
  .copyright { grid-column: 1; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js .paid-seal--reveal { opacity: 1; transform: rotate(-12deg) scale(1); }
  html.js .paid-seal--reveal.is-sealed { animation: none; }
  * { transition-duration: 0.01ms !important; }
  .btn:active { transform: none; }
}
