/* ============================================================
   Grill Task — styles.css
   A warm, modern, friendly landing page.
   ============================================================ */

/* ---------- Design tokens (colors, spacing, etc.) ---------- */
:root {
  --accent: #ff5a1f;          /* energetic grill orange */
  --accent-2: #ff8a3d;        /* lighter flame */
  --accent-dark: #e0400e;     /* deep ember for hovers */
  --accent-soft: #fff1e9;     /* faint orange tint */

  --ink: #201a16;             /* warm near-black text */
  --body: #574d46;            /* body copy */
  --muted: #8a7d74;           /* quiet labels */

  --bg: #fffdfb;              /* page background */
  --bg-warm: #fff5ee;         /* warm section background */
  --card: #ffffff;
  --border: #f0e6de;

  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 10px rgba(32, 26, 22, 0.06);
  --shadow-md: 0 14px 40px rgba(224, 64, 14, 0.10);
  --shadow-lg: 0 30px 70px rgba(224, 64, 14, 0.18);

  --maxw: 1120px;
  --flame: linear-gradient(135deg, #ff8a3d 0%, #ff5a1f 55%, #f7411e 100%);
}

/* ---------- Base reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 13px 26px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--flame);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); }

.btn-sm { padding: 9px 18px; font-size: 0.92rem; }
.btn-lg { padding: 16px 30px; font-size: 1.06rem; }
.btn-block { width: 100%; }

/* App Store button inner text layout */
.app-store-btn { text-align: left; }
.app-store-btn-text { display: flex; flex-direction: column; line-height: 1.05; }
.app-store-btn-text small { font-size: 0.68rem; font-weight: 500; opacity: 0.9; }
.app-store-btn-text strong { font-size: 1.12rem; font-weight: 700; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 251, 0.85);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: "Poppins", sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.brand-mark { font-size: 1.35rem; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a:not(.btn) {
  font-weight: 500;
  color: var(--body);
  position: relative;
}
.nav-links > a:not(.btn):hover { color: var(--accent-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: var(--ink);
  border-radius: 3px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 0 clamp(60px, 9vw, 110px);
  background:
    radial-gradient(1100px 500px at 78% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(700px 400px at -5% 10%, #fff4f0, transparent 55%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid #ffdcc7;
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.1rem);
  font-weight: 800;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--body);
  max-width: 40ch;
  margin-bottom: 32px;
}
.hero-sub strong { color: var(--ink); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ---------- Phone mockup ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone-glow {
  position: absolute;
  inset: 6% 12%;
  background: var(--flame);
  filter: blur(70px);
  opacity: 0.22;
  border-radius: 50%;
  z-index: 0;
}
.phone {
  position: relative;
  z-index: 1;
  width: 300px;
  max-width: 84vw;
  background: #1c1712;
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,0.05);
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.phone-notch {
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 22px;
  background: #1c1712;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.phone-screen {
  background: linear-gradient(180deg, #fff6f0, #ffffff 30%);
  border-radius: 34px;
  padding: 40px 16px 18px;
  min-height: 520px;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 0 4px;
}
.app-topbar-title { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.app-points {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 5px 11px;
  border-radius: 999px;
}

.task-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 13px;
  box-shadow: var(--shadow-sm);
}
.task-card.muted { opacity: 0.72; }
.task-head { display: flex; gap: 11px; align-items: flex-start; }
.task-emoji {
  font-size: 1.35rem;
  background: var(--accent-soft);
  border-radius: 11px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.task-title { font-weight: 600; color: var(--ink); font-size: 0.98rem; }
.task-meta { font-size: 0.78rem; color: var(--muted); }
.task-proof {
  margin-top: 11px;
  background: var(--accent-soft);
  border: 1px dashed #ffc9a8;
  border-radius: 11px;
  padding: 9px;
  font-size: 0.8rem;
  color: var(--accent-dark);
  text-align: center;
}
.task-approve {
  margin-top: 11px;
  width: 100%;
  background: var(--flame);
  color: #fff;
  border: 0;
  border-radius: 11px;
  padding: 10px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.task-status {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.reward-banner {
  margin-top: 16px;
  background: var(--flame);
  color: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}
.reward-banner span { font-weight: 700; font-size: 0.96rem; }
.reward-banner small { opacity: 0.9; font-size: 0.82rem; }

/* ---------- Section shells ---------- */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-warm { background: var(--bg-warm); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(38px, 6vw, 60px); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; margin: 12px 0; }
.section-lead { color: var(--body); font-size: 1.08rem; }

/* ---------- How it works / steps ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-num {
  position: absolute;
  top: -18px; left: 28px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--flame);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}
.step-icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 16px;
  margin: 10px 0 18px;
}
.step h3 { font-size: 1.28rem; margin-bottom: 9px; }
.step p { color: var(--body); }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #ffd7bf; }
.feature-icon {
  font-size: 1.7rem;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border-radius: 16px;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.24rem; margin-bottom: 9px; }
.feature-card p { color: var(--body); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.price-card-featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-md);
}
.price-flag {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--flame);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.price-name { font-size: 1.35rem; margin-bottom: 8px; }
.price-amount { margin-bottom: 6px; }
.price-num { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 2.6rem; color: var(--ink); }
.price-per { color: var(--muted); font-weight: 500; }
.price-tagline { color: var(--body); margin-bottom: 20px; }
.price-list { list-style: none; margin-bottom: 26px; display: grid; gap: 11px; }
.price-list li {
  position: relative;
  padding-left: 28px;
  color: var(--body);
}
.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--accent-dark);
  font-weight: 800;
}
.price-card .btn { margin-top: auto; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--flame);
  color: #fff;
  padding: clamp(56px, 9vw, 96px) 0;
  text-align: center;
}
.cta-inner { max-width: 640px; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 14px; }
.cta-band p { font-size: 1.12rem; opacity: 0.95; margin-bottom: 28px; }
.cta-band .btn { margin: 0 auto; }
.cta-fineprint { font-size: 0.9rem; opacity: 0.85; margin-top: 18px; margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #201a16;
  color: #cdbfb4;
  padding: 54px 0 30px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p { max-width: 34ch; color: #b6a99e; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: #cdbfb4; transition: color 0.18s ease; }
.footer-links a:hover { color: var(--accent-2); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.9rem;
  color: #9c8f85;
}
.footer-bottom a { color: var(--accent-2); }

/* ---------- Scroll-reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-visual { order: 1; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-badges { justify-content: center; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 16px 24px 24px;
    transform: translateY(-140%);
    transition: transform 0.3s ease;
    z-index: 90;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links > a:not(.btn) { padding: 12px 6px; border-bottom: 1px solid var(--border); }
  .nav-links .btn { margin-top: 10px; }
  .nav-toggle { display: flex; }

  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Respect reduced-motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
