/* ============================================================
   OptiLocal AI — marketing site
   Design tokens → base → components → sections → responsive
   ============================================================ */

:root {
  --ink:        #0b1220;   /* near-black navy text / dark surfaces */
  --ink-2:      #1b2740;
  --slate:      #475569;   /* body text muted */
  --slate-2:    #64748b;
  --line:       #e6ebf3;   /* hairlines */
  --bg:         #ffffff;
  --bg-soft:    #f6f8fc;   /* alt sections */
  --bg-card:    #ffffff;

  --brand:      #2f6bff;   /* primary blue */
  --brand-2:    #06b6d4;   /* cyan */
  --brand-ink:  #1b46c2;
  --mint:       #10b981;   /* "booked / success" accent */

  --grad:       linear-gradient(120deg, #2f6bff 0%, #06b6d4 100%);
  --grad-soft:  linear-gradient(120deg, rgba(47,107,255,.12), rgba(6,182,212,.12));

  --radius:     18px;
  --radius-sm:  12px;
  --shadow-sm:  0 1px 2px rgba(16,33,64,.06), 0 2px 8px rgba(16,33,64,.05);
  --shadow-md:  0 8px 30px rgba(16,33,64,.10);
  --shadow-lg:  0 24px 60px rgba(16,33,64,.16);

  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ff-head: "Plus Jakarta Sans", var(--ff-body);

  --container: 1120px;
}

/* ---------- reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--ff-head); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
a  { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
em { font-style: normal; color: var(--brand-ink); font-weight: 600; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--ff-head); font-weight: 600; font-size: .98rem;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(47,107,255,.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(47,107,255,.40); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: #cdd7e6; }
.btn-ghost.on-dark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); box-shadow: none; }
.btn-ghost.on-dark:hover { background: rgba(255,255,255,.16); }
.btn-lg { padding: 15px 28px; font-size: 1.04rem; }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--ff-head); font-weight: 800; font-size: 1.12rem; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; }
.nav { display: flex; gap: 28px; margin-left: 8px; }
.nav a { color: var(--slate); font-weight: 500; font-size: .98rem; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.header-cta { margin-left: auto; }

.nav-toggle { display: none; margin-left: auto; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-nav a { padding: 12px 6px; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border: 0; margin-top: 8px; }
.mobile-nav.open { display: flex; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 80px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(6,182,212,.14), transparent 70%),
    radial-gradient(50% 45% at 5% 8%, rgba(47,107,255,.12), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { font-family: var(--ff-head); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin: 0 0 14px; }
.eyebrow.center { text-align: center; }
.hero-copy h1 { margin-bottom: .35em; }
.lede { font-size: 1.2rem; color: var(--slate); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 16px; }
.hero-note { font-size: .92rem; color: var(--slate-2); margin: 0; }

/* hero call card */
.hero-visual { position: relative; }
.call-card {
  position: relative; z-index: 2;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-lg); padding: 20px; max-width: 400px; margin-left: auto;
}
.call-head { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--slate); margin-bottom: 14px; }
.call-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(16,185,129,.55); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.5);} 70% { box-shadow: 0 0 0 10px rgba(16,185,129,0);} 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0);} }
.call-time { font-weight: 600; }
.call-incoming { display: flex; align-items: center; gap: 12px; background: var(--grad-soft); border: 1px solid rgba(47,107,255,.15); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.avatar { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; font-size: 1.1rem; box-shadow: var(--shadow-sm); }
.call-who { font-weight: 700; font-size: .95rem; }
.call-num { font-size: .82rem; color: var(--slate); }
.chat { display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
.bubble { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: .9rem; line-height: 1.45; }
.bubble.in { align-self: flex-start; background: #eef2f8; color: var(--ink-2); border-bottom-left-radius: 5px; }
.bubble.out { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 5px; box-shadow: 0 6px 14px rgba(47,107,255,.25); }
.booked-chip { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: .92rem; color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 12px; padding: 11px 14px; }
.booked-chip .check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: #fff; font-size: .78rem; }

.orb { position: absolute; border-radius: 50%; filter: blur(36px); z-index: 1; opacity: .55; }
.orb-a { width: 220px; height: 220px; background: rgba(47,107,255,.45); top: -30px; right: 30px; }
.orb-b { width: 180px; height: 180px; background: rgba(6,182,212,.45); bottom: -20px; left: 0; }

/* ---------- generic section ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 660px; margin: 0 auto clamp(34px, 5vw, 56px); text-align: center; }
.section-sub { font-size: 1.1rem; color: var(--slate); margin: 0; }
.section-sub.left { text-align: left; }

/* problem cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mini-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.mini-icon { font-size: 1.7rem; margin-bottom: 10px; }
.mini-card h3 { margin-bottom: .35em; }
.mini-card p { color: var(--slate); margin: 0; font-size: .98rem; }

/* steps */
.steps { display: grid; gap: 18px; max-width: 800px; margin: 0 auto; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-sm); }
.step-num { width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; font-family: var(--ff-head); font-weight: 800; font-size: 1.25rem; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(47,107,255,.3); }
.step h3 { margin-bottom: .3em; }
.step p { color: var(--slate); margin: 0; }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.f-icon { font-size: 1.6rem; width: 52px; height: 52px; border-radius: 14px; background: var(--grad-soft); display: grid; place-items: center; margin-bottom: 14px; }
.feature h3 { margin-bottom: .35em; }
.feature p { color: var(--slate); margin: 0; font-size: .96rem; }

/* why */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.check-list li { position: relative; padding-left: 38px; color: var(--slate); font-size: 1.02rem; }
.check-list li strong { color: var(--ink); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; font-size: .78rem; font-weight: 700; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(47,107,255,.3); }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); }
.plan.featured { border-color: rgba(47,107,255,.5); box-shadow: var(--shadow-md); transform: translateY(-6px); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-family: var(--ff-head); font-weight: 700; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; box-shadow: 0 6px 14px rgba(47,107,255,.35); }
.plan-name { font-size: 1.3rem; margin-bottom: .1em; }
.plan-for { color: var(--slate-2); font-size: .9rem; margin: 0 0 16px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 18px; }
.plan-price .amount { font-family: var(--ff-head); font-weight: 800; font-size: 2.6rem; letter-spacing: -.03em; color: var(--ink); }
.plan-price .per { color: var(--slate-2); font-weight: 600; }
.plan-feats { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 11px; flex: 1; }
.plan-feats li { position: relative; padding-left: 28px; color: var(--slate); font-size: .96rem; }
.plan-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.pricing-foot { text-align: center; color: var(--slate); margin: 34px 0 0; }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; font-family: var(--ff-head); font-weight: 600; font-size: 1.04rem; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--brand); font-weight: 400; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--slate); margin: 0 0 16px; max-width: 62ch; }

/* cta band */
.cta-band { background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 90px) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 50% 0%, rgba(47,107,255,.35), transparent 70%); }
.cta-inner { position: relative; text-align: center; max-width: 640px; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: #c3cee0; font-size: 1.12rem; margin-bottom: 28px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* footer */
.site-footer { background: #070d18; color: #aebdd4; padding: 56px 0 34px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-tag { margin: 12px 0 0; color: #8295b4; max-width: 30ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: flex-start; }
.footer-links a { color: #aebdd4; font-size: .95rem; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-fine { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 22px; font-size: .85rem; color: #6f80a0; }
.footer-fine p { margin: 0; }
.footer-disclosure { max-width: 60ch; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .pulse { animation: none; } }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .call-card { margin: 0 auto; }
  .lede { max-width: none; }
  .cards-3, .feature-grid, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
  .plan.featured { transform: none; }
}
@media (max-width: 760px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards-3, .feature-grid, .pricing-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .footer-inner { flex-direction: column; gap: 24px; }
}
