/* ───────────────────────────────────────────────────────────
   Cana — marketing site styles
   (App tokens live in cana-app.css; this styles the page around them.)
   ─────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--amber-deep); text-decoration: none; }
a:hover { color: var(--ink); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ── header ────────────────────────────────────────────────── */
.site-hdr {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.972 0.013 80 / 0.85);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.site-hdr .wrap {
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--ff-serif); font-weight: 600; font-size: 22px;
  letter-spacing: 0.01em; color: var(--ink);
}
.logo:hover { color: var(--ink); }
.hdr-cta {
  font-size: 13.5px; font-weight: 600; color: var(--paper);
  background: var(--ink); padding: 9px 18px; border-radius: 999px;
  transition: transform .14s ease;
}
.hdr-cta:hover { color: var(--paper); transform: scale(1.03); }

/* ── email waitlist form ───────────────────────────────────── */
.email-form {
  display: flex; gap: 10px; margin-top: 30px; max-width: 440px;
}
.email-form.center { margin: 34px auto 0; justify-content: center; }
.email-input {
  flex: 1; min-width: 0; height: 52px; border-radius: 15px;
  border: 1.5px solid var(--line-strong); background: var(--card);
  padding: 0 18px; font-family: var(--ff-sans); font-size: 15px; color: var(--ink);
  outline: none; transition: border-color .2s ease;
}
.email-input::placeholder { color: var(--ink-4); }
.email-input:focus { border-color: var(--amber); box-shadow: 0 0 0 4px var(--amber-tint); }
.email-btn {
  height: 52px; padding: 0 24px; border-radius: 15px; border: none; cursor: pointer;
  background: var(--ink); color: var(--paper);
  font-family: var(--ff-sans); font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: transform .14s ease;
}
.email-btn:active { transform: scale(0.97); }
.form-msg { font-size: 13.5px; color: var(--amber-deep); margin: 12px 0 0; min-height: 1em; }
.final .form-msg { text-align: center; }
@media (max-width: 480px) {
  .email-form { flex-direction: column; max-width: none; }
  .email-input { flex: none; width: 100%; }
}

/* ── hero ──────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero-glow {
  position: absolute; pointer-events: none;
  width: 900px; height: 900px; border-radius: 50%;
  right: -240px; top: -160px;
  background: radial-gradient(circle at center, var(--amber-tint) 0%, transparent 62%);
}
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px;
  align-items: center; padding-top: 84px; padding-bottom: 40px;
}
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--amber-deep);
}
.hero h1 {
  font-family: var(--ff-serif); font-optical-sizing: auto; font-weight: 400;
  font-size: clamp(38px, 5.2vw, 58px); line-height: 1.1; letter-spacing: -0.015em;
  margin: 18px 0 0; text-wrap: pretty;
}
.hero h1 em { font-style: italic; color: var(--amber-deep); }
.hero-lede {
  font-size: 17.5px; line-height: 1.55; color: var(--ink-2);
  margin: 20px 0 0; max-width: 46ch; text-wrap: pretty;
}
.store-row { display: flex; align-items: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 22px; border-radius: 15px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.005em;
  transition: transform .14s ease;
}
.store-btn:active { transform: scale(0.97); }
.store-btn .s { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.store-btn .s small { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.65; }
.store-btn.primary { background: var(--ink); color: var(--paper); }
.store-btn.primary:hover { color: var(--paper); }
.store-btn.outline { border: 1.5px solid var(--line-strong); color: var(--ink); background: transparent; }
.store-btn.outline:hover { border-color: var(--ink-3); color: var(--ink); }
.free-note { font-size: 13.5px; color: var(--ink-3); margin-top: 16px; display: flex; align-items: center; gap: 8px; }
.free-note .fdot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex-shrink: 0; }

/* hero visual */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 30px 0 10px; }
.float-card {
  position: absolute; width: 270px; z-index: 3;
  filter: drop-shadow(0 18px 34px oklch(0.4 0.03 60 / 0.14));
}
.float-answered { right: -34px; bottom: 120px; transform: rotate(2.5deg); }
.float-toast { left: -36px; top: 330px; transform: rotate(-2deg); width: auto; z-index: 4; }
.float-toast .toastish {
  display: flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper);
  font-size: 13.5px; font-weight: 500; padding: 11px 18px; border-radius: 999px;
  box-shadow: var(--shadow-lift); white-space: nowrap;
}
.float-toast .tdot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }

@media (prefers-reduced-motion: no-preference) {
  .drift { animation: drift 7s ease-in-out infinite; }
  .drift.d2 { animation-duration: 8.5s; animation-delay: -3s; }
  @keyframes drift {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
  }
}

/* ── phone bezel ───────────────────────────────────────────── */
.phone-scale { --s: 0.78; width: calc(426px * var(--s)); height: calc(880px * var(--s)); position: relative; z-index: 2; }
.phone {
  width: 426px; height: 880px;
  transform: scale(var(--s)); transform-origin: top left;
  background: oklch(0.24 0.015 55);
  border-radius: 64px; padding: 18px;
  box-shadow:
    inset 0 0 0 2px oklch(0.35 0.02 60),
    inset 0 0 0 7px oklch(0.16 0.012 50),
    0 30px 70px oklch(0.35 0.03 60 / 0.28);
}
.phone .screen {
  width: 390px; height: 844px; border-radius: 47px; overflow: hidden;
  position: relative; background: var(--paper);
}
.island {
  position: absolute; z-index: 30; top: 12px; left: 50%; transform: translateX(-50%);
  width: 118px; height: 34px; border-radius: 999px; background: oklch(0.14 0.01 50);
}
.statusbar {
  position: absolute; z-index: 29; top: 0; left: 0; right: 0; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 34px 0; pointer-events: none;
}
.statusbar .time { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: 0.01em; }
.statusbar .cell { display: flex; align-items: center; gap: 6px; color: var(--ink); }
.home-indicator {
  position: absolute; z-index: 30; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 132px; height: 5px; border-radius: 999px; background: var(--ink);
  opacity: 0.85;
}
/* static mockups aren't interactive */
.phone .cana { pointer-events: none; }
.phone .cana .scroll { overflow: hidden; }

/* ── shared section bones ──────────────────────────────────── */
.section { padding: 96px 0; }
.section.tight { padding: 72px 0; }
.sec-label {
  display: flex; align-items: center; gap: 12px; margin-bottom: 40px;
}
.sec-label .t {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}
.sec-label .rule { height: 1px; background: var(--line); flex: 1; }
.h2 {
  font-family: var(--ff-serif); font-weight: 400;
  font-size: clamp(30px, 3.6vw, 42px); line-height: 1.16; letter-spacing: -0.01em;
  margin: 0; text-wrap: pretty;
}
.h2 em { font-style: italic; color: var(--amber-deep); }
.lede { font-size: 16.5px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }

/* ── philosophy strip ──────────────────────────────────────── */
.philosophy {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 84px 0; text-align: center;
}
.philosophy .kicker {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: 22px;
}
.philosophy blockquote {
  font-family: var(--ff-serif); font-weight: 400;
  font-size: clamp(26px, 3.4vw, 38px); line-height: 1.3; letter-spacing: -0.01em;
  margin: 0 auto; max-width: 21ch; text-wrap: balance;
}
.philosophy blockquote em { font-style: italic; color: var(--amber-deep); }
.philosophy .after { font-size: 15px; color: var(--ink-3); margin-top: 22px; }

/* ── button demo ───────────────────────────────────────────── */
.demo-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.demo-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 26px;
  padding: 30px; box-shadow: var(--shadow-lift); max-width: 430px; justify-self: center; width: 100%;
}
.demo-card .pray { height: 56px; font-size: 16px; border-radius: 16px; margin-top: 0; cursor: pointer; }
.demo-card .pray .spark { width: 18px; height: 18px; }
.demo-hint {
  text-align: center; font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: 18px;
}
.demo-caption { margin-top: 20px; }
.demo-copy .h2 { margin-bottom: 20px; }
.demo-copy p { margin: 0 0 14px; }

/* ── how it works ──────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.step { text-align: left; }
.glyph {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--amber-tint); color: var(--amber-deep);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 9px oklch(0.95 0.038 80 / 0.55);
  margin-bottom: 24px;
}
.glyph.quiet { background: var(--shell); color: var(--ink-2); box-shadow: 0 0 0 9px oklch(0.955 0.013 76 / 0.6); }
.step-n {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: 10px;
}
.step h3 {
  font-family: var(--ff-serif); font-weight: 500; font-size: 22px; line-height: 1.25;
  margin: 0 0 10px;
}
.step p { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 0; text-wrap: pretty; }

/* ── features split ────────────────────────────────────────── */
.feature-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center;
}
.feature-phone { display: flex; justify-content: center; }
.feature-list { display: flex; flex-direction: column; }
.feature {
  display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line);
}
.feature:last-child { border-bottom: none; }
.f-ic {
  width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
  background: var(--amber-tint); color: var(--amber-deep);
  display: flex; align-items: center; justify-content: center;
}
.feature h4 { font-size: 16px; font-weight: 600; margin: 2px 0 5px; }
.feature p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); margin: 0; text-wrap: pretty; }

/* ── why the name ──────────────────────────────────────────── */
.name-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.name-copy p { margin: 0 0 16px; }
.name-copy p:last-child { margin-bottom: 0; }
@media (max-width: 920px) {
  .name-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ── free ──────────────────────────────────────────────────── */
.free-strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 72px 0; text-align: center;
}
.free-strip .big {
  font-family: var(--ff-serif); font-size: clamp(30px, 4vw, 44px); line-height: 1.15;
  margin: 0 0 16px;
}
.free-strip .big em { font-style: italic; color: var(--amber-deep); }
.free-strip p { max-width: 52ch; margin: 0 auto; }

/* ── final CTA ─────────────────────────────────────────────── */
.final { text-align: center; padding: 110px 0 100px; position: relative; overflow: hidden; }
.final-glow {
  position: absolute; pointer-events: none; left: 50%; top: 40px; transform: translateX(-50%);
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle at center, var(--amber-tint) 0%, transparent 60%);
}
.final .wrap { position: relative; }
.final .sun-glyph {
  width: 82px; height: 82px; border-radius: 50%; margin: 0 auto 30px;
  background: var(--amber-tint); color: var(--amber-deep);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 13px var(--amber-tint), 0 0 0 26px oklch(0.95 0.038 80 / 0.5);
}
.final .h2 { max-width: 18ch; margin: 0 auto; }
.final .lede { max-width: 44ch; margin: 18px auto 0; }
.final .store-row { justify-content: center; margin-top: 34px; }

/* ── footer ────────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 56px; }
.site-foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-logo { font-family: var(--ff-serif); font-weight: 600; font-size: 19px; color: var(--ink); }
.foot-note { font-size: 13px; color: var(--ink-3); }
.foot-links { display: flex; gap: 22px; font-size: 13.5px; }
.foot-links a { color: var(--ink-2); }
.foot-links a:hover { color: var(--ink); }

/* ── scroll reveal ─────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
  .rv.in { opacity: 1; transform: translateY(0); }
  .rv.d1 { transition-delay: .08s; }
  .rv.d2 { transition-delay: .16s; }
  .rv.d3 { transition-delay: .24s; }
}

/* ── responsive ────────────────────────────────────────────── */
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-visual { order: 2; margin-top: 20px; }
  .demo-grid, .feature-grid { grid-template-columns: 1fr; gap: 48px; }
  .feature-phone { order: 2; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .float-answered { right: -8px; }
  .float-toast { left: -6px; }
  .section { padding: 72px 0; }
}
@media (max-width: 480px) {
  .phone-scale { --s: 0.66; }
  .hero-visual { padding-bottom: 84px; }
  .float-card { width: 210px; }
  .float-answered { right: -12px; bottom: 0; }
  .float-toast { left: -6px; top: 26px; }
  .wrap { padding: 0 20px; }
}
