/* Marta: navy + hi-vis yellow, clean modern SaaS layout with a builder's edge.
   Display: Archivo (wide, heavy). Body: Figtree. */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #0f1b2d;
  --muted: #566376;
  --line: #e1e5eb;
  --brand: #ffc21a;
  --brand-ink: #0f1b2d;
  --brand-soft: #fff3cc;
  --navy: #0f1b2d;
  --on-navy: #f2f5f9;
  --good: #1f8a4c;
  --bad: #c0362c;
  --r-lg: 20px;
  --r-md: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 2px rgb(15 27 45 / 0.06), 0 12px 32px -12px rgb(15 27 45 / 0.18);
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 36rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1320; --surface: #142033; --ink: #edf1f6; --muted: #9eabbd; --line: #243248;
    --brand-soft: #3a3214; --navy: #142033; --on-navy: #edf1f6; --good: #5fd08f; --bad: #ff8a7e;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -16px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1320; --surface: #142033; --ink: #edf1f6; --muted: #9eabbd; --line: #243248;
  --brand-soft: #3a3214; --navy: #142033; --on-navy: #edf1f6; --good: #5fd08f; --bad: #ff8a7e;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -16px rgb(0 0 0 / 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
h1 { font-weight: 800; font-variation-settings: "wdth" 108; letter-spacing: -0.025em; line-height: 1.02; }
h2 { font-weight: 800; font-variation-settings: "wdth" 106; letter-spacing: -0.02em; line-height: 1.08; font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-weight: 700; font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.005em; }

.wrap { width: 100%; max-width: 74rem; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 700; font-size: 1.02rem; line-height: 1;
  padding: 1rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  background: var(--brand); color: var(--brand-ink); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -6px rgb(255 194 26 / 0.7); }
.button[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button.ghost:hover { border-color: var(--ink); box-shadow: none; }
.button.dark { background: var(--ink); color: var(--bg); }
.button.dark:hover { box-shadow: 0 6px 18px -8px rgb(15 27 45 / 0.6); }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.logo-mark { width: 2.25rem; height: 2.25rem; flex: none; }
.logo-text { display: grid; line-height: 1.05; }
.logo-text b { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 112; font-size: 1.35rem; letter-spacing: -0.02em; }
.logo-text small { font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .button { padding: 0.7rem 1.1rem; font-size: 0.95rem; }
.site-nav .button:hover { text-decoration: none; }

/* Hero */
.hero { padding-block: 3rem 4.5rem; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
.hero-copy { min-width: 0; }
.tag {
  display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.9rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.8rem 0.35rem 0.4rem; margin-bottom: 1.4rem;
}
.tag .dot { width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--brand); display: grid; place-items: center; }
.tag .dot svg { width: 0.85rem; height: 0.85rem; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); margin-bottom: 1.25rem; max-width: 13ch; }
.hero h1 .name { display: block; }
.hero .lede { font-size: 1.22rem; color: var(--muted); max-width: var(--measure); margin: 0 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.hero-points { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; font-weight: 600; font-size: 0.97rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-points svg { width: 1.15rem; height: 1.15rem; color: var(--good); flex: none; }

.portrait { position: relative; min-width: 0; max-width: 30rem; justify-self: end; width: 100%; }
.portrait-frame {
  position: relative; aspect-ratio: 4 / 4.6; max-width: 100%; border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, var(--brand) 0%, #ffd760 60%, #ffe9a6 100%);
}
.portrait-frame picture { display: block; width: 100%; height: 100%; }
.portrait-frame img, .portrait-frame svg { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.ai-badge {
  position: absolute; top: 1rem; left: 1rem; background: var(--navy); color: var(--on-navy);
  font-size: 0.82rem; font-weight: 700; padding: 0.35rem 0.7rem; border-radius: 999px; display: inline-flex; gap: 0.4rem; align-items: center;
}
.ai-badge i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #3fdc7e; display: block; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.notify {
  position: absolute; left: -2.5rem; bottom: 2rem; width: min(19rem, 85%);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow);
  padding: 0.95rem 1rem; font-size: 0.92rem; display: grid; gap: 0.35rem;
}
.notify-head { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; }
.notify-head b { font-size: 0.95rem; }
.notify-head span { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.notify p { margin: 0; color: var(--muted); }
.notify .booked { color: var(--ink); font-weight: 600; display: flex; align-items: center; gap: 0.4rem; }
.notify .booked svg { width: 1rem; height: 1rem; color: var(--good); }
.pill { display: inline-block; white-space: nowrap; font-weight: 700; font-size: 0.75rem; padding: 0.12rem 0.5rem; border-radius: 999px; background: var(--brand); color: var(--brand-ink); }

/* Trades strip */
.trades { padding-block: 1.75rem; border-block: 1px solid var(--line); background: var(--surface); }
.trades .wrap { display: flex; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; justify-content: center; }
.trades p { margin: 0; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.trades ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.trades li { border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.85rem; font-weight: 600; font-size: 0.92rem; background: var(--bg); }

/* Sections */
.section { padding-block: 5.5rem; }
.section-head { max-width: 44rem; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.15rem; margin: 1rem 0 0; }
.section-head.center p { margin-inline: auto; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.band-dark { background: var(--navy); color: var(--on-navy); }
.band-dark .section-head p, .band-dark .muted { color: color-mix(in srgb, var(--on-navy) 72%, transparent); }

/* Problem */
.problem .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: end; }
.problem h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.problem h2 em { font-style: normal; color: var(--brand); }
.problem p { font-size: 1.15rem; margin: 0; max-width: 32rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.steps li {
  counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.75rem; display: grid; gap: 0.6rem; align-content: start;
}
.steps li::before {
  content: counter(step); width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--brand); color: var(--brand-ink);
  font-family: var(--display); font-weight: 800; display: grid; place-items: center; font-size: 1.1rem; margin-bottom: 0.4rem;
}
.steps p { margin: 0; color: var(--muted); }
.steps a { font-weight: 600; }

/* Showcase: job sheet + call */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.75rem; min-width: 0; }
.panel-title { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem; font-weight: 700; }
.panel-title svg { width: 1.25rem; height: 1.25rem; }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 0.75rem; margin-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.sheet-head strong { font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.sheet-head span { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.sheet dl { display: grid; grid-template-columns: 7rem 1fr; gap: 0.5rem 1rem; margin: 0; font-size: 0.97rem; }
.sheet dt { color: var(--muted); }
.sheet dd { margin: 0; font-weight: 500; min-width: 0; }
.dim { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.4rem; margin: 1.1rem 0 0.25rem; font-weight: 700; font-size: 0.85rem; color: var(--muted); }
.dim::before, .dim::after { content: ""; width: 2px; height: 0.9rem; background: currentColor; }
.dim span { position: relative; text-align: center; }
.dim span::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; }
.dim b { position: relative; background: var(--surface); padding: 0 0.5rem; }
.sheet .next { margin: 1rem 0 0; padding-top: 0.9rem; border-top: 1px dashed var(--line); display: flex; gap: 0.6rem; flex-wrap: wrap; }
.call { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.call li { max-width: 88%; padding: 0.75rem 1rem; border-radius: 16px; background: var(--bg); font-size: 0.98rem; }
.call li small { display: block; font-weight: 700; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.15rem; }
.call li.marta { background: var(--brand-soft); border-bottom-left-radius: 4px; }
.call li.caller { justify-self: end; border-bottom-right-radius: 4px; }

/* Guardrails */
.guard { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.guard .panel h3 { margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; }
.guard .panel h3 svg { width: 1.4rem; height: 1.4rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.ticks li { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.6rem; align-items: start; }
.ticks svg { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; }
.ticks.yes svg, .yes-icon { color: var(--good); }
.ticks.no svg, .no-icon { color: var(--bad); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 24rem)); gap: 1.5rem; justify-content: center; }
.plan {
  position: relative; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 2rem; display: grid; gap: 1.25rem; align-content: start;
}
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan .ribbon { position: absolute; top: -0.85rem; right: 1.5rem; }
.plan h3 { font-size: 1.5rem; font-variation-settings: "wdth" 110; }
.plan .for { margin: 0.25rem 0 0; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 0.35rem; }
.price b { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 100; font-size: 3.2rem; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); font-weight: 600; }
.minutes { background: var(--bg); border-radius: var(--r-md); padding: 0.8rem 1rem; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.minutes span { color: var(--muted); font-weight: 500; }
.plan .button { width: 100%; }
.plan .ticks { font-size: 0.97rem; }
.plans-note { text-align: center; color: var(--muted); margin: 2rem auto 0; max-width: 40rem; }
.band-dark .plan { border-color: transparent; }

/* FAQ */
.faq { max-width: 48rem; margin-inline: auto; display: grid; gap: 0.75rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.35rem; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 1.06rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-weight: 700; font-size: 1.4rem; line-height: 1; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0.75rem 0 0; color: var(--muted); }
.faq a { font-weight: 600; }

/* Sign-up */
.signup .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 3.5rem; align-items: start; }
.signup-card { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--shadow); min-width: 0; }
.signup-points { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 0.75rem; }
.signup-points li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.6rem; }
.signup-points span.n { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 0.85rem; display: grid; place-items: center; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.field { display: grid; gap: 0.35rem; align-content: start; }
.field.full { grid-column: 1 / -1; }
label, legend { font-weight: 600; font-size: 0.95rem; }
.hint { color: var(--muted); font-weight: 400; }
input, select {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 0.75rem 0.85rem; width: 100%;
}
input:focus-visible, select:focus-visible { outline: 3px solid var(--brand); outline-offset: 0; border-color: var(--ink); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 0.4rem; }
.plan-pick label { display: flex; gap: 0.6rem; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 0.85rem 1rem; cursor: pointer; font-weight: 500; }
.plan-pick label:has(input:checked) { border-color: var(--ink); background: var(--brand-soft); }
.plan-pick input { width: auto; margin-top: 0.3rem; accent-color: var(--ink); flex: none; }
.plan-pick b { display: block; }
.error { color: var(--bad); font-size: 0.9rem; }
.error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.form-foot small { color: var(--muted); max-width: 24rem; }
.status { grid-column: 1 / -1; margin: 0; padding: 1rem 1.2rem; border-radius: var(--r-md); font-weight: 600; }
.status:empty { display: none; }
.status.ok { background: color-mix(in srgb, var(--good) 14%, var(--surface)); border-left: 4px solid var(--good); }
.status.fail { background: color-mix(in srgb, var(--bad) 12%, var(--surface)); border-left: 4px solid var(--bad); }

/* Footer */
.site-footer { padding-block: 2.5rem 3rem; color: var(--muted); font-size: 0.93rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* Inner pages */
.page-head { padding-block: 3rem 1rem; }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 1rem; max-width: 18ch; }
.page-head p { color: var(--muted); font-size: 1.18rem; max-width: var(--measure); margin: 0; }
.prose { max-width: 44rem; padding-block: 1rem 5rem; }
.prose h2 { font-size: 1.45rem; margin: 2.25rem 0 0.5rem; }
.prose p { margin: 0 0 1rem; }

/* Divert page */
.builder-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 2rem; align-items: start; }
.builder-controls { display: grid; gap: 1.5rem; min-width: 0; }
.choice { display: flex; gap: 0.6rem; align-items: baseline; font-weight: 500; font-size: 1rem; cursor: pointer; margin-top: 0.45rem; }
.choice input { width: auto; accent-color: var(--ink); flex: none; }
.choice > span { min-width: 0; }
.code-card { background: var(--navy); color: var(--on-navy); border-radius: var(--r-lg); padding: 1.75rem; display: grid; gap: 1.1rem; min-width: 0; }
.code-label { margin: 0; font-weight: 600; }
.big-code { font-family: var(--display); font-variation-settings: "wdth" 100; font-variant-numeric: tabular-nums; font-weight: 800; font-size: clamp(1.3rem, 2.8vw, 1.85rem); white-space: nowrap; overflow-x: auto; display: block; padding-block: 0.25rem; color: var(--brand); }
.code-actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.copy { font: inherit; font-weight: 700; color: inherit; background: transparent; border: 1.5px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: 999px; padding: 0.7rem 1.1rem; cursor: pointer; }
.copy:hover { border-color: currentColor; }
.code-note { margin: 0; opacity: 0.8; }
.cancel-row { border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); padding-top: 1rem; display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.cancel-row code { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.cancel-row .copy { padding: 0.45rem 0.9rem; font-size: 0.9rem; }
.other { margin: 0; display: grid; grid-template-columns: 11rem 1fr; gap: 1rem 1.5rem; }
.other dt { font-weight: 700; }
.other dd { margin: 0; color: var(--muted); min-width: 0; }
.know { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; max-width: 48rem; }
.know li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.25rem; }

/* Responsive */
@media (max-width: 62rem) {
  .hero .wrap, .problem .wrap, .showcase, .signup .wrap, .builder-grid { grid-template-columns: 1fr; }
  .portrait { justify-self: center; max-width: 26rem; }
  .notify { left: -1rem; }
  .steps { grid-template-columns: 1fr; }
  .site-nav .hide-md { display: none; }
}
@media (max-width: 44rem) {
  .plans, .guard { grid-template-columns: 1fr; }
  .section { padding-block: 4rem; }
  form, .plan-pick { grid-template-columns: 1fr; }
  .site-nav a:not(.button) { display: none; }
  .logo-text small { display: none; }
  .notify { position: relative; left: auto; bottom: auto; width: calc(100% - 2rem); margin: -3.5rem auto 0; }
  .other { grid-template-columns: 1fr; gap: 0.25rem; }
  .other dd { margin-bottom: 0.9rem; }
  .sheet dl { grid-template-columns: 5.75rem 1fr; }
  .call li { max-width: 94%; }
}
