/* ==========================================================================
   Safe2Scroll — site styles
   Palette, type scale, and components. Edit tokens in :root to restyle.
   ========================================================================== */

:root {
  /* Color */
  --ink:        #16202b;
  --ink-soft:   #2d3b4a;
  --muted:      #5a6672;
  --muted-light:#8794a1;
  --paper:      #fbf9f5;
  --paper-warm: #f4efe7;
  --card:       #ffffff;
  --line:       #e3dcd1;
  --accent:     #1f6f6b;
  --accent-dark:#175451;
  --accent-wash:#e8f1f0;
  --cta:        #c4622d;
  --cta-dark:   #a84f20;
  --flag:       #8a5a00;
  --flag-wash:  #fdf4e0;

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout
     --wrap   : outer page width, used by every section
     --narrow : long-form prose width. Raise or lower this one value to change
                how wide running text sits on the page. */
  --wrap: 1140px;
  --narrow: 980px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(22,32,43,.05), 0 8px 24px rgba(22,32,43,.06);
  --shadow-lift: 0 2px 4px rgba(22,32,43,.06), 0 16px 40px rgba(22,32,43,.10);
}

/* --------------------------------------------------------- reset + base */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--cta-dark); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.35rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.22rem; font-family: var(--sans); font-weight: 650; letter-spacing: -0.01em; }
h4 { font-size: 1.02rem; font-family: var(--sans); font-weight: 650; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.eyebrow {
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .9rem;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff;
  padding: .7rem 1.1rem; border-radius: 0 0 var(--radius) 0; z-index: 200;
}
.skip:focus { left: 0; top: 0; }

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

/* --------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.5rem; }
.narrow { max-width: var(--narrow); }

section { padding-block: clamp(3rem, 7vw, 5.5rem); }
/* keep the sticky header from covering a jumped-to section */
section[id] { scroll-margin-top: 76px; }
section.tight { padding-block: clamp(2.25rem, 4vw, 3.25rem); }
.band-warm { background: var(--paper-warm); }
.band-ink  { background: var(--ink); color: #e9edf1; }
.band-ink h2, .band-ink h3, .band-ink h4 { color: #fff; }
.band-ink .lede { color: #c3ccd5; }
.band-ink a { color: #8fd4cf; }

/* --------------------------------------------------------- header / nav */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,249,245,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 68px;
}
.brand {
  margin-right: auto; text-decoration: none;
  display: inline-flex; align-items: center; line-height: 0;
}
.brand img { height: 38px; width: auto; display: block; }
@media (max-width: 560px) { .brand img { height: 32px; } }
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: .95rem; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; padding-block: .35rem;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--accent-dark); border-bottom-color: var(--accent); }
.nav-links a[aria-current="page"] { color: var(--accent-dark); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: .45rem .6rem; cursor: pointer; color: var(--ink);
  font: inherit; font-size: .9rem;
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem 1.5rem 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding-block: .75rem; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links .btn { margin-top: .75rem; text-align: center; }
}

/* --------------------------------------------------------- buttons */
.btn {
  display: inline-block;
  font-family: var(--sans); font-size: .97rem; font-weight: 600;
  padding: .72rem 1.3rem; border-radius: 8px;
  text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-dark); color: #fff; }
.btn-secondary { background: var(--accent); color: #fff; }
.btn-secondary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); background: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper-warm); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.75rem; }

/* --------------------------------------------------------- hero */
.hero { padding-block: clamp(3.25rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero-note {
  margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  font-size: .95rem; color: var(--muted);
}

/* --------------------------------------------------------- about intro + portrait */
.intro {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 300px);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}
.intro-text { min-width: 0; }

.portrait { position: sticky; top: 92px; }
.portrait img {
  width: 100%; height: auto; aspect-ratio: 1 / 1;
  object-fit: cover; border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.portrait-caption {
  margin: .85rem 0 0; font-size: .87rem; color: var(--muted); text-align: center;
}

.photo-placeholder {
  aspect-ratio: 1 / 1; border-radius: var(--radius-lg);
  border: 2px dashed var(--line); background: var(--paper-warm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .4rem; padding: 1.5rem; text-align: center;
}
.photo-icon { font-size: 2.1rem; color: var(--line); line-height: 1; }
.photo-label { font-size: .95rem; font-weight: 600; color: var(--muted); }
.photo-hint { font-size: .8rem; color: var(--muted-light); line-height: 1.45; }
.photo-hint code {
  font-size: .95em; background: #fff; border: 1px solid var(--line);
  border-radius: 4px; padding: .05em .3em;
}

@media (max-width: 760px) {
  .intro { grid-template-columns: 1fr; }
  .portrait { position: static; max-width: 280px; margin-inline: auto; order: -1; }
}

/* --------------------------------------------------------- two-path cards */
.paths { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.path {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.9rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.path:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.path-tag {
  font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-wash);
  padding: .3rem .6rem; border-radius: 5px; align-self: flex-start; margin-bottom: 1rem;
}
.path h3 { font-size: 1.4rem; font-family: var(--serif); font-weight: 600; }
.path p { color: var(--muted); font-size: 1rem; }
.path .path-cta { margin-top: auto; padding-top: 1.4rem; }

/* --------------------------------------------------------- generic grid */
.grid { display: grid; gap: 1.25rem; }

/* Fixed column counts, stepped down at breakpoints.
   Deliberately NOT auto-fit: auto-fit fits as many columns as will physically
   fit, so a 6-card section would land 4-and-2 whenever the page was wide
   enough. Explicit counts keep card rows even (3+3, 2+2+2) at every width. */
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 880px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: 0; }
.band-ink .card { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.14); }
.band-ink .card p { color: #b9c3cd; }

/* --------------------------------------------------------- numbered steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.1rem; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 2.4rem 1fr; gap: 1.1rem;
  align-items: start;
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-size: .95rem; font-weight: 700; font-family: var(--sans);
}
.steps h4 { margin-bottom: .3rem; }
.steps p { color: var(--muted); font-size: .98rem; margin: 0; }
.band-ink .steps li::before { background: #8fd4cf; color: var(--ink); }
.band-ink .steps p { color: #b9c3cd; }

/* --------------------------------------------------------- checklist */
.check { list-style: none; margin: 0; padding: 0; display: grid; gap: .72rem; }
.check li { position: relative; padding-left: 1.85rem; font-size: 1rem; color: var(--ink-soft); }
.check li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 1.05rem; height: .58rem;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
.check.no li::before {
  content: ""; top: .5em; width: .95rem; height: 0;
  border: none; border-top: 2.5px solid var(--muted-light); transform: none;
}
.check.no li { color: var(--muted); }
.band-ink .check li { color: #c8d1da; }
.band-ink .check li::before { border-color: #8fd4cf; }

/* --------------------------------------------------------- pricing */
.prices { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); align-items: start; }
.price {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.9rem; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.price.featured { border-color: var(--accent); border-width: 2px; }
.price-flag {
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--accent); padding: .28rem .6rem; border-radius: 5px;
  align-self: flex-start; margin-bottom: .9rem;
}
.price h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin-bottom: .3rem; }
.price .who { font-size: .93rem; color: var(--muted); margin-bottom: 1.2rem; }
.price .amount {
  font-family: var(--serif); font-size: 2.6rem; font-weight: 600;
  letter-spacing: -.03em; line-height: 1; color: var(--ink);
}
.price .amount span { font-family: var(--sans); font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price .includes { margin: 1.4rem 0 0; }
.price .price-cta { margin-top: auto; padding-top: 1.5rem; }
.price .btn { width: 100%; text-align: center; }

/* --------------------------------------------------------- callout boxes */
.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-wash);
  padding: 1.3rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin-block: 1.75rem;
}
.callout h3, .callout h4 { margin-bottom: .45rem; }
.callout p { font-size: .99rem; margin-bottom: 0; color: var(--ink-soft); }
.callout.warn { border-left-color: var(--flag); background: var(--flag-wash); }

/* Callout sitting on a dark band: light text, or it inherits dark-on-dark */
.band-ink .callout {
  border-left-color: #8fd4cf;
  background: rgba(255,255,255,.06);
}
.band-ink .callout h3,
.band-ink .callout h4 { color: #fff; }
.band-ink .callout p { color: #d4dce4; }
.band-ink .callout strong { color: #fff; }

/* --------------------------------------------------------- FAQ */
.faq { display: grid; gap: .7rem; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.05rem 1.35rem;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.02rem; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--accent); flex: none; line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { margin: .85rem 0 0; color: var(--muted); font-size: .99rem; }
.faq details > p + p { margin-top: .7rem; }

/* --------------------------------------------------------- newsletter */
.signup {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow);
}
.signup-form { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.signup-form input[type="email"] { flex: 1 1 260px; }
.signup-note { font-size: .88rem; color: var(--muted-light); margin-top: .9rem; }

/* --------------------------------------------------------- forms */
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: .93rem; font-weight: 600; margin-bottom: .4rem; color: var(--ink); }
.field .hint { display: block; font-weight: 400; font-size: .87rem; color: var(--muted); margin-top: .2rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 8px;
  padding: .68rem .85rem;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-wash); }
textarea { min-height: 130px; resize: vertical; }
fieldset { border: none; margin: 0 0 1.25rem; padding: 0; }
fieldset legend { font-size: .93rem; font-weight: 600; margin-bottom: .55rem; padding: 0; }
.radio-row { display: grid; gap: .5rem; }
.radio-row label { display: flex; gap: .6rem; align-items: start; font-weight: 400; font-size: .98rem; margin: 0; }
.radio-row input { margin-top: .35rem; flex: none; width: auto; }
.hp { position: absolute; left: -9999px; }

/* --------------------------------------------------------- footer */
.site-foot {
  background: var(--ink); color: #9fadba;
  padding-block: 3rem 2rem; font-size: .93rem;
}
.foot-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.site-foot h4 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .9rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-foot a { color: #c3ccd5; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot .brand { margin-bottom: 1rem; }
.site-foot .brand img { height: 42px; }
.foot-tag { color: #8fd4cf; font-style: italic; font-family: var(--serif); font-size: 1.02rem; }
.foot-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .86rem; color: #7d8b98;
}

/* --------------------------------------------------------- utilities */
.center { text-align: center; }
.center .lede, .center h1, .center h2 { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mb-lg { margin-bottom: 2.25rem; }
.stack > * + * { margin-top: 1.1rem; }
.small { font-size: .9rem; color: var(--muted); }

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