/* Quality Time landing — palette sampled from the app icon (warm orange on white).
   accent #f2641e · deep #e0480c · light #ff9a4d · calm warm-neutral surfaces */
:root {
  --bg: #fffaf6;
  --bg-alt: #fff1e8;
  --card: #ffffff;
  --border: #f0e3d8;
  --fg: #2a2320;
  --muted: #7c6f66;
  --accent: #f2641e;
  --accent-strong: #e0480c;
  --accent-light: #ff9a4d;
  --leaf: #f2a23d;
  --radius: 18px;
  --maxw: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.4em; }

.grad {
  background: linear-gradient(100deg, var(--accent-light), var(--accent-strong));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  background: rgba(255, 250, 246, 0.85);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--fg); }
.brand img { display: block; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); font-size: 0.95rem; transition: color 0.15s; }
.nav-links a:hover { color: var(--fg); }

/* BUTTONS */
.btn {
  display: inline-block;
  background: linear-gradient(100deg, var(--accent-light), var(--accent));
  color: #fff;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(242, 100, 30, 0.3); opacity: 0.97; }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-ghost {
  background: transparent;
  color: var(--accent-strong);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-alt); box-shadow: none; border-color: var(--accent-light); }

/* App Store badge button */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #1b1714;
  color: #fff;
  padding: 12px 22px 12px 18px;
  border-radius: 14px;
  transition: transform 0.12s, box-shadow 0.12s;
}
.appstore:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18); }
.appstore svg { width: 26px; height: 26px; flex: none; }
.appstore .as-small { font-size: 0.68rem; line-height: 1; display: block; opacity: 0.85; }
.appstore .as-big { font-size: 1.18rem; line-height: 1.1; font-weight: 600; display: block; }

/* HERO */
.hero { background: radial-gradient(1100px 460px at 50% -8%, var(--bg-alt), var(--bg)); text-align: center; }
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 70px 24px 64px; }
.hero-icon {
  width: 104px; height: 104px;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(242, 100, 30, 0.22);
  margin-bottom: 26px;
}
.hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent-strong);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); font-weight: 800; }
.lede {
  max-width: 660px;
  margin: 18px auto 30px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}
.lede strong { color: var(--fg); }
.cta-row { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }
.cta-sub { color: var(--muted); font-size: 0.85rem; margin-top: 18px; }

/* BANDS */
.band { max-width: var(--maxw); margin: 0 auto; padding: 74px 24px; text-align: center; }
.band.alt { background: var(--bg-alt); max-width: none; }
.band.alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.band h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.band-sub { color: var(--muted); max-width: 620px; margin: 0 auto 44px; }

/* QUOTE */
.quote { max-width: 720px; margin: 0 auto; }
.quote blockquote {
  margin: 0;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.3;
}
.quote .grad { font-weight: 800; }
.quote p { color: var(--muted); margin-top: 18px; }

/* CARDS / FEATURES */
.cards, .feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.card, .feat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card-ico, .feat-ico { font-size: 1.7rem; margin-bottom: 12px; }
.card h3, .feat h3 { font-size: 1.12rem; }
.card p, .feat p { color: var(--muted); margin: 0; }

/* STEPS */
.steps { list-style: none; padding: 0; max-width: 720px; margin: 0 auto; text-align: left; display: grid; gap: 26px; }
.steps li { display: flex; gap: 20px; align-items: flex-start; }
.step-n {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-weight: 700;
  background: linear-gradient(100deg, var(--accent-light), var(--accent));
  color: #fff;
}
.steps h3 { font-size: 1.14rem; margin-bottom: 4px; }
.steps p { color: var(--muted); margin: 0; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; text-align: left; }
.faq details {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: var(--card);
}
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin: 12px 0 0; }

/* FINAL */
.final {
  text-align: center;
  padding: 84px 24px;
  max-width: none;
  background: linear-gradient(160deg, var(--accent), var(--accent-strong));
  color: #fff;
}
.final h2 { font-size: clamp(2rem, 5vw, 2.9rem); color: #fff; }
.final p { color: #ffe6d6; margin: 0 auto 28px; max-width: 560px; }
.final .appstore { background: #1b1714; }

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}
.footer > div { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--fg); }
.footer > div img { border-radius: 7px; }
.footer nav { display: flex; gap: 20px; }
.footer nav a:hover { color: var(--fg); }
.footer small { width: 100%; color: var(--muted); }
.footer small a { color: var(--accent-strong); }

/* GENERIC PAGE (404) */
.page { max-width: 760px; margin: 0 auto; padding: 80px 24px 100px; }

@media (max-width: 820px) {
  .cards, .feat-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
