/* ============================================================
   Square Care Network - landing page V5
   Built from scratch per the design-taste-frontend skill.
   Design read: trust-first premium-consumer landing, editorial
   calm, navy ink + one teal accent on a cool neutral.
   Dials: VARIANCE 5 / MOTION 4 / DENSITY 3.
   Theme: auto (light + dark via prefers-color-scheme), locked
   page-wide. One accent, one radius system (14px containers,
   999px interactive), no em-dashes anywhere.
   ============================================================ */

:root {
  --bg: #F9F8F6;
  --surface: #FDFDFC;
  --surface-2: #F1EFEB;
  --ink: #1C2836;
  --ink-soft: #5C6672;
  --line: #E5E2DC;
  --accent: #2F6B5E;
  --accent-strong: #24564B;
  --accent-tint: #E9F1EE;
  --btn-bg: #1C2836;
  --btn-ink: #F9F8F6;
  --btn-bg-hover: #131D28;
  --shadow: 0 10px 30px rgba(18, 28, 40, 0.08);
  --shadow-lg: 0 22px 55px rgba(18, 28, 40, 0.13);
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101720;
    --surface: #18212C;
    --surface-2: #1D2836;
    --ink: #EDEBE6;
    --ink-soft: #9BA4AE;
    --line: #2A3441;
    --accent: #6AA695;
    --accent-strong: #7FB8A7;
    --accent-tint: #1C2B27;
    --btn-bg: #EDEBE6;
    --btn-ink: #101720;
    --btn-bg-hover: #FFFFFFEE;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 22px 55px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: "Outfit", "Geist", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
  font-weight: 600;
}
img { max-width: 100%; display: block; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
p { text-wrap: pretty; }

/* one eyebrow style, used at most 3 times on the page */
.kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--btn-bg); color: var(--btn-ink);
  padding: 10px 18px; border-radius: 0 0 10px 0;
  font-weight: 600; text-decoration: none; font-size: 0.9rem;
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* motion: fluid CSS transitions, honored reduced-motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.stagger > .reveal:nth-child(2) { transition-delay: 0.07s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.14s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.21s; }
.stagger > .reveal:nth-child(5) { transition-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- buttons: one primary style, one secondary ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 0.98rem;
  border-radius: 999px;
  padding: 15px 30px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.12s ease, border-color 0.2s ease;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn.primary:hover { background: var(--btn-bg-hover); }
.btn.secondary {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn.secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn.small { padding: 10px 20px; font-size: 0.88rem; }
.btn.ghost { background: transparent; color: var(--ink-soft); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink-soft); }

/* Tabler icon sizing default */
.ti { font-size: 1.25rem; line-height: 1; }

/* ============================================================
   NAV: single line, under 72px
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 13px 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "Outfit", sans-serif; font-weight: 600; font-size: 1.08rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.brand svg { width: 25px; height: 25px; }
.nav-links { display: none; gap: 26px; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none;
  font-weight: 500; font-size: 0.92rem;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); }
@media (min-width: 880px) { .nav-links { display: flex; } }

/* ============================================================
   HERO: asymmetric split, text left, photo right
   ============================================================ */
.hero { padding: 72px 0 0; }
.hero-grid {
  display: grid; gap: 44px; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 64px; } }
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 650;
  max-width: 14ch;
}
.hero h1 .accent { color: var(--accent); }
.hero .lede {
  margin-top: 20px;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--ink-soft);
  max-width: 44ch;
  line-height: 1.65;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 5 / 6;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* trust strip: directly under hero, not inside it */
.assurance {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.assurance-inner {
  max-width: 1140px; margin: 0 auto; padding: 20px 24px;
  display: grid; gap: 16px 28px; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) { .assurance-inner { grid-template-columns: repeat(4, 1fr); } }
.assurance-item { display: flex; align-items: center; gap: 10px; }
.assurance-item .ti { color: var(--accent); flex-shrink: 0; }
.assurance-item span { font-size: 0.87rem; font-weight: 600; line-height: 1.3; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding: 104px 0; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.02rem; max-width: 56ch; }
.section.tinted { background: var(--surface-2); }

/* ============================================================
   ABOUT: photo left, letter right (second and last split layout)
   ============================================================ */
.about-grid { display: grid; gap: 44px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 0.85fr 1.15fr; gap: 64px; } }
.about-photo {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 4 / 5;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 22px; }
.about-copy p { color: var(--ink-soft); margin-bottom: 16px; line-height: 1.7; max-width: 58ch; }
.about-copy p strong { color: var(--ink); font-weight: 600; }
.founders { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.founders .avatar {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: "Outfit", sans-serif; font-weight: 600; font-size: 0.95rem;
  background: var(--accent-tint); color: var(--accent-strong);
}
.founders .avatar + .avatar { margin-left: -18px; background: var(--surface-2); color: var(--ink-soft); }
.founders .who b { display: block; font-weight: 600; }
.founders .who span { font-size: 0.84rem; color: var(--ink-soft); }

/* ============================================================
   HOW IT WORKS: vertical numbered timeline (own layout family)
   ============================================================ */
.timeline { max-width: 720px; counter-reset: step; }
.tl-item {
  position: relative;
  padding: 0 0 40px 62px;
  counter-increment: step;
}
.tl-item::before {
  content: counter(step);
  position: absolute; left: 0; top: -4px;
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: "Outfit", sans-serif; font-weight: 600; font-size: 1.05rem;
  background: var(--accent-tint); color: var(--accent-strong);
}
.tl-item:not(:last-child)::after {
  content: "";
  position: absolute; left: 19.5px; top: 44px; bottom: 8px;
  width: 1.5px; background: var(--line);
}
.tl-item h3 { font-size: 1.14rem; margin-bottom: 6px; }
.tl-item p { color: var(--ink-soft); max-width: 56ch; line-height: 1.65; }

/* ============================================================
   GRADE BOOK: bento grid with real background diversity
   ============================================================ */
.bento {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento .cell-photo { grid-row: span 2; }
  .bento .cell-quote { grid-column: span 2; }
}
.cell {
  border-radius: var(--radius);
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.cell .ti { color: var(--accent); margin-bottom: 12px; display: inline-block; }
.cell h3 { font-size: 1.02rem; margin-bottom: 6px; }
.cell p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.6; }
.cell-photo {
  padding: 0; overflow: hidden; border: 0;
  min-height: 260px;
  box-shadow: var(--shadow);
}
.cell-photo img { width: 100%; height: 100%; object-fit: cover; }
.cell-quote {
  background: var(--accent-tint);
  border-color: transparent;
  display: flex; flex-direction: column; justify-content: center;
}
.cell-quote blockquote {
  font-family: "Outfit", sans-serif;
  font-size: 1.15rem; font-weight: 500; line-height: 1.5;
  color: var(--ink);
  max-width: 44ch;
}
.cell-quote figcaption { margin-top: 12px; font-size: 0.86rem; color: var(--ink-soft); font-weight: 500; }

/* ============================================================
   OFFER: centered single-message band (own family)
   ============================================================ */
.offer { text-align: center; }
.offer .inner { max-width: 560px; margin: 0 auto; }
.offer h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.offer p { margin: 18px auto 30px; color: var(--ink-soft); max-width: 46ch; }
.offer .fine { font-size: 0.85rem; margin-top: 16px; opacity: 0.85; }

/* ============================================================
   FAQ: open two-column list, no accordion
   ============================================================ */
.faq-grid { display: grid; gap: 30px 44px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .faq-grid { grid-template-columns: 1fr 1fr; } }
.faq-cell h3 { font-size: 1.05rem; margin-bottom: 8px; }
.faq-cell p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.65; max-width: 56ch; }

/* ============================================================
   CONTACT + SERVICE AREA
   ============================================================ */
.contact-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 52px; }
@media (min-width: 680px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact-card .ti { color: var(--accent); font-size: 1.5rem; }
.contact-card .label { display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-soft); }
.contact-card .value { display: block; font-weight: 600; font-size: 1.04rem; margin-top: 2px; }
.area h3 { font-size: 1.2rem; margin-bottom: 10px; }
.area > p { color: var(--ink-soft); max-width: 62ch; margin-bottom: 22px; }
.area-label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); margin: 18px 0 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 0.86rem; font-weight: 600;
  background: var(--accent-tint); color: var(--accent-strong);
  padding: 7px 14px; border-radius: 999px;
}
.area .note { margin-top: 18px; font-size: 0.88rem; color: var(--ink-soft); }

/* ============================================================
   WAITLIST FORM
   ============================================================ */
.join { padding: 104px 0 96px; display: grid; place-items: center; }
.join-card {
  width: 100%; max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 40px 30px 32px;
}
.join-head { text-align: center; margin-bottom: 26px; }
.join-head h2 { font-size: 1.55rem; }
.join-head p { color: var(--ink-soft); margin-top: 8px; font-size: 0.95rem; }
.dots { display: flex; justify-content: center; gap: 7px; margin-top: 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background 0.25s ease, transform 0.25s ease; }
.dot.on { background: var(--accent); transform: scale(1.25); }
.step { animation: stepin 0.32s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes stepin { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
.step h3 { font-size: 1.1rem; text-align: center; margin-bottom: 20px; line-height: 1.4; }
.lbl { display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin: 16px 0 6px; }
input {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 1rem; font-family: inherit; font-weight: 500; color: var(--ink);
  background: var(--bg); outline: none; -webkit-appearance: none;
}
input::placeholder { color: var(--ink-soft); opacity: 0.75; }
input:focus { border-color: var(--accent); }
.soft-note { text-align: center; color: var(--ink-soft); font-size: 0.86rem; margin-top: 14px; }
.pick-grid { display: grid; gap: 12px; }
.pick-grid.two { grid-template-columns: 1fr 1fr; }
.pick-grid.four { grid-template-columns: 1fr 1fr; }
@media (min-width: 480px) { .pick-grid.four { grid-template-columns: repeat(4, 1fr); } }
.pick {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 18px 10px 14px;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px;
  font-family: inherit; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.pick:hover { border-color: var(--accent); }
.pick:active { transform: scale(0.97); }
.pick.selected { border-color: var(--accent); background: var(--accent-tint); }
.pick .ti { font-size: 1.6rem; color: var(--accent); }
.pick-label { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.pick-sub { font-weight: 500; font-size: 0.76rem; color: var(--ink-soft); }
.form-error {
  text-align: center; color: #B3423B; background: color-mix(in srgb, #B3423B 10%, var(--surface));
  font-size: 0.88rem; font-weight: 600; padding: 10px 14px; border-radius: 12px; margin-top: 16px;
}
@media (prefers-color-scheme: dark) { .form-error { color: #E89A94; } }
.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 26px; }
.form-nav .btn.primary { flex: 1; }
.success { text-align: center; padding: 12px 4px 4px; animation: stepin 0.4s ease; }
.success .ti { font-size: 3rem; color: var(--accent); margin-bottom: 10px; display: inline-block; }
.success h2 { font-size: 1.45rem; }
.success p { color: var(--ink-soft); line-height: 1.6; margin-top: 12px; }
.success b { color: var(--accent-strong); }
.confetti { position: fixed; top: -40px; z-index: 99; pointer-events: none; animation: fall linear forwards; }
.confetti svg { display: block; width: 100%; height: 100%; }
@keyframes fall { to { transform: translateY(110vh) rotate(360deg); opacity: 0.7; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 46px 0 calc(env(safe-area-inset-bottom) + 40px); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer p { margin-top: 10px; color: var(--ink-soft); font-size: 0.92rem; max-width: 36ch; line-height: 1.6; }
.footer h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: 12px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.92rem; opacity: 0.85; }
.footer a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom {
  margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
  color: var(--ink-soft); font-size: 0.84rem; font-weight: 500;
}
.footer-bottom a { color: var(--ink-soft); font-size: inherit; }
