/* The Terza Factor — policy + shop companion site */
:root {
  --ink: #17262b;
  --ink-soft: #3d4d52;
  --gold: #E8C56B;
  --green: #29ab51;
  --green-dark: #1e8a3e;
  --bg: #ffffff;
  --bg-soft: #f4f6f5;
  --bg-warm: #f6f4ef;
  --line: #e2e6e5;
  --on-dark: #f4f6f5;
  --header: #010A18;
  --max: 1100px;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(23, 38, 43, 0.08);
  --font-heading: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); }
a:hover { color: var(--green); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  background: var(--header);
  color: var(--on-dark);
  border-bottom: 1px solid rgba(232, 197, 107, 0.35);
}
.site-header a { color: var(--on-dark); text-decoration: none; }
.site-header a:hover { color: var(--gold); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 88px;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.logo img {
  height: 64px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
/* Wordmark already includes the name; keep the text for the accessible name via the parent aria-label. */
.logo-name { display: none; }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.nav a[aria-current="page"] {
  color: #fff;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.1rem;
}

.hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 3.25rem 0 3rem;
}
.hero h1, h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2rem, 4vw, 3.15rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 2.5vw, 1.9rem); font-weight: 700; margin-top: 2.25rem; }
h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.6rem; }
.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0 0 1.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: #fff; }

main { padding: 2.5rem 0 4rem; }
.page-hero {
  padding: 2.5rem 0 0;
}
.page-hero p {
  color: var(--ink-soft);
  max-width: 42rem;
  margin: 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-soft); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.card:hover, a.card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(23, 38, 43, 0.12);
  color: inherit;
}
.card-image {
  background: var(--bg-warm);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card-body {
  padding: 0.95rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.card-body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: 0;
}
.price {
  font-weight: 700;
  font-family: var(--font-heading);
  margin: 0;
}
.shop-link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 600;
  color: var(--green-dark);
  font-size: 0.95rem;
}

.policy {
  max-width: 46rem;
}
.policy p, .policy li { color: var(--ink); }
.policy ul, .policy ol { padding-left: 1.25rem; }
.policy li { margin: 0.4rem 0; }
.policy a { font-weight: 600; }

.callout {
  background: var(--bg-soft);
  border-left: 4px solid var(--green);
  padding: 1rem 1.15rem;
  border-radius: 0 10px 10px 0;
  margin: 1.4rem 0;
}
.callout p { margin: 0; }
.callout + .callout { margin-top: 0.85rem; }
.callout.warning { border-left-color: var(--ink); }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}
.steps li {
  position: relative;
  padding: 0.9rem 1rem 0.9rem 3.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 0.7rem 0;
  background: #fff;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.85rem;
  top: 0.95rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl {
  display: grid;
  gap: 0.9rem;
  margin: 1.2rem 0;
}
.dl div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  background: #fff;
}
.dl dt {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0 0 0.25rem;
}
.dl dd { margin: 0; color: var(--ink-soft); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.5rem;
  font-size: 0.98rem;
}
th, td {
  text-align: left;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--bg-soft);
}
.table-wrap { overflow-x: auto; }

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
  background: var(--bg-soft);
  max-width: 36rem;
}
.contact-card p { margin: 0.35rem 0; }
.contact-card .label {
  display: block;
  font-size: 0.8rem;
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.15rem;
}

/* TODO email placeholder — visually obvious until a real address is chosen */
.email-todo {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0.2rem 0 0.35rem;
  padding: 0.55rem 0.75rem;
  background: #fff7d6;
  border: 2px dashed #b38700;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
}
.todo-flag {
  display: inline-block;
  background: #b38700;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.source {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-footer {
  background: var(--header);
  color: var(--gold);
  padding: 2.2rem 0 2.4rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-inner {
  display: grid;
  gap: 1.4rem;
}
@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
  }
}
.footer-brand img {
  height: 72px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.7rem;
}
.footer-brand p, .fineprint {
  margin: 0.2rem 0;
  font-size: 0.95rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.15rem;
  font-family: var(--font-heading);
}
.fineprint { opacity: 0.9; margin-top: 1.2rem; }

@media (max-width: 599px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .card-body { padding: 0.75rem 0.7rem 0.9rem; }
  .card-body h3 { font-size: 0.92rem; }
  .hero { padding: 2.2rem 0 2rem; }
  table { font-size: 0.9rem; }
}

@media (max-width: 599px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 0;
    padding: 0.9rem 0 0.75rem;
  }
  .logo img { height: 56px; width: auto; }
  .nav {
    justify-content: center;
    width: 100%;
    gap: 0.35rem 1.05rem;
  }
}
