/* North Bay Claw Machines — shared styles */

:root {
  --ink: #0b1424;
  --navy: #10213a;
  --navy-2: #1a3152;
  --paper: #f6f9fc;
  --mist: #eaf1f8;
  --line: #d6e1ec;
  --text: #142033;
  --muted: #56657a;
  --accent: #0b7fa6;        /* buttons, links on light */
  --accent-dark: #086a8b;
  --glow: #48d3ef;          /* highlights on dark */
  --violet: #7b8cff;
  --teal: #2fae9f;

  --head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 20, 36, .06), 0 8px 24px -12px rgba(11, 20, 36, .2);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(48px, 6vw, 72px) 0; }
.section-head { max-width: 620px; margin-bottom: 28px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(11, 127, 166, .18); }
.on-dark .eyebrow { color: var(--glow); }
.on-dark .eyebrow::before { box-shadow: 0 0 0 3px rgba(72, 211, 239, .22); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  border: 0;
  font: 600 .97rem/1 var(--sans);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mist); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-small { padding: 10px 16px; font-size: .9rem; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 249, 252, .9);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; white-space: nowrap; }
.logo svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .92rem; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .logo { font-size: .98rem; }
  .logo svg { width: 28px; height: 28px; }
  .nav .btn-small { padding: 9px 12px; font-size: .85rem; }
}
@media (max-width: 359px) { .logo span { display: none; } }

/* Hero */
.hero {
  position: relative;
  min-height: min(72vh, 620px);
  display: flex; align-items: center;
  color: #fff;
  background: var(--ink) url("img/hero.jpg") center / cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 20, 36, .94) 0%, rgba(11, 20, 36, .8) 40%, rgba(11, 20, 36, .25) 75%, rgba(11, 20, 36, .1) 100%);
}
.hero .wrap { position: relative; padding: 64px 0; }
.hero-copy { max-width: 540px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
.hero h1 em { font-style: normal; color: var(--glow); }
.hero p { margin-top: 16px; font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgba(255, 255, 255, .85); max-width: 480px; }
.hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.hero .link-arrow { color: #fff; }
@media (max-width: 760px) {
  .hero { min-height: 0; background-position: 60% center; }
  .hero::before { background: linear-gradient(0deg, rgba(11, 20, 36, .95) 0%, rgba(11, 20, 36, .82) 55%, rgba(11, 20, 36, .55) 100%); }
  .hero .wrap { padding: 120px 0 44px; }
}

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-item { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.why-item .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(11, 127, 166, .1); color: var(--accent); margin-bottom: 14px; }
.why-item .icon svg { width: 21px; height: 21px; }
.why-item h3 { margin-bottom: 6px; }
.why-item p { color: var(--muted); }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; gap: 12px; } }

/* Events */
.events { background: var(--mist); }
.event-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.event-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.event-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.event-card .body { padding: 16px 18px 20px; }
.event-card h3 { margin-bottom: 6px; }
.event-card p { color: var(--muted); font-size: .94rem; }
@media (max-width: 980px) { .event-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .event-grid { grid-template-columns: 1fr; } }

/* Prizes */
.prizes { background: var(--ink); color: #fff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.prizes p { margin-top: 12px; font-size: 1.05rem; color: rgba(255, 255, 255, .78); max-width: 440px; }
.prize-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.prize-tags span { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(72, 211, 239, .35); font-size: .86rem; color: rgba(255, 255, 255, .88); }
.prizes figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px -20px rgba(72, 211, 239, .35); }
.prizes figure img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* How it works + machines share a row on desktop */
.how-machines { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.steps { display: grid; gap: 12px; counter-reset: step; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--ink); color: var(--glow);
  font: 800 1rem/1 var(--head);
}
.step h3 { margin-bottom: 2px; }
.step p { color: var(--muted); }
.machine-list { display: grid; gap: 12px; }
.machine { display: flex; gap: 18px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.machine svg { flex: none; width: 56px; height: 82px; color: var(--ink); }
.machine h3 { margin-bottom: 2px; }
.machine p { color: var(--muted); }
@media (max-width: 860px) { .how-machines { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { padding-top: 0; }
.pricing-card {
  display: grid; grid-template-columns: 1.6fr auto; gap: 28px; align-items: center;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 18px;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  position: relative; overflow: hidden;
}
.pricing-card::after {
  content: ""; position: absolute; right: -100px; top: -140px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 211, 239, .3), transparent 70%);
  pointer-events: none;
}
.pricing-card p { margin-top: 10px; color: rgba(255, 255, 255, .82); max-width: 620px; }
.pricing-card .note { display: inline-flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: rgba(255, 255, 255, .07); font-size: .93rem; }
.pricing-card .note svg { flex: none; width: 18px; height: 18px; color: var(--glow); margin-top: 2px; }
.pricing-cta { position: relative; z-index: 1; }
@media (max-width: 760px) { .pricing-card { grid-template-columns: 1fr; } }

/* Service area + FAQ share a row on desktop */
.area-faq { background: var(--mist); }
.area-faq .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.area { padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.area + .area { margin-top: 12px; }
.area h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.area h3 svg { width: 18px; height: 18px; color: var(--teal); }
.towns { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.towns li { padding: 5px 11px; border-radius: 999px; background: var(--mist); font-size: .87rem; }
.area-note { margin-top: 14px; color: var(--muted); }
.area-note a { color: var(--accent); font-weight: 600; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 15px 0;
  font-family: var(--head); font-size: 1.02rem; font-weight: 700;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--sans); font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 16px; color: var(--muted); }
@media (max-width: 860px) { .area-faq .grid { grid-template-columns: 1fr; gap: 40px; } }

/* Closing CTA */
.closing { background: linear-gradient(120deg, var(--accent) 0%, #1b5fae 100%); color: #fff; }
.closing .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.closing h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.closing p { margin-top: 6px; font-size: 1.05rem; color: rgba(255, 255, 255, .88); }
.closing.section { padding: 40px 0; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .68); padding: 36px 0 24px; font-size: .92rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: flex-start; }
.site-footer .logo { color: #fff; }
.site-footer .tagline { margin-top: 8px; }
.site-footer a { color: #fff; }
.footer-bottom { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .82rem; color: rgba(255, 255, 255, .5); }

/* ---------- Early access page ---------- */
.ea-hero { background: var(--navy) url("img/hero.jpg") center / cover no-repeat; position: relative; color: #fff; }
.ea-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 20, 36, .95), rgba(11, 20, 36, .78)); }
.ea-hero .wrap { position: relative; padding: clamp(40px, 6vw, 64px) 0 clamp(110px, 12vw, 130px); }
.ea-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); }
.ea-hero p { margin-top: 12px; max-width: 640px; font-size: 1.05rem; color: rgba(255, 255, 255, .85); }

.ea-body { margin-top: -84px; padding-bottom: 64px; position: relative; }
.ea-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 20px; align-items: start; }
.next-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 22px; box-shadow: var(--shadow); }
.next-card h2 { font-size: 1.15rem; margin-bottom: 14px; }
.next-card ol { list-style: none; margin: 0; padding: 0; counter-reset: n; display: grid; gap: 12px; }
.next-card li { counter-increment: n; display: grid; grid-template-columns: 30px 1fr; gap: 10px; color: var(--muted); font-size: .95rem; }
.next-card li::before { content: counter(n); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--ink); color: var(--glow); font-weight: 700; font-size: .82rem; }

.form-card { background: #fff; border-radius: 18px; padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-card h2 { font-size: clamp(1.4rem, 2.4vw, 1.7rem); margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-weight: 600; font-size: .88rem; }
.field .req { color: var(--accent); }
.field .opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--text);
  padding: 11px 12px;
  border: 1px solid #c9d6e3; border-radius: 9px;
  background: var(--paper);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(11, 127, 166, .18); }
input:disabled { opacity: .5; }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--muted); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }
.form-foot { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-foot .btn { min-width: 140px; }
.form-error { color: #b3261e; font-size: .93rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { text-align: center; padding: 28px 8px; }
.form-success .tick { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: rgba(47, 174, 159, .14); color: var(--teal); }
.form-success .tick svg { width: 26px; height: 26px; }
.form-success h2 { margin-bottom: 8px; }
.form-success p { color: var(--muted); max-width: 400px; margin: 0 auto; }
@media (max-width: 900px) { .ea-grid { grid-template-columns: 1fr; } .next-card { order: 2; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

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