/* TheirCare marketing site.
   Palette and typography lifted from the live GoDaddy site so the rebuild is a like-for-like
   replacement, not a redesign. The teal is the same #1F7A8C the Calendar app itself uses. */

:root {
  --teal: #1F7A8C;
  --teal-dark: #17606E;
  --gold: #C79A55;
  --ink: #1F333D;
  --ink-soft: #5E7480;
  --ink-faint: #7C97A6;
  --line: #DCE5E8;
  --cream: #F7F2EA;
  --cream-alt: #F6F4EE;
  --white: #FFFFFF;

  --wrap: 1120px;
  --radius: 14px;
  --shadow: none; /* the design system this brand shares says no shadows anywhere */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a:not(.btn) { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }
.nav a:not(.btn):hover,
.nav a:not(.btn)[aria-current="page"] { color: var(--teal); text-decoration: none; }

/* :not(.btn) above is load-bearing. `.nav a` has higher specificity than `.btn-primary`, so a
   plain `.nav a { color: ... }` rule silently overrode the button's white text and rendered the
   header CTA as muted grey on teal - unreadable, and invisible in any assertion that only checks
   the element exists. Caught by actually looking at a screenshot. */
.nav a[aria-current="page"].btn { color: #fff; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }

.btn-ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-ghost:hover { background: var(--teal); color: #fff; }

.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

/* ---------- sections ---------- */

section { padding: 76px 0; }
section.tint { background: var(--cream); }
section.tint-alt { background: var(--cream-alt); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .74rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 14px;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 18px; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.16rem; letter-spacing: -0.01em; }

p { margin: 0 0 18px; }
.lead { font-size: clamp(1.05rem, 2vw, 1.24rem); color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.measure { max-width: 68ch; }
.center { text-align: center; }
.center .measure { margin-inline: auto; }

/* ---------- hero ---------- */

.hero {
  padding: 96px 0 84px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- cards ---------- */

.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

/* ---------- numbered steps ---------- */

.steps { display: grid; gap: 20px; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
}
.step h3 { margin-bottom: 8px; }
.step p:last-child { margin-bottom: 0; }

/* ---------- beliefs / list ---------- */

.belief-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.belief-list li {
  border-left: 3px solid var(--teal);
  padding: 4px 0 4px 22px;
}
.belief-list strong { display: block; font-size: 1.06rem; margin-bottom: 4px; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 14px; max-width: 860px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 26px;
}
.faq details[open] { border-color: var(--teal); }
.faq summary {
  cursor: pointer;
  font-weight: 800;
  padding: 20px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 10px; height: 10px; flex: none;
  border-right: 2px solid var(--ink-faint);
  border-bottom: 2px solid var(--ink-faint);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .answer { padding: 0 0 22px; color: var(--ink-soft); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- forms ---------- */

.form { display: grid; gap: 18px; max-width: 560px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 700; font-size: .93rem; }
.field input, .field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31, 122, 140, .14);
}
.field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: .9rem; color: var(--ink-soft); }

.form-status { display: none; border-radius: 10px; padding: 14px 16px; font-weight: 700; }
.form-status.is-ok { display: block; background: #E8F3F1; color: #17606E; }
.form-status.is-error { display: block; background: #FBEDE9; color: #A2422A; }

.inline-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.inline-form .field { flex: 1 1 260px; }

/* ---------- callout ---------- */

.callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: var(--white);
  padding: 26px 30px;
}
.callout p:last-child { margin-bottom: 0; }

code, .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .93em;
  background: var(--cream-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: #C4D2D9;
  padding: 54px 0 34px;
}
.site-footer a { color: #C4D2D9; font-weight: 600; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; }
.footer-top { display: flex; flex-wrap: wrap; gap: 34px; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
.footer-tag { margin: 12px 0 0; color: #8FA6B0; font-size: .95rem; }
.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .88rem;
  color: #8FA6B0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--teal); color: #fff;
  padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 100;
}
.skip-link:focus { left: 0; top: 0; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  section { padding: 56px 0; }
  .hero { padding: 66px 0 56px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; border-bottom: none; }
  .step { grid-template-columns: 1fr; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Pricing page ---------------------------------------------------
   Added for pricing.html. Everything here reuses the existing tokens - no new
   colours, and no shadows, per the design system this brand shares. */

.badge {
  display: inline-block; vertical-align: middle;
  background: var(--gold); color: #fff;
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 9px; border-radius: 999px; margin-left: 8px;
}

.plan-price { font-size: 2rem; font-weight: 800; color: var(--ink); margin: 6px 0 2px; }
.plan-price .muted { font-size: 1rem; font-weight: 600; }
.plan-detail { margin-bottom: 18px; }

/* The stepper reads as one control rather than three, so the count is clearly
   the thing the buttons act on. */
.seat-stepper {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 12px;
}
.seat-stepper .seat-label { font-weight: 700; margin-right: auto; }
.seat-btn {
  width: 40px; height: 40px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem; line-height: 1;
  background: var(--white); color: var(--teal); border: 1px solid var(--teal);
}
.seat-btn:hover:not(:disabled) { background: var(--teal); color: #fff; }
/* Disabled rather than hidden at the floor of three: a control that vanishes
   makes people think they broke something, one that dims explains itself. */
.seat-btn:disabled { opacity: .35; cursor: not-allowed; border-color: var(--line); color: var(--ink-faint); }
.seat-count { min-width: 2.5ch; text-align: center; font-size: 1.25rem; font-weight: 800; }

.subdomain-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.subdomain-row input { flex: 1 1 12rem; min-width: 0; }
.subdomain-suffix { color: var(--ink-soft); font-weight: 700; white-space: nowrap; }

.form-note.is-available { color: var(--teal-dark); font-weight: 700; }
.form-note.is-taken { color: #A2422A; font-weight: 700; }

@media (max-width: 640px) {
  .subdomain-suffix { font-size: .9rem; }
}

/* The tenant's own web address, shown on the post-checkout waiting page. Wraps rather than
   overflows: subdomains are customer-chosen and can be long on a narrow phone. */
.address {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .95em;
  overflow-wrap: anywhere;
}
