:root {
  color-scheme: light;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1f3030;
  background: #f9f6f0;
  --bg: #ffffff;
  --surface: #fbf7f1;
  --surface-strong: #f0e8dd;
  --primary: #2b4346;
  --primary-soft: #57716f;
  --accent: #b98f58;
  --accent-strong: #8a6838;
  --text-muted: #62615f;
  --border: rgba(43, 67, 70, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #fcfaf6 0%, #f4efe8 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 60;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

button,
input,
select {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  width: clamp(220px, 24vw, 340px);
  height: 64px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav a {
  color: var(--primary-soft);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--primary);
}

.site-nav a[aria-current='page'] {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.shop-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.88rem 1.25rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.section-pad {
  padding: clamp(3rem, 3vw, 5rem) 1.5rem;
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-copy .eyebrow,
.section-header .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: 1rem;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 1.02;
  max-width: 12ch;
}

.hero-copy p {
  color: var(--text-muted);
  max-width: 44rem;
  margin-top: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-stats {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hero-stats div {
  display: inline-flex;
  gap: 0.5rem;
}

.hero-stats strong {
  color: var(--primary);
}

.button {
  border: none;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button-primary {
  background: var(--primary);
  color: #fff;
}

.button-secondary {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--primary);
}

.button:hover {
  transform: translateY(-1px);
}

.hero-gallery {
  display: grid;
  gap: 1rem;
}

.compare-card,
.grid-story-card {
  padding: 1rem;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 25px 60px rgba(17, 18, 19, 0.06);
  display: grid;
  gap: 1rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(169, 143, 88, 0.14);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.compare-stage {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #d8d1c7;
}

.compare-image {
  position: absolute;
  inset: 0;
  background-image: url('/Brand Assets/BrandMark.svg');
  background-size: cover;
  background-position: center;
}

.compare-before {
  filter: saturate(0.72) contrast(0.95);
}

.compare-after {
  width: var(--split);
  border-right: 3px solid #fff;
  box-shadow: 18px 0 40px rgba(31, 48, 48, 0.2);
  filter: saturate(1.08) contrast(1.04);
}

.compare-label {
  position: absolute;
  top: 1rem;
  z-index: 2;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
}

.compare-label-left {
  left: 1rem;
}

.compare-label-right {
  right: 1rem;
}

.compare-card input[type='range'] {
  width: 100%;
  accent-color: var(--primary);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
  min-height: 180px;
}

.mini-grid span {
  min-height: 48px;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #f0e8dd, #ffffff);
  border: 1px solid var(--border);
}

.mini-grid span:nth-child(3n + 1) {
  grid-column: span 2;
}

.compare-card p,
.grid-story-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

.section-header {
  max-width: 860px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-header h1,
.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.05;
}

.section-header h1 {
  max-width: 16ch;
  margin: 0 auto;
  font-size: clamp(2.35rem, 4vw, 4rem);
}

.section-header p:not(.eyebrow) {
  max-width: 72ch;
  margin: 1.25rem auto 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.section-pad > p,
.section-alt > p {
  max-width: 860px;
  margin: 1rem auto 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.section-pad > article,
.section-alt > article {
  max-width: 860px;
  margin: 1.25rem auto 0;
}

.section-pad > article h3,
.section-alt > article h3 {
  margin: 0 0 0.5rem;
}

.section-pad > article p,
.section-alt > article p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.section-stack {
  max-width: 1200px;
  margin: 2rem auto 0;
}

.category-grid,
.feature-grid {
  display: grid;
  gap: 1.5rem;
}

.category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card {
  padding: 1.85rem;
  border-radius: 0.5rem;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 20px 45px rgba(17, 18, 19, 0.05);
  display: grid;
  gap: 1rem;
}

.category-card h3 {
  margin: 0;
}

.category-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.section-alt {
  background: #f4eee5;
}

.config-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
}

.config-panel,
.config-summary,
.feature-grid article,
.secondary-panel,
.product-item,
.summary-card,
.category-card {
  background: #fff;
}

.config-panel,
.config-summary,
.feature-grid article,
.secondary-panel,
.category-card {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 2rem;
}

.config-panel label {
  display: block;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--primary);
}

.field-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.config-panel input:not([type='checkbox']),
.config-panel select {
  width: 100%;
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem 1.1rem;
  background: #fff;
}

.config-panel select {
  min-width: 0;
}

#unit-select {
  width: 130px;
  flex: 0 0 130px;
}

#preset-select {
  width: 100%;
  flex: 1 1 100%;
}

.field-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.check-row {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
}

.check-row input {
  width: 1.1rem;
  height: 1.1rem;
  appearance: auto;
  accent-color: var(--primary);
}

.summary-card + .summary-card {
  margin-top: 1rem;
}

.summary-card h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.suggestion-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.suggestion-list li {
  padding: 1rem;
  border-radius: 0.5rem;
  background: var(--surface);
}

.plan-options {
  display: grid;
  gap: 0.75rem;
}

.plan-option {
  width: 100%;
  display: grid;
  gap: 0.3rem;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--primary);
  padding: 1rem;
  cursor: pointer;
}

.plan-option.is-active {
  border-color: rgba(43, 67, 70, 0.55);
  background: #f7f1e8;
  box-shadow: inset 0 0 0 1px rgba(43, 67, 70, 0.12);
}

.plan-option[aria-pressed='true'] {
  border-color: var(--accent-strong);
}

.plan-option span,
.plan-option strong {
  font-weight: 800;
}

.plan-option small {
  color: var(--text-muted);
  line-height: 1.5;
}

.grid-preview {
  --grid-cols: 12;
  --grid-rows: 8;
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
  grid-template-rows: repeat(var(--grid-rows), minmax(12px, 1fr));
  gap: 3px;
  aspect-ratio: var(--grid-cols) / var(--grid-rows);
  min-height: 220px;
  max-height: 520px;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background:
    linear-gradient(rgba(43, 67, 70, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 67, 70, 0.08) 1px, transparent 1px),
    #fffaf3;
  background-size: 18px 18px;
  overflow: hidden;
}

.grid-piece {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 0.3rem;
  border: 1px solid rgba(43, 67, 70, 0.2);
  border-radius: 0.55rem;
  background: linear-gradient(135deg, #2b4346, #57716f);
  color: #fff;
  font-size: clamp(0.64rem, 1.6vw, 0.9rem);
  font-weight: 800;
  text-align: center;
}

.category-card:focus-visible,
.grid-piece:focus-visible,
.product-item a:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 4px;
}

.grid-piece:nth-child(4n + 2) {
  background: linear-gradient(135deg, #8a6838, #b98f58);
}

.grid-piece:nth-child(4n + 3) {
  background: linear-gradient(135deg, #56635a, #8b9b83);
}

.grid-piece:nth-child(4n + 4) {
  background: linear-gradient(135deg, #6d4f43, #a27b65);
}

.plan-summary {
  margin-bottom: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.product-links {
  display: grid;
  gap: 0.85rem;
}

.product-item {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.product-item h4 {
  margin: 0 0 0.35rem;
  color: var(--primary);
}

.product-item p,
.product-item a,
.product-item small {
  margin: 0;
  color: var(--text-muted);
}

.product-item small {
  display: block;
  margin-top: 0.35rem;
  line-height: 1.4;
}

.product-item a {
  display: inline-flex;
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid article {
  display: grid;
  gap: 1rem;
}

.feature-grid h3 {
  margin-top: 0;
}

.secondary-panel {
  display: grid;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, #fffdf8, #f5efe4);
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}

.secondary-panel .panel-copy {
  max-width: 66ch;
}

.secondary-panel h2 {
  margin: 0 0 1rem;
}

.opportunity-hero {
  padding-top: clamp(2.5rem, 4vw, 4.5rem);
}

.opportunity-hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 2rem;
  align-items: start;
}

.opportunity-copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 4.5vw, 4.8rem);
  line-height: 0.98;
  max-width: 10ch;
}

.opportunity-copy p:not(.eyebrow) {
  max-width: 44rem;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.opportunity-summary {
  display: grid;
  gap: 0.85rem;
  padding: 1.25rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 20px 45px rgba(17, 18, 19, 0.05);
}

.opportunity-label {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.opportunity-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.cookie-banner {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  width: min(520px, calc(100vw - 2rem));
  display: grid;
  gap: 1rem;
  padding: 1.1rem 1.1rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 16px 40px rgba(43, 67, 70, 0.16);
}

.cookie-banner[hidden],
.cookie-manage[hidden] {
  display: none !important;
}

.cookie-banner__copy {
  display: grid;
  gap: 0.5rem;
}

.cookie-banner__copy strong {
  color: var(--primary);
}

.cookie-banner__copy p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cookie-banner__link {
  color: var(--primary);
  font-weight: 700;
  margin-right: auto;
}

.cookie-manage {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 39;
  box-shadow: 0 10px 24px rgba(43, 67, 70, 0.14);
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.footer-links a {
  color: var(--primary-soft);
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .hero,
  .opportunity-hero-grid,
  .config-grid,
  .category-grid,
  .feature-grid,
  .secondary-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero,
  .category-grid,
  .feature-grid {
    display: grid;
  }
}

@media (max-width: 780px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
  }

  .site-nav {
    justify-content: space-between;
  }

  .brand-logo {
    width: min(340px, 86vw);
  }

  .site-nav a {
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .cookie-banner {
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
    width: auto;
  }

  .cookie-banner__actions {
    align-items: stretch;
  }

  .cookie-banner__actions .button {
    flex: 1 1 180px;
  }

  .cookie-banner__link {
    width: 100%;
    margin-right: 0;
  }

  .cookie-manage {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 640px) {
  .hero-copy h1 {
    max-width: 100%;
  }

  .opportunity-copy h1 {
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}
