:root {
  --bg: #f6f4ee;
  --panel: #fffdf8;
  --ink: #0f1729;
  --ink-soft: #3f4b63;
  --line: #ddd5c7;
  --brand: #b53d2a;
  --brand-deep: #7f2115;
  --accent: #0f766e;
  --accent-soft: #cdebe8;
  --sun: #e7a93f;
  --ok: #13654a;
  --danger: #b42318;
  --shadow-sm: 0 8px 20px rgba(20, 18, 12, 0.08);
  --shadow-md: 0 18px 42px rgba(20, 18, 12, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(181, 61, 42, 0.16), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(15, 118, 110, 0.2), transparent 35%),
    linear-gradient(180deg, #faf7f0 0%, #f5f0e5 42%, #f3efe7 100%);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.06rem);
  line-height: 1.72;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-family: "Sora", "Trebuchet MS", sans-serif;
}
p { margin: 0; color: var(--ink-soft); }
a { color: inherit; }
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

@supports (padding: env(safe-area-inset-top)) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .site-header {
    top: env(safe-area-inset-top);
  }
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(127, 33, 21, 0.14);
  background: rgba(255, 251, 243, 0.88);
  backdrop-filter: blur(10px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 10px;
}

.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.26);
}

.logo-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: conic-gradient(var(--brand), var(--sun), var(--accent), var(--brand));
  box-shadow: 0 0 0 5px rgba(181, 61, 42, 0.14);
}

.nav-toggle {
  border: 1px solid #c8baa7;
  background: #fff8ed;
  color: #402715;
  border-radius: 10px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  font: inherit;
  font-weight: 700;
}

.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;
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #402715;
  transition: transform 180ms ease, opacity 180ms ease;
  transform-origin: center;
}

.nav-toggle.is-open .hamburger-line:nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open .hamburger-line:nth-child(3) {
  opacity: 0;
}

.nav-toggle.is-open .hamburger-line:nth-child(4) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px 0 18px;
}

.nav-links.open { display: flex; }

.nav-links a {
  text-decoration: none;
  color: #2f2f2f;
  font-weight: 700;
  border-left: 3px solid transparent;
  padding-left: 10px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.nav-links a.active {
  color: var(--brand-deep);
  border-left-color: var(--brand);
}

.btn {
  border: none;
  border-radius: 12px;
  min-height: 44px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(122deg, var(--brand), #ca4f38);
  box-shadow: 0 12px 26px rgba(127, 33, 21, 0.24);
}

.btn-primary:hover {
  background: linear-gradient(122deg, #a63524, #bf4a34);
}

.btn-secondary {
  color: #043830;
  background: linear-gradient(122deg, #c3ebe5, #def4ee);
  border: 1px solid #96cfc6;
}

.btn-ghost {
  background: #fffaf0;
  color: #433122;
  border: 1px solid #d7c7b1;
}

.hero {
  padding: clamp(26px, 7vw, 54px) 0 26px;
}

.hero-grid {
  display: grid;
  gap: 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid #d9c9b5;
  background: #fff9ee;
  color: #5a3321;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 11px;
}

.hero h1 {
  font-size: clamp(2rem, 7.5vw, 4rem);
  max-width: 14ch;
}

.hero p {
  margin-top: 14px;
  font-size: clamp(0.96rem, 2.8vw, 1.06rem);
  max-width: 62ch;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-metrics {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fffdf8;
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
}

.metric strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.35rem;
}

.hero-image-stack {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #d6cab9;
}

.hero-image-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-note {
  position: absolute;
  right: 12px;
  bottom: 12px;
  max-width: 220px;
  background: rgba(15, 23, 41, 0.82);
  color: #f5f5f5;
  border-radius: 12px;
  padding: 11px;
  font-size: 0.88rem;
}

section { padding: clamp(20px, 3.8vw, 30px) 0; }

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.4rem, 5vw, 2.4rem);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 12px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.card h3,
.card h4 {
  margin-bottom: 8px;
}

.media-card {
  overflow: hidden;
  padding: 0;
}

.media-card .card-body {
  padding: 16px;
}

.media-card img {
  border-radius: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.steps {
  counter-reset: item;
  display: grid;
  gap: 12px;
}

.step {
  position: relative;
  padding: 16px 16px 16px 56px;
}

.step::before {
  counter-increment: item;
  content: counter(item);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(130deg, var(--brand), var(--accent));
}

.quote-block {
  border: 1px solid #d3c3ad;
  border-radius: var(--radius-md);
  padding: 18px;
  background: linear-gradient(140deg, #fff5e8, #f6f7f2);
}

.quote-block p {
  color: #35281f;
  font-size: 1.08rem;
}

.quote-block small {
  display: block;
  margin-top: 10px;
  color: #6f5643;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border: 1px solid #cfbca4;
  background: #fffaf2;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.86rem;
  font-weight: 700;
}

.cta {
  border: 1px solid #c4b096;
  border-radius: var(--radius-lg);
  background: linear-gradient(122deg, #8d2819, #0f766e);
  color: #fff;
  box-shadow: var(--shadow-md);
  padding: 22px;
  display: grid;
  gap: 12px;
}

.cta p { color: #f8fcfa; }

.pricing-switch {
  display: inline-flex;
  border: 1px solid #d5c5b0;
  border-radius: 999px;
  padding: 4px;
  background: #fff8ee;
}

.pricing-switch button {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #5c4632;
  font: inherit;
  font-weight: 700;
  padding: 8px 12px;
}

.pricing-switch button.active {
  background: #fff;
  box-shadow: 0 6px 18px rgba(93, 63, 37, 0.16);
}

.price-tag {
  margin: 12px 0 4px;
  font-family: "Sora", sans-serif;
  font-size: 2.2rem;
}

.price-unit {
  color: #725742;
  font-weight: 700;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d8c8b3;
}

.compare th,
.compare td {
  padding: 12px;
  border-bottom: 1px solid #e8dece;
  text-align: left;
  vertical-align: top;
}

.compare th {
  background: #fff6e9;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid #d7c8b2;
  border-radius: 12px;
  overflow: hidden;
  background: #fffdf8;
}

.faq-q {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 13px 14px;
  font: inherit;
  font-weight: 800;
  color: #2f261f;
  cursor: pointer;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 14px;
  color: #5c4b3f;
  transition: max-height 260ms ease, padding 260ms ease;
}

.faq-item.open .faq-a {
  max-height: 250px;
  padding: 0 14px 14px;
}

.contact-form .field { margin-bottom: 10px; }

.contact-form label {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid #cdbda7;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  background: #fffcf5;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  margin-top: 10px;
  border: 1px solid #d8cab6;
  border-radius: 10px;
  background: #fff6ea;
  padding: 10px;
  min-height: 44px;
  color: #594434;
}

.status-ok { border-color: #98cfbd; color: var(--ok); background: #ebf8f3; }
.status-err { border-color: #efc2bd; color: var(--danger); background: #fdf1ef; }

.palette {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.swatch {
  border: 1px solid #d7c8b1;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.swatch-color {
  height: 68px;
}

.swatch-meta {
  padding: 10px;
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 380ms ease, transform 380ms ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.float-up {
  animation: float-up 5.4s ease-in-out infinite;
}

@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.foot {
  margin-top: 26px;
  border-top: 1px solid #ddcfbd;
  padding: 20px 0 30px;
  color: #6f5c4f;
}

.foot-grid {
  display: grid;
  gap: 12px;
}

/* Mobile-first baseline (optimized for iPhone 13-15 widths) */
.container { width: min(1140px, 96vw); }

.site-header {
  background: #fffaf2;
  backdrop-filter: none;
}

.nav-shell {
  min-height: 60px;
  gap: 8px;
}

.logo {
  min-width: 0;
  max-width: calc(100% - 56px);
  gap: 8px;
}

.logo-mark {
  width: 30px;
  height: 30px;
}

.logo span {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.nav-toggle {
  min-height: 46px;
  min-width: 46px;
  padding: 0.35rem;
  font-size: 0.92rem;
}

.nav-links {
  width: 100%;
  gap: 8px;
  position: fixed;
  top: 0;
  right: 0;
  width: min(82vw, 320px);
  height: 100dvh;
  padding: calc(70px + env(safe-area-inset-top, 0px)) 14px calc(16px + env(safe-area-inset-bottom, 0px));
  background: #fffaf2;
  border-left: 1px solid #d8cbb8;
  box-shadow: -14px 0 34px rgba(20, 18, 12, 0.2);
  overflow-y: auto;
  z-index: 80;
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.nav-links.open {
  display: flex;
  transform: translateX(0);
}

.nav-links a {
  min-height: 44px;
  font-size: 0.98rem;
}

.nav-links .btn {
  width: 100%;
  justify-content: center;
}

.hero {
  padding: 0.75rem 0 0.9rem;
}

.hero h1 {
  font-size: clamp(1.5rem, 8.5vw, 2.05rem);
  max-width: 100%;
}

.hero p {
  font-size: 0.98rem;
  color: #253247;
  line-height: 1.6;
}

.hero-image-stack {
  aspect-ratio: 16 / 9;
  min-height: 0;
  max-height: 220px;
}

.hero-actions {
  flex-direction: column;
}

.hero-actions .btn,
.hero-actions a.btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.hero-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-note {
  position: static;
  margin: 10px;
  max-width: none;
  font-size: 0.82rem;
  padding: 8px;
}

section {
  padding: 0.75rem 0;
}

.grid-2,
.grid-3,
.grid-4 {
  grid-template-columns: 1fr;
}

.card,
.quote-block,
.cta {
  padding: 12px;
}

.card p,
.section-head p,
.quote-block small {
  color: #2b3850;
  line-height: 1.62;
}

.btn {
  min-height: 48px;
  font-size: 1rem;
  padding: 0.75rem 1rem;
}

.metric {
  padding: 9px 10px;
}

.metric strong {
  font-size: 1.08rem;
}

.pill {
  font-size: 0.78rem;
  padding: 6px 9px;
}

.compare th,
.compare td {
  padding: 10px;
  font-size: 0.95rem;
}

.palette {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.foot {
  padding-bottom: 24px;
}

.float-up {
  animation: none;
}

/* 480px and up */
@media (min-width: 480px) {
  .container { width: min(1140px, 95vw); }

  body {
    font-size: clamp(1rem, 0.94rem + 0.35vw, 1.08rem);
  }

  .logo-mark {
    width: 32px;
    height: 32px;
  }

  .hero-image-stack {
    max-height: 280px;
  }

  section {
    padding: 1.1rem 0;
  }
}

@media (max-width: 420px) {
  .hero p,
  .card p,
  .section-head p,
  .quote-block p,
  .quote-block small,
  .pill,
  .nav-links a {
    font-size: 1rem;
  }

  .section-head h2 {
    font-size: clamp(1.3rem, 6.5vw, 1.65rem);
  }

  .foot {
    font-size: 0.97rem;
  }
}

/* 768px and up: tablet layout, still using hamburger nav */
@media (min-width: 768px) {
  .site-header {
    background: rgba(255, 251, 243, 0.88);
    backdrop-filter: blur(10px);
  }

  .nav-shell {
    min-height: 74px;
    gap: 18px;
  }

  .logo {
    max-width: none;
  }

  .logo span {
    max-width: none;
    font-size: 1.05rem;
  }

  .hero-actions {
    flex-direction: row;
  }

  .hero-actions .btn,
  .hero-actions a.btn {
    width: auto;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta {
    grid-template-columns: 1fr;
  }

  .hero-note {
    position: absolute;
    right: 12px;
    bottom: 12px;
    margin: 0;
    max-width: 220px;
  }

  section {
    padding: 1.25rem 0;
  }

  .hero-image-stack {
    aspect-ratio: 16 / 10;
    max-height: none;
  }
}

/* 1024px and up: switch to horizontal desktop nav */
@media (min-width: 1024px) {
  .container { width: min(1140px, 94vw); }

  .nav-toggle { display: none; }

  .nav-links {
    display: flex;
    position: static;
    top: auto;
    right: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    margin-left: auto;
    width: auto;
    padding: 0;
    gap: 10px;
    border-left: 0;
    box-shadow: none;
    overflow: visible;
    z-index: auto;
    transform: none;
    transition: none;
  }

  .nav-links a {
    min-height: 40px;
    border-left: none;
    border-bottom: 2px solid transparent;
    padding-left: 0;
    padding-bottom: 2px;
  }

  .nav-links a.active {
    border-bottom-color: var(--brand);
  }

  .nav-links .btn {
    width: auto;
  }

  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 18px;
  }

  .hero-image-stack {
    min-height: 380px;
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cta {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .palette {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .foot-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

@media (max-width: 932px) and (orientation: landscape) {
  .site-header {
    position: static;
  }

  .hero {
    padding-top: 14px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-image-stack {
    min-height: 220px;
  }
}

@media (min-width: 1440px) {
  .container { width: min(1280px, 92vw); }

  .hero-image-stack {
    min-height: 460px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .btn,
  .float-up {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
