:root {
  --ink: #13242E;
  --text: #1E2F3A;
  --muted: #4A5E68;
  --bg: #FFFFFF;
  --panel: #EDF6F8;
  --line: #D2E3E8;
  --primary: #2A6A72;
  --primary-deep: #1C4A4A;
  --night: #1B3049;
  --lime: #9FD6E2;
  --lime-ink: #102A33;
  --sky: #A6D4DE;
  --grey: #E6EAEB;
  --mist: #F2F5F6;
  --radius: 10px;
  --gutter: 16px;
  --cf-accent: #2A6A72;
  --cf-on: #FFFFFF;
  --font-head: "Oxanium", "Segoe UI", sans-serif;
  --font-body: "Host Grotesk", "Segoe UI", Arial, sans-serif;
}

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

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

figure {
  margin: 0;
}

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

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin: 0 0 14px;
}

h3 {
  font-weight: 600;
}

p {
  margin: 0 0 14px;
}

a {
  color: var(--primary);
}

a:focus-visible,
summary:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  padding: 8px 14px;
  background: #FFFFFF;
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  white-space: nowrap;
}

.btn-dark {
  background: var(--primary-deep);
  color: #FFFFFF;
}

.btn-dark:hover {
  background: var(--ink);
}

.btn-head {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.9rem;
  background: var(--primary);
  color: #FFFFFF;
}

.btn-head:hover {
  background: var(--primary-deep);
}

/* ---------- Header: white logo bar + thin second row ---------- */
.masthead {
  position: static;
}

.mast-top {
  background: #FFFFFF;
}

.mast-top .wrap {
  display: flex;
  align-items: center;
  min-height: 72px;
}

.brand img {
  height: 42px;
  width: auto;
}

.mast-sub {
  background: var(--mist);
  border-top: 1px solid #E3E9EB;
  border-bottom: 1px solid #E3E9EB;
  font-size: 0.93rem;
}

.mast-sub-in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 50px;
}

.mast-aud,
.mast-nav {
  display: flex;
  gap: 22px;
}

.mast-aud {
  margin-right: auto;
}

.mast-aud a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.mast-nav a {
  color: var(--muted);
  text-decoration: none;
}

.mast-nav .mast-blog {
  color: var(--ink);
  font-weight: 600;
}

.mast-nav .mast-blog[aria-current="page"] {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mast-aud a:hover,
.mast-nav a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Footer ---------- */
.site-foot {
  background: var(--mist);
  border-top: 1px solid #E3E9EB;
  margin-top: 0;
  font-size: 0.94rem;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  padding-top: 44px;
  padding-bottom: 32px;
}

.foot-brand {
  max-width: 380px;
}

.foot-brand img {
  height: 38px;
  width: auto;
  margin-bottom: 14px;
}

.foot-brand p {
  color: var(--muted);
  margin: 0;
}

.foot-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 40px;
  align-content: start;
}

.foot-links a {
  color: var(--text);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.foot-bar {
  border-top: 1px solid #E3E9EB;
  padding-top: 18px;
  padding-bottom: 24px;
  color: var(--muted);
  font-size: 0.86rem;
}

.foot-bar p {
  margin: 0;
}

@media (max-width: 860px) {
  .mast-nav a:not(.mast-blog) {
    display: none;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .mast-top .wrap {
    min-height: 62px;
  }

  .brand img {
    height: auto;
    width: min(200px, 56vw);
  }

  .mast-sub-in {
    gap: 12px;
  }

  .mast-aud {
    gap: 16px;
  }

  .foot-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .hide-sm {
    display: none;
  }
}

/* ---------- Home ---------- */
html {
  scroll-behavior: smooth;
}

section[id],
article[id] {
  scroll-margin-top: 16px;
}

.band {
  padding: clamp(56px, 8vw, 96px) 0;
}

.band-mist {
  background: var(--mist);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.lede {
  color: var(--muted);
  max-width: 56ch;
}

/* Hero: short text left, product photo right */
.hero {
  background: var(--grey);
  padding: clamp(44px, 7vw, 84px) 0;
}

.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.05rem);
  max-width: 17ch;
  margin-bottom: 20px;
}

.hero p {
  max-width: 46ch;
  font-size: 1.06rem;
}

.hero .btn {
  margin-top: 12px;
}

.hero-photo img {
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}

/* Component cards: one tall + two wide */
.parts-head {
  margin-bottom: 32px;
}

.parts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 20px;
}

.part {
  background: #FFFFFF;
  border-radius: var(--radius);
  overflow: hidden;
}

.part h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.part p {
  margin: 0;
  color: var(--muted);
}

.part-tall {
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
}

.part-tall img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  flex: 1 1 auto;
}

.part-tall .part-text {
  padding: 26px 28px 30px;
}

.part-wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.part-wide .part-text {
  padding: 26px 24px;
  align-self: center;
}

.part-wide img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.more {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

/* Steps: photo left, list right */
.steps-in {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.steps-photo img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.steps {
  list-style: none;
  counter-reset: s;
  margin: 24px 0 0;
  padding: 0;
}

.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.steps li::before {
  content: counter(s);
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--primary);
  font-size: 1.15rem;
  line-height: 1.5;
}

/* Reading results */
.terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 40px;
  margin: 28px 0 0;
}

.terms dt {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.terms dd {
  margin: 0;
  color: var(--muted);
}

.terms-note {
  margin: 32px 0 0;
  max-width: 64ch;
  font-size: 0.96rem;
  color: var(--muted);
}

/* FAQ */
.faq-in {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list details:first-child {
  border-top: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  color: var(--ink);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-family: var(--font-head);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--primary);
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list details p {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 62ch;
}

/* Closing CTA */
.close-in {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 24px 48px;
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  background: var(--grey);
  border-radius: var(--radius);
}

.close-in h2 {
  margin-bottom: 8px;
}

.close-in p {
  margin: 0;
}

.close-note {
  grid-column: 1 / -1;
  font-size: 0.88rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero-in,
  .steps-in,
  .faq-in,
  .close-in {
    grid-template-columns: minmax(0, 1fr);
  }

  .parts {
    grid-template-columns: minmax(0, 1fr);
  }

  .part-tall {
    grid-row: auto;
  }

  .steps-photo img {
    aspect-ratio: 3 / 2;
  }

  .terms {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .part-wide {
    grid-template-columns: minmax(0, 1fr);
  }

  .part-wide img {
    order: -1;
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .hero .btn,
  .close-in .btn {
    width: 100%;
  }
}

.band-tight {
  padding-top: 0;
}

/* Latest articles (WordPress only): heading left, ruled list right */
.latest {
  padding-bottom: 0;
}

.latest-in {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.latest-all {
  font-weight: 600;
  text-underline-offset: 4px;
}

.latest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.latest-list li {
  border-bottom: 1px solid var(--line);
}

.latest-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 8px 24px;
  padding: 20px 0;
  color: var(--text);
  text-decoration: none;
}

.latest-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  padding-top: 3px;
}

.latest-title {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 4px;
}

.latest-item:hover .latest-title {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.latest-ex {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.latest-min {
  font-size: 0.88rem;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 3px;
}

@media (max-width: 860px) {
  .latest-in {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .latest-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .latest-text {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
