/* =========================================================
   MEERALABS DESIGN SYSTEM
   Ported from the production design system (apps/website/legacy).
   Rebranded, not redesigned — tokens, components and density are the
   legacy standard. New components (timeline, comparison table, chart
   frames) are additive and follow the same language.
   ========================================================= */
:root {
  --navy:       #0F1F3D;
  --navy-2:     #1A3260;
  --navy-mid:   #2D3B6B;
  --amber:      #E8A030;
  --amber-2:    #F0B448;
  --cream:      #FAF9F6;
  --cream-2:    #F3F1EC;
  --cream-3:    #EBE8E0;
  --ink:        #1A1814;
  --ink-2:      #3A3733;
  --ink-3:      #72706C;
  --ink-4:      #AEABA5;
  --green:      #2D9E6A;
  --red:        #D44444;
  --white:      #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-ui:      'Syne', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { background-color: var(--cream); color: var(--ink-3); font-family: var(--font-body); font-weight: 400; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img, video, svg { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── NAV ───────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; height: 64px; background: rgba(250,249,246,0.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid rgba(26,24,20,0.08); display: flex; align-items: center; }
.nav__inner { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__mark { width: 34px; height: 34px; background: var(--navy); border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav__mark span { font-family: var(--font-ui); font-weight: 800; font-size: 14px; color: var(--amber); letter-spacing: -0.04em; }
.nav__wordmark { font-family: var(--font-ui); font-weight: 800; font-size: 18px; color: var(--navy); letter-spacing: -0.03em; }
.nav__wordmark .period { color: var(--amber); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { font-family: var(--font-body); font-size: 14px; color: var(--ink-3); }
.nav__links a:hover { color: var(--navy); }
@media (max-width: 900px) { .nav__links { display: none; } }

/* ── LAYOUT ────────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section--cream { background: var(--cream); }
.section--cream-2 { background: var(--cream-2); }
.section--navy { background: var(--navy); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #F0EDEA; }
.section--navy p { color: rgba(240,237,234,0.50); }

/* ── TYPOGRAPHY ────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
.text-italic-accent, em.accent { font-family: var(--font-display); font-style: italic; font-weight: 400; color: var(--amber); }
.eyebrow { font-family: var(--font-ui); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); }
.label-ui { font-family: var(--font-ui); font-weight: 700; font-size: 0.875rem; color: var(--ink-2); }
p { font-size: 1rem; color: var(--ink-3); font-weight: 400; }
.heading-hero { font-size: clamp(40px, 5vw, 58px); }
.heading-section { font-size: clamp(30px, 4vw, 48px); }
.heading-section-sm { font-size: clamp(28px, 3.5vw, 44px); }
.heading-faq { font-size: clamp(28px, 3.5vw, 38px); }
.stat-number { font-size: 52px; letter-spacing: -0.03em; }
.stat-number-care { font-size: clamp(36px, 4vw, 52px); }

/* ── BUTTONS ───────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border: none; transition: background .18s ease, transform .18s ease, box-shadow .18s ease; text-decoration: none; }
.btn-primary { background: var(--navy); color: var(--white); font-family: var(--font-ui); font-weight: 700; font-size: 15px; border-radius: 10px; padding: 15px 32px; }
.btn-primary:hover { background: var(--navy-2); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(15,31,61,0.25); }
.btn-primary-amber { background: var(--amber); color: var(--navy); font-family: var(--font-ui); font-weight: 700; font-size: 14px; border-radius: 11px; padding: 13px 28px; }
.btn-primary-amber:hover { background: var(--amber-2); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(15,31,61,0.25); }
.btn-outline { background: transparent; color: var(--ink-3); font-family: var(--font-body); font-weight: 400; font-size: 14px; border-radius: 10px; padding: 12px 28px; border: 1.5px solid var(--cream-3); }
.btn-outline:hover { border-color: var(--ink-3); transform: translateY(-2px); }

/* ── CARDS ─────────────────────────────────────────────── */
.card { background: var(--white); border: 1px solid rgba(26,24,20,0.08); border-radius: 20px; padding: 32px; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; box-shadow: 0 4px 20px rgba(15,31,61,0.09), 0 10px 36px rgba(15,31,61,0.06); }
.card:hover { border-color: rgba(26,24,20,0.16); transform: translateY(-3px); }
.card__title { font-family: var(--font-ui); font-weight: 700; font-size: 1.1rem; color: var(--ink-2); margin-bottom: 8px; }

/* ── FORMS ─────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-label { font-family: var(--font-ui); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.form-input, .form-select, .form-textarea { background: var(--white); border: 1.5px solid var(--cream-3); border-radius: 10px; padding: 12px 16px; font-family: var(--font-body); font-size: 15px; font-weight: 400; color: var(--ink-2); width: 100%; outline: none; transition: border-color .18s ease, box-shadow .18s ease; appearance: none; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--ink-4); font-weight: 300; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(232,160,48,0.15); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-input--error { border-color: var(--red); }
.form-error { font-size: .8rem; color: var(--red); font-family: var(--font-body); }

/* ── BADGES ────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-ui); font-weight: 600; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 100px; }
.badge--green { background: rgba(45,158,106,0.12); color: var(--green); }
.badge--amber { background: rgba(232,160,48,0.15); color: #b87c1a; }
.badge--red   { background: rgba(212,68,68,0.12); color: var(--red); }
.badge--navy  { background: rgba(15,31,61,0.08); color: var(--navy); }
.badge-coming-soon { background: var(--amber); color: var(--navy); }
.badge-social { color: var(--navy); background: rgba(15,31,61,0.08); border: 1px solid rgba(15,31,61,0.15); }
.badge-care { color: #0F6E56; background: #E1F5EE; border: 1px solid #5DCAA5; }
.tag-includes { color: var(--ink-4); background: var(--cream-2); }

/* ── FEATURE LISTS / PRICING ───────────────────────────── */
.dot-navy  { width: 7px; height: 7px; min-width: 7px; border-radius: 50%; background: var(--navy);  margin-top: 6px; }
.dot-amber { width: 7px; height: 7px; min-width: 7px; border-radius: 50%; background: var(--amber); margin-top: 6px; }
.dot-teal  { width: 7px; height: 7px; min-width: 7px; border-radius: 50%; background: #1D9E75; margin-top: 6px; }
.feature-title { color: var(--ink-2); }
.feature-desc { font-size: 11px; color: var(--ink-3); }
.section-label { color: var(--ink-4); }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list--gap-bottom { margin-bottom: 20px; }
.feature-list--gap-bottom-lg { margin-bottom: 32px; }
.pricing-hr { border: none; border-top: 1px solid rgba(26,24,20,0.08); margin: 0 0 20px; }
.price-asterisk { color: var(--ink-4); font-size: 11px; }
.card-coming-soon { opacity: .92; }
.btn-disabled { color: var(--ink-4); background: var(--cream-2); }
.mt-auto { margin-top: auto; }

/* ── AVATARS (testimonial band) ────────────────────────── */
.avatar-navy  { background: linear-gradient(135deg, #0F1F3D 0%, #1E3A6E 100%); }
.avatar-green { background: linear-gradient(135deg, #2D9E6A, #1A7A50); }
.avatar-amber { background: linear-gradient(135deg, #E8A030, #C87820); }

/* ── ANIMATION / TEXTURE ───────────────────────────────── */
@keyframes pulse-dot { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.4; transform:scale(.7); } }
.pulse-dot, .pulse-dot-inline { animation: pulse-dot 2s ease-in-out infinite; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; } .d5 { transition-delay: .5s; }
.grain-overlay { background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.018'/%3E%3C/svg%3E"); pointer-events: none; }
.hero-arc { clip-path: ellipse(60% 100% at 50% 100%); }

/* ── FAQ ACCORDION ─────────────────────────────────────── */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease; }
.faq-item.open .faq-answer { max-height: 420px; padding-bottom: 20px; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }

/* ── ADDITIVE: charts, timeline, comparison table ──────── */
/* Chart frame — same card language, tighter padding, editorial captions */
.chart-frame { background: var(--white); border: 1px solid rgba(26,24,20,0.08); border-radius: 20px; padding: 28px; box-shadow: 0 4px 20px rgba(15,31,61,0.09), 0 10px 36px rgba(15,31,61,0.06); }
.section--navy .chart-frame { background: rgba(255,255,255,0.045); border-color: rgba(255,255,255,0.14); box-shadow: none; }
.chart-title { font-family: var(--font-ui); font-weight: 700; font-size: 15px; color: var(--ink-2); margin-bottom: 4px; }
.section--navy .chart-title { color: #F0EDEA; }
.chart-caption { font-family: var(--font-body); font-size: 11px; color: var(--ink-4); margin-top: 12px; line-height: 1.5; }
.section--navy .chart-caption { color: rgba(240,237,234,0.45); }

/* Product-UI panel (browser chrome + body) */
.ui-panel { background: var(--white); border: 1px solid rgba(0,0,0,0.13); border-radius: 20px; overflow: hidden; box-shadow: 0 8px 48px rgba(15,31,61,0.13), 0 24px 72px rgba(15,31,61,0.08); }
.ui-panel__bar { padding: 12px 20px; display: flex; align-items: center; gap: 12px; background: var(--navy); }
.ui-panel__dots { display: flex; gap: 6px; }
.ui-panel__dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.ui-panel__host { font-size: 11px; font-weight: 300; color: rgba(255,255,255,0.6); margin-left: 6px; }
.ui-panel__tag { margin-left: auto; font-family: var(--font-ui); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); }
.ui-panel__body { padding: 16px; background: var(--cream-2); }
.ui-row { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(26,24,20,0.06); font-size: 13px; color: var(--ink-3); }
.ui-row:last-child { border-bottom: none; }
.ui-row__time { font-family: var(--font-ui); font-size: 11px; font-weight: 600; color: var(--ink-4); min-width: 46px; }
.ui-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; margin-top: 5px; }
.ui-dot--in { background: var(--amber); }

/* 90-day engagement timeline */
.timeline { position: relative; padding-left: 0; }
.tl-phase { display: grid; grid-template-columns: 132px 1fr; gap: 28px; padding: 26px 0; border-bottom: 1px solid rgba(26,24,20,0.08); }
.tl-phase:last-child { border-bottom: none; }
.tl-days { font-family: var(--font-ui); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); padding-top: 4px; }
.tl-deliverable { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-family: var(--font-ui); font-weight: 600; font-size: 12px; color: var(--navy); background: rgba(232,160,48,0.14); border: 1px solid rgba(232,160,48,0.3); border-radius: 100px; padding: 5px 12px; }
@media (max-width: 700px) { .tl-phase { grid-template-columns: 1fr; gap: 8px; } }

/* Comparison table */
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid rgba(26,24,20,0.08); border-radius: 20px; overflow: hidden; box-shadow: 0 4px 20px rgba(15,31,61,0.09); }
.cmp th, .cmp td { padding: 16px 20px; text-align: left; border-bottom: 1px solid rgba(26,24,20,0.06); font-size: 14px; }
.cmp tr:last-child td { border-bottom: none; }
.cmp thead th { font-family: var(--font-ui); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; background: var(--cream-2); color: var(--ink-3); }
.cmp thead th:last-child { color: var(--navy); }
.cmp td:first-child { font-family: var(--font-ui); font-weight: 600; color: var(--ink-2); font-size: 13px; }
.cmp td.agency { color: var(--ink-4); font-weight: 300; }
.cmp td.ours { color: var(--ink-2); font-weight: 500; }

/* Ledger rows (ROI / break-even card) */
.ledger-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(26,24,20,0.06); }
.ledger-row:last-child { border-bottom: none; }
.ledger-label { font-size: 14px; color: var(--ink-3); font-weight: 300; }
.ledger-value { font-family: var(--font-ui); font-weight: 700; font-size: 14px; color: var(--ink-2); }
.ledger-value--green { color: var(--green); }
.ledger-total { display: flex; justify-content: space-between; align-items: flex-start; padding: 14px 16px; margin: 6px -16px 0; background: rgba(232,160,48,0.05); border: 1px solid rgba(232,160,48,0.2); border-radius: 12px; }

/* Responsive */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  h1 { font-size: 2rem; } h2 { font-size: 1.6rem; }
  .card { padding: 24px; }
  .btn-primary, .btn-primary-amber { padding: 13px 24px; font-size: 14px; }
  .stat-number { font-size: 38px; }
  /* The comparison table can't shrink below its content — let it scroll
     inside its own box instead of pushing the whole page sideways. */
  .cmp { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cmp th, .cmp td { padding: 12px 14px; font-size: 13px; }
  .cmp td:first-child, .cmp thead th:first-child { position: sticky; left: 0; background: var(--cream-2); }
  .cmp tbody td:first-child { background: var(--white); }
}

/* Comfortable tap targets on touch devices (the hamburger especially) */
@media (pointer: coarse), (max-width: 900px) {
  .js-hamburger { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}
