/* AfterCare Auto — customer-facing site
   Palette derived from the AfterCare Auto wordmark. */

:root {
  --blue: #5170FF;
  --blue-deep: #2F49C4;
  --green: #22C55E;
  --ink: #12141C;
  --slate: #5A6072;
  --hair: #E4E6EF;
  --paper: #FFFFFF;
  --wash: #F7F8FC;
  --measure: 42rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Archivo", "IBM Plex Sans", system-ui, sans-serif;
  letter-spacing: -0.022em;
  line-height: 1.12;
  margin: 0;
}

a { color: var(--blue-deep); }

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--hair);
  padding: 1.75rem 0;
}

.masthead img { display: block; width: 268px; height: auto; }

@media (max-width: 30rem) {
  .masthead img { width: 215px; }
}

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

.hero { padding: 3.5rem 0 2.5rem; }

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 6.4vw, 2.9rem);
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue);
}

.lede {
  font-size: 1.1875rem;
  color: var(--slate);
  margin: 1.25rem 0 0;
  max-width: 34rem;
}

/* ---------- signature: the verified sender card ---------- */

.verify {
  margin: 2.75rem 0 0;
  border: 1px solid var(--hair);
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(18, 20, 28, 0.04),
              0 12px 32px -18px rgba(18, 20, 28, 0.22);
}

.verify-head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--hair);
  background: var(--wash);
}

.verify-head img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: block;
  flex: none;
}

.verify-name {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tick {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--blue);
}

.verify-sub {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}

.verify-body { padding: 1.25rem; }

.thread-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 0.875rem;
}

.bubble {
  background: var(--wash);
  border-radius: 4px 18px 18px 18px;
  padding: 0.9375rem 1.0625rem;
  font-size: 0.9688rem;
  line-height: 1.55;
  max-width: 94%;
}

.bubble + .bubble { margin-top: 0.75rem; border-radius: 18px; }

.bubble.them {
  background: var(--blue);
  color: #fff;
  margin-left: auto;
  border-radius: 18px 18px 4px 18px;
  max-width: 78%;
}

.thread-gap {
  margin: 1.25rem 0 1rem;
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

.attach {
  margin: 0.5rem 0 0;
  padding-left: 0.125rem;
  font-size: 0.8125rem;
  color: var(--slate);
}

.verify-note {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--slate);
}

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

section { padding: 2.75rem 0; }

section + section { border-top: 1px solid var(--hair); }

section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

section p { margin: 0 0 1rem; }

section p:last-child { margin-bottom: 0; }

.plain { list-style: none; padding: 0; margin: 0; }

.plain li {
  padding: 0.6875rem 0 0.6875rem 1.5rem;
  border-bottom: 1px solid var(--hair);
  position: relative;
}

.plain li:last-child { border-bottom: 0; }

.plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.3rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.never li::before { background: var(--ink); opacity: 0.28; }

/* ---------- keyword chips ---------- */

kbd {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--ink);
  color: #fff;
  border-radius: 5px;
  padding: 0.15em 0.45em;
  letter-spacing: 0.04em;
}

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

.callout {
  background: var(--wash);
  border-left: 3px solid var(--blue);
  border-radius: 0 12px 12px 0;
  padding: 1.125rem 1.25rem;
  font-size: 0.9375rem;
}

.callout strong { font-weight: 600; }

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

footer {
  border-top: 1px solid var(--hair);
  background: var(--wash);
  padding: 2.5rem 0 3.5rem;
  font-size: 0.9375rem;
  color: var(--slate);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

footer nav a { text-decoration: none; font-weight: 500; }

footer nav a:hover { text-decoration: underline; }

footer p { margin: 0 0 0.5rem; }

/* ---------- legal pages ---------- */

.legal { padding: 3rem 0 4rem; }

.legal h1 {
  font-size: clamp(1.75rem, 5vw, 2.375rem);
  font-weight: 700;
}

.legal .dates {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 1rem 0 2.5rem;
}

.legal h2 {
  font-size: 1.1875rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
}

.legal h3 {
  font-size: 1rem;
  font-weight: 600;
  font-family: "IBM Plex Sans", sans-serif;
  margin: 1.75rem 0 0.5rem;
}

.legal p, .legal li { font-size: 1rem; }

.legal ul { padding-left: 1.25rem; }

.legal li { margin-bottom: 0.5rem; }

.backlink {
  display: inline-block;
  margin-top: 3rem;
  font-size: 0.9375rem;
}

/* ---------- /link compose page ---------- */

.compose {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 4rem;
}

.compose img.avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.compose h1 { font-size: 1.75rem; font-weight: 700; }

.compose p { color: var(--slate); margin: 0.875rem 0 2rem; max-width: 24rem; }

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  padding: 0.9375rem 2rem;
  border-radius: 999px;
}

.btn:hover { background: var(--blue-deep); }

.compose small { display: block; margin-top: 1.75rem; color: var(--slate); font-size: 0.875rem; }

/* ---------- motion ---------- */

.rise { animation: rise 0.5s cubic-bezier(0.22, 0.8, 0.3, 1) both; }
.rise:nth-of-type(2) { animation-delay: 0.06s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
}

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