/* ============================================================
   Anchor Web Care — core stylesheet
   Palette: harbor depth + limestone + signal green
   Type: Bricolage Grotesque (display) / Source Serif 4 (body)
         / IBM Plex Mono (data + labels)
   ============================================================ */

:root {
  --deep:    #12332F;
  --harbor:  #1D5A52;
  --harbor-lift: #27736A;
  --signal:  #3F9E6C;
  --amber:   #B8701A;
  --sand:    #E9E2D5;
  --paper:   #F7F4EE;
  --ink:     #16211F;
  --stone:   #6E7B76;
  --line:    #D6CDBE;

  --measure: 68ch;
  --wrap: 1140px;
  --r: 4px;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.34rem + 0.8vw, 2rem);
  --step-3:  clamp(1.95rem, 1.62rem + 1.6vw, 2.9rem);
  --step-4:  clamp(2.5rem, 1.9rem + 3vw, 4.4rem);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; max-width: var(--measure); }
a { color: var(--harbor); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--amber); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

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

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--deep); color: var(--paper);
  padding: 0.7rem 1.1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- mono utility label ---------- */
.tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  display: block;
  margin-bottom: 1rem;
}
.tag--light { color: rgba(233, 226, 213, 0.65); }

/* ---------- status dot (signature motif) ---------- */
.dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal);
  margin-right: 0.5rem;
  vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(63, 158, 108, 0.55);
  animation: pulse 3.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(63, 158, 108, 0.5); }
  55%  { box-shadow: 0 0 0 7px rgba(63, 158, 108, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 158, 108, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
}

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head__in {
  display: flex; align-items: center; gap: 2rem;
  min-height: 68px;
}
.brand {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700; font-size: 1.06rem;
  letter-spacing: -0.02em;
  color: var(--deep); text-decoration: none;
  display: flex; align-items: center; gap: 0.55rem;
  margin-right: auto;
}
.brand svg { width: 22px; height: 22px; flex: none; }
.brand:hover { color: var(--harbor); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem; letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--amber); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column;
    align-items: flex-start; gap: 1.1rem;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1.4rem 1.25rem 1.8rem;
  }
  .nav-toggle {
    display: block; background: none; border: 1px solid var(--line);
    border-radius: var(--r); padding: 0.45rem 0.7rem; cursor: pointer;
    font-family: "IBM Plex Mono", monospace; font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink);
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

.btn--solid { background: var(--harbor); color: var(--paper); }
.btn--solid:hover { background: var(--deep); color: var(--paper); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--harbor); color: var(--harbor); }
.btn--onDark { background: var(--sand); color: var(--deep); }
.btn--onDark:hover { background: #fff; color: var(--deep); }

/* ---------- section rhythm ---------- */
.band { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.band--dark { background: var(--deep); color: var(--sand); }
.band--sand { background: var(--sand); }
.band--tight { padding-block: clamp(2.5rem, 4vw, 3.5rem); }

.band--dark h2, .band--dark h3 { color: var(--paper); }
.band--dark a { color: #9FD6BE; }
.band--dark a:hover { color: #fff; }

.lede { font-size: var(--step-1); color: var(--stone); max-width: 56ch; }
.band--dark .lede { color: rgba(233, 226, 213, 0.78); }

.head-2 { font-size: var(--step-3); margin-bottom: 1.1rem; }
.head-3 { font-size: var(--step-2); margin-bottom: 0.9rem; }

/* ---------- hero ---------- */
.hero {
  background: var(--deep);
  color: var(--sand);
  padding-block: clamp(3.5rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--harbor-lift), transparent);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: var(--step-4);
  color: var(--paper);
  margin-bottom: 1.4rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--signal);
}
.hero p {
  color: rgba(233, 226, 213, 0.8);
  font-size: var(--step-1);
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.hero__note {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem; letter-spacing: 0.04em;
  color: rgba(233, 226, 213, 0.55);
  margin-top: 1.5rem;
}

/* ---------- signature: the care board ---------- */
.board {
  background: #0C2623;
  border: 1px solid rgba(233, 226, 213, 0.16);
  border-radius: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}
.board__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(233, 226, 213, 0.14);
  color: rgba(233, 226, 213, 0.6);
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.board__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0.72rem 1rem;
  border-bottom: 1px solid rgba(233, 226, 213, 0.08);
  color: rgba(233, 226, 213, 0.85);
  opacity: 0;
  animation: rowin 0.5s ease forwards;
}
.board__row:last-child { border-bottom: 0; }
.board__row span:last-child { color: var(--signal); white-space: nowrap; }
.board__row--amber span:last-child { color: #E0A253; }
.board__row:nth-child(2) { animation-delay: 0.10s; }
.board__row:nth-child(3) { animation-delay: 0.20s; }
.board__row:nth-child(4) { animation-delay: 0.30s; }
.board__row:nth-child(5) { animation-delay: 0.40s; }
.board__row:nth-child(6) { animation-delay: 0.50s; }
.board__row:nth-child(7) { animation-delay: 0.60s; }
@keyframes rowin {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .board__row { animation: none; opacity: 1; }
}
.board__foot {
  padding: 0.75rem 1rem;
  background: rgba(63, 158, 108, 0.08);
  border-top: 1px solid rgba(233, 226, 213, 0.14);
  color: rgba(233, 226, 213, 0.6);
  font-size: 0.7rem;
}

/* ---------- generic grids ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 950px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.6rem;
}
.card h3 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; color: var(--stone); margin-bottom: 0; }
.card--link { text-decoration: none; color: inherit; display: block; transition: border-color 0.16s ease, transform 0.16s ease; }
.card--link:hover { border-color: var(--harbor); transform: translateY(-2px); color: inherit; }
@media (prefers-reduced-motion: reduce) { .card--link:hover { transform: none; } }
.card__more {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--harbor); margin-top: 1rem; display: block;
}

/* ---------- included list ---------- */
.inc { list-style: none; margin: 0; padding: 0; }
.inc li {
  padding: 0.62rem 0 0.62rem 1.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 0.97rem;
}
.inc li::before {
  content: "";
  position: absolute; left: 0; top: 1.15rem;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal);
}
.band--dark .inc li { border-color: rgba(233, 226, 213, 0.14); }

/* ---------- pricing ---------- */
.tier {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.9rem 1.6rem;
  background: var(--paper);
  display: flex; flex-direction: column;
}
.tier--feature {
  border-color: var(--harbor);
  border-width: 2px;
  position: relative;
}
.tier__flag {
  position: absolute; top: -11px; left: 1.4rem;
  background: var(--harbor); color: var(--paper);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 2px;
}
.tier h3 { font-size: var(--step-1); margin-bottom: 0.15rem; }
.tier__who {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem; letter-spacing: 0.05em; color: var(--stone);
  text-transform: uppercase; margin-bottom: 1.1rem;
}
.tier__price {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 2.5rem; font-weight: 700; letter-spacing: -0.03em;
  color: var(--deep); line-height: 1;
}
.tier__price small {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem; font-weight: 400; color: var(--stone);
  letter-spacing: 0.04em;
}
.tier__setup {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem; color: var(--stone);
  margin: 0.5rem 0 1.3rem;
}
.tier .inc { margin-bottom: 1.6rem; }
.tier .inc li { font-size: 0.9rem; }
.tier .btn { margin-top: auto; text-align: center; }

/* ---------- steps (real sequence: onboarding days) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .when {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--amber); padding-top: 0.35rem;
}
.steps h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.steps p { margin-bottom: 0; color: var(--stone); font-size: 0.95rem; }
@media (max-width: 620px) {
  .steps li { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); max-width: 78ch; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}
.faq summary {
  cursor: pointer;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700; font-size: 1.06rem;
  letter-spacing: -0.015em;
  list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 0.8rem 0 0; color: var(--stone); font-size: 0.97rem; }

/* ---------- prose ---------- */
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--step-2); margin: 2.4rem 0 0.8rem; }
.prose h3 { font-size: var(--step-1); margin: 1.8rem 0 0.6rem; }
.prose ul { padding-left: 1.15rem; }
.prose li { margin-bottom: 0.4rem; }

/* ---------- form ---------- */
.form { display: grid; gap: 1.1rem; max-width: 560px; }
.field { display: grid; gap: 0.35rem; }
.field label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--stone);
}
.field input, .field select, .field textarea {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--harbor);
  outline: 2px solid rgba(29, 90, 82, 0.18);
  outline-offset: 0;
}
.field textarea { min-height: 120px; resize: vertical; }
.form__note { font-size: 0.86rem; color: var(--stone); }
.hp { position: absolute; left: -9999px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.cta-band p { margin-inline: auto; }
.cta-band .btn { margin-top: 0.6rem; }

/* ---------- footer ---------- */
.site-foot {
  background: var(--deep);
  color: rgba(233, 226, 213, 0.7);
  padding-block: 3.5rem 2.5rem;
  font-size: 0.9rem;
}
.site-foot a { color: rgba(233, 226, 213, 0.82); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(233, 226, 213, 0.14);
}
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr; gap: 1.8rem; } }
.foot__grid h4 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 400; color: rgba(233, 226, 213, 0.5);
  margin-bottom: 0.9rem;
}
.foot__grid ul { list-style: none; margin: 0; padding: 0; }
.foot__grid li { margin-bottom: 0.5rem; }
.foot__brand {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700; font-size: 1.15rem; color: var(--paper);
  margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.55rem;
}
.foot__brand svg { width: 22px; height: 22px; }
.foot__legal {
  padding-top: 1.6rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem; letter-spacing: 0.03em;
  color: rgba(233, 226, 213, 0.45);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
