/* KOFFIE landing — warm coffee palette */
:root {
  --bg: #f5efe6;
  --surface: #fffcf7;
  --ink: #2a1f18;
  --espresso: #3d2914;
  --accent: #3d2914; /* alias for koffie-logo.css */
  --caramel: #c47a3a;
  --muted: #7a6e63;
  --line: #e6ddd2;
  --max: 1080px;
  --nav-h: 64px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Helvetica, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

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

a {
  color: var(--caramel);
}

a:hover {
  color: var(--espresso);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Sticky nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
  padding-block: 0.75rem;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: var(--espresso);
  color: var(--surface);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-cta:hover {
  background: var(--caramel);
  color: var(--surface);
  transform: translateY(-1px);
}

/* —— Hero —— */
.hero {
  padding: 2.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 6vw, 2.75rem);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--espresso);
  margin: 0 0 1rem;
}

.hero-copy .subhead {
  margin: 0 0 1.75rem;
  font-size: clamp(1.05rem, 2.8vw, 1.2rem);
  color: var(--muted);
  max-width: 32em;
  line-height: 1.5;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.store-badges a {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.store-badges a:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.store-badges img {
  height: 44px;
  width: auto;
}

.badge-google {
  height: 64px;
  margin: -10px 0 -10px -10px;
}

/* —— Hero screenshot —— */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-screenshot {
  width: min(100%, 320px);
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px color-mix(in srgb, var(--espresso) 16%, transparent);
}

/* —— Sections —— */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 36em;
  margin: 0 auto 2.25rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 550;
  color: var(--espresso);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* —— Features —— */
.feature-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem 1.35rem;
}

.section-alt .feature-card {
  background: var(--bg);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 550;
  color: var(--espresso);
  margin: 0 0 0.5rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.feature-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0.85rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--caramel) 18%, var(--bg));
  color: var(--caramel);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  line-height: 1;
}

/* —— How it works —— */
.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.step-num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--espresso);
  color: var(--surface);
  font-weight: 700;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 550;
  color: var(--espresso);
  margin: 0.15rem 0 0.35rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* —— FAQ —— */
.faq-list {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.15rem 1.1rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--espresso);
  padding: 0.95rem 1.5rem 0.95rem 0;
  position: relative;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--caramel);
  line-height: 1;
}

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

.faq-item p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* —— Download CTA —— */
.download {
  text-align: center;
  padding: 4rem 0;
}

.download h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 550;
  color: var(--espresso);
  margin: 0 0 0.65rem;
}

.download > .container > p {
  margin: 0 auto 1.75rem;
  color: var(--muted);
  max-width: 28em;
}

.download .store-badges {
  justify-content: center;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 1.75rem 0 2.25rem;
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  justify-content: center;
}

.footer-links a {
  color: var(--espresso);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--caramel);
  text-decoration: underline;
}

.site-footer p {
  margin: 0;
}

/* —— Responsive —— */
@media (min-width: 720px) {
  .hero {
    padding: 3.5rem 0 4rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }

  .hero-visual {
    justify-content: flex-end;
  }

  .hero-screenshot {
    width: min(100%, 360px);
  }

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

  .site-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
    gap: 2rem;
  }

  .step {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .step-num {
    margin-inline: auto;
  }
}

@media (max-width: 359px) {
  .container {
    width: min(100% - 1.25rem, var(--max));
  }

  .store-badges img {
    height: 40px;
  }

  .badge-google {
    height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav-cta,
  .store-badges a {
    transition: none;
  }
}
