/*
Theme Name: Smakly
Theme URI: https://smakly.app
Author: Smakly
Author URI: https://smakly.app
Description: One-page landing theme for Smakly — Cook better. Plan smarter.
Version: 1.0.0
License: propiertary
Text Domain: smakly
Tags: one-page, landing-page, custom-background, custom-logo, full-width-template, responsive-layout
*/

:root {
  --tertiary-500: #7CB342;
  --tertiary-600: #73a042;
  --tertiary-800: #607e41;

  --bg-0: rgb(251, 252, 250);
  --bg-50: rgb(245, 247, 244);
  --bg-100: rgb(237, 239, 235);
  --bg-200: rgb(235, 237, 232);

  --typ-300: rgb(212, 212, 212);
  --typ-600: rgb(115, 115, 115);
  --typ-950: rgb(23, 23, 23);
  --typ-muted: rgb(163, 163, 163);

  --bg-muted: rgb(247, 248, 247);
  --bg:        #fbfcfa;
  --bg-alt:    #f5f7f4;
  --bg-card:   var(--bg-0);
  --ink:       #171717;
  --ink-2:     #404040;
  --muted:     #737373;
  --line:      #e5e7e4;
  --dark:      #18191a;
  --dark-2:    #222320;
  --dark-card: #2b2c29;
  --dark-line: #363733;
  --accent:    var(--tertiary-500);
  --accent-dk: #607e41;
  --accent-lt: #d7f2ba;
  --accent-md: #aad878;
  --radius:    12px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--typ-950);
  background: var(--bg-200);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(3rem, 6vw, 5rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0; }

/* ── NAV ── */
.smakly-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-0);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo-link { display: inline-flex; align-items: center; }
.logo-img { height: 100px; width: auto; display: block; }
.logo-img-footer { height: 80px; opacity: 0.7; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-pill {
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); padding: 8px 18px;
  border-radius: 999px; font-size: 0.85rem; font-weight: 500;
  transition: border-color 0.15s, color 0.15s;
}
.nav-pill:hover { border-color: var(--accent); color: var(--accent); }
.nav-cta {
  background: var(--accent); color: #fff; font-weight: 700;
  padding: 10px 24px; border-radius: 999px; font-size: 0.9rem;
  transition: background 0.15s, transform 0.1s;
}
.nav-cta:hover { background: var(--accent-dk); transform: translateY(-1px); }

/* ── HERO ── */
.smakly-hero {
  padding: 100px 0 80px;
  position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; top: -160px; right: -120px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(124,179,66,0.1) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; position: relative; z-index: 1;
}
.hero-left { display: flex; flex-direction: column; gap: 28px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--bg-card);
  color: var(--muted); padding: 6px 14px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; width: fit-content;
}
.hero-chip span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}
.smakly-hero h1 { color: var(--ink); }
.smakly-hero h1 em { color: var(--accent); font-style: normal; }
.hero-sub {
  font-size: 1.1rem; color: var(--ink-2); line-height: 1.7; max-width: 500px;
}
.store-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.badge-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, opacity 0.15s;
}
.badge-link:hover { transform: translateY(-2px); opacity: 0.88; }
.badge-link-disabled {
  cursor: default;
  pointer-events: none;
  opacity: 0.7;
}
.badge-link-disabled .badge-status {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.badge-status-placeholder {
  visibility: hidden;
}
.badge-appstore { height: 44px; width: auto; display: block; }
.badge-googleplay { height: 63px; width: auto; display: block; margin: -4px 0; }
.hero-note {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.8rem; color: var(--muted);
}

/* ── PHONE MOCKUP ── */
.phone {
  width: 370px;
  position: relative;
}
.smakly-hero .phone {
  width: 400px;
}
.phone-img {
  width: 100%; height: auto;
  display: block;
}
.hero-phone-wrap {
  display: flex; justify-content: center; align-items: center; position: relative;
}

/* ── SECTION LABEL ── */
.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.section-label::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}

/* ── PROBLEM BANNER ── */
.smakly-problem {
  background: var(--dark); padding: 88px 24px; text-align: center;
  position: relative; overflow: hidden;
}
.smakly-problem::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(124,179,66,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.problem-quote, .problem-sub { position: relative; z-index: 1; }
.problem-quote {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.25;
  color: #fff; max-width: 800px; margin: 0 auto;
}
.problem-quote em { color: var(--accent); font-style: normal; }
.problem-sub {
  color: rgba(255,255,255,0.5); margin-top: 20px;
  font-size: 1.05rem; max-width: 480px;
  margin-left: auto; margin-right: auto;
}

/* ── STEPS ── */
.smakly-steps { padding: 100px 0; }
.steps-header { margin-bottom: 52px; }
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--line); gap: 1px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.step-card {
  background: var(--bg-card); padding: 40px 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-num {
  font-size: 2.8rem; font-weight: 900; line-height: 1;
  color: var(--accent); opacity: 0.25; letter-spacing: -0.04em;
}
.step-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent-lt);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-dk);
}
.step-card h3 { font-size: 1.1rem; color: var(--ink); }
.step-card p { font-size: 0.92rem; color: var(--ink-2); line-height: 1.65; }

/* ── FEATURES ── */
.smakly-feature { padding: 96px 0; }
.smakly-feature.feature-alt { background: var(--bg-alt); }
.feature-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.feature-inner.reverse .feature-text { order: 2; }
.feature-inner.reverse .feature-visual { order: 1; }
.feature-text { display: flex; flex-direction: column; gap: 18px; }
.feature-text h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); color: var(--ink); }
.feature-text p { color: var(--ink-2); font-size: 1rem; line-height: 1.72; }
.check-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.check-item {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 0.92rem; color: var(--ink-2);
}
.check-item svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.feature-visual { display: flex; justify-content: center; }
.tts-highlight {
  display: flex; align-items: center; gap: 10px;
  background: rgba(124,179,66,0.08); border: 1px solid rgba(124,179,66,0.25);
  border-radius: var(--radius); padding: 12px 16px;
  font-size: 0.88rem; color: var(--accent-dk); font-weight: 500;
  margin-top: 4px;
}
.tts-highlight svg { flex-shrink: 0; color: var(--accent); }

/* ── PERSONAS ── */
.smakly-personas { padding: 100px 0; background: var(--bg-alt); }
.personas-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-top: 52px;
}
.persona-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px 22px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.persona-card:hover {
  border-color: var(--accent); transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(124,179,66,0.1);
}
.persona-icon {
  width: 52px; height: 52px;
  background: var(--accent-lt); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-dk); flex-shrink: 0;
}
.persona-card h3 { font-size: 1rem; color: var(--ink); }
.persona-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* ── FINAL CTA ── */
.smakly-cta-final {
  background: var(--dark);
  padding: 112px 24px; text-align: center;
  position: relative; overflow: hidden;
}
.smakly-cta-final::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(124,179,66,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-final-inner { position: relative; z-index: 1; }
.cta-final-inner h2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: #fff; max-width: 640px; margin: 0 auto;
}
.cta-final-inner h2 em { color: var(--accent); font-style: normal; }
.cta-final-inner p { color: rgba(255,255,255,0.45); margin-top: 16px; font-size: 1rem; }
.cta-final-inner .store-row { justify-content: center; margin-top: 36px; }
.smakly-cta-final .badge-appstore { opacity: 0.9; }
.smakly-cta-final .badge-link:hover .badge-appstore { opacity: 1; }

/* ── FOOTER ── */
.smakly-footer {
  background: var(--bg);
  border-top: 1px solid var(--line); padding: 32px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.84rem; color: var(--muted);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--ink); }

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 48px; padding: 0; }
  .store-row { justify-content: center; }
  .hero-chip { margin: 0 auto; }
  .hero-sub { margin: 0 auto; }
  .hero-note { justify-content: center; }
  .hero-phone-wrap { margin-top: 8px; }

  .phone { width: 350px; }
  .smakly-hero .phone { width: 350px; }

  .steps-grid { grid-template-columns: 1fr; }

  .feature-inner { grid-template-columns: 1fr; gap: 36px; }
  .feature-inner.reverse .feature-text { order: 1; }
  .feature-inner.reverse .feature-visual { order: 2; }
  .feature-visual { display: flex; justify-content: center; }

  .personas-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .phone { width: 100%; }
  .smakly-hero .phone { width: 100%; }
  .personas-grid { grid-template-columns: 1fr; }
  .nav-pill { display: none; }
  .badge-appstore { height: 40px; }
  .badge-googleplay { height: 57px; }
}

/* Reset theme heading styles inside document pages (e.g. privacy policy, terms) */
.document-container :where(h1, h2, h3, h4, h5, h6) {
  all: revert;
}