/* ApplyTribe: shared styles for every page */
:root {
  --bg: #FAF8F3;
  --surface: #FFFFFF;
  --surface-2: #F2EFE7;
  --ink: #14213D;
  --muted: #5A6278;
  --line: #E4DFD3;
  --brand: #0F766E;
  --brand-ink: #FFFFFF;
  --brand-soft: #DDF1EE;
  --accent: #E8833A;
  --accent-soft: #FCEBDD;
  --accent-ink: #9A4A10;
  --good: #1E8A4C;
  --danger: #C2410C;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px rgba(20, 33, 61, .06);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
section { padding: 88px 0; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.sec-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; max-width: 720px; }
.center { text-align: center; margin-left: auto; margin-right: auto; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1rem var(--body); text-decoration: none; cursor: pointer;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Accessibility helpers */
.visually-hidden { position: absolute; left: 0; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px rgba(15, 118, 110, .25); }
.btn-primary:hover { background: #0B5F58; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-wa { background: #15803D; color: #fff; }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.35rem var(--display); letter-spacing: -.02em; }
.logo-mark { width: 40px; height: 40px; border-radius: 50%; display: block; object-fit: cover; }
.logo span b { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--brand); }
.nav .btn { padding: 10px 18px; font-size: .95rem; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
@media (max-width: 820px) { .nav-links { display: none; } }
@media (max-width: 420px) {
  .nav { gap: 8px; }
  .nav-actions { gap: 6px; }
  .nav .btn { padding: 8px 11px; font-size: .84rem; white-space: nowrap; }
  .logo { font-size: 1.12rem; gap: 7px; }
  .logo-mark { width: 34px; height: 34px; }
}
@media (max-width: 350px) { .logo span { display: none; } }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-weight: 600; font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--good); }

/* Hero tracker card */
.tracker { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.tracker-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tracker-head h3 { font-size: 1.05rem; }
.tracker-head small { color: var(--muted); font-weight: 600; }
.tracker-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface-2); border-radius: 12px; padding: 12px; }
.stat b { display: block; font: 800 1.6rem var(--display); }
.stat span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.stat.brand { background: var(--brand-soft); } .stat.brand b { color: var(--brand); }
.stat.accent { background: var(--accent-soft); } .stat.accent b { color: var(--accent-ink); }
.app-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.app-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.app-list .role { font-weight: 700; }
.app-list .co { color: var(--muted); font-size: .85rem; }
.pill { grid-row: span 2; align-self: center; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill.sent { background: var(--surface-2); color: var(--muted); }
.pill.call { background: var(--accent-soft); color: var(--accent-ink); }
.pill.viewed { background: var(--brand-soft); color: var(--brand); }
.tracker-note { font-size: .78rem; color: var(--muted); }

/* Problem strip */
.band { background: var(--ink); color: #EEF0F6; }
.band h2 { color: #fff; }
.band .lede { color: #B9BFD0; }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pain { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.pain b { font: 800 2.2rem var(--display); color: var(--accent); }
.pain p { color: #C9CEDC; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; font: 800 1.1rem var(--display); display: grid; place-items: center; }
.steps p { color: var(--muted); font-size: .95rem; }
.steps .time { font-size: .8rem; font-weight: 700; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .06em; }

/* Split: we do / you do */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.split-card { border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.split-card.we { background: var(--brand); color: #fff; }
.split-card.you { background: var(--surface); border: 1px solid var(--line); }
.split-card h3 { font-size: 1.45rem; }
.split-card .big { font: 800 1rem var(--body); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.checks svg { width: 22px; height: 22px; margin-top: 2px; }
.we .checks svg { color: #9FE3D9; }
.you .checks svg { color: var(--brand); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.feature .ico svg { width: 24px; height: 24px; }
.feature p { color: var(--muted); font-size: .96rem; }

/* Pricing */
.founding { display: flex; align-items: center; gap: 14px; background: var(--accent-soft); border: 1px solid #F3C9A6; color: #7A3A0B; border-radius: 14px; padding: 16px 20px; margin-bottom: 28px; font-weight: 600; }
.founding svg { width: 26px; height: 26px; flex: none; color: var(--accent); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.plan.popular { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -13px; left: 28px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .04em; }
.plan .price { font: 800 2.6rem var(--display); letter-spacing: -.02em; }
.plan .price small { font: 600 1rem var(--body); color: var(--muted); }
.plan .desc { color: var(--muted); font-size: .95rem; }
.plan .checks { font-size: .95rem; flex: 1; }
.plan .checks svg { color: var(--brand); width: 20px; height: 20px; }
.price-note { margin-top: 22px; color: var(--muted); font-size: .92rem; text-align: center; }

/* Promise */
.promise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.promise { border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.promise.yes { background: var(--brand-soft); }
.promise.no { background: var(--surface); border: 1px solid var(--line); }
.promise h3 { font-size: 1.3rem; }
.promise.no .checks svg { color: var(--danger); }
.promise.yes .checks svg { color: var(--good); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 1.5rem var(--display); color: var(--brand); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); }

/* CTA */
.cta { background: var(--brand); color: #fff; border-radius: 28px; padding: 56px 32px; text-align: center; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.cta h2 { color: #fff; }
.cta p { color: #F0FBF9; max-width: 52ch; }
.cta .btn-primary { background: #fff; color: var(--brand); box-shadow: none; }
.cta .btn-primary:hover { background: #F0FAF8; }

/* Footer */
.site-footer { padding: 48px 0 40px; border-top: 1px solid var(--line); margin-top: 88px; color: var(--muted); font-size: .92rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--ink); }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #15803D; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.wa-float svg { width: 30px; height: 30px; }

/* Forms */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.form-section { display: flex; flex-direction: column; gap: 18px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; margin-bottom: 0; }
.form-section h3 { font-size: 1.15rem; }
.form-section .hint { color: var(--muted); font-size: .92rem; margin-top: -10px; }
.form-group { display: flex; flex-direction: column; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field .label { font-weight: 700; font-size: .92rem; }
.field label .opt { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  font: 500 1rem var(--body); color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.field .err { color: var(--danger); font-size: .85rem; font-weight: 600; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .err { display: block; }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: flex; flex-direction: column; gap: 2px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: var(--bg); height: 100%; }
.choice span b { font-size: .98rem; }
.choice span small { color: var(--muted); font-weight: 600; }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-soft); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.drop { border: 2px dashed var(--line); border-radius: 14px; padding: 22px; text-align: center; background: var(--bg); cursor: pointer; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.drop:hover, .drop.drag { border-color: var(--brand); background: var(--brand-soft); }
.field:focus-within > .drop { outline: 3px solid var(--accent); outline-offset: 2px; }
.field.invalid > .drop { border-color: var(--danger); }
.notice { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: .9rem; color: var(--muted); }
.notice b { color: var(--ink); }
.notice ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.drop svg { width: 30px; height: 30px; color: var(--brand); }
.drop small { color: var(--muted); }
.drop .file-name { font-weight: 700; color: var(--brand); }
.field label.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .95rem; font-weight: 500; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand); }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-weight: 600; display: none; }
.form-status.error { display: block; background: #FDECE4; color: var(--danger); }
.done { text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; padding: 20px 0; }
.done .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.done .tick svg { width: 38px; height: 38px; }
.next-list { text-align: left; background: var(--bg); border-radius: 14px; padding: 18px 22px 18px 42px; margin: 0; display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.next-list b { color: var(--ink); }

/* Legal pages */
.legal { padding: 56px 0 24px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 36px; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 12px; letter-spacing: 0; }
.legal p, .legal li { color: #333B52; }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.legal .box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin: 16px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--surface-2); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features, .plans, .pain-grid { grid-template-columns: 1fr; }
  .split, .promise-grid { grid-template-columns: 1fr; }
  .plans { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .steps { grid-template-columns: 1fr; }
  .row, .choices { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
  .split-card, .promise, .plan { padding: 22px; }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::after { transition: none; }
}

/* Opening screen (assets/loader.js) */
html.at-loading, html.at-loading body { overflow: hidden; }
.at-loader { position: fixed; inset: 0; z-index: 9999; background: var(--bg); display: grid; place-items: center; perspective: 900px; overflow: hidden; }
.at-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; transform: translateY(-4vh); }
.at-mark { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; opacity: 0; }
.at-word { font: 800 clamp(1.7rem, 6vw, 2.4rem) var(--display); letter-spacing: -.02em; color: var(--ink); min-height: 1.2em; white-space: nowrap; }
.at-word span { display: inline-block; min-width: .3em; text-align: center; }
.at-word .b { color: var(--brand); }
.at-bar { width: min(360px, 72vw); height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.at-bar i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: 50% 50%; }
.at-tag { margin: 0; font: 600 .78rem var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); opacity: 0; }
.at-slab { position: absolute; left: 50%; top: 50%; opacity: 0; background: var(--ink); box-shadow: 0 30px 80px rgba(20, 33, 61, .35), inset 0 0 0 1px rgba(127, 216, 204, .25); transform-origin: 50% 50%; will-change: transform; pointer-events: none; }
