/* AppointTide — one-page site. Self-contained. */
:root {
  --paper: #f3eee4;
  --foam: #faf7f1;
  --card: #fffdf8;
  --ink: #15231f;
  --ink-soft: #3d4d48;
  --muted: #5c6b66;
  --tide: #1b6a61;
  --tide-deep: #0e3f3a;
  --tide-mid: #2a857a;
  --tide-soft: #dceae7;
  --copper: #a86b3c;
  --copper-soft: #f3e6d6;
  --line: #ddd5c6;
  --shadow: 0 10px 30px rgba(14, 63, 58, 0.08);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
  --narrow: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--tide); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--tide-deep); }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(var(--narrow), calc(100% - 40px)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
}
.brand img { width: 36px; height: 36px; }
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--tide-deep); }
.nav-cta {
  background: var(--tide-deep) !important;
  color: var(--foam) !important;
  text-decoration: none !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--tide) !important; }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px;
  font: inherit; color: var(--ink); cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--tide-deep); color: var(--foam) !important; }
.btn-primary:hover { background: var(--tide); color: var(--foam) !important; }
.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink) !important; }
.btn-light { background: var(--foam); color: var(--tide-deep) !important; }
.btn-light:hover { background: #fff; color: var(--tide-deep) !important; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 650; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--tide);
  margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 16ch;
}
.hero .lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 0 0 28px;
}
.hero-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.wave {
  width: 100%;
  height: 56px;
  display: block;
  color: var(--tide-deep);
  opacity: 0.18;
}

/* Sections */
section { padding: 72px 0; }
.section-label {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--tide);
  margin: 0 0 10px;
}
h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 16px;
}
.section-intro { color: var(--ink-soft); max-width: 52ch; margin: 0 0 36px; }

/* How it works */
.how { background: var(--foam); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 26px 30px;
  box-shadow: var(--shadow);
}
.step-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--tide);
  margin: 0 0 10px;
}
.step h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.step p { margin: 0; color: var(--ink-soft); }

/* Qualified */
.qualify-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  position: relative;
  padding: 14px 0 14px 36px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: "";
  position: absolute; left: 0; top: 20px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--tide-soft);
  box-shadow: inset 0 0 0 2px var(--tide);
}
.checks li::after {
  content: "";
  position: absolute; left: 6px; top: 25px;
  width: 6px; height: 3px;
  border-left: 2px solid var(--tide-deep);
  border-bottom: 2px solid var(--tide-deep);
  transform: rotate(-45deg);
}
.aside-card {
  background: var(--tide-deep);
  color: var(--foam);
  border-radius: 18px;
  padding: 28px 26px;
}
.aside-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 0 0 10px;
}
.aside-card p { margin: 0; color: #d7e4e1; }

/* Pricing */
.pricing { background: var(--foam); }
.price-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}
.price-card, .offer-card {
  border-radius: 20px;
  padding: 32px 30px;
  border: 1px solid var(--line);
}
.price-card {
  background: var(--card);
  box-shadow: var(--shadow);
}
.price-amount {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 8px 0 4px;
}
.price-amount span {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.price-card ul, .offer-card ul {
  margin: 22px 0 0;
  padding: 0 0 0 1.1em;
  color: var(--ink-soft);
}
.price-card li, .offer-card li { margin: 0 0 8px; }
.offer-card {
  background: var(--copper-soft);
  border-color: color-mix(in srgb, var(--copper) 35%, var(--line));
}
.offer-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 8px;
}

/* FAQ */
.faq-list { display: grid; gap: 10px; }
details.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 20px;
}
details.faq summary {
  cursor: pointer;
  font-weight: 650;
  padding: 16px 0;
  list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
  align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--tide);
  font-weight: 500;
}
details.faq[open] summary::after { content: "–"; }
details.faq p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  max-width: 65ch;
}

/* CTA */
.cta {
  padding: 0 0 80px;
}
.cta-band {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  background: var(--tide-deep);
  color: var(--foam);
  border-radius: 24px;
  padding: 56px 48px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}
.cta-band h2 { color: var(--foam); margin-bottom: 8px; }
.cta-band p { margin: 0; color: #d5e5e2; max-width: 42ch; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-grid {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); margin-bottom: 10px; }
.footer-brand img { width: 28px; height: 28px; }
.footer-brand span { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.site-footer h3 {
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 10px;
}
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--tide-deep); text-decoration: underline; }
.privacy {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  color: var(--muted);
  font-size: 0.88rem;
}
.legal { margin: 8px 0 0; }

@media (max-width: 860px) {
  .steps, .qualify-grid, .price-layout, .footer-grid, .cta-band {
    grid-template-columns: 1fr;
  }
  .cta-band { padding: 36px 24px; flex-direction: column; align-items: flex-start; }
  .hero { padding: 48px 0 36px; }
  section { padding: 56px 0; }
  .nav { display: none; }
  .header-inner[data-open="true"] .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    left: 0; right: 0; top: 72px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px;
    gap: 12px;
  }
  .nav-toggle { display: inline-flex; }
  .nav-cta { align-self: flex-start; }
}
@media (max-width: 400px) {
  .wrap, .narrow, .header-inner, .cta-band, .footer-grid, .privacy {
    width: calc(100% - 28px);
  }
  body { font-size: 17px; }
}
