:root {
  --ink: #101412;
  --muted: #53605a;
  --cream: #f4efe2;
  --paper: #fffaf0;
  --turquoise: #17b8c8;
  --turquoise-dark: #048897;
  --lime: #d7f25f;
  --coffee: #6d4128;
  --line: rgba(16, 20, 18, 0.14);
  --shadow: 0 28px 70px rgba(14, 39, 35, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(23, 184, 200, 0.16), transparent 28rem),
    linear-gradient(180deg, #fffaf0 0%, #f4efe2 44%, #fffaf0 100%);
}

.nav {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 240, 0.78);
  border: 1px solid rgba(16, 20, 18, 0.08);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(16, 20, 18, 0.07);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 50%;
  max-width: 1180px;
  padding: 10px 12px 10px 18px;
  position: fixed;
  top: 18px;
  transform: translateX(-50%);
  width: calc(100% - 36px);
  z-index: 20;
}

.brand,
.nav-links,
.trust-row,
.rating-row,
.hero-actions {
  align-items: center;
  display: flex;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  height: 34px;
  max-width: none;
  width: auto;
}

.nav-links {
  color: rgba(16, 20, 18, 0.72);
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta,
.primary-btn,
.secondary-btn {
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  position: relative;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
  white-space: nowrap;
}

.nav-cta {
  background: var(--turquoise);
  color: white;
  font-size: 14px;
  padding: 13px 18px;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(20px, 4vw, 58px);
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 0.95fr);
  min-height: 100vh;
  overflow: hidden;
  padding: 118px clamp(18px, 5vw, 72px) 58px;
  position: relative;
}

.hero-bg {
  inset: 0;
  overflow: hidden;
  position: absolute;
}

.hero-bg::after {
  background:
    linear-gradient(90deg, rgba(16, 20, 18, 0.07), rgba(255, 250, 240, 0.12) 48%, rgba(255, 250, 240, 0.92) 72%),
    radial-gradient(circle at 76% 42%, rgba(23, 184, 200, 0.34), transparent 20rem);
  content: "";
  inset: 0;
  position: absolute;
}

.hero-bg-frame {
  background-position: center;
  background-size: cover;
  inset: -4%;
  opacity: 0;
  position: absolute;
  transform: scale(1.05);
}

.frame-one {
  animation: cinematicOne 16s infinite;
  background-image: url("assets/coffee-branch-bg.webp");
}

.frame-two {
  animation: cinematicTwo 16s infinite;
  background-image: url("assets/coffee-farm-bg.webp");
}

.hero-grain {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  inset: 0;
  mix-blend-mode: soft-light;
  opacity: 0.45;
  position: absolute;
}

.hero-product,
.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-product {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 600px;
}

.hero-product img {
  animation: productFloat 5.8s ease-in-out infinite;
  border-radius: 8px;
  box-shadow: 0 34px 70px rgba(16, 20, 18, 0.24);
  filter: drop-shadow(0 20px 38px rgba(16, 20, 18, 0.12));
  max-height: min(72vh, 700px);
  object-fit: contain;
  width: min(100%, 760px);
}

.product-halo {
  animation: haloPulse 4.4s ease-in-out infinite;
  background: radial-gradient(circle, rgba(23, 184, 200, 0.44), rgba(215, 242, 95, 0.22) 36%, transparent 66%);
  border-radius: 50%;
  filter: blur(3px);
  height: min(58vw, 680px);
  position: absolute;
  width: min(58vw, 680px);
}

.floating-note {
  animation: noteFloat 4.8s ease-in-out infinite;
  background: rgba(255, 250, 240, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  box-shadow: 0 18px 36px rgba(16, 20, 18, 0.12);
  font-size: 13px;
  font-weight: 800;
  padding: 12px 16px;
  position: absolute;
}

.note-left {
  left: 8%;
  top: 30%;
}

.note-right {
  animation-delay: 900ms;
  bottom: 24%;
  right: 4%;
}

.hero-copy {
  justify-self: end;
  max-width: 560px;
  padding: 32px 0;
}

.eyebrow {
  color: var(--turquoise-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Archivo Black", Inter, sans-serif;
  line-height: 0.96;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(48px, 5.9vw, 82px);
  letter-spacing: 0;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(36px, 5.2vw, 76px);
  letter-spacing: 0;
  margin-bottom: 18px;
}

h3 {
  font-size: 22px;
  line-height: 1.05;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.hero-text {
  font-size: 19px;
  max-width: 520px;
}

.rating-row {
  background: rgba(255, 250, 240, 0.82);
  border: 1px solid rgba(16, 20, 18, 0.1);
  border-radius: 999px;
  color: var(--ink);
  gap: 10px;
  margin: 24px 0 20px;
  padding: 9px 14px;
  width: fit-content;
}

.rating-score {
  font-weight: 900;
}

.stars {
  color: #f4b000;
  font-size: 18px;
  letter-spacing: 0.03em;
}

.half-star {
  display: inline-block;
  overflow: hidden;
  position: relative;
  vertical-align: bottom;
  width: 0.56em;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn {
  background: var(--ink);
  box-shadow: 0 18px 36px rgba(16, 20, 18, 0.18);
  color: white;
  padding: 18px 24px;
}

.primary-btn.dark {
  background: var(--coffee);
}

.secondary-btn {
  background: rgba(255, 250, 240, 0.72);
  border: 1px solid rgba(16, 20, 18, 0.12);
  padding: 18px 22px;
}

.primary-btn:hover,
.secondary-btn:hover,
.nav-cta:hover {
  box-shadow: 0 24px 46px rgba(16, 20, 18, 0.2);
  transform: translateY(-2px);
}

.trust-row {
  color: rgba(16, 20, 18, 0.74);
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-row span {
  border: 1px solid rgba(16, 20, 18, 0.12);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
}

.ticker {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 17px 0;
}

.ticker-track {
  animation: marquee 22s linear infinite;
  display: flex;
  gap: 34px;
  width: max-content;
}

.ticker span {
  font-family: "Archivo Black", Inter, sans-serif;
  font-size: clamp(24px, 3.8vw, 56px);
  text-transform: uppercase;
}

.section-pad {
  padding: clamp(70px, 9vw, 128px) clamp(18px, 5vw, 72px);
}

.intro {
  margin: 0 auto;
  max-width: 980px;
  text-align: center;
}

.intro p:last-child {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}

.benefits {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 0;
}

.benefit-card {
  border-radius: 8px;
  min-height: 320px;
  overflow: hidden;
  padding: 30px;
  position: relative;
}

.benefit-card::after {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  content: "";
  height: 210px;
  position: absolute;
  right: -72px;
  top: -72px;
  width: 210px;
}

.benefit-card span {
  display: block;
  font-weight: 900;
  margin-bottom: 74px;
}

.benefit-card.teal {
  background: var(--turquoise);
  color: white;
}

.benefit-card.cream {
  background: #efe5c9;
}

.benefit-card.black {
  background: var(--ink);
  color: white;
}

.benefit-card p,
.benefit-card.black p,
.benefit-card.teal p {
  color: currentColor;
  opacity: 0.76;
}

.split {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: 0.8fr 1.2fr;
}

.split-copy {
  max-width: 520px;
}

.text-link {
  border-bottom: 2px solid var(--turquoise-dark);
  color: var(--turquoise-dark);
  font-weight: 900;
  padding-bottom: 5px;
}

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

.ingredient-grid article,
.recipe-card,
.faq details {
  background: rgba(255, 250, 240, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ingredient-grid article {
  overflow: hidden;
}

.ingredient-grid img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.ingredient-grid h3,
.ingredient-grid p {
  padding-left: 16px;
  padding-right: 16px;
}

.ingredient-grid h3 {
  font-size: 18px;
  margin-top: 16px;
}

.ingredient-grid p {
  font-size: 14px;
  margin-bottom: 18px;
}

.amazon-band {
  align-items: center;
  background: var(--turquoise);
  display: grid;
  gap: 38px;
  grid-template-columns: 1fr minmax(260px, 430px);
}

.amazon-band h2,
.amazon-band p,
.amazon-band .eyebrow {
  color: white;
}

.amazon-band p {
  max-width: 720px;
  opacity: 0.86;
}

.amazon-band img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.section-heading {
  margin-bottom: 32px;
  max-width: 780px;
}

.ritual {
  overflow: hidden;
}

.recipe-row {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.recipe-card {
  overflow: hidden;
}

.recipe-toggle {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: block;
  font: inherit;
  padding: 0;
  text-align: left;
  width: 100%;
}

.recipe-toggle:focus-visible {
  outline: 3px solid var(--turquoise-dark);
  outline-offset: -3px;
}

.recipe-toggle img {
  aspect-ratio: 1.24 / 1;
  object-fit: cover;
  transition: transform 350ms ease;
  width: 100%;
}

.recipe-intro {
  display: block;
  padding-left: 20px;
  padding-right: 20px;
}

.recipe-title {
  display: block;
  font-family: "Archivo Black", sans-serif;
  font-size: 1.17em;
  line-height: 1.2;
  margin-top: 20px;
}

.recipe-description {
  display: block;
  line-height: 1.6;
  margin-top: 8px;
}

.recipe-prompt {
  align-items: center;
  color: var(--turquoise-dark);
  display: flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: space-between;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  margin-top: 16px;
  text-transform: uppercase;
}

.recipe-prompt span {
  font-size: 22px;
  line-height: 1;
  transition: transform 250ms ease;
}

.recipe-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 450ms ease,
    opacity 300ms ease;
}

.recipe-details-inner {
  border-top: 1px solid var(--line);
  padding: 4px 20px 24px;
}

.recipe-details h4 {
  font-size: 14px;
  margin: 20px 0 8px;
  text-transform: uppercase;
}

.recipe-details ul,
.recipe-details ol {
  color: var(--muted);
  display: grid;
  gap: 7px;
  line-height: 1.45;
  margin: 0;
  padding-left: 20px;
}

.recipe-card.is-open .recipe-prompt span {
  transform: rotate(45deg);
}

.recipe-card.is-open .recipe-details {
  opacity: 1;
}

.proof {
  align-items: center;
  display: grid;
  gap: clamp(28px, 6vw, 84px);
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
}

.proof-image img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.proof-copy ul {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}

.proof-copy li {
  border-top: 1px solid var(--line);
  font-size: 18px;
  font-weight: 800;
  padding-top: 14px;
}

.faq {
  background: #efe5c9;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin: 0 auto;
  max-width: 900px;
}

.faq .section-heading {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.faq details {
  padding: 22px 24px;
}

.faq summary {
  cursor: pointer;
  font-size: 19px;
  font-weight: 900;
}

.faq details p {
  margin: 14px 0 0;
}

.final-cta {
  align-items: center;
  background:
    radial-gradient(circle at 18% 50%, rgba(23, 184, 200, 0.34), transparent 24rem),
    var(--ink);
  color: white;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(220px, 420px) minmax(0, 760px);
  justify-content: center;
  overflow: hidden;
  padding: clamp(64px, 9vw, 120px) clamp(18px, 5vw, 72px);
}

.final-cta img {
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.34);
  max-height: 520px;
}

.final-cta h2,
.final-cta p,
.final-cta .eyebrow {
  color: white;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.recipe-card.is-visible {
  transition:
    box-shadow 250ms ease,
    transform 250ms ease;
}

.recipe-card.is-visible:hover {
  box-shadow: 0 18px 42px rgba(16, 20, 18, 0.14);
  transform: translateY(-7px);
}

.recipe-card:hover .recipe-toggle img {
  transform: scale(1.035);
}

@keyframes cinematicOne {
  0%,
  42% {
    opacity: 1;
    transform: scale(1.08) translate3d(0, 0, 0);
  }
  50%,
  92% {
    opacity: 0;
    transform: scale(1.12) translate3d(-1.2%, 0.8%, 0);
  }
  100% {
    opacity: 1;
    transform: scale(1.08) translate3d(0, 0, 0);
  }
}

@keyframes cinematicTwo {
  0%,
  42% {
    opacity: 0;
    transform: scale(1.12) translate3d(1.2%, -0.8%, 0);
  }
  50%,
  92% {
    opacity: 1;
    transform: scale(1.08) translate3d(0, 0, 0);
  }
  100% {
    opacity: 0;
    transform: scale(1.12) translate3d(1.2%, -0.8%, 0);
  }
}

@keyframes productFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-18px) rotate(1.2deg);
  }
}

@keyframes haloPulse {
  0%,
  100% {
    opacity: 0.78;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes noteFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 960px) {
  .nav {
    border-radius: 8px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 104px;
  }

  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(255, 250, 240, 0.08), rgba(255, 250, 240, 0.82) 56%, rgba(255, 250, 240, 0.98)),
      radial-gradient(circle at 50% 30%, rgba(23, 184, 200, 0.32), transparent 18rem);
  }

  .hero-product {
    min-height: auto;
    order: 2;
  }

  .hero-copy {
    justify-self: start;
    order: 1;
    padding-top: 24px;
  }

  .hero-product img {
    max-height: 520px;
  }

  .floating-note {
    display: none;
  }

  .benefits,
  .split,
  .amazon-band,
  .proof,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .ingredient-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .nav {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand img {
    height: 28px;
  }

  .nav-cta {
    padding: 12px 14px;
  }

  h1 {
    font-size: clamp(40px, 11.8vw, 46px);
  }

  h2 {
    font-size: 38px;
  }

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

  .benefits,
  .recipe-row,
  .ingredient-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-bottom: 56px;
    padding-top: 124px;
  }

  .hero-copy > * {
    position: relative;
    z-index: 3;
  }

  .hero-product {
    bottom: auto;
    margin: 34px auto 0;
    min-height: 0;
    opacity: 1;
    position: relative;
    right: auto;
    width: min(78vw, 320px);
    z-index: 2;
  }

  .hero-product img {
    max-height: none;
    width: 100%;
  }

  .product-halo {
    height: min(72vw, 290px);
    width: min(72vw, 290px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions a,
  .final-cta .primary-btn {
    width: 100%;
  }

  .trust-row {
    align-items: center;
    flex-direction: row;
  }

  .rating-row {
    font-size: 14px;
    gap: 8px;
    max-width: 100%;
    padding: 8px 12px;
  }

  .stars {
    font-size: 16px;
  }

  .final-cta img {
    justify-self: center;
    max-height: none;
    object-fit: contain;
    width: min(100%, 360px);
  }
}

@media (max-width: 380px) {
  .nav {
    gap: 10px;
    padding-left: 12px;
  }

  .brand img {
    height: 23px;
  }

  .nav-cta {
    font-size: 12px;
    padding: 10px 12px;
  }

  .rating-row {
    font-size: 13px;
  }

  .stars {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
