/* Shared styling for the public static pages (pricing / legal) — matches the
   Evolution app: warm cream, gradient brand, soft cards. No JS, no login. */
:root {
  --cream: #fff8f0;
  --card: #ffffff;
  --ink: #3d1a10;
  --ink2: #7a5b4d;
  --muted: #a9968b;
  --line: #f1e7db;
  --grad: linear-gradient(135deg, #ffc83d 0%, #ff8a3d 52%, #ff5470 100%);
  --radius: 22px;
  --shadow: 0 10px 30px rgba(74, 31, 18, 0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(820px 540px at 50% -80px, #ffe9cf 0%, rgba(255, 233, 207, 0) 62%),
    radial-gradient(720px 520px at 90% 30%, #ffd9e0 0%, rgba(255, 217, 224, 0) 60%),
    var(--cream);
  line-height: 1.65;
}
/* One shell width everywhere so the header lines up on every page; article-style
   content re-narrows itself via .content below. */
.page {
  max-width: 1020px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}
.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}
.page-header a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 20px rgba(255, 90, 80, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.wordmark {
  margin: 0;
  font-family: "Segoe Script", "Snell Roundhand", "Brush Script MT", cursive;
  font-size: 30px;
  line-height: 0.9;
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.content {
  max-width: 780px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 44px 44px;
}
h1 {
  margin: 0 0 4px;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.effective {
  margin: 0 0 26px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
.lede {
  margin: 0 0 26px;
  font-size: 17px;
  color: var(--ink2);
}
h2 {
  margin: 30px 0 8px;
  font-size: 19px;
}
p { margin: 10px 0; color: var(--ink2); }
ul { margin: 10px 0; padding-left: 22px; color: var(--ink2); }
li { margin: 6px 0; }
strong { color: var(--ink); }
a { color: #e0553f; }

/* ── Pricing plan cards ── */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0 10px;
}
.plan {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px;
  background: #fffdf9;
}
.plan.featured {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad) border-box;
  box-shadow: var(--shadow);
}
.plan h2 { margin: 0; font-size: 21px; }
.price {
  margin: 10px 0 2px;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--ink);
}
.price small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-note { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.best-for {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
}
.cta {
  display: inline-block;
  margin-top: 16px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 20px rgba(255, 90, 80, 0.32);
}
.cta.ghost {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}
.fineprint { font-size: 13.5px; color: var(--muted); }

.page-footer {
  margin-top: 30px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}
.page-footer a { color: var(--ink2); text-decoration: none; margin: 0 8px; }
.page-footer a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .content { padding: 28px 22px 32px; }
  .plans { grid-template-columns: 1fr; }
  h1 { font-size: 28px; }
}

/* ── Aurora — the app's slow-drifting warm glow, shared by every page so the
   whole site feels alive, not printed. Fixed + blurred, behind everything. ── */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
  animation: drift 26s ease-in-out infinite alternate;
}
body::before {
  top: -200px;
  left: -140px;
  background: radial-gradient(circle, #ffdcae 0%, rgba(255, 220, 174, 0) 65%);
}
body::after {
  top: 34%;
  right: -180px;
  background: radial-gradient(circle, #ffd0da 0%, rgba(255, 208, 218, 0) 65%);
  animation-duration: 34s;
  animation-delay: -9s;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(60px, 46px, 0) scale(1.18); }
}

/* ── Header nav (all public pages) ── */
.top-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14.5px;
  font-weight: 600;
}
.top-nav a { color: var(--ink2); text-decoration: none; transition: color 0.2s; }
.top-nav a:hover { color: var(--ink); }
.top-nav a:not(.cta) { position: relative; padding-bottom: 2px; }
.top-nav a:not(.cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.top-nav a:hover::after,
.top-nav a[aria-current="page"]::after { transform: scaleX(1); }
.top-nav a[aria-current="page"] { color: var(--ink); }
.top-nav .cta { margin: 0; padding: 9px 18px; font-size: 14px; }

/* Buttons breathe: lift on hover, settle on press. */
.cta { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 90, 80, 0.42); }
.cta:active { transform: translateY(0); }
.cta.ghost:hover { border-color: #eedcc8; box-shadow: var(--shadow); }

/* ── Landing page ── */
.hero { position: relative; text-align: center; padding: 42px 8px 26px; }

/* Faint brand butterflies drifting in the hero — the "alive" wink. */
.flutter {
  position: absolute;
  color: #ffb27d;
  opacity: 0.45;
  pointer-events: none;
  animation: flutter 7s ease-in-out infinite alternate;
}
.flutter.f1 { top: 4px; left: 10%; }
.flutter.f2 { bottom: 26px; right: 9%; color: #ff8fa0; animation-delay: -3.4s; animation-duration: 8.5s; }
@keyframes flutter {
  from { transform: translateY(0) rotate(-12deg); }
  to { transform: translateY(-18px) rotate(8deg); }
}

/* Staggered rise-in so the first paint feels performed, not pasted. */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.hero > :not(.flutter) { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.hero > :nth-child(2) { animation-delay: 0.06s; }
.hero > :nth-child(3) { animation-delay: 0.12s; }
.hero > :nth-child(4) { animation-delay: 0.2s; }
.hero > :nth-child(5) { animation-delay: 0.28s; }
.hero > :nth-child(6) { animation-delay: 0.34s; }
.kicker {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink2);
}
.hero h1 {
  max-width: 720px;
  margin: 0 auto 14px;
  font-size: 48px;
  letter-spacing: -1px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede { max-width: 620px; margin: 0 auto 26px; font-size: 18px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta.big { margin-top: 0; padding: 14px 28px; font-size: 16px; }
.hero-note { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }

.section-title { margin: 52px 0 8px; text-align: center; font-size: 27px; letter-spacing: -0.3px; }
.section-title::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: var(--grad);
}
.section-sub { max-width: 560px; margin: 0 auto 24px; text-align: center; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 24px 22px;
}
.step-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  background: var(--grad);
  box-shadow: 0 6px 14px rgba(255, 90, 80, 0.28);
}
.step h3, .feature h3 { margin: 0 0 6px; font-size: 16.5px; color: var(--ink); }
.step p, .feature p { margin: 0; font-size: 14.5px; }

/* Hand-drawn touch: a little arrow carrying you to the next step. */
@media (min-width: 641px) {
  .step:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -15px;
    top: 24px;
    z-index: 1;
    color: #eba36d;
    font-size: 20px;
    font-weight: 700;
  }
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}
.feature-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: #fff1e0;
  color: #ef7332;
}
.feature-ico svg { width: 20px; height: 20px; }
/* Rotate the warm tints so the grid reads hand-arranged, not stamped. */
.features .feature:nth-child(3n + 2) .feature-ico { background: #ffe9ee; color: #ee5670; }
.features .feature:nth-child(3n) .feature-ico { background: #fff2cf; color: #d0900e; }
/* Seven cards on a 3-wide grid: park the straggler in the middle column. */
.features .feature:nth-child(7):last-child { grid-column: 2; }

/* Cards react to you — small lift, deeper shadow, warmer edge. */
.step, .feature {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.step:hover, .feature:hover {
  transform: translateY(-4px);
  border-color: #f2dcc4;
  box-shadow: 0 16px 36px rgba(74, 31, 18, 0.13);
}

.panel {
  margin-top: 52px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 36px;
}
.panel h2 { margin-top: 0; font-size: 22px; }

/* Closing CTA — gradient-edged card, same trick as the featured plan. */
.closing {
  margin-top: 56px;
  padding: 10px 26px 42px;
  text-align: center;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(#fffdf9, #fffdf9) padding-box,
    var(--grad) border-box;
  box-shadow: var(--shadow);
}
.closing .section-title { margin-top: 34px; }

@media (prefers-reduced-motion: reduce) {
  body::before, body::after, .flutter, .hero > :not(.flutter) { animation: none; }
  .step, .feature, .cta { transition: none; }
}

@media (max-width: 900px) {
  .hero h1 { font-size: 38px; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 31px; }
  .page-header { flex-wrap: wrap; row-gap: 14px; }
  .top-nav { width: 100%; margin-left: 0; gap: 14px; font-size: 13.5px; flex-wrap: wrap; }
  .steps, .features { grid-template-columns: 1fr; }
  .panel { padding: 26px 22px; }
  .flutter { display: none; }
}
