/* Quit Smoking for Life — website styles */
:root {
  --orange: #F15A29;
  --orange-dark: #C8461B;
  --amber: #FBB03B;
  --green: #3AB54A;
  --blue: #29ABE2;
  --ink: #2A1A12;
  --ink-soft: #7C685E;
  --cream: #FFF7F3;
  --radius: 20px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

a { color: var(--orange-dark); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.nav a { margin-left: 22px; text-decoration: none; font-weight: 600; color: var(--ink); }
.nav a:hover { color: var(--orange); }
.lang-select {
  margin-left: 22px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid rgba(241,90,41,.25); background: #fff; color: var(--ink);
  font-weight: 700; font-size: 15px; cursor: pointer;
}
.lang-select:focus { outline: 2px solid var(--orange); }

/* RTL tweaks */
[dir="rtl"] .nav a, [dir="rtl"] .lang-select { margin-left: 0; margin-right: 22px; }
[dir="rtl"] footer a { margin-left: 0; margin-right: 20px; }
[dir="rtl"] .legal ul { padding-left: 0; padding-right: 20px; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, #F5732E, #DE4A18);
  color: #fff;
  border-radius: 0 0 40px 40px;
  padding: 40px 0 70px;
}
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 46px; line-height: 1.1; margin: 10px 0 16px; font-weight: 800; }
.hero p { font-size: 19px; opacity: .95; max-width: 520px; }
.hero .phone { text-align: center; }
.hero .phone img { width: 280px; max-width: 80%; border-radius: 34px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.badges { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; align-items: center; }
.store-badge { display: inline-block; text-decoration: none; transition: transform .15s ease; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { display: block; }
/* Google's badge ships with built-in padding, so it needs a taller box to
   match Apple's button height visually. */
.store-badge.apple img { height: 54px; }
.store-badge.google img { height: 80px; }

/* ---- Sections ---- */
section { padding: 64px 0; }
.section-title { text-align: center; font-size: 32px; font-weight: 800; margin: 0 0 8px; }
.section-sub { text-align: center; color: var(--ink-soft); max-width: 620px; margin: 0 auto 44px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 26px;
  box-shadow: 0 10px 30px rgba(241,90,41,.08);
  border: 1px solid rgba(241,90,41,.08);
}
.card .emoji { font-size: 30px; }
.card h3 { margin: 12px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--ink-soft); }

.shots { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.shots img { width: 240px; max-width: 70%; border-radius: 26px; box-shadow: 0 18px 40px rgba(0,0,0,.14); }

.langs { text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.chip { background: #fff; border: 1px solid rgba(241,90,41,.2); padding: 8px 16px; border-radius: 999px; font-weight: 600; }

.cta {
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: #fff; text-align: center; border-radius: 32px; padding: 56px 24px; margin: 0 24px;
}
.cta h2 { font-size: 30px; margin: 0 0 10px; }

/* ---- Legal pages ---- */
.legal { max-width: 780px; margin: 0 auto; padding: 40px 24px 80px; }
.legal h1 { font-size: 34px; }
.legal h2 { font-size: 22px; margin-top: 34px; }
.legal .updated { color: var(--ink-soft); font-size: 14px; }
.legal ul { padding-left: 20px; }

/* ---- Toast (e.g. "email copied") ---- */
.toast {
  position: fixed; left: 50%; bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 13px 22px;
  border-radius: 12px; font-weight: 700; font-size: 15px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
  z-index: 9999; box-shadow: 0 12px 34px rgba(0,0,0,.28); max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Footer ---- */
footer { background: var(--ink); color: #fff; padding: 34px 0; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
footer a { color: #fff; text-decoration: none; margin-left: 20px; opacity: .85; }
footer a:hover { opacity: 1; }
footer .brand { color: #fff; }
footer small { opacity: .7; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin: 0 auto; }
  .badges { justify-content: center; }
  .hero h1 { font-size: 36px; }
  .features { grid-template-columns: 1fr; }
  .site-header .nav { display: none; }
}
