/* ==========================================================================
   CentreReady — centreready.ca
   Calm, trustworthy, airy. Soft teal and green, generous white space,
   rounded corners. One stylesheet for index, thanks and privacy.
   ========================================================================== */

:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ink: #12312c;
  --ink-soft: #46605b;
  --teal: #0e7a6e;
  --teal-dark: #0a5c53;
  --teal-tint: #e9f4f1;
  --teal-line: #cde4df;
  --green: #3d8a5c;
  --bg: #fbfdfc;
  --card: #ffffff;

  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;

  --shadow: 0 1px 2px rgba(18, 49, 44, .05), 0 14px 34px rgba(18, 49, 44, .06);
  --shadow-sm: 0 1px 2px rgba(18, 49, 44, .07);
}

/* --------------------------------------------------------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

h1, h2, h3 {
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
  font-weight: 700;
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-dark); }

img, svg { max-width: 100%; }

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

.wrap {
  width: min(100% - 2.25rem, 68rem);
  margin-inline: auto;
}
.wrap-narrow {
  width: min(100% - 2.25rem, 46rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 20;
  padding: .7rem 1.1rem;
  background: var(--teal);
  color: #fff;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { top: 0; }

/* ------------------------------------------------------- buttons --------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--teal-dark); }
.btn:active { transform: translateY(1px); }

.btn-sm { padding: .6rem 1.1rem; font-size: .95rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.075rem; width: 100%; }

.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--teal-dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--teal-line);
  padding-bottom: 2px;
}
.link-quiet:hover { border-bottom-color: var(--teal-dark); }
.link-quiet svg { flex: none; }

/* -------------------------------------------------------- header --------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 253, 252, .88);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--teal-line);
}
.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding-block: .55rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 9px;
  background: var(--teal);
  color: #fff;
  flex: none;
}
.head-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: .97rem;
}
.head-nav a:not(.btn) {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}
.head-nav a:not(.btn):hover { color: var(--teal-dark); }

@media (max-width: 46em) {
  .head-nav .nav-link { display: none; }
}
/* below this the header CTA can't sit on one line beside the wordmark,
   and the hero CTA is a scroll away anyway */
@media (max-width: 34em) {
  .head-nav .btn { display: none; }
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 9vw, 6rem) 0 clamp(2.5rem, 7vw, 4.5rem);
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  top: -45%;
  left: 50%;
  translate: -50% 0;
  width: min(130%, 68rem);
  aspect-ratio: 1 / .6;
  background: radial-gradient(50% 50% at 50% 50%, rgba(14, 122, 110, .13), rgba(14, 122, 110, 0) 70%);
  pointer-events: none;
}
.hero > * { position: relative; }

.hero h1 {
  font-size: clamp(2.2rem, 6.4vw, 3.9rem);
  letter-spacing: -0.03em;
  margin-bottom: .45em;
  text-wrap: balance;
}
.hero-sub {
  max-width: 40ch;
  margin-inline: auto;
  font-size: clamp(1.06rem, 2.2vw, 1.24rem);
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.1rem 1.75rem;
}
.hero-rule {
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  width: 4.5rem;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--teal), var(--green));
  opacity: .55;
}

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

.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section-tint { background: var(--teal-tint); }

/* the sticky header needs breathing room above anchor targets */
[id] { scroll-margin-top: 5.5rem; }

.eyebrow {
  display: block;
  margin: 0 0 .75rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
}
.section h2 {
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
}

/* problem */
.problem-body {
  border-left: 3px solid var(--teal-line);
  padding-left: clamp(1.1rem, 3vw, 2rem);
  font-size: clamp(1.06rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 60ch;
}

/* how it works */
.steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 52em) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
}
.steps li {
  background: var(--card);
  border: 1px solid var(--teal-line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: grid;
  place-items: center;
  width: 2.6rem; height: 2.6rem;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 1.05rem;
}
.steps h3 {
  font-size: 1.16rem;
  letter-spacing: -0.01em;
}
.steps p { color: var(--ink-soft); font-size: 1rem; }

/* offer */
.offer-grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 2.5rem;
}
@media (min-width: 52em) {
  .offer-grid { grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
}
.price-card {
  background: var(--card);
  border: 1px solid var(--teal-line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
}
.price-card.featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal), var(--shadow);
}
.price-card .price-label {
  margin: 0 0 .4rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.price-card .price-line {
  color: var(--ink-soft);
  font-size: 1rem;
}
.price-figure {
  display: block;
  font-size: clamp(1.75rem, 3.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--teal-dark);
  line-height: 1.15;
  margin-bottom: .35rem;
}
.price-strong {
  font-weight: 700;
  color: var(--teal-dark);
}
.price-note {
  margin-top: 1.4rem;
  font-size: .95rem;
  color: var(--ink-soft);
}

/* trust */
.trust-panel {
  background: var(--card);
  border: 1px solid var(--teal-line);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 46em) {
  .trust-panel { grid-template-columns: auto 1fr; align-items: start; gap: 1.75rem; }
}
.trust-icon {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 14px;
  background: var(--teal-tint);
  color: var(--teal-dark);
  flex: none;
}
.trust-lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.5;
}
.trust-fine {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--teal-line);
  font-size: .95rem;
  color: var(--ink-soft);
}

/* faq */
.faq-list { margin-top: 2.25rem; display: grid; gap: .85rem; }
.faq-list details {
  background: var(--card);
  border: 1px solid var(--teal-line);
  border-radius: var(--r-md);
  padding: 0 clamp(1.1rem, 3vw, 1.6rem);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-weight: 600;
  font-size: 1.06rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex: none;
  width: .7rem; height: .7rem;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  rotate: 45deg;
  translate: 0 -25%;
  transition: rotate .18s ease;
}
.faq-list details[open] summary::after { rotate: -135deg; translate: 0 15%; }
.faq-list details p {
  padding-bottom: 1.25rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------------------------------------------------------- form --------- */

.start { background: var(--teal-tint); padding: clamp(3rem, 8vw, 5.5rem) 0; }
.form-card {
  background: var(--card);
  border: 1px solid var(--teal-line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--shadow);
}
.form-card h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  margin-bottom: 1.5rem;
}
.form-card form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .97rem; }
.optional { font-weight: 400; color: var(--ink-soft); }

.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  padding: .8rem .95rem;
  border: 1.5px solid var(--teal-line);
  border-radius: var(--r-sm);
  width: 100%;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #9fc9c1; }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid rgba(14, 122, 110, .35);
  outline-offset: 0;
  border-color: var(--teal);
}

@media (min-width: 40em) {
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
}

.field-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .7rem;
  align-items: start;
  background: var(--teal-tint);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
}
.field-check input {
  width: 1.15rem; height: 1.15rem;
  margin: .2rem 0 0;
  accent-color: var(--teal);
  flex: none;
}
.field-check label { font-weight: 400; font-size: .97rem; line-height: 1.5; }

.hp { display: none; }

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

.site-foot {
  border-top: 1px solid var(--teal-line);
  padding: 2.5rem 0;
  font-size: .95rem;
  color: var(--ink-soft);
  background: var(--bg);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.foot-links a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--teal-line); }
.foot-links a:hover { color: var(--teal-dark); border-bottom-color: var(--teal-dark); }

/* ----------------------------------------------------- sub pages --------- */

.page {
  padding: clamp(3rem, 9vw, 6rem) 0 clamp(3rem, 8vw, 5rem);
}
.page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
}
.page-lead {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 46ch;
}
.prose { max-width: 62ch; color: var(--ink-soft); }
.prose a { color: var(--teal-dark); }
.page-back { margin-top: 2.25rem; }

.thanks-mark {
  display: grid;
  place-items: center;
  width: 4rem; height: 4rem;
  margin-bottom: 1.75rem;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-dark);
}
