/* Finally Free With THREE — static site styles
   Brand colors live here. Change these five values to re-tint the whole site. */

:root {
  --ink:        #10251f;   /* deep forest, used for text + dark bands */
  --ink-soft:   #3d524b;
  --muted:      #6d7f78;
  --paper:      #fbfaf7;   /* page background */
  --panel:      #e9efea;   /* pale sage, alternating section background */
  --gold:       #b08734;   /* accent: buttons, rules, small marks */
  --gold-dark:  #8c6a24;
  --line:       #d7ded9;
  --white:      #ffffff;

  --wrap: 1120px;
  --narrow: 720px;

  --f-display: "Marcellus", "Hoefler Text", Georgia, serif;
  --f-body: "Jost", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-dark); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--narrow); margin-left: auto; margin-right: auto; }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
h4 { font-size: 1.15rem; }

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

.lede {
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 1.1em;
}

.sub {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--ink-soft);
}

.role {
  font-family: var(--f-body);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 0.9em;
}

.rule {
  width: 56px;
  height: 2px;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.6em;
}
.center .rule { margin-left: auto; margin-right: auto; }
.center { text-align: center; }

.fine { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

/* ---------- Header ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand img { max-height: 48px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.nav a:hover { border-bottom-color: var(--gold); }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--gold-dark); }

.navtoggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 9px 12px;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 900px) {
  .navtoggle { display: block; }
  .nav {
    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: 8px 24px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Sections ---------- */

.section { padding: 84px 0; }
.section.tight { padding: 56px 0; }
.section.panel { background: var(--panel); }
.section.dark { background: var(--ink); color: var(--paper); }
.section.dark h1, .section.dark h2, .section.dark h3 { color: var(--paper); }
.section.dark .sub, .section.dark p { color: #cbd8d2; }
.section.dark a { color: var(--paper); }

@media (max-width: 700px) {
  .section { padding: 56px 0; }
}

.hero {
  padding: 96px 0 72px;
  text-align: center;
}
.hero h1 { max-width: 16ch; margin-left: auto; margin-right: auto; }
.hero .sub { max-width: 62ch; margin: 0 auto 2em; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--gold);
  color: #fff;
  padding: 14px 30px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }

.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.section.dark .btn.ghost { color: var(--paper); border-color: var(--paper); }
.section.dark .btn.ghost:hover { background: var(--paper); color: var(--ink); }

.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.4em; }
.center .btns { justify-content: center; }

.dl {
  display: inline-block;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  margin: 0 18px 8px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

/* ---------- Video ---------- */

.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  margin: 0 0 1.6em;
  border-radius: 2px;
  overflow: hidden;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Product grid (home) ---------- */

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 28px;
}
@media (max-width: 900px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .products { grid-template-columns: 1fr; gap: 32px; } }

.product { text-align: center; }
.product img {
  margin: 0 auto 18px;
  max-height: 230px;
  width: auto;
  object-fit: contain;
}
.product h3 { margin-bottom: 0.15em; }
.product .sub { font-size: 0.95rem; margin-bottom: 0.9em; min-height: 2.6em; }
.product .btn { padding: 11px 22px; font-size: 0.75rem; }

/* ---------- Product detail (products page) ---------- */

.detail {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: start;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.detail:first-of-type { border-top: 0; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; } }

.detail .shot {
  max-height: 340px;
  width: auto;
  margin: 0 auto 24px;
  object-fit: contain;
}

.price {
  font-family: var(--f-display);
  font-size: 2rem;
  color: var(--gold-dark);
  margin: 0.6em 0 0.2em;
}

.benefits { list-style: none; margin: 0 0 1.4em; padding: 0; }
.benefits li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 0.7em;
}
.benefits li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 8px; height: 1px;
  background: var(--gold);
}

.buybox {
  background: var(--panel);
  border-left: 2px solid var(--gold);
  padding: 22px 24px;
  margin-top: 1.4em;
}
.buybox p { margin-bottom: 0.8em; }

/* ---------- Pillars / three-up ---------- */

.threeup {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}
@media (max-width: 820px) { .threeup { grid-template-columns: 1fr; gap: 34px; } }

/* ---------- People ---------- */

.person {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 34px;
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.person:first-of-type { border-top: 0; }
.person img { border-radius: 2px; width: 100%; }
.person h3 { margin-bottom: 0.1em; }
@media (max-width: 720px) {
  .person { grid-template-columns: 1fr; gap: 20px; }
  .person img { max-width: 220px; }
}

/* ---------- Testimonials ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; gap: 30px; } }

.quote { text-align: center; }
.quote img {
  width: 128px; height: 128px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
}
.quote blockquote {
  margin: 0 0 0.8em;
  font-family: var(--f-display);
  font-size: 1.05rem;
  line-height: 1.6;
}
.quote cite { font-style: normal; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dark); }

/* ---------- Figures ---------- */

.figure { margin: 2em 0; }
.figure img { margin: 0 auto; border-radius: 2px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}
.split:last-child { margin-bottom: 0; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 26px; margin-bottom: 44px; } }

/* ---------- Numbered list (comp plan) ---------- */

.earn { counter-reset: earn; list-style: none; margin: 0; padding: 0; }
.earn li {
  counter-increment: earn;
  position: relative;
  padding: 24px 0 24px 64px;
  border-top: 1px solid var(--line);
}
.earn li::before {
  content: counter(earn);
  position: absolute;
  left: 0; top: 24px;
  font-family: var(--f-display);
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
}
.earn h4 { margin-bottom: 0.3em; }
.earn .when { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Forms ---------- */

.form { max-width: 520px; }
.center .form { margin: 0 auto; }

.field { margin-bottom: 18px; text-align: left; }
.field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 7px;
  color: var(--ink-soft);
}
.section.dark .field label { color: #cbd8d2; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 13px 14px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.field textarea { min-height: 140px; resize: vertical; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formnote { font-size: 0.85rem; color: var(--muted); margin-top: 1em; }

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: #b9c9c2;
  padding: 56px 0 44px;
  text-align: center;
  font-size: 0.9rem;
}
.footer a { color: var(--paper); }
.footer .foot-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
  margin-bottom: 26px;
}
.footer .foot-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
}
.footer .foot-nav a:hover { color: var(--gold); }
.footer p { margin-bottom: 0.6em; }

.disclaimer {
  max-width: 76ch;
  margin: 26px auto 0;
  font-size: 0.76rem;
  line-height: 1.6;
  color: #8ba099;
}
