/* =========================================================================
   Exactabase — Restaurant data intelligence  ·  marketing site styles
   ========================================================================= */

:root {
  --ink:        #14272e;   /* deep slate-teal text            */
  --ink-soft:   #2c4047;   /* softer ink                      */
  --muted:      #5d7178;   /* secondary text                  */
  --bg:         #f4f9f8;   /* cool off-white page             */
  --bg-card:    #ffffff;   /* cards / panels                  */
  --bg-sunk:    #e9f3f1;   /* sunken / code surfaces          */
  --line:       #dde9e7;   /* hairline borders                */
  --line-soft:  #e9f1ef;
  --accent:     #0d9488;   /* teal (primary)                  */
  --accent-ink: #0f766e;   /* darker teal (hover)             */
  --accent-soft:#d6efea;   /* accent wash                     */
  --accent-2:   #2563eb;   /* blue (gradient partner)         */
  --good:       #1f9d6b;   /* grounded / positive (green)     */
  --good-soft:  #def2e8;
  --warn:       #c2410c;   /* attention / low value (amber)   */

  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(28,24,20,.06), 0 1px 1px rgba(28,24,20,.04);
  --shadow-md: 0 12px 30px -12px rgba(28,24,20,.22), 0 4px 10px -6px rgba(28,24,20,.12);
  --shadow-lg: 0 30px 70px -28px rgba(28,24,20,.32);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-disp: "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- type ---------------------------------------------------------------- */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
.display {
  font-family: var(--font-disp);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.lede { font-size: 19px; color: var(--muted); }
.mono { font-family: var(--font-mono); }

/* ---- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 550;
  padding: 12px 20px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---- nav ----------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,249,248,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; letter-spacing: -.02em; }
.brand .logo {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #fff; font-family: var(--font-disp); font-size: 16px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.link { font-size: 15px; color: var(--muted); transition: color .15s; }
.nav-links a.link:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

/* ---- hero ---------------------------------------------------------------- */
.hero { padding: 76px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 520px;
  background: radial-gradient(60% 80% at 70% 0%, rgba(13,148,136,.12), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; position: relative; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { margin: 22px 0 30px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px var(--good-soft); }

/* ---- product mock (the "screenshot") ------------------------------------- */
.window {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.window-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: #fff; }
.window-bar .tl { display: flex; gap: 7px; }
.window-bar .tl i { width: 11px; height: 11px; border-radius: 50%; background: #d7e4e1; }
.window-bar .addr {
  margin-left: 10px; flex: 1; font-size: 12.5px; color: var(--muted);
  font-family: var(--font-mono); background: var(--bg-sunk); border-radius: 7px; padding: 5px 12px;
  display: flex; align-items: center; gap: 7px;
}
.window-bar .addr svg { width: 12px; height: 12px; opacity: .6; }

.chat { padding: 22px; display: flex; flex-direction: column; gap: 16px; background: linear-gradient(180deg,#fff, #fafdfc); }
.msg { display: flex; gap: 12px; max-width: 100%; }
.msg .av { width: 30px; height: 30px; border-radius: 8px; flex: 0 0 30px; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.msg.user .av { background: var(--bg-sunk); color: var(--muted); }
.msg.bot .av { background: linear-gradient(150deg, var(--accent), var(--accent-2)); color: #fff; font-family: var(--font-disp); }
.bubble { background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; font-size: 15px; }
.msg.user .bubble { background: var(--bg-sunk); border-color: transparent; font-weight: 500; }
.msg.bot .bubble { box-shadow: var(--shadow-sm); }
.badge-grounded {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  color: var(--good); background: var(--good-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.badge-grounded::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--good); }

.fig-table { width: 100%; border-collapse: collapse; margin: 12px 0 6px; font-family: var(--font-mono); font-size: 12.5px; }
.fig-table th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.fig-table td { padding: 6px 10px; border-bottom: 1px solid var(--line-soft); }
.fig-table td.num { text-align: right; }
.fig-table .lo { color: var(--warn); font-weight: 600; }
.fig-table .hi { color: var(--good); font-weight: 600; }
.source-line { font-size: 12px; color: var(--muted); margin-top: 8px; }
.source-line .mono { color: var(--ink); }

.ask-bar {
  display: flex; align-items: center; gap: 10px; margin: 4px 22px 22px;
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; background: #fff;
}
.ask-bar input { border: 0; outline: 0; flex: 1; font-size: 15px; font-family: var(--font-sans); background: transparent; color: var(--ink); }
.ask-bar .send { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; }

/* ---- logos / trust strip ------------------------------------------------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-card); }
.strip-inner { display: flex; gap: 38px; flex-wrap: wrap; justify-content: center; padding: 22px 24px; }
.strip-item { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); }
.strip-item svg { width: 17px; height: 17px; color: var(--accent); }

/* ---- generic sections ---------------------------------------------------- */
section.block { padding: 86px 0; }
section.block.alt { background: var(--bg-card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 680px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.sec-head p { margin: 14px 0 0; font-size: 18px; color: var(--muted); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---- how it works -------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
section.block.alt .step { background: var(--bg); }
.step .n { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 600; }
.step .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 14px 0 16px; }
.step .ic svg { width: 21px; height: 21px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { margin: 0; font-size: 14.5px; color: var(--muted); }
.step .arrow { position: absolute; right: -16px; top: 50%; transform: translateY(-50%); color: var(--line); z-index: 2; }

/* ---- features ------------------------------------------------------------ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); box-shadow: var(--shadow-sm); }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.feature .ic svg { width: 23px; height: 23px; }
.feature h3 { font-size: 20px; margin-bottom: 10px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }
.feature .demo-q { margin-top: 16px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink); background: var(--bg-sunk); border-radius: 8px; padding: 10px 12px; }

/* ---- sample Q&A cards ---------------------------------------------------- */
.qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.qa { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.qa .q { padding: 18px 20px; font-weight: 550; font-size: 15.5px; border-bottom: 1px solid var(--line-soft); display: flex; gap: 10px; }
.qa .q::before { content: "?"; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 13px; }
.qa .a { padding: 16px 20px 20px; font-size: 14.5px; color: var(--muted); }
.qa .a .num { font-family: var(--font-mono); color: var(--ink); font-weight: 600; }
.qa .a .verdict { color: var(--ink); font-weight: 550; }
.qa .src { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); font-family: var(--font-mono); }

/* ---- phases -------------------------------------------------------------- */
.phases { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.phase { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: var(--bg-card); }
.phase.p2 { background: var(--ink); color: #f4ece2; border-color: var(--ink); }
.phase .tag { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; display: inline-block; }
.phase.p1 .tag { background: var(--accent-soft); color: var(--accent); }
.phase.p2 .tag { background: rgba(255,255,255,.12); color: #f0c9b4; }
.phase h3 { font-size: 24px; margin: 16px 0 6px; }
.phase .sub { font-size: 14px; opacity: .8; margin-bottom: 18px; }
.phase ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.phase li { display: flex; gap: 11px; font-size: 15px; }
.phase li svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
.phase.p2 li svg { color: #e89a6b; }

/* ---- guides -------------------------------------------------------------- */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.guide-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-card); transition: transform .18s ease, box-shadow .18s ease; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.guide-card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--accent-soft), #dceef7); position: relative; }
.guide-card .thumb .k { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-disp); font-size: 40px; color: var(--accent); opacity: .55; }
.guide-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.guide-card .kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.guide-card h3 { font-size: 18px; margin-bottom: 8px; }
.guide-card p { margin: 0 0 16px; font-size: 14.5px; color: var(--muted); }
.guide-card .read { margin-top: auto; font-size: 14px; font-weight: 550; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band { background: var(--ink); color: #f4ece2; border-radius: 24px; padding: 60px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: auto -10% -60% 30%; height: 360px; background: radial-gradient(50% 60% at 50% 100%, rgba(37,99,235,.38), transparent 70%); }
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); position: relative; }
.cta-band p { font-size: 18px; opacity: .82; max-width: 520px; margin: 16px auto 28px; position: relative; }
.cta-band .btn-ghost { color: #f4ece2; border-color: rgba(255,255,255,.25); }
.cta-band .btn-ghost:hover { border-color: #fff; }

/* ---- footer -------------------------------------------------------------- */
footer { padding: 60px 0 40px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
footer .brand { margin-bottom: 14px; }
footer .tagline { font-size: 14px; color: var(--muted); max-width: 260px; }
.foot-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 14px; font-weight: 600; }
.foot-col a { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 10px; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 12px; }

/* ---- article (guide pages) ----------------------------------------------- */
.article { max-width: 720px; margin: 0 auto; padding: 50px 24px 80px; }
.article .kicker { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.article h1 { font-size: clamp(32px, 5vw, 46px); margin: 14px 0 16px; }
.article .meta { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.article h2 { font-size: 26px; margin: 40px 0 14px; }
.article p { color: #34302a; margin: 0 0 18px; }
.article ul { color: #34302a; padding-left: 22px; margin: 0 0 18px; }
.article li { margin-bottom: 8px; }
.article .callout { background: var(--bg-sunk); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 24px 0; font-size: 15.5px; }
.article blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--line); color: var(--muted); font-family: var(--font-disp); font-size: 20px; }
.back { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.back:hover { color: var(--accent); }

/* ---- reveal animation ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- responsive ---------------------------------------------------------- */
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; }
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step .arrow { display: none; }
  .features, .qa-grid, .guides { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  section.block { padding: 60px 0; }
  .cta-band { padding: 40px 24px; }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- contact form (inside dark .cta-band) -------------------------------- */
.contact-form { max-width: 540px; margin: 30px auto 0; text-align: left; position: relative; }
.contact-form .field-row { display: flex; gap: 12px; }
.contact-form input,
.contact-form textarea {
  width: 100%; font-family: var(--font-sans); font-size: 15px; color: #fff;
  padding: 13px 15px; margin-bottom: 12px; border-radius: 11px;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06);
  outline: none; transition: border-color .15s ease, background .15s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,.52); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); background: rgba(255,255,255,.1); }
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-form button { width: 100%; justify-content: center; margin-top: 4px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) {
  .contact-form .field-row { flex-direction: column; gap: 0; }
}
