/* =========================================================
   SafeStride — design tokens
   Palette grounded in the subject: water, tile, brass hardware.
   ========================================================= */

:root {
  --steam:        #F1F5F4;   /* page background — cool tile-white */
  --steam-deep:    #E7EDEC;   /* card / section background */
  --slate:        #1E3540;   /* primary text — deep water navy */
  --slate-soft:    #4C6169;   /* secondary text */
  --harbor:       #2F6E6E;   /* primary accent — teal, trust/water */
  --harbor-deep:   #234F4F;
  --brass:        #B8874A;   /* secondary accent — grab-bar hardware */
  --brass-deep:    #96692F;
  --clay:         #C1584A;   /* alert / caution only, used sparingly */
  --white:        #FFFFFF;

  --font-display: 'Roboto Slab', 'Georgia', serif;
  --font-body:    'Source Sans 3', 'Segoe UI', sans-serif;
  --font-label:   'IBM Plex Mono', monospace;

  --radius: 14px;
  --max-w: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--steam);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--harbor-deep); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--slate);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; }

.eyebrow {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--harbor-deep);
  font-weight: 600;
}

/* ---------- header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #DCE4E3;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--slate);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo .mark {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--harbor);
  position: relative;
  flex-shrink: 0;
}
.logo .mark::after {
  content: "";
  position: absolute;
  left: 7px; right: 7px; top: 50%;
  height: 4px;
  margin-top: -2px;
  background: var(--steam);
  border-radius: 4px;
}
nav.main-nav { display: flex; gap: 28px; }
nav.main-nav a {
  color: var(--slate-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}
nav.main-nav a:hover { color: var(--harbor-deep); }

/* ---------- grab-bar divider — signature element ---------- */
.grabbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 64px 0;
}
.grabbar .plate {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--brass);
  flex-shrink: 0;
}
.grabbar .bar {
  flex: 1;
  height: 6px;
  background: var(--brass);
  border-radius: 6px;
  opacity: 0.85;
}
.grabbar.quiet .bar { background: #D7DEDC; }
.grabbar.quiet .plate { background: #C7D0CE; }

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, var(--steam) 0%, var(--steam-deep) 100%);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-copy .eyebrow { margin-bottom: 14px; display: block; }
.hero-copy p.lede {
  font-size: 1.2rem;
  color: var(--slate-soft);
  max-width: 46ch;
}
.hero-art {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid #DCE4E3;
}
.hero-art .stat { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px dashed #DCE4E3; }
.hero-art .stat:last-child { border-bottom: none; }
.hero-art .stat .label { color: var(--slate-soft); font-size: 0.95rem; }
.hero-art .stat .value { font-family: var(--font-label); font-weight: 700; color: var(--harbor-deep); }

/* ---------- start-here chooser ---------- */
.chooser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.choice-card {
  background: var(--white);
  border: 1px solid #DCE4E3;
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.choice-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(30,53,64,0.08); }
.choice-card .tag {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--harbor);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.choice-card h3 { margin-bottom: 8px; }
.choice-card p { color: var(--slate-soft); margin-bottom: 0; font-size: 1rem; }
.choice-card .go {
  margin-top: 16px;
  font-weight: 700;
  color: var(--brass-deep);
  font-size: 0.95rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--harbor);
  color: var(--white) !important;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.02rem;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--harbor-deep); }
.btn.secondary {
  background: transparent;
  color: var(--harbor-deep) !important;
  border: 2px solid var(--harbor);
  padding: 12px 26px;
}
.btn.secondary:hover { background: var(--steam-deep); }

/* ---------- sections ---------- */
section { padding: 8px 0; }
.section-pad { padding: 56px 0; }
.bg-white { background: var(--white); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--white);
  border: 1px solid #DCE4E3;
  border-radius: var(--radius);
  padding: 26px;
}
.card .num {
  font-family: var(--font-label);
  color: var(--brass-deep);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: block;
}

.callout {
  background: var(--white);
  border-left: 5px solid var(--clay);
  border-radius: 8px;
  padding: 22px 26px;
  margin: 28px 0;
}
.callout .eyebrow { color: var(--clay); }

.pull-quote {
  background: var(--steam-deep);
  border-radius: var(--radius);
  padding: 32px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--slate);
  margin: 32px 0;
}
.pull-quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.95rem;
  color: var(--slate-soft);
  margin-top: 12px;
}

table.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}
table.cost-table th, table.cost-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid #E7EDEC;
}
table.cost-table th {
  background: var(--steam-deep);
  font-family: var(--font-label);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-soft);
}

.checklist { list-style: none; padding: 0; margin: 24px 0; }
.checklist li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #E7EDEC;
}
.checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--harbor);
  margin-top: 3px;
}

/* ---------- footer ---------- */
footer {
  background: var(--slate);
  color: #C8D3D3;
  padding: 48px 0 32px;
  margin-top: 64px;
}
footer a { color: #C8D3D3; }
footer .foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
footer h4 { color: var(--white); font-family: var(--font-body); font-size: 0.95rem; margin-bottom: 12px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 8px; font-size: 0.95rem; }
footer .fine { font-size: 0.82rem; color: #8FA0A0; border-top: 1px solid #33474F; padding-top: 20px; }

/* ---------- author box ---------- */
.author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid #DCE4E3;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 28px 0;
}
.author-box .avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--harbor);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
}
.author-box .name { font-weight: 700; color: var(--slate); }
.author-box .role { color: var(--slate-soft); font-size: 0.92rem; margin-bottom: 6px; }
.author-box p { margin: 0; font-size: 0.95rem; color: var(--slate-soft); }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid #E7EDEC;
  padding: 20px 0;
}
.faq-item h3 { margin-bottom: 8px; font-size: 1.15rem; }
.faq-item p { color: var(--slate-soft); margin-bottom: 0; }

/* ---------- timeline (install-day walkthrough) ---------- */
.timeline { margin: 28px 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  padding-bottom: 24px;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 108px; top: 26px; bottom: -4px;
  width: 2px;
  background: #DCE4E3;
}
.timeline-item:last-child::before { display: none; }
.timeline-time {
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brass-deep);
  padding-top: 2px;
}
.timeline-body h4 { margin: 0 0 6px; font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; }
.timeline-body p { margin: 0; color: var(--slate-soft); font-size: 0.97rem; }

/* ---------- red flag list ---------- */
.flag-list { list-style: none; padding: 0; margin: 24px 0; }
.flag-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #E7EDEC;
}
.flag-list li::before {
  content: "!";
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--clay);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ---------- brand comparison ---------- */
table.brand-table { width: 100%; border-collapse: collapse; margin: 24px 0; background: var(--white); border-radius: var(--radius); overflow: hidden; font-size: 0.95rem; }
table.brand-table th, table.brand-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid #E7EDEC; vertical-align: top; }
table.brand-table th { background: var(--steam-deep); font-family: var(--font-label); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-soft); }

/* ---------- source list ---------- */
.sources { font-size: 0.88rem; color: var(--slate-soft); }
.sources li { margin-bottom: 6px; }

/* ---------- toc ---------- */
.toc {
  background: var(--steam-deep);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 28px 0 40px;
}
.toc .eyebrow { display: block; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--slate); text-decoration: none; font-weight: 600; }
.toc a:hover { color: var(--harbor-deep); }

/* ---------- media / figures ---------- */
figure.photo {
  margin: 32px 0;
}
figure.photo img, figure.photo video {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  border: 1px solid #DCE4E3;
}
figure.photo figcaption {
  font-size: 0.88rem;
  color: var(--slate-soft);
  margin-top: 10px;
  text-align: center;
}
.photo-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #DCE4E3;
}
.photo-grid-4 img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #DCE4E3;
}
.hero-photo img { width: 100%; display: block; }
.card-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .chooser { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  footer .foot-grid { grid-template-columns: 1fr; }
  nav.main-nav { display: none; }
  body { font-size: 18px; }
  .timeline-item { grid-template-columns: 70px 1fr; }
  .timeline-item::before { left: 78px; }
  table.brand-table, table.cost-table { display: block; overflow-x: auto; white-space: nowrap; }
}

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