/* SteadyKeel site styles. Brand: deep teal + warm neutrals, calm and plain. */

:root {
  --teal: #2F5D62;
  --teal-deep: #244a4e;
  --ink: #24303A;
  --slate: #4A5A63;
  --mist: #F4F7F7;
  --pale: #BCD8D6;
  --warm: #FFF8E7;
  --paper: #ffffff;
  --line: #dde5e5;
  --shadow: 0 1px 2px rgba(36,48,58,.06), 0 8px 24px rgba(36,48,58,.06);

  --bg: var(--mist);
  --surface: var(--paper);
  --text: var(--ink);
  --muted: var(--slate);
  --border: var(--line);
  --accent: var(--teal);
  --accent-text: #ffffff;

  --maxw: 1080px;
  --radius: 12px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --teal: #6fb3b0;
    --teal-deep: #58a29e;
    --ink: #e8eeee;
    --slate: #a9b7b8;
    --mist: #141c1e;
    --pale: #2b4446;
    --warm: #2a2620;
    --paper: #1c2628;
    --line: #33413f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    --bg: #101718;
    --surface: #1c2628;
    --text: #e8eeee;
    --muted: #a9b7b8;
    --border: #33413f;
    --accent: #6fb3b0;
    --accent-text: #10201f;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; color: var(--text); }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; margin: 0 0 .5em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 650; margin: 0 0 .6em; }
h3 { font-size: 1.12rem; font-weight: 600; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
main { display: block; }
section, article { max-width: var(--maxw); margin: 0 auto; padding: 2.75rem 1.25rem; }

/* ---- header / footer ---- */
.testbar {
  background: var(--warm); color: var(--ink);
  text-align: center; font-size: .82rem; padding: .45rem 1rem;
  border-bottom: 1px solid var(--border);
}
:root:not([data-theme="light"]) .testbar { color: var(--text); }
.site-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  max-width: var(--maxw); margin: 0 auto; padding: 1.1rem 1.25rem;
}
.wordmark {
  position: relative; font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em;
  color: var(--text); text-decoration: none; padding-bottom: .35rem; display: inline-block;
}
.w-steady { color: var(--ink); }
.w-keel { color: var(--teal); }
:root:not([data-theme="light"]) .w-steady { color: var(--text); }
.keel { position: absolute; left: 0; bottom: -2px; width: 100%; height: 10px; color: var(--pale); }
.site-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .95rem; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--text); text-decoration: none; }

.site-foot {
  background: var(--surface); border-top: 1px solid var(--border); margin-top: 2rem;
}
.foot-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.25rem 1.5rem;
  display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between;
}
.foot-inner .w-keel { }
.foot-inner p { color: var(--muted); font-size: .92rem; max-width: 34ch; margin: .4rem 0 0; }
.foot-inner nav { display: flex; flex-direction: column; gap: .5rem; font-size: .92rem; }
.foot-inner nav a { color: var(--muted); }
.foot-legal {
  max-width: var(--maxw); margin: 0 auto; padding: 1.25rem 1.25rem 2.5rem;
  border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem;
}
.foot-legal p { margin: .5rem 0; }

/* ---- buttons ---- */
.btn {
  display: inline-block; padding: .8rem 1.35rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; cursor: pointer; text-align: center;
  border: 1.5px solid transparent; transition: transform .04s ease, background .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: .5rem .9rem; font-size: .88rem; }
.btn.is-disabled { background: var(--border); color: var(--muted); cursor: not-allowed; pointer-events: none; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 600;
  color: var(--teal); margin: 0 0 1rem;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.section-lede { color: var(--muted); max-width: 60ch; }
.keel-sm { display: inline-block; width: 64px; height: 8px; color: var(--pale); margin-left: .5rem; vertical-align: middle; }

/* ---- hero ---- */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center;
  padding-top: 2.5rem;
}
.hero h1 { margin-bottom: .4em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 .75rem; }
.hero-note { font-size: .9rem; color: var(--muted); }
.hero-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.panel-row {
  display: flex; justify-content: space-between; padding: .6rem 0;
  border-bottom: 1px solid var(--border); font-size: .95rem; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.panel-row span:last-child { color: var(--text); font-weight: 600; }
.panel-total { border-bottom: none; font-size: 1.05rem; }
.panel-total span:first-child { color: var(--text); font-weight: 700; }
.panel-bar { height: 8px; background: var(--mist); border-radius: 999px; margin: .5rem 0 .5rem; overflow: hidden; border: 1px solid var(--border); }
.panel-bar i { display: block; height: 100%; background: var(--teal); }
.hero-panel > p { margin: 0; font-size: .85rem; color: var(--muted); }

/* ---- how ---- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.steps li {
  counter-increment: s; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; position: relative; color: var(--muted);
}
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 1.9rem; height: 1.9rem;
  border-radius: 999px; background: var(--pale); color: var(--teal-deep); font-weight: 700;
  font-size: .9rem; margin-bottom: .6rem;
}
.steps strong { color: var(--text); }

/* ---- tools / cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0; }
.card {
  display: flex; flex-direction: column; gap: .5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.35rem; color: var(--text); box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .06s ease;
}
.card:hover { text-decoration: none; border-color: var(--teal); transform: translateY(-2px); }
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.card-top h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.price { font-weight: 700; color: var(--teal); white-space: nowrap; }
.card-link { color: var(--accent); font-weight: 600; font-size: .9rem; }

.bundle-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: var(--warm); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; color: var(--text); margin-top: 1rem;
}
.bundle-strip:hover { text-decoration: none; border-color: var(--teal); }
.bundle-strip h3 { margin: 0 0 .2rem; }
.bundle-strip p { margin: 0; color: var(--muted); font-size: .95rem; }
.bundle-strip .price { font-size: 1.4rem; }

/* ---- bands ---- */
/* deliberate single-look brand band: fixed dark teal in both themes */
.pass-band { background: #2F5D62; color: #fff; max-width: none; }
.pass-band > div { max-width: var(--maxw); margin: 0 auto; }
.pass-band h2, .pass-band p { color: #fff; }
.pass-band .lede, .pass-band p { color: rgba(255,255,255,.9); max-width: 58ch; }
.pass-price { font-size: 1.5rem; font-weight: 700; margin: .5rem 0 1.25rem; color: #fff; }
.pass-price span { font-size: 1rem; font-weight: 400; color: rgba(255,255,255,.8); }
.pass-band .btn-primary { background: #fff; color: #244a4e; }
.pass-band .btn-primary:hover { background: #FFF8E7; }

.calc-teaser > div, .blog-teaser { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.calc-teaser { }
.blog-teaser ul { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .6rem; }
.blog-teaser li a { color: var(--text); }
.blog-teaser li span { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: .6rem; font-size: .9rem; }

/* ---- product page ---- */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a { color: var(--muted); }
.product-head { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
.buybox {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; box-shadow: var(--shadow);
  position: sticky; top: 1rem;
}
.price-lg { font-size: 2.2rem; font-weight: 700; color: var(--teal); line-height: 1; }
.price-note { font-size: .85rem; color: var(--muted); }
.buybox .btn-primary { margin-top: .4rem; }
.buybox-alt { font-size: .88rem; color: var(--muted); }
.product-body { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; margin-top: 2.5rem; }
.blurb { font-size: 1.08rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.ticks li { padding-left: 1.7rem; position: relative; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.05rem; height: 1.05rem;
  border-radius: 999px; background: var(--pale);
}
.ticks li::after {
  content: ""; position: absolute; left: .34rem; top: .62em; width: .34rem; height: .17rem;
  border-left: 2px solid var(--teal-deep); border-bottom: 2px solid var(--teal-deep);
  transform: rotate(-45deg);
}
.product-side h3 { margin-top: 1.25rem; }
.product-side h3:first-child { margin-top: 0; }
.product-side p { color: var(--muted); font-size: .95rem; }
.product-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  background: var(--warm); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem 2rem; margin-top: 3rem;
}
.product-foot h2 { margin-bottom: .2em; }
.product-foot p { margin: 0; color: var(--muted); }

/* ---- pass page ---- */
.pass-hero { text-align: center; }
.pass-hero .lede { margin: 0 auto; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 2.5rem 0; }
.plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; text-align: center; box-shadow: var(--shadow); position: relative;
}
.plan-best { border-color: var(--teal); border-width: 2px; }
.plan .tag {
  position: absolute; top: -.8rem; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff; font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px;
}
.plan-price { font-size: 2.4rem; font-weight: 700; color: var(--teal); margin: .3rem 0 1rem; }
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan-note { font-size: .85rem; color: var(--muted); margin: .8rem 0 0; }
.pass-includes { padding-top: 1rem; }
.pass-tools .section-lede { margin-top: 1.5rem; }

/* ---- calculator ---- */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 2rem 0; align-items: start; }
.calc-form { display: grid; gap: 1.1rem; }
.calc-form fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem 1.2rem; margin: 0; }
.calc-form legend { font-weight: 600; font-size: .95rem; padding: 0 .4rem; }
.calc-form label { display: grid; gap: .35rem; font-size: .92rem; font-weight: 500; }
.calc-form input {
  font: inherit; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: 8px;
  background: var(--warm); color: var(--text); width: 100%;
}
.calc-form input:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
#months { display: grid; gap: .5rem; margin-bottom: .7rem; }
.month-row { display: flex; align-items: center; gap: .5rem; }
.month-row span { font-size: .85rem; color: var(--muted); min-width: 4.5rem; }
.month-row .rm { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; padding: 0 .3rem; }
.in-prefix, .in-suffix { display: flex; align-items: center; gap: .3rem; }
.in-prefix input, .in-suffix input { width: 8rem; }
.calc-out {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow); display: block;
}
.out-big { text-align: center; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; }
.out-label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.out-value { display: block; font-size: 2.6rem; font-weight: 700; color: var(--teal); line-height: 1.1; font-variant-numeric: tabular-nums; }
.out-sub { display: block; font-size: .85rem; color: var(--muted); }
.calc-out dl { display: grid; gap: .5rem; margin: 0 0 1.25rem; }
.calc-out dl > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .93rem; }
.calc-out dt { color: var(--muted); }
.calc-out dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.out-note { font-size: .86rem; color: var(--muted); min-height: 1.2em; }
.calc-out .btn-primary { width: 100%; margin-bottom: .5rem; }
.calc-out .buybox-alt { display: block; text-align: center; }
.calc-explain { padding-top: 1rem; }
.calc-explain p { color: var(--muted); max-width: 65ch; }
.calc-saved {
  display: inline-block; margin-top: .5rem; font-size: .78rem; color: var(--muted);
  opacity: 0; transition: opacity .25s ease;
}
.calc-saved::before { content: "✓ "; color: var(--teal); }
.calc-saved.is-on { opacity: 1; }

/* ---- blog ---- */
.blog-list ul, .blog-teaser ul { list-style: none; padding: 0; }
.blog-list ul { display: grid; gap: 1rem; margin-top: 2rem; }
.blog-list li a {
  display: grid; gap: .3rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.4rem; color: var(--text);
}
.blog-list li a:hover { text-decoration: none; border-color: var(--teal); }
.post-date { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.post-title { font-weight: 650; font-size: 1.1rem; }
.post-summary { color: var(--muted); font-size: .93rem; }
.post-body { max-width: 68ch; }
.post-body h2 { margin-top: 1.8em; }
.post-body ul { padding-left: 1.2rem; }
.post-body li { margin: .3em 0; }
.post-cta {
  max-width: 68ch; margin-top: 2.5rem; padding: 1.5rem; background: var(--warm);
  border: 1px solid var(--border); border-radius: var(--radius); display: grid; gap: .6rem; justify-items: start;
}

/* ---- auth / members ---- */
.auth { max-width: 30rem; }
.auth-form { display: grid; gap: 1rem; margin: 1.5rem 0; }
.auth-form label { display: grid; gap: .35rem; font-weight: 500; font-size: .92rem; }
.auth-form input {
  font: inherit; padding: .65rem .8rem; border: 1px solid var(--border); border-radius: 8px;
  background: var(--warm); color: var(--text);
}
.auth-form input:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.auth-msg { min-height: 1.4em; color: var(--muted); font-size: .93rem; }
.auth-msg small { color: var(--muted); }
.auth-alt { color: var(--muted); font-size: .9rem; margin-top: 2rem; }

.pass-building {
  background: var(--warm); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.75rem; margin: 1.5rem 0;
}
.pass-building h2 { margin-bottom: .3em; }
.pass-building p { margin: 0; color: var(--muted); }
.pass-signin { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 1rem; }

.members-loading { text-align: center; color: var(--muted); }
.members-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.75rem;
}
.members-sub { color: var(--muted); font-size: .9rem; margin: 0; }
.members-notice, .members-notice-sm {
  background: var(--warm); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}
.members-notice-sm { padding: 1rem 1.25rem; color: var(--muted); font-size: .93rem; }
.members-notice h2 { margin-bottom: .3em; }
.members-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.tool-card {
  display: flex; flex-direction: column; gap: .4rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.35rem; color: var(--text); box-shadow: var(--shadow);
}
a.tool-card:hover { text-decoration: none; border-color: var(--teal); }
.tool-card p { color: var(--muted); font-size: .93rem; margin: 0; flex: 1; }
.tool-card.is-soon { opacity: .6; }
.members-billing, .members-downloads { padding-top: 1.5rem; border-top: 1px solid var(--border); margin-top: 1.5rem; }
.members-billing p { color: var(--muted); }

/* ---- thanks / 404 ---- */
.thanks, .notfound { text-align: center; }
.thanks .lede, .notfound .lede { margin-left: auto; margin-right: auto; }
.download-slot {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; margin: 1.75rem auto; max-width: 30rem; display: grid; gap: .6rem;
}
.thanks-next { max-width: 34rem; margin: 2rem auto 0; text-align: left; }
.notfound .btn { margin: .3rem; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero, .product-head, .product-body, .calc-grid { grid-template-columns: 1fr; }
  .steps, .card-grid { grid-template-columns: 1fr 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .buybox { position: static; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  section, article { padding: 2.5rem 1.1rem; }
  .steps, .card-grid { grid-template-columns: 1fr; }
  .bundle-strip, .product-foot { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .site-head { flex-direction: column; align-items: flex-start; gap: .75rem; }
}

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