/* baqlai — landing page styles. Mobile-first, light mode only. */

:root {
  --pastel: #A7F3D0;
  --deep: #064E3B;
  --deep-hover: #053b2c;
  --mid: #047857;

  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --subtle: #F1F2EC;
  --ink: #131614;
  --ink-2: #5B645E;
  --ink-3: #8E968F;
  --line: #E3E5DD;
  --line-strong: #CDD1C6;

  --font-display: 'Inter Tight', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-ui: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(19, 22, 20, 0.05);
  --shadow-md: 0 6px 24px -8px rgba(19, 22, 20, 0.12);
  --shadow-lg: 0 24px 60px -16px rgba(19, 22, 20, 0.16);

  --pad: 24px;
  --section-y: 88px;
}

@media (min-width: 768px) {
  :root { --pad: 40px; --section-y: 120px; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

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

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* The hidden attribute must always win. Components below set an explicit
   display (.contact, .contact-success) which would otherwise override the UA
   [hidden]{display:none} and leave the element occupying space while invisible
   — that was a ~425px empty band under the contact form before submit. */
[hidden] { display: none !important; }

::selection { background: var(--pastel); color: var(--deep); }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ── Type scale ── */
.h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  font-weight: 600;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.25;
  letter-spacing: -0.016em;
  font-weight: 600;
}
.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 18px;
}
.lede {
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: var(--r-md);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background 140ms ease, transform 80ms ease, box-shadow 140ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--deep); color: var(--pastel); }
.btn-primary:hover { background: var(--deep-hover); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-3); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: none; gap: 4px; }
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--r-sm);
}
.nav-links a:hover { color: var(--ink); background: var(--subtle); }
@media (min-width: 880px) {
  .nav-links { display: flex; }
}

/* ── Hero ── */
.hero { padding: clamp(64px, 10vw, 128px) 0 0; }
.hero-center { max-width: 880px; margin: 0 auto; text-align: center; }
.hero .lede { max-width: 640px; margin: 28px auto 40px; }
.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
@media (min-width: 560px) {
  .hero-ctas { flex-direction: row; justify-content: center; }
}
.hero-mark {
  display: inline-block;
  background: var(--pastel);
  color: var(--deep);
  padding: 0 0.22em;
  border-radius: 0.14em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* trust strip */
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 36px;
  padding-top: 28px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mid); flex-shrink: 0; }

/* ── Sections ── */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lede { margin-top: 16px; }

/* ── Pain mirror ── */
.pain-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .pain-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pain-grid { grid-template-columns: repeat(3, 1fr); } }
.pain-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pain-quote {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.014em;
  font-weight: 550;
  text-wrap: pretty;
}
.pain-quote::before { content: "“"; color: var(--ink-3); }
.pain-quote::after { content: "”"; color: var(--ink-3); }
.pain-sub { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin-top: auto; }
.pain-flip {
  margin-top: clamp(36px, 5vw, 56px);
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.pain-flip p { font-size: clamp(17px, 2.4vw, 21px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.pain-flip strong { color: var(--ink); font-weight: 600; }

/* ── Capacity flow diagram ── */
.flow { margin: 0 0 clamp(40px, 6vw, 64px); }
.flow svg { width: 100%; height: auto; display: block; }
.flow-notes {
  display: grid;
  gap: 12px 20px;
  grid-template-columns: 1fr;
  margin-top: 20px;
}
@media (min-width: 760px) { .flow-notes { grid-template-columns: repeat(3, 1fr); margin-top: 8px; } }
.flow-notes span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}
.flow-notes .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mid);
  flex-shrink: 0;
  margin-top: 7px;
}
@media (max-width: 639px) {
  .flow-text { display: none; }
}

/* ── Steps ── */
.steps { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}
.step-card.feature { border-color: var(--deep); box-shadow: var(--shadow-md); position: relative; }
.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--deep);
  background: var(--pastel);
  border-radius: var(--r-full);
  padding: 5px 13px;
  align-self: flex-start;
  margin-bottom: 22px;
}
.step-price {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 6px 0 2px;
}
.step-price small { font-size: 0.5em; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.step-per { font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.step-card ul { list-style: none; display: grid; gap: 10px; margin-top: auto; }
.step-card li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.step-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pastel);
  box-shadow: 0 0 0 1.5px var(--mid);
}
.step-card li strong { color: var(--ink); font-weight: 600; }
.feature-tag {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--deep);
  color: var(--pastel);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--r-full);
}

/* ── Plans ── */
.plans { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
}
.plan.feature { border-color: var(--deep); }
.plan-name { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.plan-tagline { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.plan-price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 20px 0 0;
}
.plan-price small { font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan-list { list-style: none; display: grid; gap: 11px; margin: 26px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.plan-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.plan-list li strong { color: var(--ink); font-weight: 600; }
.plan-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--mid);
  font-weight: 700;
  font-size: 14px;
}
.plan-list li.plan-carry::before { content: "+"; }
.plans-foot {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--ink-2);
  text-align: center;
  text-wrap: pretty;
}

/* ── Team value props ── */
.props { display: grid; gap: 0; border-top: 1px solid var(--line); }
.prop {
  display: grid;
  gap: 8px 48px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 820px) {
  .prop { grid-template-columns: 280px 1fr; padding: 40px 0; }
}
.prop p { font-size: 15.5px; color: var(--ink-2); line-height: 1.65; text-wrap: pretty; max-width: 560px; }
.prop p strong { color: var(--ink); font-weight: 600; }

/* ── Rescue ── */
.rescue {
  background: var(--deep);
  color: #ECFDF5;
  border-radius: var(--r-lg);
  padding: clamp(36px, 6vw, 64px);
  display: grid;
  gap: 28px;
}
@media (min-width: 880px) {
  .rescue { grid-template-columns: 1.4fr auto; align-items: center; }
}
.rescue .kicker { color: var(--pastel); }
.rescue .h2 { color: #ffffff; }
.rescue p { color: #C9EEDD; font-size: 16px; line-height: 1.6; max-width: 560px; margin-top: 14px; text-wrap: pretty; }
.rescue p strong { color: #ffffff; }
.rescue .btn-rescue {
  background: var(--pastel);
  color: var(--deep);
  border: none;
}
.rescue .btn-rescue:hover { background: #BDF7DD; box-shadow: var(--shadow-md); }
.rescue-foot { font-size: 13px; color: #8FD4B6; margin-top: 10px; }

/* ── Proof ── */
.proof-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  align-items: baseline;
  margin: 26px 0 10px;
}
.proof-logos span {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
  opacity: 0.82;
}
.guarantees {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: clamp(36px, 5vw, 56px);
}
@media (min-width: 640px)  { .guarantees { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .guarantees { grid-template-columns: repeat(5, 1fr); } }
.guarantee { background: var(--surface); padding: 24px 22px; }
.guarantee h4 {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.guarantee p { font-size: 13px; color: var(--ink-2); line-height: 1.55; text-wrap: pretty; }

/* ── FAQ ── */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  font-family: var(--font-ui);
  font-size: clamp(15.5px, 2vw, 17px);
  font-weight: 550;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.faq-q .faq-x {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 400;
  color: var(--ink-3);
  transition: transform 200ms ease;
}
.faq-item[data-open="true"] .faq-x { transform: rotate(45deg); color: var(--deep); }
.faq-a {
  display: none;
  padding: 0 44px 24px 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
}
.faq-item[data-open="true"] .faq-a { display: block; }
.faq-a strong { color: var(--ink); font-weight: 600; }

/* ── Final CTA ── */
.final { text-align: center; padding-bottom: clamp(64px, 9vw, 120px); }
.final .h2 { max-width: 720px; margin: 0 auto; }
.final .lede { max-width: 560px; margin: 20px auto 36px; }
.final-foot { margin-top: 18px; font-size: 13px; color: var(--ink-3); }

/* ── Contact form ── */
.contact {
  max-width: 640px;
  margin: 36px auto 0;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 36px);
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}
.contact-row { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .contact-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.field-label em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.field-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
  appearance: none;
}
select.field-input {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 L6 6.5 L11 1.5' fill='none' stroke='%235B645E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field-area { height: auto; padding: 12px 14px; resize: vertical; min-height: 96px; line-height: 1.5; }
.field-input:focus { border-color: var(--deep); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pastel) 60%, transparent); }
.field-input::placeholder { color: var(--ink-3); }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 4px;
}
.contact-actions .btn { border: none; }
.contact-alt { font-size: 13.5px; color: var(--ink-2); }
.contact-alt a { color: var(--deep); font-weight: 600; }
.contact-alt a:hover { text-decoration: underline; }
.contact-success {
  max-width: 640px;
  margin: 36px auto 0;
  background: var(--surface);
  border: 1px solid var(--deep);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 40px);
}
.contact-success p { margin-top: 10px; font-size: 15px; color: var(--ink-2); text-wrap: pretty; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-3);
}
.footer-inner img { height: 20px; width: auto; opacity: 0.75; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }

/* ── Reveal on scroll ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 650ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* ── Contact form additions (real backend wiring) ── */
/* honeypot — visually removed, still in the DOM for bots */
.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.btn[disabled] { opacity: 0.65; cursor: default; }
.btn[disabled]:active { transform: none; }
.contact-error {
  font-size: 13.5px;
  color: #B42318;
  background: #FEF3F2;
  border: 1px solid #FECDCA;
  border-radius: var(--r-md);
  padding: 10px 14px;
}
.contact-error a { color: #B42318; font-weight: 600; text-decoration: underline; }

/* ── Success state: animated check + booking embed ── */
.contact-success {
  display: grid;
  justify-items: center;
  text-align: center;
}
.success-check { width: 76px; height: 76px; margin-bottom: 6px; }
.success-ring {
  stroke-dasharray: 208;
  stroke-dashoffset: 208;
  transform: rotate(-90deg);
  transform-origin: center;
}
.success-tick { stroke-dasharray: 42; stroke-dashoffset: 42; }
.contact-success.show .success-ring { animation: drawRing 700ms cubic-bezier(0.65, 0, 0.35, 1) forwards; }
.contact-success.show .success-tick { animation: drawTick 380ms 580ms cubic-bezier(0.65, 0, 0.35, 1) forwards; }
@keyframes drawRing { to { stroke-dashoffset: 0; } }
@keyframes drawTick { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .contact-success { opacity: 0; transform: translateY(14px) scale(0.985); }
  .contact-success.show {
    opacity: 1; transform: none;
    transition: opacity 500ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .contact-success.show .success-book { animation: bookIn 600ms 850ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  @keyframes bookIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .success-ring, .success-tick { stroke-dashoffset: 0; }
}
.success-book { width: 100%; margin-top: 26px; }
.success-divider {
  display: flex; align-items: center; gap: 14px;
  color: var(--ink-3); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 18px;
}
.success-divider::before, .success-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.success-book-lede { font-size: 15px; color: var(--ink-2); margin-bottom: 18px; }
.success-book-lede strong { color: var(--ink); }
