/* Hero */
.hero {
  position: relative;
  padding: var(--s-10) 0 var(--s-11);
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-shape-a {
  width: 640px;
  height: 640px;
  right: -140px;
  top: -120px;
  background: radial-gradient(closest-side, var(--green-100), rgba(230, 242, 232, 0));
}

.hero-shape-b {
  width: 220px;
  height: 220px;
  left: 42%;
  bottom: 40px;
  background: radial-gradient(closest-side, rgba(246, 214, 123, 0.35), rgba(246, 214, 123, 0));
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: var(--s-9);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
  padding: 6px var(--s-3) 6px 10px;
  border: 1px solid var(--green-200);
  border-radius: var(--r-full);
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-700);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow-500);
  box-shadow: 0 0 0 3px var(--yellow-100);
}

.hero h1 {
  font-size: clamp(2.125rem, 1.2rem + 3.6vw, 3.875rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-lead {
  max-width: 500px;
  margin-top: var(--s-5);
  font-size: 1.1875rem;
  color: var(--ink-muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-5);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}

.trust-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
}

.trust-check .icon {
  width: 12px;
  height: 12px;
}

.hero-visual {
  position: relative;
  padding-bottom: var(--s-6);
}

@media (max-width: 1023px) {
  .hero {
    padding: var(--s-8) 0 var(--s-10);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--s-8);
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero-visual {
    max-width: 680px;
  }

  .float-grocery {
    right: -8px;
  }
}

@media (max-width: 599px) {
  .hero {
    padding: var(--s-6) 0 var(--s-9);
  }

  .hero-lead {
    font-size: 1.0625rem;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .mini-week {
    grid-template-columns: repeat(2, 1fr);
  }

  .mini-day-extra {
    display: none;
  }

  .app-body {
    padding: var(--s-4);
  }

  .app-toolbar .seg {
    display: none;
  }

  .hero-visual {
    padding-bottom: 0;
  }

  .float-grocery {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin: calc(var(--s-6) * -1) var(--s-4) 0;
  }
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}

.feature-card {
  height: 100%;
  padding: var(--s-6);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--green-200);
  box-shadow: var(--shadow-md);
}

.feature-icon,
.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--green-100);
  color: var(--green-800);
  transition: background-color var(--t-med) var(--ease), color var(--t-med) var(--ease);
}

.feature-icon .icon,
.value-icon .icon {
  width: 26px;
  height: 26px;
}

.feature-card:hover .feature-icon {
  background: var(--green-800);
  color: var(--yellow-300);
}

.feature-card h3,
.value h3 {
  font-size: 1.25rem;
  margin-bottom: var(--s-2);
}

.feature-card p,
.value p {
  color: var(--ink-muted);
}

@media (max-width: 899px) {
  .feature-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .feature-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: var(--s-4);
    padding: var(--s-5);
  }

  .feature-icon {
    grid-row: span 2;
    margin-bottom: 0;
  }
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--cream);
  overflow: hidden;
}

.step-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: var(--s-6) var(--s-5);
  background:
    radial-gradient(circle at 20% 20%, rgba(246, 214, 123, 0.18), transparent 50%),
    var(--sage-100);
}

.step-text {
  padding: var(--s-5) var(--s-6) var(--s-6);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--s-4);
  border-radius: 50%;
  background: var(--green-800);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: var(--s-2);
}

.step p {
  color: var(--ink-muted);
}

@media (max-width: 959px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .step-visual {
    min-height: 0;
  }
}

/* Why Burpy */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
}

.value-icon {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.value h3 {
  font-size: 1.125rem;
}

@media (max-width: 959px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 519px) {
  .value-grid {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }

  .value {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: var(--s-4);
  }

  .value-icon {
    grid-row: span 2;
    margin-bottom: 0;
  }
}

/* Articles */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}

.article-card {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.article-media {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--green-100);
}

.article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease);
}

.article-card:hover .article-media img {
  transform: scale(1.04);
}

.article-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--s-5);
}

.article-cat {
  align-self: flex-start;
  margin-bottom: var(--s-3);
  padding: 2px 10px;
  border-radius: var(--r-full);
  background: var(--yellow-100);
  color: var(--yellow-800);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-body h3 {
  font-size: 1.1875rem;
  margin-bottom: var(--s-2);
}

.article-body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.article-body h3 a:focus-visible {
  outline: none;
}

.article-card:has(h3 a:focus-visible) {
  outline: 3px solid var(--green-500);
  outline-offset: 3px;
}

.article-body h3 a {
  transition: color var(--t-fast) var(--ease);
}

.article-card:hover h3 a {
  color: var(--green-600);
  text-decoration: underline;
  text-decoration-color: var(--green-200);
  text-underline-offset: 4px;
}

.article-body > p:not(.article-cat) {
  color: var(--ink-muted);
}

@media (max-width: 959px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 599px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--s-9);
  align-items: start;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:first-child {
  border-top: 1px solid var(--line);
}

.faq-item h3 {
  font-size: 1.0625rem;
}

.faq-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  width: 100%;
  min-height: 64px;
  padding: var(--s-4) 0;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--green-800);
  letter-spacing: -0.01em;
}

.faq-item button .icon {
  padding: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-100);
  transition: transform var(--t-med) var(--ease), background-color var(--t-fast) var(--ease);
}

.faq-item button:hover .icon {
  background: var(--green-200);
}

.faq-item button[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-med) var(--ease);
}

.faq-panel > div {
  overflow: hidden;
}

.faq-panel p {
  padding-bottom: var(--s-5);
  padding-right: var(--s-8);
  color: var(--ink-muted);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

@media (max-width: 899px) {
  .faq-wrap {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .faq-panel p {
    padding-right: 0;
  }
}

/* Final CTA */
.final-cta {
  position: relative;
  padding: var(--s-11) 0;
  background: var(--green-800);
  color: var(--white);
  overflow: hidden;
  text-align: center;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.06), transparent);
}

.final-inner {
  position: relative;
  max-width: 760px;
}

.final-cta h2 {
  color: var(--white);
  font-size: clamp(1.875rem, 1.2rem + 2.4vw, 2.75rem);
}

.final-cta p {
  max-width: 560px;
  margin: var(--s-4) auto var(--s-6);
  font-size: 1.125rem;
  color: #d5e4da;
}

.deco {
  position: absolute;
  width: 88px;
  height: 88px;
  color: rgba(246, 214, 123, 0.55);
}

.deco-1 { left: 7%; top: 22%; transform: rotate(-12deg); }
.deco-2 { right: 8%; top: 18%; color: rgba(201, 226, 206, 0.4); width: 104px; height: 104px; }
.deco-3 { right: 18%; bottom: 12%; transform: rotate(20deg); color: rgba(201, 226, 206, 0.35); }

@media (max-width: 767px) {
  .final-cta {
    padding: var(--s-9) 0;
  }

  .final-cta .btn {
    width: 100%;
  }

  .deco-1 { left: -16px; top: 12px; }
  .deco-2 { right: -20px; top: auto; bottom: 16px; }
  .deco-3 { display: none; }
}
