/* ============================================================
   holdfast components
   layer 2 of the design system, v1.2.0
   requires tokens.css and base.css loaded first, in that order

   every value here comes from the locked source,
   holdfast-direction-1-cards-refined-white-body.html, or the
   crib sheet recorded during its audit. no invented values.
   one deliberate change: the promise attribution pattern ships
   without the em dash the source carried
   ============================================================ */

/* ------------------------------------------------------------
   eyebrows, three variants
   ------------------------------------------------------------ */
.eyebrow-dark,
.eyebrow-light,
.eyebrow-coral {
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-eyebrow);
  text-transform: lowercase;
  margin-bottom: 18px;
}
.eyebrow-dark  { font-size: var(--fs-eyebrow); color: var(--kelp-bright); }
.eyebrow-light { font-size: var(--fs-eyebrow-light); color: var(--kelp-mid); }
.eyebrow-coral { font-size: var(--fs-eyebrow-light); color: var(--coral); }

/* ------------------------------------------------------------
   site header, sticky navy glass
   ------------------------------------------------------------ */
.site-header {
  padding: 30px 0;
  position: sticky;
  top: 0;
  background: var(--bg-header);
  backdrop-filter: blur(var(--header-blur));
  -webkit-backdrop-filter: blur(var(--header-blur));
  z-index: 10;
  border-bottom: var(--border-hairline) solid var(--border-dark-subtle);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wordmark {
  font-family: var(--font-display);
  font-size: var(--fs-wordmark);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wordmark);
  color: var(--text-cream);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: var(--fs-body-sm);
  color: var(--text-white);
}
.nav-links a {
  text-decoration: none;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}
.nav-links a:hover,
.nav-links a:focus-visible { opacity: 1; }
.nav-links a:focus-visible {
  outline: none;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ------------------------------------------------------------
   hero, navy with the stripe on its bottom edge
   ------------------------------------------------------------ */
.hero {
  padding: 96px 0 112px;
  background: var(--bg-navy);
  color: var(--text-white);
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--stripe-height);
  background: var(--stripe);
}
.hero h1 {
  font-size: var(--fs-hero);
  line-height: var(--lh-hero);
  letter-spacing: var(--ls-hero);
  color: var(--text-cream);
  max-width: 760px;
  margin-bottom: 28px;
}
.hero p {
  font-size: var(--fs-subhead);
  line-height: var(--lh-subhead);
  color: var(--text-white);
  max-width: 540px;
  margin-bottom: 36px;
}

/* ------------------------------------------------------------
   buttons
   ------------------------------------------------------------ */
.btn-coral {
  display: inline-block;
  background: var(--coral);
  color: var(--text-cream-2);
  padding: 14px 26px;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  border-radius: var(--radius-btn);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.btn-coral:hover,
.btn-coral:focus-visible { background: var(--coral-hover); }
.btn-coral:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.btn-ghost-dark {
  display: inline-block;
  color: var(--text-white);
  padding: 14px 0;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  text-decoration: none;
  margin-left: 24px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast);
}
.btn-ghost-dark:hover { border-bottom-color: var(--text-white); }

/* ------------------------------------------------------------
   section title row, the recurring structural device
   ------------------------------------------------------------ */
.section-title-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 56px;
  padding-left: var(--title-row-indent);
  border-left: var(--title-bar-width) solid var(--kelp-mid);
}
.section-title-row--coral { border-left-color: var(--coral); }
.section-title-content { flex: 1; }
.section-title-content .eyebrow-light,
.section-title-content .eyebrow-coral { margin-bottom: 10px; }
.section-title {
  font-size: var(--fs-section-title);
  line-height: var(--lh-section-title);
  letter-spacing: var(--ls-section-title);
  color: var(--text-navy);
  max-width: 640px;
}

/* ------------------------------------------------------------
   section wrappers
   ------------------------------------------------------------ */
.tools-section {
  padding: var(--section-pad-y-lg) 0 var(--section-pad-y);
  background: var(--bg-white);
}
.how-section     { background: var(--bg-how); }
.promise-section { background: var(--bg-promise); }
.closing-section { background: var(--bg-white); text-align: center; }

/* ------------------------------------------------------------
   tool cards
   ------------------------------------------------------------ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.tool-card {
  background: var(--bg-white);
  border: var(--border-hairline) solid var(--border-light);
  border-radius: var(--radius-card-lg);
  padding: var(--card-pad);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 256px;
  transition:
    border-color var(--transition),
    background var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}
.tool-card:hover,
.tool-card:focus-visible {
  border-color: var(--border-kelp-strong);
  background: var(--bg-tools-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  outline: none;
}
.tool-card-icon {
  color: var(--kelp-mid);
  margin-bottom: 22px;
  width: 24px;
  height: 24px;
  display: inline-flex;
}
.tool-card-icon svg { width: 100%; height: 100%; display: block; }
.tool-card-title {
  font-size: var(--fs-card-title);
  line-height: var(--lh-card-title);
  letter-spacing: var(--ls-card-title);
  color: var(--text-navy);
  margin-bottom: 10px;
}
.tool-card-desc {
  font-size: var(--fs-body-sm);
  color: var(--text-muted);
  line-height: 1.55;
  flex-grow: 1;
  margin-bottom: 22px;
}
.tool-card-action {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 18px;
  border-top: var(--border-hairline) solid var(--border-faint);
}
.tool-card-open {
  font-size: var(--fs-body-xs);
  color: var(--coral);
  font-weight: var(--fw-medium);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: transform var(--transition);
}
.tool-card:hover .tool-card-open { transform: translateX(3px); }
.tool-card-price {
  font-family: var(--font-display);
  font-size: var(--fs-price);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-price);
  line-height: var(--lh-solid);
  color: var(--text-navy);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------
   step cards
   ------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step {
  background: var(--bg-white);
  border-radius: var(--radius-card);
  padding: var(--card-pad-step);
  border: var(--border-hairline) solid var(--border-kelp);
}
.step-number {
  font-family: var(--font-display);
  font-size: var(--fs-step-numeral);
  font-weight: var(--fw-regular);
  font-style: italic;
  line-height: var(--lh-solid);
  margin-bottom: 16px;
}
.step-i .step-number   { color: var(--kelp-mid); }
.step-ii .step-number  { color: var(--coral); }
.step-iii .step-number { color: var(--text-navy); }
.step-title {
  font-size: var(--fs-step-title);
  line-height: var(--lh-step-title);
  letter-spacing: var(--ls-step-title);
  color: var(--text-navy);
  margin-bottom: 10px;
}
.step-desc {
  font-size: var(--fs-body-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   stats block, coral
   ------------------------------------------------------------ */
.stats-section {
  padding: 80px 0;
  background: var(--bg-coral);
  color: var(--text-cream-2);
}
.stats-section .eyebrow-coral {
  color: var(--text-cream-2);
  margin-bottom: 14px;
}
.stats-title {
  font-size: var(--fs-stats-title);
  line-height: var(--lh-stats-title);
  letter-spacing: var(--ls-stats-title);
  color: var(--text-cream-2);
  margin-bottom: 56px;
  max-width: 600px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat {
  padding-left: 20px;
  border-left: 2px solid var(--border-cream);
}
.stat-number {
  font-family: var(--font-display);
  font-size: var(--fs-stat-number);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-stat-number);
  line-height: var(--lh-solid);
  color: var(--text-cream-2);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: var(--fs-body-xs);
  color: var(--text-cream-2);
  line-height: 1.4;
  opacity: 0.92;
}

/* ------------------------------------------------------------
   promise and closing
   ------------------------------------------------------------ */
.promise {
  font-family: var(--font-display);
  font-size: var(--fs-quote);
  font-style: italic;
  font-weight: var(--fw-regular);
  line-height: var(--lh-quote);
  color: var(--text-navy);
  max-width: 760px;
}
.promise-attr {
  margin-top: 24px;
  font-size: var(--fs-eyebrow);
  color: var(--kelp-mid);
  letter-spacing: var(--ls-eyebrow);
  text-transform: lowercase;
  font-weight: var(--fw-medium);
}
.closing-title {
  font-size: var(--fs-closing);
  line-height: var(--lh-closing);
  letter-spacing: var(--ls-closing);
  color: var(--text-navy);
  margin-bottom: 16px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.closing-desc {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ------------------------------------------------------------
   site footer, navy with the stripe on its top edge
   ------------------------------------------------------------ */
.site-footer {
  padding: 96px 0 36px;
  background: var(--bg-navy);
  color: var(--text-white);
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--stripe-height);
  background: var(--stripe);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand-blurb {
  font-family: var(--font-display);
  font-size: var(--fs-footer-blurb);
  font-style: italic;
  line-height: 1.5;
  color: var(--text-white);
  opacity: 0.9;
  max-width: 340px;
  margin-top: 14px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: lowercase;
  color: var(--kelp-bright);
  margin-bottom: 18px;
  font-weight: var(--fw-medium);
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 10px; font-size: var(--fs-body-sm); }
.footer-col a {
  color: var(--text-white);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  border-top: var(--border-hairline) solid var(--border-dark);
  font-size: var(--fs-eyebrow);
  color: var(--text-cream);
}

/* ------------------------------------------------------------
   mobile, values from the source 760px block.
   type sizes and paddings held in tokens reassign on their own,
   these are the structural changes only
   ------------------------------------------------------------ */
@media (max-width: 760px) {
  .hero { padding: 56px 0 72px; }
  .section-title-row { margin-bottom: 36px; }
  .tools-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: auto; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .stats-section { padding: 56px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .stats-title { margin-bottom: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav-links { gap: 18px; font-size: var(--fs-body-xs); }
  .site-footer { padding: 64px 0 28px; }
}
