/* CaSanta — shared styles. Designed at 375px first, scaled up with min-width queries. */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #101B3A;
  --cobalt: #2340D9;
  --marigold: #FFC233;
  --wash: #EAF0FF;
  --white: #FFFFFF;
  --red: #C92A2A;
  --green: #1C7C45;
  --muted: #38445F;      /* secondary text, AA on white and on wash */
  --line: #CBD6F5;
  --radius: 16px;
  --head: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font: 400 18px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 6.4vw, 2.5rem); }
h3 { font-size: 1.375rem; font-weight: 700; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--marigold); }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 34em; }          /* keeps lines near 65 characters */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

section { padding: 56px 0; }
.wash { background: var(--wash); }
.section-head { margin-bottom: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 52px; padding: 12px 24px;
  border: 2px solid transparent; border-radius: 12px;
  font: 700 18px/1.2 var(--body); text-align: center; text-decoration: none;
  cursor: pointer; transition: transform .12s ease, background-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cobalt); color: var(--white); }
.btn-primary:hover { background: #1B33B5; }
.btn-marigold { background: var(--marigold); color: var(--navy); }
.btn-marigold:hover { background: #FFCF5E; }
.btn-outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--wash); }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Top bar ---------- */
.topbar { background: var(--white); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 72px; }
.brand { display: block; text-decoration: none; color: var(--navy); line-height: 1.15; min-width: 0; }
.brand strong { display: block; font: 800 1.5rem/1 var(--head); letter-spacing: -0.02em; }
.brand span { display: block; margin-top: 3px; font-size: 12px; line-height: 1.25; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.lang { display: inline-flex; border: 2px solid var(--navy); border-radius: 12px; overflow: hidden; }
.lang a { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font: 700 15px/1 var(--body); color: var(--navy); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--navy); color: var(--white); }
.lang a:not([aria-current="true"]):hover { background: var(--wash); }
.topbar .btn { width: auto; min-height: 48px; padding: 8px 14px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { background: var(--cobalt); color: var(--white); padding: 44px 0 52px; }
.hero h1 { font-size: clamp(2.4rem, 10.4vw, 4.25rem); }
.hero h1 em { display: block; font-style: normal; color: var(--marigold); }
.hero .sub { margin-top: 20px; font-size: 1.1875rem; max-width: 34em; }
.hero .btn { margin-top: 28px; }
.hero .facts { margin-top: 16px; font-size: 16px; font-weight: 700; letter-spacing: .01em; }
.hero .more { margin-top: 18px; }
.hero .more a { color: var(--white); font-weight: 700; text-decoration-color: var(--marigold); text-decoration-thickness: 2px; }

/* ---------- Problem ---------- */
.stat { font-family: var(--head); font-weight: 700; font-size: clamp(1.4rem, 5.6vw, 1.9rem); line-height: 1.25; max-width: 24em; }
.stat .big { display: block; font-weight: 800; font-size: clamp(4.5rem, 22vw, 7.5rem); line-height: .95; color: var(--cobalt); letter-spacing: -0.03em; }
.source { margin-top: 10px; font-size: 14px; color: var(--muted); }
.problem-line { margin-top: 28px; padding-top: 24px; border-top: 2px solid var(--line); font-size: 1.1875rem; max-width: 34em; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 700 13px/1.4 var(--body); color: var(--white); vertical-align: middle; letter-spacing: .02em; }
.badge-red { background: var(--red); }
.badge-green { background: var(--green); }
.problem-line .badge { margin-right: 8px; position: relative; top: -1px; }

/* ---------- Example review card ---------- */
.example-label { display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px; background: var(--white); border: 1px dashed var(--muted); font-size: 14px; font-weight: 700; color: var(--muted); }
.review-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 6px 20px rgba(16, 27, 58, .08); max-width: 40rem; }
.review-head { display: flex; align-items: center; gap: 12px; }
.avatar { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--cobalt); color: var(--white); font: 800 1.25rem/1 var(--head); }
.avatar.owner { background: var(--marigold); color: var(--navy); }
.stars { display: flex; gap: 2px; }
.stars svg { width: 22px; height: 22px; fill: #E0A100; }
.stars svg.off { fill: #D3D9EA; }
.review-text { margin-top: 14px; font-size: 1.125rem; }
.reply { margin: 20px 0 0 18px; padding: 16px 0 0 16px; border-left: 4px solid var(--marigold); }
.reply .badge { margin-bottom: 8px; }
.reply p { font-size: 1.0625rem; }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: step; }
.steps li { position: relative; padding-left: 60px; counter-increment: step; max-width: 36em; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--marigold); color: var(--navy); font: 800 1.35rem/1 var(--head);
}
.steps strong { display: block; font: 700 1.25rem/1.3 var(--head); margin-bottom: 2px; }

/* ---------- Pricing ---------- */
.cards { display: grid; gap: 20px; }
.price-card { display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 24px 22px 26px; }
.price-card.featured { border-color: var(--cobalt); box-shadow: 0 8px 26px rgba(35, 64, 217, .18); }
.tag { align-self: flex-start; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: var(--marigold); color: var(--navy); font: 700 14px/1.4 var(--body); }
.price { margin-top: 6px; font: 800 2.5rem/1.1 var(--head); color: var(--cobalt); letter-spacing: -0.02em; }
.price small { font: 700 1rem/1.2 var(--body); color: var(--muted); letter-spacing: 0; }
.checks { list-style: none; margin: 18px 0 24px; padding: 0; display: grid; gap: 12px; flex: 1; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* ---------- Beyond replies ---------- */
.beyond .cards .info-card { background: var(--wash); border-radius: var(--radius); padding: 24px 22px; }
.icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--cobalt); margin-bottom: 14px; }
.icon svg { width: 26px; height: 26px; fill: var(--marigold); }
.info-card p { margin-top: 8px; }
.beyond .price-line { margin-top: 24px; font-weight: 700; }
.beyond .btn { margin-top: 18px; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 24px; }
.portrait { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; border: 5px solid var(--marigold); background: var(--white); }
.about p + p, .about .measure + p { margin-top: 16px; }
.about .more { margin-top: 18px; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 46rem; }
.faq details { background: var(--wash); border-radius: 12px; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 18px; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; font: 800 1.6rem/1 var(--head); color: var(--cobalt); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 18px 18px; max-width: 34em; }

/* ---------- Form ---------- */
.form-section { background: var(--cobalt); color: var(--white); }
.form-section h2 { color: var(--white); }
.form-section .lead { margin-top: 12px; max-width: 34em; }
.form-card { margin-top: 26px; background: var(--white); color: var(--navy); border-radius: var(--radius); padding: 22px 20px 24px; max-width: 40rem; }
.field { margin-bottom: 18px; }
.field > label, .field > legend { display: block; margin-bottom: 6px; padding: 0; font-weight: 700; font-size: 17px; }
input[type="text"], input[type="tel"], select, textarea {
  display: block; width: 100%; min-height: 52px; padding: 10px 14px;
  border: 2px solid #6F7DA6; border-radius: 10px; background: var(--white);
  font: 400 18px/1.4 var(--body); color: var(--navy);
}
textarea { min-height: 100px; resize: vertical; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%23101B3A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-color: var(--cobalt); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg { display: flex; gap: 10px; }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 2px solid #6F7DA6; border-radius: 10px; font-weight: 700; }
.seg input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.seg input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card .btn { margin-top: 6px; }
.form-msg { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-weight: 700; }
.form-msg[hidden] { display: none; }
.form-ok { background: #E3F4EA; color: #14572F; }
.form-fail { background: #FBE7E7; color: #8F1D1D; }
.form-fail a, .form-ok a { color: inherit; }
.form-alt { margin-top: 22px; font-size: 17px; }
.form-alt a { color: var(--white); font-weight: 700; text-decoration-color: var(--marigold); text-decoration-thickness: 2px; }
.form-alt .sep { margin: 0 6px; opacity: .7; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #D7DEF5; padding: 36px 0 40px; font-size: 16px; }
.footer a { color: var(--white); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer strong { color: var(--white); font-family: var(--head); font-size: 1.2rem; }

/* ---------- Sticky phone bar ---------- */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(16, 27, 58, .12);
  transition: transform .2s ease, visibility .2s;
}
.stickybar .btn { min-height: 52px; padding: 10px 12px; font-size: 17px; }
.stickybar .btn-primary { flex: 1.35; }
.stickybar .btn-outline { flex: 1; }
.stickybar.is-hidden { transform: translateY(110%); visibility: hidden; }
body { padding-bottom: 76px; }

/* ---------- Tablet and up ---------- */
@media (min-width: 768px) {
  :root { --gutter: 32px; }
  body { padding-bottom: 0; }
  .stickybar { display: none; }
  section { padding: 88px 0; }
  .hero { padding: 76px 0 84px; }
  .hero .btn, .beyond .btn { width: auto; display: inline-flex; min-width: 300px; }
  .brand span { font-size: 13px; }
  .topbar .btn { padding: 8px 20px; font-size: 17px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
  .price-card { padding: 30px 28px 32px; }
  .about-grid { grid-template-columns: 200px 1fr; gap: 44px; align-items: center; }
  .portrait { width: 200px; height: 200px; }
  .form-card { padding: 30px 32px 32px; }
  .form-card .btn { width: auto; min-width: 260px; }
  .footer ul { gap: 6px 24px; }
}
