:root {
  --bg: #f7f2ea;
  --paper: #fffdf8;
  --paper-strong: #fff7ed;
  --ink: #1f2a2a;
  --muted: #5f6d6d;
  --teal: #0d5c63;
  --teal-deep: #09353a;
  --sand: #e8d6bd;
  --amber: #c97a2b;
  --line: rgba(13, 92, 99, 0.14);
  --shadow: 0 24px 60px rgba(15, 42, 42, 0.12);
  --radius: 26px;
  --radius-sm: 18px;
  --serif: Georgia, "Palatino Linotype", "Book Antiqua", serif;
  --sans: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(201, 122, 43, 0.18), transparent 24%),
    radial-gradient(circle at left top, rgba(13, 92, 99, 0.18), transparent 22%),
    var(--bg);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(247, 242, 234, 0.88);
  border-bottom: 1px solid rgba(13, 92, 99, 0.08);
}

.nav-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1rem 0;
}

.brandmark {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.brandmark strong,
h1,
h2,
h3 {
  font-family: var(--serif);
  letter-spacing: -0.02em;
}

.brandmark-kicker,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 700;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
}

.site-nav a.is-active,
.site-nav a:hover {
  background: rgba(13, 92, 99, 0.08);
  color: var(--teal-deep);
}

.hero,
.page-hero {
  padding: 4.5rem 0 2rem;
}

.hero-grid,
.two-column,
.calculator-layout,
.visualizer-grid,
.article-layout,
.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.hero-copy h1,
.page-hero h1 {
  font-size: clamp(2.4rem, 4.2vw, 4.8rem);
  line-height: 0.98;
  margin: 0.35rem 0 1rem;
  max-width: 11ch;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 65ch;
}

.hero-panel-card,
.feature-card,
.stat-card,
.calculator-panel,
.side-card,
.result-card,
.visualizer-panel,
.fit-helper,
.guide-card,
.compliance-panel,
.faq-item,
.prose-shell,
.cookie-card,
.cookie-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-panel-card,
.feature-card,
.calculator-panel,
.side-card,
.result-card,
.visualizer-panel,
.fit-helper,
.guide-card,
.compliance-panel,
.cookie-card,
.cookie-panel {
  padding: 1.5rem;
}

.button-row,
.cookie-actions,
.field-row,
.stat-grid,
.result-grid,
.pill-row,
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  padding: 0.95rem 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--teal-deep);
}

.button-ghost,
.button-secondary {
  background: transparent;
  color: var(--teal-deep);
  border: 1px solid rgba(13, 92, 99, 0.18);
}

.button-secondary:hover,
.button-ghost:hover {
  background: rgba(13, 92, 99, 0.06);
}

.stat-grid {
  margin-top: 1.6rem;
}

.stat-card {
  flex: 1 1 180px;
  padding: 1rem 1.1rem;
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.stat-card strong,
.result-card strong {
  display: block;
  font-size: 1.45rem;
  margin-bottom: 0.25rem;
  color: var(--teal-deep);
}

.check-list,
.step-list {
  padding-left: 1.1rem;
  margin: 0;
}

.check-list li,
.step-list li {
  margin: 0.45rem 0;
}

.section {
  padding: 2rem 0 4rem;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 247, 237, 0.6));
}

.section-heading {
  max-width: 52rem;
  margin-bottom: 1.5rem;
}

.section-heading h2,
.calculator-panel h2,
.visualizer-panel h2,
.fit-helper h2 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.feature-grid,
.guide-grid,
.faq-grid {
  display: grid;
  gap: 1.2rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card h3,
.guide-card h3 {
  margin: 0.35rem 0 0.6rem;
  font-size: 1.35rem;
}

.guide-card p {
  color: var(--muted);
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.94rem;
  align-items: center;
}

.meta-row a,
.text-link {
  color: var(--teal);
  font-weight: 700;
}

.two-column,
.calculator-layout,
.visualizer-grid,
.article-layout,
.footer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calculator-layout {
  grid-template-columns: 1.3fr 0.7fr;
  align-items: start;
}

.sidebar-stack {
  display: grid;
  gap: 1rem;
}

.field-row label,
.fit-select,
.search-box {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--teal-deep);
}

input,
select {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(13, 92, 99, 0.16);
  background: white;
  color: var(--ink);
  font: inherit;
}

.result-shell {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.result-grid {
  gap: 1rem;
}

.result-grid .result-card {
  flex: 1 1 140px;
}

.result-primary {
  background: linear-gradient(145deg, rgba(13, 92, 99, 0.08), rgba(201, 122, 43, 0.08));
}

.pill,
.badge,
.pill-locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(13, 92, 99, 0.08);
  color: var(--teal-deep);
  border: 1px solid rgba(13, 92, 99, 0.1);
}

.pill.is-active {
  background: var(--teal);
  color: white;
}

.ad-placeholder {
  min-height: 120px;
  border-radius: 20px;
  border: 1px dashed rgba(13, 92, 99, 0.28);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(13, 92, 99, 0.06),
      rgba(13, 92, 99, 0.06) 14px,
      rgba(255, 255, 255, 0.75) 14px,
      rgba(255, 255, 255, 0.75) 28px
    );
  display: grid;
  place-items: center;
  color: var(--teal-deep);
  text-align: center;
  padding: 1rem;
  font-weight: 700;
}

.microcopy {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 0;
}

.model-stage {
  margin-top: 1rem;
  border-radius: var(--radius);
  min-height: 360px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top, rgba(13, 92, 99, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 237, 0.95));
  border: 1px solid var(--line);
}

.model-figure {
  --band-width: 188px;
  --cup-size: 86px;
  --strap-angle: 20deg;
  position: relative;
  width: 260px;
  height: 320px;
}

.torso-shape {
  position: absolute;
  inset: 22px 42px 0;
  border-radius: 120px 120px 48px 48px;
  background: linear-gradient(180deg, #f5d6c7, #eab9a6 80%, #dda18d);
  box-shadow: inset 0 -14px 30px rgba(120, 67, 46, 0.14);
}

.bra-band-shape {
  position: absolute;
  width: var(--band-width);
  height: 28px;
  left: 50%;
  top: 140px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, #0d5c63, #11464b);
  box-shadow: 0 10px 25px rgba(9, 53, 58, 0.2);
}

.cup-shape {
  position: absolute;
  width: var(--cup-size);
  height: calc(var(--cup-size) * 0.8);
  top: 112px;
  border-radius: 50% 50% 42% 42%;
  background: linear-gradient(180deg, #f0efe8, #d8dacd);
  border: 2px solid rgba(13, 92, 99, 0.24);
  box-shadow: inset 0 -10px 16px rgba(13, 92, 99, 0.08);
}

.cup-left {
  right: calc(50% + 4px);
  transform-origin: right center;
  transform: rotate(-8deg);
}

.cup-right {
  left: calc(50% + 4px);
  transform-origin: left center;
  transform: rotate(8deg);
}

.strap-shape {
  position: absolute;
  width: 18px;
  height: 112px;
  top: 56px;
  background: linear-gradient(180deg, rgba(13, 92, 99, 0.88), rgba(13, 92, 99, 0.28));
  border-radius: 999px;
  opacity: 0.84;
}

.strap-left {
  left: 86px;
  transform: rotate(calc(var(--strap-angle) * -1));
  transform-origin: center bottom;
}

.strap-right {
  right: 86px;
  transform: rotate(var(--strap-angle));
  transform-origin: center bottom;
}

.model-note {
  color: var(--muted);
  margin-top: 1rem;
}

.fit-output h3 {
  margin-top: 0;
  font-size: 1.35rem;
}

.filter-bar {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.faq-item {
  padding: 1rem 1.25rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--teal-deep);
}

.faq-item p {
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.prose-shell {
  padding: 2rem;
}

.prose-block {
  margin-bottom: 2rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid rgba(13, 92, 99, 0.1);
}

.prose-block:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.article-main {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  color: var(--muted);
  margin-bottom: 1rem;
  align-items: center;
}

.article-lead {
  margin-bottom: 1.8rem;
}

.takeaway-block {
  background: rgba(13, 92, 99, 0.04);
  padding: 1rem 1.2rem;
  border-radius: 20px;
}

.site-footer {
  padding: 2rem 0 3.2rem;
  background: linear-gradient(180deg, rgba(9, 53, 58, 0.96), rgba(9, 53, 58, 1));
  color: rgba(255, 255, 255, 0.9);
}

.footer-grid {
  align-items: start;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin: 0 0 0.6rem;
}

.footer-heading {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: #d7dfdf;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.footer-copy,
.footer-mail {
  color: rgba(255, 255, 255, 0.76);
}

.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 40;
}

.cookie-card {
  padding: 1.2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.cookie-dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 720px;
  width: calc(100% - 2rem);
}

.cookie-dialog::backdrop {
  background: rgba(15, 42, 42, 0.48);
}

.cookie-panel {
  padding: 1.5rem;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.dialog-close {
  border: none;
  background: rgba(13, 92, 99, 0.08);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 1.4rem;
  cursor: pointer;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid rgba(13, 92, 99, 0.1);
}

.cookie-option:first-of-type {
  border-top: none;
  padding-top: 0.4rem;
}

.pill-locked {
  background: rgba(201, 122, 43, 0.12);
  color: #8b4f17;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero-grid,
  .feature-grid,
  .guide-grid,
  .two-column,
  .calculator-layout,
  .visualizer-grid,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .cookie-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero,
  .page-hero,
  .section {
    padding-top: 1.6rem;
  }

  .container {
    width: min(100% - 1rem, 1160px);
  }

  .hero-copy h1,
  .page-hero h1 {
    max-width: none;
  }

  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button {
    transition: none;
  }
}
