:root {
  --bg: #fffaf5;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --text: #131313;
  --muted: #4b5563;
  --accent: #dd1f26;
  --accent-strong: #ea580c;
  --highlight: #facc15;
  --matcha: #6b7f5e;
  --matcha-soft: #e8efe4;
  --border: #e5e7eb;
  --shadow-soft: 0 12px 30px rgb(15 23 42 / 9%);
  --shadow-hover: 0 18px 45px rgb(15 23 42 / 14%);
  --max-width: 1100px;
}

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

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 5% 0%, rgb(250 204 21 / 20%) 0%, transparent 30%),
    radial-gradient(circle at 95% 12%, rgb(221 31 38 / 16%) 0%, transparent 32%),
    linear-gradient(180deg, var(--bg) 0%, #fff 100%);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #b91c1c;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -44px;
  z-index: 99;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  transition: top 150ms ease;
}

.skip-link:focus {
  top: 10px;
}

:focus-visible {
  outline: 2px solid #ea580c;
  outline-offset: 2px;
}

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

.site-header {
  border-bottom: 1px solid rgb(229 231 235 / 80%);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgb(255 255 255 / 78%);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
}

.brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.4px;
  color: #000;
}

.nav-links {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: #111827;
  padding: 0.45rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: all 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

.hero {
  padding: 5.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.25fr 0.95fr;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.9rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgb(234 88 12 / 12%);
  border: 1px solid rgb(234 88 12 / 24%);
  color: #9a3412;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.05rem, 4.3vw, 3.4rem);
  margin: 0 0 1.05rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  max-width: 65ch;
  color: var(--muted);
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.33rem 0.75rem;
  font-size: 0.83rem;
  color: #1f2937;
  box-shadow: var(--shadow-soft);
}

.hero-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.logo-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  max-width: 380px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  justify-self: end;
  box-shadow: var(--shadow-soft);
}

.hero-media {
  position: relative;
  justify-self: end;
}

.section {
  padding: 2.5rem 0;
}

.section h2 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  letter-spacing: -0.015em;
}

.section p {
  margin-top: 0;
  color: var(--muted);
}

.section-intro {
  margin-bottom: 1.1rem;
}

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

.card {
  background: linear-gradient(165deg, #fff, #fff7ed 80%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.button {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  padding: 0.7rem 1.15rem;
  border-radius: 11px;
  font-weight: 600;
  box-shadow: 0 10px 22px rgb(221 31 38 / 30%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  color: #fff;
  background: linear-gradient(135deg, #c71b22, #c2410c);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgb(221 31 38 / 35%);
}

.button-secondary {
  background: #fff;
  color: #111827;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.button-secondary:hover {
  background: #fff7ed;
  color: #111827;
  box-shadow: var(--shadow-hover);
}

.button-disabled,
.button-disabled:hover {
  background: #e5e7eb;
  color: #6b7280;
  box-shadow: none;
  transform: none;
  pointer-events: none;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgb(229 231 235 / 90%);
  margin-top: 2.5rem;
}

.site-footer .container {
  padding: 1rem 0;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.content-page {
  padding: 3.3rem 0 2.5rem;
}

.content-page h1 {
  margin-top: 0;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgb(255 255 255 / 84%);
  backdrop-filter: blur(4px);
  padding: 1.15rem 1.2rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-soft);
}

.feature-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  max-width: 540px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.panel p:last-child,
.panel ul:last-child {
  margin-bottom: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition:
    opacity 520ms ease var(--reveal-delay, 0ms),
    transform 520ms ease var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

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

  .hero-media {
    justify-self: start;
  }

  .logo-image {
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-actions {
    gap: 0.55rem;
  }

  .button {
    width: 100%;
    text-align: center;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-apps {
  font-size: 0.88rem;
}

.footer-apps a {
  color: #9ca3af;
  font-weight: 500;
}

.footer-apps a:hover {
  color: var(--muted);
}

.apps-secondary {
  padding: 1.75rem 0 2.5rem;
  border-top: 1px solid rgb(229 231 235 / 90%);
}

.apps-secondary .container {
  max-width: 52ch;
}

.apps-secondary-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}

.apps-secondary p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.apps-secondary a {
  font-weight: 600;
}

/* ===== MightyMatcha page ===== */

.mm-hero {
  position: relative;
  padding: 6rem 0 4.5rem;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(ellipse 65% 45% at 50% -5%, rgb(107 127 94 / 18%) 0%, transparent 65%);
}

.mm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgb(107 127 94 / 11%);
  border: 1px solid rgb(107 127 94 / 24%);
  color: #4a5e41;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.mm-eyebrow-icon {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--matcha);
  flex-shrink: 0;
}

.mm-eyebrow-sep {
  opacity: 0.45;
}

.mm-hero-heading {
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
  margin: 0 0 1.1rem;
  color: var(--text);
}

.mm-hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
}

.mm-store-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mm-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.78rem;
  line-height: 1.2;
  pointer-events: none;
  opacity: 0.88;
  text-decoration: none;
}

.mm-badge svg {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
  opacity: 0.6;
}

.mm-badge-label {
  display: block;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #9ca3af;
  font-weight: 700;
}

.mm-badge-store {
  display: block;
  font-size: 0.93rem;
  color: #4b5563;
  font-weight: 600;
}

.mm-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--matcha);
  margin: 0 0 0.4rem;
}

.mm-section-h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin: 0 0 1.75rem;
}

/* Modes */
.mm-modes-wrap {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.mm-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.mm-mode {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.6rem 1.5rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.mm-mode:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.mm-mode:nth-child(1) { border-top: 3px solid #9cb890; }
.mm-mode:nth-child(2) { border-top: 3px solid #7ec8e3; }
.mm-mode:nth-child(3) { border-top: 3px solid #f9c74f; }

.mm-mode-num {
  position: absolute;
  top: 0.85rem;
  right: 1.25rem;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgb(0 0 0 / 5%);
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}

.mm-mode-emoji {
  font-size: 1.75rem;
  line-height: 1;
  display: block;
  margin-bottom: 0.9rem;
}

.mm-mode h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mm-mode p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Bento */
.mm-bento-wrap {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.mm-bento {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
}

.mm-bento-card {
  background: linear-gradient(155deg, #fff 0%, var(--matcha-soft) 100%);
  border: 1px solid rgb(107 127 94 / 18%);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.mm-bento-main {
  grid-row: 1 / 3;
}

.mm-bento-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.mm-bento-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mm-bento-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.mm-name-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.mm-name-chip {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgb(107 127 94 / 14%);
  border: 1px solid rgb(107 127 94 / 22%);
  color: #3f5036;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mm-soon-tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--matcha-soft);
  color: var(--matcha);
  vertical-align: middle;
  border: 1px solid rgb(107 127 94 / 20%);
}

/* CTA */
.mm-cta-wrap {
  padding: 2.5rem 0 4rem;
}

.mm-cta-inner {
  background: linear-gradient(135deg, #2d3a28 0%, #4a5e41 100%);
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 20px 50px rgb(42 55 36 / 28%);
  max-width: 660px;
  margin-inline: auto;
}

.mm-cta-inner h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em;
  font-style: italic;
  font-weight: 500;
  color: #fff;
}

.mm-cta-sub {
  margin: 0 0 1.5rem;
  color: rgb(255 255 255 / 55%);
  font-size: 0.88rem;
}

.mm-cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 460px;
  margin-inline: auto;
}

.mm-cta-form input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 12px;
  font: inherit;
  font-size: 0.92rem;
  background: rgb(255 255 255 / 10%);
  color: #fff;
}

.mm-cta-form input[type="email"]::placeholder {
  color: rgb(255 255 255 / 38%);
}

.mm-cta-form input[type="email"]:focus-visible {
  outline: 2px solid rgb(255 255 255 / 55%);
  outline-offset: 2px;
}

.mm-cta-btn {
  flex: 0 0 auto;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  background: #fff;
  color: #2d3a28;
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  transition: transform 180ms ease, background 180ms ease;
}

.mm-cta-btn:hover {
  background: #e8efe4;
  color: #2d3a28;
  transform: translateY(-1px);
}

.mm-cta-success {
  color: rgb(255 255 255 / 80%);
  font-size: 1rem;
  margin: 0;
}

.mm-cta-success[hidden],
.mm-cta-form[hidden] {
  display: none;
}

.mm-footer-note {
  font-size: 0.85rem;
  color: #6b7280;
}

@media (max-width: 860px) {
  .mm-modes {
    grid-template-columns: 1fr 1fr;
  }

  .mm-modes > .mm-mode:last-child {
    grid-column: 1 / -1;
  }

  .mm-bento {
    grid-template-columns: 1fr;
  }

  .mm-bento-main {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .mm-hero {
    padding: 3.5rem 0 3rem;
  }

  .mm-modes {
    grid-template-columns: 1fr;
  }

  .mm-modes > .mm-mode:last-child {
    grid-column: auto;
  }

  .mm-cta-inner {
    padding: 2rem 1.25rem;
  }

  .mm-cta-form {
    flex-direction: column;
  }

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