/* Viridora marketing site — shared stylesheet.
   Every page (index, pricing, how-it-works, demo, faq) links this file
   instead of repeating the same ~400 lines of CSS. Page-specific styles
   stay small and inline per page, right below this link. Design tokens are
   the exact same values as the dashboard's own tokens
   (apps/dashboard/src/index.css) — not independently chosen, so every
   surface reads as one product. */

:root {
  --color-primary: #1F4D3D;
  --color-primary-dark: #163A2E;
  --color-cream: #F7F4EC;
  --color-white: #FFFFFF;
  --color-text: #1A1A18;
  --color-text-muted: #4A4A43;
  --color-text-subtle: #8A8A80;
  --color-gold: #B08D57;
  --color-gold-ink: #8A6A3E;
  --color-border: #E5E0D2;
  --font-serif: "Source Serif 4", Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-card: 14px;
  --radius-control: 8px;
  --shadow-card: 0 1px 2px rgba(22, 58, 46, 0.07), 0 10px 26px -6px rgba(22, 58, 46, 0.14);
  --shadow-card-hover: 0 4px 10px rgba(22, 58, 46, 0.09), 0 20px 40px -10px rgba(22, 58, 46, 0.20);
  --shadow-lift: 0 16px 40px -10px rgba(22, 58, 46, 0.28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-sans); color: var(--color-text);
  background: var(--color-cream); line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: var(--color-primary); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
section { padding: 108px 0; }
section.tight { padding: 72px 0; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; color: var(--color-text); margin: 0 0 12px; letter-spacing: -0.012em; text-wrap: balance; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 16px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.11em; font-size: 0.72rem;
  font-weight: 700; color: var(--color-gold-ink); margin-bottom: 12px;
}
.lede { font-size: 1.12rem; color: var(--color-text-muted); max-width: 58ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* Page header — a compact version of the hero used on every page besides
   Home, so each page still opens with a clear "here's what this page is"
   statement instead of dropping straight into content. */
header.page-header {
  background: linear-gradient(180deg, var(--color-primary-dark), var(--color-primary) 60%);
  color: var(--color-cream); padding: 76px 24px 64px; text-align: center;
}
header.page-header .eyebrow { color: var(--color-gold); }
header.page-header h1 { color: white; font-size: clamp(2rem, 4vw, 2.7rem); margin: 0 0 14px; }
header.page-header p { color: #DCE8E2; max-width: 56ch; margin: 0 auto; font-size: 1.08rem; }

/* Nav — a floating glass bar, not a flat block, so scrolling content reads
   as passing behind it rather than under a hard edge. */
.site-nav {
  position: sticky; top: 0; z-index: 20; background: rgba(22, 58, 46, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 14px 0; border-bottom: 1px solid rgba(247, 244, 236, 0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-inner img { width: 30px; height: 30px; filter: url(#cream-outline); }
.nav-inner .brand-link { text-decoration: none; display: flex; align-items: center; gap: 10px; flex: none; }
.nav-inner .brand-link span {
  font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; color: var(--color-cream);
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; padding: 0; margin: 0; flex: 1; justify-content: center; }
.nav-links a {
  color: #C7DAD1; text-decoration: none; font-size: 0.92rem; font-weight: 500;
  padding: 6px 2px; border-bottom: 2px solid transparent; transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover { color: white; }
.nav-links a.active { color: white; border-bottom-color: var(--color-gold); }
.nav-inner .nav-cta { font-size: 0.85rem; padding: 10px 20px; flex: none; }
.nav-toggle {
  display: none; background: none; border: none; color: white; padding: 4px; cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; display: block; }

/* CTA button, one style, reused everywhere */
.cta-button {
  display: inline-block; background: var(--color-gold); color: var(--color-primary-dark);
  font-weight: 700; text-decoration: none; padding: 16px 36px; border-radius: var(--radius-control);
  border: none; cursor: pointer; font-size: 1rem; font-family: var(--font-sans);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px -2px rgba(176,141,87,0.45);
}
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -4px rgba(176,141,87,0.55); }
.cta-button.outline {
  background: transparent; color: var(--color-primary); border: 1px solid var(--color-primary);
  box-shadow: none;
}
.cta-button.outline:hover { background: rgba(31,77,61,0.06); box-shadow: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-row.center { justify-content: center; }
/* Every "Book a Demo" link starts hidden and only appears once
   demo-config.js's VIRIDORA_DEMO_URL is actually set to a real Cal.com
   link — see that file's own comment. Never shown pointing at a
   placeholder. */
.demo-cta-hidden { display: none !important; }

/* Feature/step/mockup cards — same radius as the dashboard's own Card
   component, with a subtle inner top highlight for real depth instead of
   a flat bordered box. */
.card-grid { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 0; }
.feature-card, .step-card, .info-card {
  flex: 1; min-width: 240px; background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 32px;
  transition: transform 0.18s ease, box-shadow 0.18s ease; position: relative;
}
.feature-card::before, .step-card::before, .info-card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); padding: 1px;
  background: linear-gradient(160deg, rgba(255,255,255,0.9), rgba(255,255,255,0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.feature-card:hover, .step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.feature-card svg { margin-bottom: 16px; }
.feature-card h3, .step-card h3, .info-card h3 { margin-bottom: 6px; }
.feature-card p, .step-card p, .info-card p { font-size: 0.95rem; color: var(--color-text-muted); margin: 0; }
.step-card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--color-primary);
  color: white; font-family: var(--font-serif); font-weight: 700; margin-bottom: 16px; font-size: 0.98rem;
}

/* Product mockup panel — the widget's own visual language (same header
   treatment, same message-bubble colors as the real chat), reused
   wherever the site shows "here's what it actually looks like." */
.mockup-panel {
  width: 100%; background: var(--color-white);
  border-radius: 16px; box-shadow: 0 24px 60px -12px rgba(0,0,0,0.4);
  overflow: hidden;
}
.mockup-header {
  background: var(--color-primary-dark); color: white; padding: 14px 16px;
  display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600;
}
.mockup-header .mockup-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-gold); }
.mockup-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #FAFAF7; }
.mockup-bubble { padding: 10px 14px; border-radius: 12px; font-size: 0.86rem; line-height: 1.45; max-width: 82%; }
.mockup-bubble.agent { background: #EFEDE4; color: var(--color-text); align-self: flex-start; border-bottom-left-radius: 4px; }
.mockup-bubble.visitor { background: var(--color-primary); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.mockup-footer {
  padding: 10px 14px; background: var(--color-white); border-top: 1px solid var(--color-border);
  font-size: 0.78rem; color: var(--color-text-subtle);
}

/* Dashboard-style mockup — for showing the Inbox / Lead Brief / Analytics
   panels on the Demo page. Same tokens as the real dashboard's own Card
   and badge components, hand-built here since the marketing site has no
   framework to import them from — never a raster screenshot, see the
   Demo page's own content note on why. */
.dash-mockup {
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.dash-mockup-bar {
  background: var(--color-cream); border-bottom: 1px solid var(--color-border);
  padding: 10px 16px; display: flex; gap: 7px;
}
.dash-mockup-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--color-border); }
.dash-mockup-body { padding: 24px; }
.badge {
  display: inline-flex; align-items: center; font-size: 0.72rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px; margin-right: 6px;
}
.badge.buyer { background: #EAF1EC; color: var(--color-primary); }
.badge.warm { background: #FBF1E4; color: var(--color-gold-ink); }
.dash-field-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-text-subtle); margin: 14px 0 3px;
}
.dash-quote {
  border-left: 2px solid var(--color-gold); padding-left: 12px; font-style: italic;
  color: var(--color-text-muted); margin: 12px 0;
}
.dash-shot-note {
  text-align: center; font-size: 0.85rem; color: var(--color-text-subtle); max-width: 60ch;
  margin: 18px auto 0;
}

/* Inbox-style mockup — a two-column list/detail layout, same tokens as
   .dash-mockup, for pages that want to show "here's the inbox" rather
   than a single-panel view. */
.inbox-mockup { display: grid; grid-template-columns: 1fr 1.4fr; min-height: 340px; }
.inbox-list { border-right: 1px solid var(--color-border); }
.inbox-row { padding: 14px 16px; border-bottom: 1px solid var(--color-border); background: #FBF9F4; }
.inbox-row .inbox-name { font-weight: 600; font-size: 0.92rem; margin-bottom: 2px; }
.inbox-row .inbox-snippet { font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: 6px; }
.inbox-detail { padding: 20px; }
.inbox-detail .contact-name { font-weight: 600; font-size: 0.98rem; }
.inbox-detail .contact-email { font-size: 0.82rem; color: var(--color-text-subtle); margin-bottom: 14px; }
@media (max-width: 640px) {
  .inbox-mockup { grid-template-columns: 1fr; }
  .inbox-list { border-right: none; border-bottom: 1px solid var(--color-border); }
}

/* Analytics stat tiles — small illustrative numbers, always clearly
   generic/synthetic, never pulled from a real or staged workspace. */
.stat-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.stat-tile { flex: 1; min-width: 120px; background: var(--color-cream); border: 1px solid var(--color-border); border-radius: var(--radius-control); padding: 14px 16px; }
.stat-tile .stat-num { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--color-primary); }
.stat-tile .stat-label { font-size: 0.78rem; color: var(--color-text-muted); }

/* Scheduling-slot pills — for showing "real times, offered in the
   conversation" as a concrete visual rather than only describing it in a
   chat bubble. Illustrative times only, never tied to a real listing. */
.slot-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.slot-pill {
  font-size: 0.78rem; font-weight: 600; color: var(--color-primary); background: var(--color-white);
  border: 1px solid var(--color-primary); border-radius: 999px; padding: 6px 14px;
}

/* Pricing */
.pricing-grid { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 0; align-items: stretch; }
.plan {
  flex: 1; min-width: 280px; border: 1px solid var(--color-border); border-radius: var(--radius-card);
  padding: 34px; background: var(--color-cream); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.plan.premium {
  border-color: var(--color-gold); box-shadow: var(--shadow-lift); background: var(--color-white);
  transform: scale(1.02);
}
.plan-tag {
  align-self: flex-start; background: var(--color-primary); color: var(--color-cream);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.plan h3 { margin: 0 0 4px; }
.plan .price { font-family: var(--font-serif); font-size: 2.3rem; font-weight: 700; color: var(--color-primary); margin: 6px 0; }
.plan.premium .price { color: var(--color-gold-ink); }
.plan .price span { font-size: 0.85rem; font-weight: 400; color: var(--color-text-muted); font-family: var(--font-sans); }
.plan .plan-desc { font-size: 0.92rem; color: var(--color-text-muted); margin: 0; }
.plan .then { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--color-border); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; font-size: 0.93rem; color: var(--color-text-muted); flex: 1; }
.plan ul li { margin-bottom: 11px; line-height: 1.5; display: flex; gap: 10px; align-items: flex-start; }
.plan ul li::before {
  content: ""; flex: none; width: 17px; height: 17px; margin-top: 2px; border-radius: 50%;
  background: var(--color-primary); mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / 10px no-repeat;
}
.plan.premium ul li::before { background: var(--color-gold-ink); }
.pricing-note {
  font-size: 0.88rem; color: var(--color-text-muted); margin-top: 28px;
  background: #FBF7EE; border: 1px solid var(--color-border); border-radius: var(--radius-control); padding: 16px 20px;
}
.pricing-note strong { color: var(--color-text); }

/* FAQ accordion */
.faq-group { margin-bottom: 40px; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group-title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-gold-ink); margin-bottom: 18px; }
.faq-item {
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-control);
  margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  padding: 18px 20px; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; font-size: 1.3rem; color: var(--color-gold-ink); font-weight: 400; line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 20px 18px; margin: 0; color: var(--color-text-muted); font-size: 0.95rem; }

/* Dark accent section — the hero/final-CTA treatment, reused wherever a
   page wants one deliberate dark viridian block instead of a full
   dark-mode theme (see Phase 36.11 plan on why a real theme is deferred). */
section.accent-dark {
  background:
    radial-gradient(ellipse 900px 480px at 50% -10%, rgba(176,141,87,0.18), transparent 55%),
    linear-gradient(180deg, var(--color-primary-dark), var(--color-primary) 60%);
  color: var(--color-cream);
}
section.accent-dark h2 { color: white; }
section.accent-dark p { color: #DCE8E2; }
section.accent-dark .eyebrow { color: var(--color-gold); }

/* Final CTA — a dark bookend, not a plain white strip */
section.final-cta {
  background:
    radial-gradient(ellipse 700px 400px at 50% 120%, rgba(176,141,87,0.16), transparent 60%),
    linear-gradient(180deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-cream); text-align: center;
}
section.final-cta h2 { color: white; }
section.final-cta p { color: #DCE8E2; }
section.final-cta .cta-row { justify-content: center; }

footer {
  background: var(--color-primary-dark); color: #B9C9C1; padding: 48px 24px; font-size: 0.85rem;
}
footer .wrap { text-align: center; }
footer a { color: #DCE8E2; }
footer .footer-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
footer .footer-brand img { width: 22px; height: 22px; filter: url(#cream-outline); }
footer .footer-links { margin: 4px 0 0; }
footer .footer-links a { margin: 0 8px; }
footer .legal-lines { margin-top: 16px; color: #93A79C; line-height: 1.7; }
footer .legal-lines p { margin: 4px 0; }

svg { max-width: 100%; height: auto; }

/* Mobile nav — a full-width dropdown panel under the nav bar, toggled by
   .nav-toggle, rather than an off-canvas drawer (simpler, no extra
   overlay/backdrop logic needed for five links). */
.nav-mobile-panel {
  display: none; flex-direction: column; gap: 2px; padding: 8px 0 4px;
  border-top: 1px solid rgba(247, 244, 236, 0.1);
}
.nav-mobile-panel.open { display: flex; }
.nav-mobile-panel a {
  color: #DCE8E2; text-decoration: none; font-size: 0.98rem; padding: 12px 4px;
  border-bottom: 1px solid rgba(247, 244, 236, 0.06);
}
.nav-mobile-panel a.active { color: var(--color-gold); font-weight: 600; }
.nav-mobile-panel .cta-button { margin-top: 12px; text-align: center; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-inner .nav-cta { display: none; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  h2 { font-size: 1.65rem; }
  header.page-header { padding: 60px 20px 52px; }
  .card-grid, .pricing-grid { flex-direction: column; }
  .feature-card, .step-card, .info-card, .plan { min-width: 0; width: 100%; }
  .plan.premium { transform: none; }
  .nav-inner .nav-cta { display: none; }
}
