@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Public+Sans:wght@400;500;600;700&display=swap");

:root {
  --sand: #ffffff;
  --clay: #f0f0f0;
  --cedar: #3b2f2a;
  --cocoa: #5a4a42;
  --taupe: #8a7a72;
  --mist: #b9aba2;
  --terracotta: #E8862F;
  --sage: #5e7a52;
  --parchment: #f7f7f7;
  --blush: #d9b7a3;
  --saffron: #d4a96b;
  --fern: #7a9e6e;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(59, 47, 42, 0.12);
  --font-display: "Manrope", "Avenir Next", sans-serif;
  --font-body: "Public Sans", "Avenir", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--cedar);
  background: #ffffff;
  min-height: 100vh;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  opacity: 0.2;
}

body::before {
  top: -180px;
  right: -160px;
  background: radial-gradient(circle, rgba(232, 134, 47, 0.2), transparent 65%);
}

body::after {
  bottom: -180px;
  left: -200px;
  background: radial-gradient(circle, rgba(94, 122, 82, 0.35), transparent 70%);
}

.page {
  max-width: 1200px;
  margin: 28px auto 72px;
  padding: 28px 26px 72px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  border: 1px solid rgba(240, 240, 240, 0.9);
  box-shadow: 0 26px 70px rgba(59, 47, 42, 0.08);
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 42px;
  background: #f5f5f5;
  padding: 10px 14px;
  border-radius: 20px;
  border: 1px solid var(--clay);
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lockup--horizontal .lockup__paw {
  width: 109px;
  height: 109px;
  object-fit: contain;
}

.lockup__divider {
  width: 1px;
  height: 66px;
  background: var(--cedar);
  opacity: 0.18;
  margin: 0 18px;
}

.lockup__wm {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-display);
}

.lockup__the {
  font-size: 14px;
  letter-spacing: 2.5px;
  font-weight: 600;
  color: var(--terracotta);
}

.lockup__balanced {
  font-size: 32px;
  letter-spacing: -0.5px;
  font-weight: 700;
  color: var(--cedar);
}

.lockup__bowl {
  font-size: 16px;
  letter-spacing: 4.1px;
  font-weight: 500;
  color: var(--sage);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  align-items: center;
}

.nav-links a {
  color: var(--cedar);
  text-decoration: none;
  opacity: 0.85;
  font-weight: 700;
}

.nav-links a.nav-cta {
  background: var(--sage);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 1;
}

.hero {
  margin-bottom: 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 16px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--sage);
  font-weight: 700;
  margin: 0;
}

.hero h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  margin: 0;
  color: var(--cedar);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 46px);
  margin: 0;
  color: var(--cedar);
}

.hero p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  max-width: 520px;
  color: var(--cocoa);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.calculator-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: center;
}

.calculator-hero__image {
  width: min(100%, 360px);
  height: min(520px, 70vw);
  justify-self: center;
  border-radius: 22px;
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: center 20%;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.calc-card {
  background: #ffffff;
  border: 1px solid var(--clay);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.calc-form {
  display: grid;
  gap: 14px;
}

.calc-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--cedar);
}

.calc-form input,
.calc-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--clay);
  font-size: 14px;
  font-family: var(--font-body);
}

.calc-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
}

.calc-error {
  color: #b94a3a;
  font-size: 13px;
  margin: 0;
}

.calc-kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.calc-kpi strong {
  display: block;
  font-size: 22px;
  color: var(--cedar);
}

.calc-label {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
}

.calc-sub {
  display: block;
  font-size: 12px;
  color: var(--taupe);
}

.calc-meta {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--cocoa);
}

.calc-notes {
  margin: 0;
  padding-left: 18px;
  color: var(--cocoa);
  font-size: 14px;
}

.primary-button {
  background: var(--sage);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.ghost-button {
  background: var(--white);
  color: var(--cedar);
  padding: 12px 18px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--clay);
}

.hero-badges {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--taupe);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: var(--white);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--clay);
  max-width: 420px;
  display: grid;
  gap: 12px;
}

.hero-card img {
  width: 100%;
  border-radius: 20px;
  height: 280px;
  object-fit: cover;
  display: block;
}

.hero-card__content {
  padding: 4px 4px 8px;
  display: grid;
  gap: 10px;
}

.hero-card__content h3 {
  margin: 0;
  font-size: 20px;
  font-family: var(--font-display);
}

.hero-card__content p {
  margin: 0;
  font-size: 14px;
  color: var(--cocoa);
}

.stat-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  text-align: center;
  margin-top: 4px;
}

.stat-list strong {
  display: block;
  font-size: 15px;
  color: var(--cedar);
}

.stat-list span {
  font-size: 12px;
  color: var(--taupe);
}

.badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 0;
  width: auto;
  height: 48px;
  background: transparent;
  border: none;
}

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

.highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.highlight .tile {
  padding: 20px;
  border-radius: 18px;
  background: var(--parchment);
  border: 1px solid var(--clay);
}

.highlight h3 {
  margin: 0 0 10px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section {
  margin-bottom: 70px;
}

.section h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 16px;
}

.section p {
  font-size: 15px;
  line-height: 1.7;
  max-width: 760px;
  color: var(--cocoa);
}

.screens {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.screen-card {
  background: var(--white);
  border-radius: 20px;
  padding: 18px;
  border: 1px solid var(--clay);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.screen-card img {
  width: 100%;
  height: clamp(240px, 60vw, 360px);
  object-fit: contain;
  background: var(--parchment);
  border-radius: 18px;
  border: 1px solid rgba(240, 240, 240, 0.9);
  display: block;
}

.blog-header {
  margin-bottom: 8px;
}

.blog-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
  margin: 0;
  color: var(--cedar);
}

.blog-meta {
  font-size: 13px;
  color: var(--taupe);
  margin-top: 6px;
}

.blog-content {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--cocoa);
  overflow: hidden;
}

.blog-content h2 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--cedar);
  margin: 32px 0 12px;
}

.blog-content p {
  margin: 0 0 16px;
}

.blog-content ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.blog-content li {
  margin-bottom: 6px;
}

.source-list {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--clay);
  font-size: 13px;
}

.source-list ul {
  margin-top: 8px;
}

.blog-hero {
  margin: 24px 0 12px;
}

.blog-hero img {
  width: 100%;
  height: clamp(220px, 40vw, 420px);
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: block;
}

.screen-card h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.screen-card p {
  margin: 0;
  font-size: 14px;
  color: var(--cocoa);
}

.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.process-step {
  border-left: 3px solid var(--sage);
  padding-left: 16px;
  background: var(--parchment);
  border-radius: 16px;
  padding: 16px 16px 16px 20px;
  border: 1px solid var(--clay);
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--clay);
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.blog-card img {
  width: 160px;
  min-height: 120px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.blog-card .content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-card h4 {
  margin: 0 0 8px;
  font-size: 17px;
}

.blog-card p {
  margin: 0;
  font-size: 14px;
  color: var(--taupe);
  line-height: 1.5;
}

.blog-card a {
  color: inherit;
  text-decoration: none;
}

.blog-card a:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .blog-card {
    flex-direction: column;
  }
  .blog-card img {
    width: 100%;
    height: 180px;
  }
}

.blog-float-right {
  float: right;
  width: clamp(140px, 25%, 220px);
  height: auto;
  margin: 0 0 20px 28px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.blog-float-left {
  float: left;
  width: clamp(200px, 40%, 360px);
  height: auto;
  margin: 0 28px 20px 0;
  border-radius: 16px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.faq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.faq-item {
  background: var(--parchment);
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--clay);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--cedar);
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--taupe);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--cocoa);
  font-size: 14px;
  line-height: 1.6;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  opacity: 0.8;
}

.footer a,
.blog-content a {
  color: var(--cocoa);
  text-decoration: underline;
  text-decoration-color: var(--mist);
  text-underline-offset: 2px;
}

.footer a:hover,
.blog-content a:hover {
  color: var(--sage);
  text-decoration-color: var(--sage);
}

.reveal {
  animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) and (min-width: 721px) {
  .screens {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .nav {
    border-radius: 0;
  }

  .lockup--horizontal .lockup__paw {
    width: 72px;
    height: 72px;
  }

  .lockup__divider {
    height: 44px;
    margin: 0 10px;
  }

  .lockup__the {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .lockup__balanced {
    font-size: 22px;
  }

  .lockup__bowl {
    font-size: 12px;
    letter-spacing: 3px;
  }

  .page {
    padding: 24px 18px 64px;
  }

  .hero h2 {
    font-size: 30px;
  }

  .hero p,
  .section p {
    font-size: 16px;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }

  .badge-link {
    width: auto;
    max-width: 200px;
    height: 48px;
  }

  .hero-card img {
    height: 220px;
  }

  .stat-list {
    grid-template-columns: 1fr;
  }

  .screens {
    grid-template-columns: 1fr;
  }

  .screen-card {
    padding: 12px;
  }

  .screen-card img {
    height: auto;
    max-height: none;
    aspect-ratio: 9 / 19.5;
    object-fit: cover;
    object-position: top;
  }

  .blog-float-right,
  .blog-float-left {
    float: none;
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 16px auto;
  }

  .blog-float-right {
    max-width: 180px;
  }

  .blog-content h2 {
    font-size: 19px;
  }

  .calc-grid {
    grid-template-columns: 1fr;
  }

  .calculator-hero {
    grid-template-columns: 1fr;
  }

  .calculator-hero__image {
    width: 100%;
    height: 280px;
  }
}
