/* Ascensia funnel pages — matches the design system already live in the
   ascensia-v2-build repo (app/globals.css). Same tokens, same component
   classes, so this reads as one site with the rest of the brand. */
:root {
  --primary-dark: #1c2333;
  --accent-cyan: #3aabdc;
  --white: #ffffff;
  --bg-light: #f4f7fa;
  --text-dark: #1c2333;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --green: #15803d;
  --green-bg: #dcfce7;
  --red: #b91c1c;
  --red-bg: #fee2e2;
  --card-dark: #162030;
  --callout-dark: #0f1a2b;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.5;
  padding-top: 72px; /* fixed navbar */
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent-cyan);
  outline-offset: 2px;
}

.label {
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-filled { background: var(--accent-cyan); color: var(--white); }
.btn-filled:hover { background: #2f93c2; }
.btn-outline { background: transparent; color: var(--white); border: 1px solid var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-outline-dark { background: transparent; color: var(--text-dark); border: 1px solid var(--text-dark); }
.btn-outline-dark:hover { background: rgba(0,0,0,0.05); }
.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #1fb257; }

/* ---------- navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--primary-dark);
  border-bottom: 1px solid #2a3650;
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 52px; width: auto; display: block; }
.nav-logo-text { font-weight: 700; font-size: 20px; color: var(--white); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link { color: #94a3b8; font-size: 14px; font-weight: 500; }
.nav-link:hover { color: var(--accent-cyan); }
.nav-cta { padding: 10px 20px; font-size: 14px; }
@media (max-width: 700px) {
  .nav-links .nav-link { display: none; }
}

/* ---------- hero — sized to match the confirm-page header exactly ---------- */
.hero {
  background: var(--primary-dark);
  padding: 100px 24px 64px;
  text-align: center;
}
.hero-inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero-label { margin-bottom: 20px; }
.hero h1 { font-size: 48px; font-weight: 800; color: var(--white); line-height: 1.1; margin-bottom: 8px; }
.hero h2 { font-size: 34px; font-weight: 800; font-style: italic; color: var(--accent-cyan); line-height: 1.15; margin-bottom: 20px; }
.hero p.lede { font-size: 17px; color: #94a3b8; max-width: 560px; margin-bottom: 28px; }
.hero p.leaks { font-size: 15px; color: #cbd5e1; max-width: 620px; margin-bottom: 28px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.hero-fineprint { font-size: 13px; color: var(--text-muted); }
@media (max-width: 700px) {
  .hero h1 { font-size: 34px; }
  .hero h2 { font-size: 24px; }
}

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-light { background: var(--bg-light); }
.section-dark { background: var(--primary-dark); }
.section-plain { background: var(--white); }
.section-heading { text-align: center; margin-bottom: 40px; }
.section-heading .label { display: block; margin-bottom: 12px; }
.section-heading h2 { font-size: 32px; font-weight: 700; }
.section-dark .section-heading h2 { color: var(--white); }
.section-dark p { color: #94a3b8; }
h2 { font-size: 28px; font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }

/* ---------- problem cards ---------- */
.cards-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 800px) { .cards-row { grid-template-columns: 1fr; } }
.card-light { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 24px; }
.loss { color: var(--red); font-weight: 700; }

/* ---------- check list / offer box ---------- */
.check-list li { padding-left: 26px; position: relative; margin-bottom: 14px; color: var(--text-dark); }
.section-dark .check-list li { color: #cbd5e1; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-cyan);
}
.offer-box {
  background: var(--callout-dark); border-left: 4px solid var(--accent-cyan);
  padding: 24px; border-radius: 6px; color: #cbd5e1; font-size: 16px; margin-top: 24px;
}

/* ---------- how it works (3 pillars, dark cards) ---------- */
.cards-row-dark { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 800px) { .cards-row-dark { grid-template-columns: 1fr; } }
.card-dark {
  background: var(--card-dark); border-top: 3px solid var(--accent-cyan);
  border-radius: 6px; padding: 28px; display: flex; flex-direction: column;
}
.card-dark .card-phase { font-family: "Courier New", Courier, monospace; font-size: 12px; color: var(--accent-cyan); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.card-dark h3 { color: var(--white); font-size: 19px; margin-bottom: 10px; }
.card-dark p { color: #94a3b8; font-size: 14px; margin-bottom: 10px; }
.card-dark .card-outcome { color: var(--accent-cyan); font-size: 13px; font-weight: 600; margin-top: auto; padding-top: 10px; border-top: 1px solid #2a3650; }
.card-dark .card-list { margin-bottom: 14px; }
.card-dark .card-list li { font-size: 14px; margin-bottom: 8px; }

/* ---------- proof / case studies — uniform grid, equal card sizes ---------- */
.case-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; align-items: stretch; }
@media (max-width: 700px) { .case-grid { grid-template-columns: 1fr; } }
.proof-card {
  background: var(--callout-dark); border-left: 4px solid var(--accent-cyan);
  border-radius: 6px; padding: 24px;
  display: flex; flex-direction: column; height: 100%;
}
.proof-card .label { margin-bottom: 14px; display: block; }
.proof-result { font-size: 26px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.proof-subtext { font-size: 13px; color: var(--accent-cyan); margin-bottom: 12px; }
.proof-card p.body { color: #94a3b8; font-size: 14px; }
/* legacy — no longer used on case cards, kept in case other pages reference it */
.metric-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 20px 0; }
.metric-box { background: rgba(0,0,0,0.2); border-radius: 8px; padding: 12px; }
.metric-number { font-size: 22px; font-weight: 700; color: var(--white); }
.metric-label { font-size: 12px; color: var(--white); margin-top: 2px; }
.metric-note { font-size: 11px; color: #94a3b8; margin-top: 2px; }

/* ---------- what makes this different (named mechanisms) ---------- */
.grid-2col { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
@media (max-width: 700px) { .grid-2col { grid-template-columns: 1fr; } }
.card-accent {
  background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--accent-cyan);
  border-radius: 6px; padding: 20px;
}
.card-accent h3 { font-size: 17px; margin-bottom: 8px; }
.card-accent p { font-size: 14px; color: var(--text-muted); }

/* ---------- who it's for ---------- */
.fit-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
@media (max-width: 700px) { .fit-grid { grid-template-columns: 1fr; } }
.fit-col { border-radius: 6px; padding: 32px; border: 1px solid transparent; }
.fit-yes { background: var(--green-bg); border-color: var(--green); }
.fit-no { background: var(--red-bg); border-color: var(--red); }
.fit-col h3 { font-size: 19px; margin-bottom: 18px; }
.fit-yes h3 { color: var(--green); }
.fit-no h3 { color: var(--red); }
.fit-col li { display: flex; gap: 10px; font-size: 15px; margin-bottom: 12px; color: var(--text-dark); }
.fit-yes li span { color: var(--green); font-weight: 700; }
.fit-no li span { color: var(--red); font-weight: 700; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: start; }
@media (max-width: 700px) { .about-grid { grid-template-columns: 1fr; } }
.about-photo { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; background: var(--card-dark); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 20px; }
@media (max-width: 700px) { .stat-row { grid-template-columns: 1fr; } }
.stat-box { border: 1px solid var(--border); border-radius: 6px; padding: 16px; text-align: center; background: var(--white); }
.stat-number { font-size: 24px; font-weight: 700; color: var(--accent-cyan); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ---------- accordion ---------- */
.accordion-item {
  border: 1px solid var(--border); border-radius: 6px; margin-bottom: 12px;
  overflow: hidden; background: var(--white);
}
.section-dark .accordion-item { background: var(--card-dark); border-color: #2a3650; }
.accordion-item summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.section-dark .accordion-item summary { color: var(--white); }
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after { content: "+"; font-size: 20px; color: var(--accent-cyan); flex-shrink: 0; }
.accordion-item[open] summary::after { content: "\2212"; }
.accordion-body { padding: 0 20px 18px; color: var(--text-muted); }
.section-dark .accordion-body { color: #94a3b8; }
.accordion-video { position: relative; width: 100%; padding-top: 56.25%; margin: 0 20px 14px; border-radius: 8px; overflow: hidden; background: #000; }
.accordion-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- booking ---------- */
#book { scroll-margin-top: 88px; }
.calendly-wrap { background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; padding: 8px; }
.guarantee-note { font-size: 13px; color: var(--text-muted); margin-top: 16px; max-width: 640px; }
.cta-fineprint { margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.cta-section { text-align: center; }
.cta-section .section-heading p { color: var(--text-muted); max-width: 520px; margin: 0 auto; }

/* ---------- footer ---------- */
.footer { background: var(--primary-dark); padding: 40px 0; }
.footer-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  padding-bottom: 24px; border-bottom: 1px solid #1f2c40;
}
.footer-brand strong { color: var(--white); font-size: 18px; display: block; margin-bottom: 4px; }
.footer-brand span { color: #94a3b8; font-size: 14px; }
.footer-logo-img { width: 130px; height: auto; display: block; margin-bottom: 10px; border-radius: 6px; }
.footer-contact { color: #94a3b8; font-size: 14px; text-align: right; }
.footer-contact a { color: #94a3b8; }
.footer-contact a:hover { color: var(--accent-cyan); }
.footer-copyright { padding-top: 24px; text-align: center; color: #64748b; font-size: 13px; }
@media (max-width: 700px) {
  .footer-inner { flex-direction: column; }
  .footer-contact { text-align: left; }
}

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2); padding: 18px; z-index: 1100;
}
.cookie-banner p { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.cookie-banner .cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner button {
  font-family: var(--font); font-size: 14px; font-weight: 600; padding: 10px 18px;
  border-radius: 6px; cursor: pointer; border: 1px solid var(--primary-dark);
  background: var(--primary-dark); color: var(--white);
}
.cookie-banner button.reject { background: var(--white); color: var(--primary-dark); }
[hidden] { display: none !important; }

/* ---------- confirmed page (matches the Lovable confirm-page look) ---------- */
.confirm-page { background: var(--primary-dark); min-height: 100vh; padding: 56px 24px 100px; }
.confirm-inner { max-width: 720px; margin: 0 auto; }
.confirm-header { text-align: center; margin-bottom: 40px; }
.confirm-wordmark { display: block; text-transform: uppercase; letter-spacing: 3px; font-weight: 700; font-size: 14px; color: var(--white); margin-bottom: 36px; }
.confirm-header h1 { font-size: 48px; color: var(--white); font-weight: 800; margin-bottom: 8px; line-height: 1.1; }
.confirm-header h2 { font-size: 34px; color: var(--accent-cyan); font-style: italic; font-weight: 800; margin-bottom: 20px; line-height: 1.15; }
.confirm-subtext { font-style: italic; color: #94a3b8; max-width: 480px; margin: 0 auto; font-size: 15px; }
.trust-note { color: var(--accent-cyan); font-size: 14px; margin: 16px auto 0; max-width: 520px; }
.confirm-step-label {
  text-align: center; text-transform: uppercase; letter-spacing: 2px; font-weight: 700;
  font-size: 13px; color: var(--white); text-shadow: 0 0 18px rgba(58,171,220,0.75);
  margin: 48px 0 16px;
}
.confirm-card {
  background: #1b2130; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 24px 28px;
}
.confirm-card h3 { color: var(--white); font-size: 18px; margin-bottom: 8px; }
.confirm-card p { color: #94a3b8; font-size: 14px; line-height: 1.6; }
.confirm-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center; }
.confirm-fineprint { text-align: center; font-size: 13px; color: #64748b; margin-top: 10px; }
.confirm-header h1 { overflow-wrap: anywhere; }
.booking-card {
  background: #1b2130; border: 1px solid rgba(58,171,220,0.35); border-radius: 12px;
  padding: 24px 28px; text-align: center; margin-bottom: 8px;
}
.booking-label { font-family: "Courier New", Courier, monospace; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-cyan); margin-bottom: 8px; }
.booking-date { font-size: 26px; font-weight: 800; color: var(--white); line-height: 1.2; overflow-wrap: anywhere; }
.booking-time { font-size: 17px; font-weight: 600; color: var(--accent-cyan); margin-top: 6px; }
.booking-actions { margin-top: 18px; }
.booking-card #booking-when[hidden] + .booking-actions { margin-top: 0; }
@media (max-width: 700px) {
  .booking-card { padding: 20px 18px; }
  .booking-date { font-size: 22px; }
}
.confirm-fit-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 16px; }
@media (max-width: 700px) { .confirm-fit-grid { grid-template-columns: 1fr; } }
.confirm-fit-card h4 { display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; font-size: 13px; color: var(--white); margin-bottom: 14px; }
.confirm-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.confirm-dot-green { background: var(--green); }
.confirm-dot-red { background: #ef4444; }
.confirm-fit-card ul li { color: #94a3b8; font-size: 14px; line-height: 1.5; padding-left: 14px; position: relative; margin-bottom: 10px; }
.confirm-fit-card ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; background: #64748b; border-radius: 50%; }
.confirm-divider { border-top: 1px solid rgba(255,255,255,0.08); margin: 40px 0 24px; }
.confirm-footer-text { text-align: center; color: #64748b; font-size: 14px; }
.confirm-page .accordion-item { background: #1b2130; border-color: rgba(255,255,255,0.08); }
.confirm-page .accordion-item summary { color: var(--white); }
.confirm-page .accordion-body { color: #94a3b8; }
.confirm-page .proof-card { background: #1b2130; }
.confirm-page .check-list li { color: #cbd5e1; }

/* ---------- privacy page ---------- */
.privacy-body { max-width: 720px; margin: 0 auto; }
.privacy-body h2 { margin-top: 32px; font-size: 20px; }
.privacy-body p, .privacy-body li { color: var(--text-muted); margin-bottom: 12px; line-height: 1.7; }
.privacy-body li { padding-left: 20px; position: relative; }
.privacy-body li::before { content: "\2022"; position: absolute; left: 4px; color: var(--accent-cyan); }
.privacy-updated { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.privacy-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.privacy-table th { background: var(--primary-dark); color: var(--white); text-align: left; padding: 10px 12px; }
.privacy-table td { border: 1px solid var(--border); padding: 10px 12px; color: var(--text-dark); vertical-align: top; }
.privacy-table tr:nth-child(even) td { background: var(--bg-light); }
.privacy-download { margin-bottom: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 700px) {
  .section-heading h2 { font-size: 26px; }
  .confirm-header h1 { font-size: 36px; }
  .confirm-header h2 { font-size: 26px; }
  .about-grid { text-align: center; }
  .about-photo { margin: 0 auto; }
}
