/* ===========================================================================
   Candlestash — candlestash.app
   Palette: app "Warm Glow" light theme. Static, self-contained (no CDNs).
   =========================================================================== */

:root {
  --bg:            #FBE3D4;  /* peach-blush canvas */
  --bg-soft:       #FFF6F1;  /* near-white warm */
  --bg-cream:      #FFF2EA;  /* elevated cream */
  --surface:       #FFFFFF;
  --surface-muted: #F6D9C7;

  --text:   #36281F;         /* warm espresso */
  --text-2: #7A6258;         /* taupe */
  --text-3: #9A8577;

  --primary:       #F0573D;  /* coral */
  --primary-hover: #D8462C;
  --primary-glow:  #FF8A68;
  --primary-tint:  #FFEAE2;

  --accent:      #F7B32B;    /* honey gold */
  --accent-text: #9A6200;
  --accent-soft: #FCE3AC;

  --border:        #F0E2D6;
  --border-strong: #E3CDBB;

  --shadow-sm: 0 4px 14px rgba(166, 93, 67, 0.10);
  --shadow:    0 14px 34px rgba(166, 93, 67, 0.16);
  --shadow-lg: 0 34px 70px rgba(166, 93, 67, 0.24);

  --radius:    22px;
  --radius-sm: 14px;
  --maxw: 1140px;

  --serif: "Hoefler Text", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg-soft);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--primary-tint); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--serif); }
.italic { font-style: italic; }
.center { text-align: center; }

/* --------------------------------------------------------- Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 246, 241, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-2); font-size: 0.95rem; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--primary); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s; }
.nav-toggle span + span { margin-top: 5px; }

/* --------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--primary-glow) 0%, var(--primary) 55%, var(--primary-hover) 100%);
  box-shadow: 0 10px 24px rgba(240, 87, 61, 0.34);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(240, 87, 61, 0.42); }
.btn-ghost { color: var(--primary); background: var(--surface); border: 1.5px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--primary); transform: translateY(-2px); }

/* App Store badge (dark pill). Swap href to the live listing once released. */
.appstore {
  display: inline-flex; align-items: center; gap: 12px;
  background: #1b1410; color: #fff; border-radius: 15px; padding: 11px 20px;
  transition: transform 0.15s, box-shadow 0.2s; box-shadow: var(--shadow-sm);
}
.appstore:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.appstore svg { width: 26px; height: 26px; fill: #fff; flex-shrink: 0; }
.appstore .a-top { font-size: 0.66rem; letter-spacing: 0.02em; opacity: 0.85; line-height: 1.1; }
.appstore .a-big { font-size: 1.16rem; font-weight: 600; line-height: 1.15; }
.badge-note { font-size: 0.82rem; color: var(--text-3); margin-top: 10px; }

/* --------------------------------------------------------- Hero */
.hero { position: relative; padding: 74px 0 40px; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(247, 179, 43, 0.28), transparent 60%),
    radial-gradient(900px 520px at 10% 6%, rgba(255, 138, 104, 0.20), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 78%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary);
  background: var(--primary-tint); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 5.6vw, 4.15rem);
  line-height: 1.04; letter-spacing: -0.015em; margin-bottom: 22px; }
.hero h1 .italic { color: var(--primary); }
.hero p.lead { font-size: 1.18rem; color: var(--text-2); max-width: 30em; margin-bottom: 32px; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-meta { margin-top: 26px; display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 0.92rem; }
.hero-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* Phone showcase */
.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 520px; }
.phone {
  border-radius: 42px; background: #120d0a; padding: 9px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(0,0,0,0.3);
}
.phone img { border-radius: 34px; width: 100%; }
.phone-main { width: 268px; position: relative; z-index: 3; }
.phone-back {
  width: 210px; position: absolute; right: 2%; bottom: 46px; z-index: 2;
  transform: rotate(6deg); opacity: 0.96; filter: saturate(1.02);
}
.glow-blob { position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(247,179,43,0.5), transparent 68%); filter: blur(20px);
  z-index: 1; left: 8%; top: 12%; }

/* --------------------------------------------------------- Section shell */
.section { padding: 78px 0; }
.section-head { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.section-head .eyebrow { background: var(--accent-soft); color: var(--accent-text); }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 14px; }
.section-head p { color: var(--text-2); font-size: 1.08rem; }

/* --------------------------------------------------------- Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 46px 0; }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media { display: flex; justify-content: center; position: relative; }
.feature-media .phone { width: 250px; }
.feature-media::before {
  content: ""; position: absolute; width: 78%; height: 78%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,138,104,0.22), transparent 70%); z-index: 0;
}
.feature-copy .kicker { color: var(--accent-text); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }
.feature-copy .kicker .num { display: inline-grid; place-items: center; width: 26px; height: 26px;
  background: var(--primary); color: #fff; border-radius: 8px; font-size: 0.82rem; }
.feature-copy h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.14; margin-bottom: 14px; letter-spacing: -0.01em; }
.feature-copy p { color: var(--text-2); font-size: 1.08rem; max-width: 30em; }

/* --------------------------------------------------------- Feature grid */
.grid-wrap { background: linear-gradient(180deg, var(--bg-cream), var(--bg-soft)); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform 0.18s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 18px; background: var(--primary-tint); }
.card h4 { font-size: 1.16rem; font-weight: 650; margin-bottom: 7px; letter-spacing: -0.01em; }
.card p { color: var(--text-2); font-size: 0.99rem; }

/* --------------------------------------------------------- Accent band */
.band { background:
    radial-gradient(700px 300px at 80% 120%, rgba(247,179,43,0.5), transparent 60%),
    linear-gradient(135deg, #F0573D, #FF8A68); color: #fff; text-align: center; }
.band .container { padding-top: 72px; padding-bottom: 72px; }
.band h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.1; margin-bottom: 14px; }
.band p { font-size: 1.14rem; opacity: 0.95; max-width: 34em; margin: 0 auto 30px; }

/* --------------------------------------------------------- Final CTA */
.cta { text-align: center; padding: 84px 0; }
.cta img.icon-lg { width: 92px; height: 92px; border-radius: 22px; margin: 0 auto 24px; box-shadow: var(--shadow); }
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 4.4vw, 3rem); line-height: 1.1; margin-bottom: 14px; }
.cta p { color: var(--text-2); font-size: 1.1rem; margin-bottom: 30px; }
.cta .hero-cta { justify-content: center; }

/* --------------------------------------------------------- Footer */
.footer { background: #2A211D; color: #E8DACE; padding: 56px 0 34px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 34px; }
.footer .brand { color: #fff; margin-bottom: 12px; }
.footer .tagline { color: #B7A597; max-width: 26em; font-size: 0.98rem; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: #9C8B7D; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; color: #E8DACE; font-size: 0.97rem; margin-bottom: 10px; transition: color 0.15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid #45372F; padding-top: 24px; font-size: 0.85rem; color: #9C8B7D; }
.footer-bottom .disclaimer { margin-top: 8px; max-width: 60em; }

/* --------------------------------------------------------- Legal pages */
.legal-hero { background: linear-gradient(180deg, var(--bg), var(--bg-soft)); padding: 56px 0 40px; text-align: center; }
.legal-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -0.01em; }
.legal-hero p { color: var(--text-2); margin-top: 12px; }
.legal { max-width: 760px; margin: 0 auto; padding: 52px 24px 80px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin: 40px 0 12px; letter-spacing: -0.01em; }
.legal h3 { font-size: 1.14rem; font-weight: 650; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--text-2); margin-bottom: 14px; font-size: 1.02rem; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--primary); text-decoration: underline; }
.legal strong { color: var(--text); }
.legal .toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 20px 24px; margin-bottom: 20px; }
.legal .toc a { display: block; margin-bottom: 6px; font-size: 0.98rem; }
.back-home { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-weight: 600; margin-bottom: 8px; }

/* --------------------------------------------------------- Responsive */
@media (max-width: 900px) {
  .hero { padding-top: 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-meta { justify-content: center; }
  .phones { min-height: 460px; margin-top: 20px; }
  .feature { grid-template-columns: 1fr; gap: 26px; text-align: center; padding: 34px 0; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .feature-copy .kicker { justify-content: center; }
  .feature-copy p { margin-left: auto; margin-right: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 340px; }
  .nav-links a { padding: 16px 24px; width: 100%; border-top: 1px solid var(--border); }
  .nav-links .btn { margin: 14px 24px; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .btn, .appstore { width: 100%; }
  .hero-cta { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
