/* ==========================================================================
   Rise Intention — marketing site
   Warm, calm, premium. Mirrors the app's Dawn palette + serif quotes.
   No purple, strong color, real shadows.
   ========================================================================== */

:root {
  --paper: #FBF7F1;          /* warm app surface */
  --paper-2: #F4ECE0;        /* slightly deeper paper */
  --card: #FFFFFF;
  --ink: #1A1A1A;
  --ink-soft: #5B5B5B;
  --ink-faint: #8A8378;
  --hairline: #E7E0D6;

  --accent: #E8743B;         /* ember orange */
  --accent-deep: #C9551F;
  --gold: #F5A623;
  --success: #2E9E5B;

  --dawn-1: #FFB75E;         /* app Dawn gradient */
  --dawn-2: #ED8F03;

  --shadow-sm: 0 2px 10px -4px rgba(40, 28, 12, 0.18);
  --shadow: 0 24px 60px -28px rgba(64, 42, 16, 0.45);
  --shadow-card: 0 18px 50px -24px rgba(64, 42, 16, 0.40);

  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", var(--sans);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* soft ambient warmth behind everything */
body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -1;
  background:
    radial-gradient(38% 36% at 12% 8%, rgba(255, 183, 94, 0.30), transparent 70%),
    radial-gradient(34% 32% at 90% 6%, rgba(232, 116, 59, 0.16), transparent 70%),
    radial-gradient(40% 40% at 88% 92%, rgba(245, 166, 35, 0.14), transparent 70%);
  filter: saturate(1.05);
}

.container { width: min(1120px, 100%); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.accent { color: var(--accent); }
.serif { font-family: var(--serif); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; padding: 15px 0;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.nav--scrolled {
  background: rgba(251, 247, 241, 0.78);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-color: var(--hairline);
  box-shadow: 0 6px 24px -18px rgba(64, 42, 16, 0.5);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand .mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(140deg, var(--dawn-1), var(--dawn-2));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 10px 22px -10px rgba(232, 116, 59, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.brand .mark svg { width: 21px; height: 21px; }
.brand__name { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 550; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  background: var(--ink); color: var(--paper) !important; padding: 9px 16px; border-radius: 11px;
  font-weight: 650 !important; box-shadow: var(--shadow-sm);
}
.nav__cta:hover { background: #000; }
.nav__menu { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 6px; }
.nav__menu svg { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  background: var(--accent); color: #fff; text-decoration: none;
  padding: 14px 22px; border-radius: 14px; font-weight: 650; font-size: 16px;
  border: 0; cursor: pointer;
  box-shadow: 0 16px 34px -14px rgba(232, 116, 59, 0.7), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform .18s ease, box-shadow .18s ease, background .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--accent-deep); }
.btn svg { width: 20px; height: 20px; }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--hairline); box-shadow: none;
}
.btn--ghost:hover { background: #fff; border-color: #d9d0c2; }
.btn--dark { background: var(--ink); box-shadow: 0 16px 34px -16px rgba(0,0,0,0.5); }
.btn--dark:hover { background: #000; }

/* App Store badge button */
.appstore {
  display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 14px;
  box-shadow: 0 16px 34px -16px rgba(0,0,0,0.55);
  transition: transform .18s ease, background .2s;
}
.appstore:hover { transform: translateY(-2px); background: #000; }
.appstore svg { width: 26px; height: 26px; }
.appstore small { display: block; font-size: 11px; opacity: 0.8; font-weight: 500; letter-spacing: .02em; }
.appstore b { display: block; font-size: 18px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.1; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 86px) 0 clamp(48px, 7vw, 96px); }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 650;
  letter-spacing: 0.02em; color: var(--accent-deep); background: rgba(232,116,59,0.10);
  padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(232,116,59,0.18);
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(232,116,59,0.18); }
.h1 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04;
  font-size: clamp(2.5rem, 6vw, 4.2rem); margin-top: 20px; color: var(--ink);
}
.lead { margin-top: 20px; font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--ink-soft); max-width: 30ch; line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__meta { margin-top: 18px; font-size: 14px; color: var(--ink-faint); display: flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 15px; height: 15px; }

/* ---------- Phone mock + quote card (mirrors the app) ---------- */
.hero__visual { display: grid; place-items: center; }
.phone {
  position: relative; width: min(310px, 78vw); aspect-ratio: 9 / 19.3;
  background: #0b0b0d; border-radius: 46px; padding: 12px;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255,255,255,0.06);
}
.phone__notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 26px; background: #0b0b0d; border-radius: 0 0 16px 16px; z-index: 3;
}
.phone__screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  background: linear-gradient(160deg, var(--dawn-1), var(--dawn-2));
  display: flex; flex-direction: column; justify-content: center;
  padding: 30px 26px;
}
.phone__screen::after { /* breathing glow like the app */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 42% at 30% 22%, rgba(255,255,255,0.30), transparent 62%);
  pointer-events: none;
}
.qmark { position: absolute; font-family: var(--serif); color: rgba(255,255,255,0.20); font-size: 130px; line-height: 1; top: 40px; right: 18px; }
.qcat { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.92); font-weight: 800; font-size: 11.5px; letter-spacing: 0.16em; }
.qtext { font-family: var(--serif); color: #fff; font-weight: 600; font-size: 25px; line-height: 1.28; margin-top: 14px; position: relative; }
.qrule { width: 42px; height: 2px; background: rgba(255,255,255,0.55); border-radius: 2px; margin: 18px auto; }
.qattr { text-align: center; color: rgba(255,255,255,0.82); font-size: 13.5px; font-weight: 600; }
.qactions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; }
.qbtn { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.18); display: grid; place-items: center; color: #fff; }
.qbtn svg { width: 19px; height: 19px; }

/* trust strip */
.trust { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: center; margin-top: clamp(34px, 5vw, 56px); color: var(--ink-faint); font-size: 14px; }
.trust b { color: var(--ink-soft); font-weight: 650; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: var(--accent); }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(48px, 8vw, 100px) 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(244, 236, 224, 0.6) 12%, rgba(244, 236, 224, 0.6) 88%, transparent); }
.shead { max-width: 640px; }
.shead--center { margin: 0 auto; text-align: center; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep); }
.h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; font-size: clamp(1.9rem, 4vw, 2.9rem); margin-top: 14px; }
.sublead { margin-top: 16px; font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--ink-soft); line-height: 1.6; }

/* feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(34px, 5vw, 54px); }
.feat {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 20px; padding: 26px;
  box-shadow: var(--shadow-card); transition: transform .2s ease, box-shadow .2s ease;
}
.feat:hover { transform: translateY(-3px); box-shadow: 0 26px 60px -28px rgba(64,42,16,0.5); }
.feat__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--dawn-1), var(--dawn-2)); box-shadow: 0 10px 22px -10px rgba(232,116,59,0.7); }
.feat__icon svg { width: 23px; height: 23px; }
.feat h3 { margin-top: 16px; font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; }
.feat p { margin-top: 9px; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

/* split feature row */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.split--reverse .split__visual { order: -1; }
.split__copy h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.02em; line-height: 1.1; }
.split__copy p { margin-top: 16px; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.62; }
.split__copy .list { margin-top: 20px; display: grid; gap: 12px; }
.list__item { display: flex; gap: 12px; align-items: flex-start; }
.list__item .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(46,158,91,0.12); color: var(--success); display: grid; place-items: center; margin-top: 1px; }
.list__item .tick svg { width: 14px; height: 14px; }
.list__item b { font-weight: 650; }
.list__item span { color: var(--ink-soft); }

/* mood chips */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { padding: 8px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; font-family: var(--rounded); border: 1px solid var(--hairline); background: #fff; color: var(--ink-soft); }
.chip--on { background: var(--accent); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -10px rgba(232,116,59,0.7); }

/* widgets showcase */
.widgets { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; align-items: flex-start; }
.wg { background: linear-gradient(160deg, var(--dawn-1), var(--dawn-2)); border-radius: 24px; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.wg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 45% at 28% 20%, rgba(255,255,255,0.28), transparent 60%); }
.wg__cat { font-size: 10px; font-weight: 800; letter-spacing: 0.15em; opacity: 0.92; }
.wg__text { font-family: var(--serif); font-weight: 600; line-height: 1.25; position: relative; z-index: 1; }
.wg__attr { font-size: 11px; opacity: 0.82; font-weight: 600; }
.wg--sm { width: 158px; height: 158px; padding: 18px; display: flex; flex-direction: column; }
.wg--sm .wg__text { font-size: 15px; margin-top: 8px; }
.wg--md { width: 338px; height: 158px; padding: 20px; display: flex; flex-direction: column; }
.wg--md .wg__text { font-size: 18px; margin-top: 8px; }
.wg--md .wg__attr { margin-top: auto; }
.wg__refresh { position: absolute; top: 16px; right: 16px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.18); display: grid; place-items: center; z-index: 1; }
.wg__refresh svg { width: 13px; height: 13px; }

/* themes */
.themes { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.swatch { width: 92px; text-align: center; }
.swatch__chip { height: 92px; border-radius: 20px; box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.25); }
.swatch__name { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }

/* premium card */
.premium { background: var(--ink); color: var(--paper); border-radius: 28px; padding: clamp(30px, 5vw, 56px); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.premium::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 88% 0%, rgba(245,166,35,0.28), transparent 60%); pointer-events: none; }
.premium__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; position: relative; z-index: 1; }
.premium .crown { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(140deg, var(--gold), #d98a13); color: #1a1a1a; box-shadow: 0 12px 26px -12px rgba(245,166,35,0.8); }
.premium .crown svg { width: 26px; height: 26px; }
.premium h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-top: 18px; letter-spacing: -0.02em; }
.premium p { margin-top: 14px; color: rgba(251,247,241,0.7); font-size: 1.02rem; line-height: 1.6; }
.plist { list-style: none; display: grid; gap: 14px; }
.plist li { display: flex; gap: 12px; align-items: center; font-size: 15.5px; }
.plist .pdot { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(245,166,35,0.18); color: var(--gold); display: grid; place-items: center; }
.plist .pdot svg { width: 14px; height: 14px; }
.price-row { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: baseline; color: rgba(251,247,241,0.85); }
.price-row b { color: #fff; font-size: 1.05rem; }
.price-row .free { color: var(--gold); font-weight: 650; }

/* final CTA */
.cta-final { text-align: center; padding: clamp(56px, 9vw, 120px) 0; }
.cta-final .h2 { max-width: 18ch; margin-inline: auto; }
.cta-final .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding: clamp(40px, 6vw, 64px) 0 40px; background: rgba(244,236,224,0.5); }
.footer__top { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.footer__brand { max-width: 320px; }
.footer__brand p { margin-top: 14px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.footer__cols { display: flex; gap: clamp(36px, 6vw, 72px); flex-wrap: wrap; }
.footer__col h4 { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.footer__col a { display: block; margin-top: 12px; color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { margin-top: clamp(32px, 5vw, 48px); padding-top: 24px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--ink-faint); font-size: 13.5px; }
.footer__bottom a { color: var(--ink-faint); text-decoration: none; }
.footer__bottom a:hover { color: var(--ink-soft); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { order: 2; }
  .hero__visual { order: 1; }
  .lead { margin-inline: auto; }
  .cta-row, .hero__meta { justify-content: center; }
  .grid { grid-template-columns: 1fr 1fr; }
  .split, .premium__inner { grid-template-columns: 1fr; }
  .split--reverse .split__visual { order: 0; }
  .split__copy { text-align: center; }
  .split__copy .list { text-align: left; max-width: 380px; margin-inline: auto; }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex; position: absolute; top: 70px; left: 16px; right: 16px;
    flex-direction: column; gap: 4px; align-items: stretch; text-align: center;
    background: rgba(251,247,241,0.96); backdrop-filter: blur(16px);
    border: 1px solid var(--hairline); border-radius: 18px; padding: 14px; box-shadow: var(--shadow);
  }
  .nav__links.open a { padding: 11px; }
  .nav__menu { display: inline-flex; }
}
@media (max-width: 540px) {
  .grid { grid-template-columns: 1fr; }
  .themes { gap: 10px; }
  .swatch { width: 72px; }
  .swatch__chip { height: 72px; }
}

/* ---------- Legal / support documents ---------- */
.doc { padding: clamp(40px, 7vh, 88px) 0 clamp(56px, 9vh, 112px); }
.doc__inner { max-width: 740px; }
.doc__head { margin-bottom: clamp(26px, 5vw, 44px); padding-bottom: clamp(22px, 4vw, 34px); border-bottom: 1px solid var(--hairline); }
.doc__kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep); }
.doc__title { margin-top: 12px; font-family: var(--serif); font-size: clamp(2.1rem, 4.6vw, 3.2rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.06; }
.doc__date { margin-top: 14px; color: var(--ink-faint); font-size: 14.5px; }
.doc__body { color: var(--ink-soft); font-size: 16px; line-height: 1.72; }
.doc__body p { margin-top: 14px; }
.doc__body h2 { margin-top: 42px; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.doc__body h3 { margin-top: 26px; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.doc__body h2 + p, .doc__body h3 + p { margin-top: 12px; }
.doc__body ul { margin-top: 14px; padding-left: 0; list-style: none; }
.doc__body ul li { position: relative; padding-left: 22px; margin-top: 10px; }
.doc__body ul li::before { content: ""; position: absolute; left: 5px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.doc__body b, .doc__body strong { color: var(--ink); font-weight: 700; }
.doc__body a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.doc__body a:hover { color: var(--accent); }
.doc__callout { margin-top: 22px; background: rgba(232,116,59,0.07); border: 1px solid rgba(232,116,59,0.18); border-radius: 16px; padding: 18px 20px; }
.doc__callout p { margin-top: 0; }
.faq { margin-top: 8px; }
.faq details { border-bottom: 1px solid var(--hairline); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 650; color: var(--ink); font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; font-weight: 400; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding: 0 0 18px; margin-top: 0; line-height: 1.65; }
.doc__back { margin-top: clamp(44px, 7vw, 72px); padding-top: 24px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--ink-faint); font-size: 13.5px; }
.doc__back a { color: var(--ink-faint); text-decoration: none; }
.doc__back a:hover { color: var(--ink-soft); }
