/*
 * EveryRing landing page — everyring.ca
 *
 * One stylesheet, no build step, no framework: Cloudflare Pages serves this
 * directory as-is, and a static marketing page that needs a toolchain to change a
 * price is a page that stops getting changed.
 *
 * Palette is the pitch deck's, with one adjustment: #028090 is used for fills and
 * large type, while body-size text and links use the darker #025E6B, which clears
 * WCAG AA against white where the mid teal does not.
 */

:root {
  --brand-dark: #025e6b;
  --brand: #028090;
  --mint: #02c39a;

  --bg: #ffffff;
  --bg-alt: #f4f8f9;
  --surface: #ffffff;
  --border: #d9e4e6;
  --ink: #10191c;
  --ink-muted: #4f6169;
  --on-dark: #ffffff;
  --on-dark-muted: #cfe6ea;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgb(16 25 28 / 6%), 0 8px 24px rgb(16 25 28 / 6%);

  --container: 68rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Respect a dark-mode reader without shipping a toggle: the whole page is two
   surface colours and an ink colour, so this is a small override rather than a
   second theme to maintain. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1416;
    --bg-alt: #101d20;
    --surface: #122024;
    --border: #24393e;
    --ink: #e9f1f2;
    --ink-muted: #a4b8bd;
    /* The mid teal is too dark to read on a dark surface; the mint is the accent
       there, exactly as on the deck's dark slides. */
    --brand-dark: #4fd0c0;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 35%);
  }
}

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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }

a { color: var(--brand-dark); }
a:hover { color: var(--brand); }

:where(a, button):focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--brand-dark);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: top 150ms ease;
}
.skip-link:focus { top: 1rem; color: #fff; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.15rem);
  margin-bottom: 0.75rem;
}
.section-intro { color: var(--ink-muted); max-width: 42rem; margin-bottom: 2rem; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;                 /* comfortable thumb target */
  padding: 0.6rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.btn-primary { background: var(--brand-dark); color: #fff; }
.btn-primary:hover { background: var(--brand); color: #fff; }

.btn-outline { border-color: currentColor; color: var(--brand-dark); background: transparent; }
.btn-outline:hover { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }

/* On the dark hero and dark CTA panel the surface is already brand-coloured, so
   the button inverts to stay legible. */
.on-dark .btn-primary { background: #fff; color: var(--brand-dark); }
.on-dark .btn-primary:hover { background: var(--on-dark-muted); color: var(--brand-dark); }
.on-dark .btn-outline { color: #fff; border-color: rgb(255 255 255 / 55%); }
.on-dark .btn-outline:hover { background: rgb(255 255 255 / 12%); color: #fff; border-color: #fff; }
.on-dark :where(a, button):focus-visible { outline-color: var(--mint); }

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 750;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand .dot {
  width: 1.9rem; height: 1.9rem;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--brand-dark);
  color: #fff;
  font-size: 1rem;
}

.site-nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.site-nav a:not(.btn) { color: var(--ink-muted); text-decoration: none; font-weight: 550; }
.site-nav a:not(.btn):hover { color: var(--ink); }

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

.hero {
  background:
    radial-gradient(48rem 26rem at 12% -20%, #036e7d 0%, transparent 60%),
    linear-gradient(160deg, var(--brand-dark) 0%, #01414b 100%);
  color: var(--on-dark);
  /* The section rule already adds block padding and .inner adds its own; both
     applied left a dead band of teal under the fold. The hero owns its spacing. */
  padding-block: 0;
}
.hero .inner { max-width: 46rem; padding-block: clamp(3.5rem, 9vw, 6rem); }

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--mint);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.8vw, 3.9rem);
  letter-spacing: -0.025em;
  margin-bottom: 1.1rem;
}

.hero .lede {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  color: var(--on-dark-muted);
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 1.25rem; }
.hero-note { font-size: 0.92rem; color: var(--on-dark-muted); }

/* -------------------------------------------------------------------- stats */

.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.stat { text-align: center; }
.stat .figure {
  font-size: clamp(2.5rem, 2rem + 2.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--brand-dark);
  margin-bottom: 0.5rem;
}
.stat p { color: var(--ink-muted); }

.footnote { margin-top: 1.5rem; font-size: 0.88rem; color: var(--ink-muted); max-width: 46rem; }

/* -------------------------------------------------------------------- steps */

.steps { counter-reset: step; list-style: none; padding: 0; }
.step { position: relative; }
.step .num {
  display: grid;
  place-items: center;
  width: 2.4rem; height: 2.4rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--brand-dark);
  color: #fff;
  font-weight: 750;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.step p { color: var(--ink-muted); }

/* ------------------------------------------------------------------ pricing */

.tiers { list-style: none; padding: 0; align-items: start; }
.tier { display: grid; gap: 0.75rem; }
.tier.featured { border-color: var(--brand); border-width: 2px; }

.tier-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.tier h3 { font-size: 1.15rem; }
.tag {
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-dark);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.price { font-size: 2.2rem; font-weight: 800; line-height: 1.1; }
.price span { font-size: 0.85rem; font-weight: 550; color: var(--ink-muted); }
.tier ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; font-size: 0.96rem; }
.tier li { display: flex; gap: 0.55rem; align-items: flex-start; }
.tier li::before { content: "✓"; color: var(--brand-dark); font-weight: 750; }

/* ------------------------------------------------------------------ contact */

.contact-panel {
  background: linear-gradient(160deg, var(--brand-dark) 0%, #01414b 100%);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}
.contact-panel h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); max-width: 30rem; }
.contact-panel p { color: var(--on-dark-muted); max-width: 40rem; }
.contact-panel a:not(.btn) { color: #fff; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding-block: 2.5rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.site-footer h2 { font-size: 0.95rem; color: var(--ink); margin-bottom: 0.4rem; }
.site-footer p + p { margin-top: 0.6rem; }
.footer-grid { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 46rem) { .footer-grid { grid-template-columns: 1.2fr 1fr; } }
.footer-bottom { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
