/* ============================================================
   Recipify — Shared Stylesheet
   Colors defined here only; never hardcoded in HTML
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

/* ── Design tokens ── */
:root {
  --color-berry:    #D4537E;
  --color-blush:    #FADADD;
  --color-cream:    #F5F0EA;
  --color-ink:      #444441;
  --color-mint:     #C8EBE0;
  --color-mint-text:#0F6E56;
  --color-white:    #FFFFFF;
  --color-gray-light: #E8E3DC;
  --color-gray-mid:   #9B9896;

  --radius-card:    18px;
  --radius-pill:    99px;

  --font-base:      'Nunito', sans-serif;

  --shadow-card:    0 2px 16px rgba(68, 68, 65, 0.10);
  --shadow-btn:     0 4px 14px rgba(212, 83, 126, 0.30);

  --max-width:      1100px;
  --section-pad:    80px 24px;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  background-color: var(--color-cream);
  color: var(--color-ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: var(--color-berry); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Utility ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-light);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-berry);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-ink);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover {
  background: var(--color-blush);
  color: var(--color-berry);
  text-decoration: none;
}
.nav-links a.active {
  background: var(--color-blush);
  color: var(--color-berry);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  padding: 13px 28px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-berry);
  color: var(--color-white);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { opacity: 0.9; box-shadow: 0 6px 20px rgba(212, 83, 126, 0.40); }

.btn-outline {
  background: transparent;
  color: var(--color-berry);
  border: 2px solid var(--color-berry);
}
.btn-outline:hover { background: var(--color-blush); }

/* App store badges */
.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-ink);
  color: var(--color-white);
  border-radius: var(--radius-pill);
  padding: 11px 22px;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.badge-btn:hover {
  background: #2a2a27;
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--color-white);
}

.badge-btn svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  fill: var(--color-white);
}

.badge-btn .badge-sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.75;
  line-height: 1;
  margin-bottom: 1px;
}
.badge-btn .badge-label {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(150deg, var(--color-blush) 0%, var(--color-cream) 60%);
  padding: 96px 24px 80px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--color-mint);
  color: var(--color-mint-text);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-ink);
  max-width: 700px;
  margin: 0 auto 20px;
}

.hero h1 span { color: var(--color-berry); }

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--color-gray-mid);
  max-width: 540px;
  margin: 0 auto 36px;
  font-weight: 600;
}

.hero .badge-group { justify-content: center; }

/* ── Section shared ── */
section { padding: var(--section-pad); }

.section-label {
  display: inline-block;
  background: var(--color-blush);
  color: var(--color-berry);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--color-gray-mid);
  max-width: 560px;
  font-weight: 600;
}

/* ── Features ── */
.features { background: var(--color-white); }

.features-header { margin-bottom: 48px; }

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

.feature-card {
  background: var(--color-cream);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(68, 68, 65, 0.13);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-blush);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--color-gray-mid);
  font-weight: 600;
}

/* ── How It Works ── */
.how-it-works { background: var(--color-cream); }

.how-header { margin-bottom: 48px; }

.steps-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: stretch;
  justify-content: center;
  position: relative;
}

.step-item {
  flex: 1 1 220px;
  max-width: 300px;
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.step-item + .step-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 32px;
  width: 2px;
  height: 40px;
  background: var(--color-blush);
}

.step-bubble {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-berry);
  color: var(--color-white);
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(212, 83, 126, 0.25);
}

.step-item h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 0.9rem;
  color: var(--color-gray-mid);
  font-weight: 600;
}

/* ── CTA banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--color-berry) 0%, #c03a6a 100%);
  padding: 72px 24px;
  text-align: center;
  color: var(--color-white);
}

.cta-banner h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 32px;
  font-weight: 600;
}

.cta-banner .badge-btn {
  background: var(--color-white);
  color: var(--color-ink);
}
.cta-banner .badge-btn:hover {
  background: var(--color-blush);
  color: var(--color-berry);
}
.cta-banner .badge-btn svg { fill: var(--color-ink); }

/* ── Footer ── */
.site-footer {
  background: var(--color-ink);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand .footer-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-white);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 240px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--color-white); text-decoration: none; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* ── Inner page hero ── */
.page-hero {
  background: linear-gradient(150deg, var(--color-blush) 0%, var(--color-cream) 70%);
  padding: 64px 24px 48px;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--color-gray-mid);
  font-weight: 600;
  max-width: 560px;
}

/* ── How-to content ── */
.how-to-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.how-to-section { margin-bottom: 56px; }

.how-to-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-blush);
  color: var(--color-berry);
}

.how-to-step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.how-to-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-berry);
  color: var(--color-white);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.how-to-step-body h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.how-to-step-body p {
  font-size: 0.95rem;
  color: var(--color-gray-mid);
  font-weight: 600;
}

.tip-box {
  background: var(--color-mint);
  color: var(--color-mint-text);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 12px;
}

.tip-box strong { font-weight: 800; }

/* ── Legal content ── */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 36px 0 10px;
  color: var(--color-berry);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p, .legal-content li {
  font-size: 0.97rem;
  color: var(--color-ink);
  font-weight: 400;
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

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

.legal-updated {
  display: inline-block;
  background: var(--color-gray-light);
  color: var(--color-gray-mid);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 32px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero { padding: 72px 20px 60px; }
  section { padding: 56px 20px; }

  .step-item + .step-item::before { display: none; }
  .steps-row { gap: 32px; }
  .step-item { max-width: 100%; padding: 0; }

  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 10px; font-size: 0.85rem; }

  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-links { gap: 24px; }

  .how-to-content, .legal-content { padding: 40px 20px 60px; }
}

@media (max-width: 400px) {
  .badge-group { flex-direction: column; align-items: stretch; }
  .badge-btn { justify-content: center; }
}
