/* ==========================================================================
   Mealfy — landing styles
   ========================================================================== */

:root {
  --accent: #FF6600;
  --accent-deep: #D94F2B;
  --ink: #2A2320;
  --ink-soft: #6B5F58;
  --cream: #FFF8F2;
  --card: #FFFFFF;
  --line: #F0E2D6;

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

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Base
   ========================================================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent-deep);
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons
   ========================================================================== */

.cta {
  display: inline-block;
  padding: 15px 34px;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform .15s ease;
}

.cta:hover {
  transform: translateY(-1px);
}

/* Not-yet-live CTA: reads as a button, but isn't a link. */
.cta--soon {
  cursor: default;
}

.cta--soon:hover {
  transform: none;
}

.cta--light {
  background: #fff;
  color: var(--accent-deep);
  box-shadow: 0 8px 20px rgba(120, 40, 10, .22);
}

.cta--accent {
  background: var(--accent);
  color: #fff;
}

/* Hero
   ========================================================================== */

.hero {
  padding: 72px 0 80px;
  background: linear-gradient(160deg, #F3A05C 0%, #E9714D 55%, #DC5B4A 100%);
  color: #fff;
  text-align: center;
}

.hero__icon {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(120, 40, 10, .28);
}

.hero__brand {
  margin: 20px 0 0;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: .01em;
}

.hero__title {
  margin: 10px 0 16px;
  font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}

.hero__subtitle {
  max-width: 34ch;
  margin: 0 auto;
  color: rgba(255, 255, 255, .93);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
}

.hero .cta {
  margin-top: 32px;
}

/* Story
   ========================================================================== */

.story {
  padding-top: 76px;
  padding-bottom: 12px;
  text-align: center;
}

.story__text {
  max-width: 56ch;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* Section headings
   ========================================================================== */

.section-title {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  letter-spacing: -.015em;
}

/* Features
   ========================================================================== */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding-top: 48px;
  padding-bottom: 76px;
}

.feature {
  padding: 28px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.feature__emoji {
  display: block;
  margin-bottom: 14px;
  font-size: 1.7rem;
  line-height: 1;
}

.feature__title {
  margin: 0 0 8px;
  font-size: 1.12rem;
  letter-spacing: -.01em;
}

.feature__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: .98rem;
}

/* Steps
   ========================================================================== */

.steps {
  padding: 64px 0 72px;
  border-top: 1px solid var(--line);
}

.steps .section-title {
  margin-bottom: 40px;
  text-align: center;
}

.steps__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps__item {
  counter-increment: step;
  text-align: center;
}

.steps__item::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}

.steps__name {
  display: block;
  margin-bottom: 4px;
}

.steps__text {
  color: var(--ink-soft);
  font-size: .98rem;
}

/* Closer
   ========================================================================== */

.closer {
  padding: 68px 0;
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.closer .section-title {
  margin-bottom: 14px;
}

.closer__text {
  max-width: 44ch;
  margin: 0 auto 0;
  color: rgba(255, 255, 255, .72);
}

.closer .cta {
  margin-top: 32px;
}

/* About (plain-language description for OAuth/store review)
   ========================================================================== */

.about {
  max-width: 720px;
  padding-top: 64px;
  padding-bottom: 8px;
}

.about .section-title {
  margin-bottom: 16px;
}

.about h3 {
  margin: 28px 0 8px;
  font-size: 1.05rem;
}

.about p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

/* Site footer
   ========================================================================== */

.site-footer {
  padding: 32px 0 40px;
  color: var(--ink-soft);
  font-size: .9rem;
  text-align: center;
}

.site-footer a {
  margin: 0 10px;
  color: var(--ink-soft);
}

/* Site header (inner pages)
   ========================================================================== */

.site-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.site-header__name {
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -.01em;
  text-decoration: none;
}

/* Document pages (terms, privacy)
   ========================================================================== */

.doc {
  max-width: 720px;
  padding-top: 48px;
  padding-bottom: 72px;
  line-height: 1.7;
}

.doc__title {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  letter-spacing: -.02em;
}

.doc__updated {
  margin: 0 0 40px;
  color: var(--ink-soft);
  font-size: .92rem;
}

.doc__lang {
  display: flex;
  gap: 8px;
  margin: 0 0 28px;
}

.doc__lang-btn {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
  transition: border-color .15s, color .15s, background-color .15s;
}

.doc__lang-btn:hover {
  color: var(--ink);
  border-color: var(--ink-soft);
}

.doc__lang-btn.is-active {
  color: var(--ink);
  border-color: var(--ink);
  font-weight: 600;
}

.doc h2 {
  margin: 40px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 1.3rem;
  letter-spacing: -.015em;
}

.doc h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.doc h3 {
  margin: 26px 0 6px;
  font-size: 1.05rem;
}

.doc p,
.doc li {
  color: var(--ink-soft);
}

.doc p {
  margin: 0 0 14px;
}

.doc ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.doc li {
  margin-bottom: 6px;
}

.doc strong {
  color: var(--ink);
}

/* Mobile
   ========================================================================== */

@media (max-width: 600px) {
  .wrap {
    padding: 0 20px;
  }

  .hero {
    padding: 56px 0 60px;
  }

  .hero__icon {
    width: 88px;
    height: 88px;
    border-radius: 20px;
  }

  .hero__brand {
    margin-top: 16px;
    font-size: 1.15rem;
  }

  .hero__title {
    margin: 8px 0 14px;
  }

  .hero .cta {
    margin-top: 26px;
  }

  .cta {
    padding: 14px 28px;
    font-size: 1rem;
  }

  .story {
    padding-top: 52px;
    padding-bottom: 8px;
  }

  .features {
    gap: 16px;
    padding-top: 32px;
    padding-bottom: 52px;
  }

  .feature {
    padding: 22px 20px;
  }

  .steps {
    padding: 48px 0 56px;
  }

  .steps .section-title {
    margin-bottom: 32px;
  }

  .steps__list {
    gap: 28px;
  }

  .closer {
    padding: 56px 0;
  }

  .closer .cta {
    margin-top: 26px;
  }

  .site-footer {
    padding: 28px 0 32px;
  }

  .doc {
    padding-top: 32px;
    padding-bottom: 56px;
  }
}

/* Accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .cta {
    transition: none;
  }

  .cta:hover {
    transform: none;
  }
}
