/* я рядом — landing as iPhone-screen experience */
:root {
  --paper: #FBF6EE;
  --paper-2: #F4ECDF;
  --surface: #FFFFFF;
  --tint: #F3D8C5;
  --tint-soft: #F9EBDD;
  --sage-tint: #DCE3D2;
  --ink: #1A1612;
  --ink-2: #4A413A;
  --ink-3: #8B7F70;
  --ink-4: #B6AB9A;
  --accent: #C95F3E;
  --accent-2: #B14F30;
  --accent-soft: #F3D8C5;
  --sage: #7A8D6E;
  --sage-2: #5E715A;
  --warn: #D8973B;
  --line: rgba(26, 22, 18, 0.08);
  --line-2: rgba(26, 22, 18, 0.14);
  --shadow-sm: 0 1px 2px rgba(26,22,18,0.04), 0 2px 6px rgba(26,22,18,0.04);
  --shadow-md: 0 4px 14px rgba(26, 22, 18, 0.06), 0 1px 3px rgba(26, 22, 18, 0.04);
  --shadow-lg: 0 12px 32px rgba(26,22,18,0.08), 0 2px 8px rgba(26,22,18,0.04);
  --shadow-pop: 0 16px 40px rgba(201, 95, 62, 0.18);
  --shadow-device:
    0 80px 160px -40px rgba(26,22,18,0.45),
    0 40px 80px -30px rgba(201,95,62,0.15),
    0 2px 0 rgba(255,255,255,0.06) inset,
    0 0 0 2px rgba(255,255,255,0.04) inset;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-2); }
button { font-family: inherit; }

.serif { font-family: 'Lora', Georgia, serif; font-style: italic; font-weight: 500; }
.accent { color: var(--accent); }
.sage-text { color: var(--sage-2); }

/* ============== background blobs ============== */
.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: drift 22s ease-in-out infinite;
}
.blob-1 { width: 560px; height: 560px; top: -200px; right: -180px;  background: radial-gradient(circle at 30% 30%, #F3D8C5, transparent 70%); }
.blob-2 { width: 480px; height: 480px; top: 32%; left: -180px;       background: radial-gradient(circle at 60% 40%, #DCE3D2, transparent 70%); animation-delay: -7s; animation-duration: 28s; }
.blob-3 { width: 420px; height: 420px; bottom: -160px; right: 12%;   background: radial-gradient(circle at 50% 50%, #F9EBDD, transparent 70%); animation-delay: -14s; animation-duration: 26s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.06); }
  66%      { transform: translate(-30px, 40px) scale(0.96); }
}

/* ============== page wrapper ============== */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* ============== top brand strip (outside device) ============== */
.top-brand {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.top-brand .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.top-brand .brand-mark {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #E58660, #C95F3E);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 6px 16px rgba(201,95,62,0.32), inset 0 1px 0 rgba(255,255,255,0.25);
}
.top-brand .brand-mark svg { width: 20px; height: 20px; }
.top-brand .brand-name { font-family: 'Lora', serif; font-style: italic; font-size: 20px; line-height: 1; }
.top-brand .brand-text { display: flex; flex-direction: column; gap: 2px; }
.top-brand .brand-tag { font-size: 11px; color: var(--ink-3); letter-spacing: 0.3px; }
.top-brand .top-links { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.top-brand .top-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  transition: background 0.2s ease, color 0.2s ease;
}
.top-brand .top-links a:hover { background: rgba(201,95,62,0.08); color: var(--accent); }
.top-brand .top-links .pill-dark {
  background: var(--ink);
  color: var(--paper);
}
.top-brand .top-links .pill-dark:hover { background: var(--accent); color: #fff; }

/* ============== iPhone device ============== */
.device {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  animation: device-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes device-in {
  from { opacity: 0; transform: translateY(28px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.device-frame {
  position: relative;
  background: linear-gradient(180deg, #1F1812 0%, #0E0A07 100%);
  padding: 12px;
  border-radius: 56px;
  box-shadow: var(--shadow-device);
}
/* side buttons silhouette */
.device-frame::before,
.device-frame::after {
  content: '';
  position: absolute;
  background: #0a0705;
  border-radius: 2px;
}
.device-frame::before { width: 3px; height: 30px; left: -3px; top: 110px;  border-radius: 2px 0 0 2px; }
.device-frame::after  { width: 3px; height: 60px; right: -3px; top: 150px; border-radius: 0 2px 2px 0; }
.device-frame .vol-up,
.device-frame .vol-dn {
  position: absolute; left: -3px;
  width: 3px; background: #0a0705;
  border-radius: 2px 0 0 2px;
}
.device-frame .vol-up { height: 50px; top: 160px; }
.device-frame .vol-dn { height: 50px; top: 220px; }

.device-screen {
  position: relative;
  background: var(--paper);
  border-radius: 44px;
  overflow: hidden;
  padding-top: 58px;       /* room for notch / status bar */
  padding-bottom: 0;
}
/* dynamic island notch */
.device-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 122px; height: 36px;
  background: #000;
  border-radius: 22px;
  z-index: 10;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
.device-notch::after {
  /* camera lens hint */
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #161616;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}
/* status bar */
.device-status {
  position: absolute;
  top: 18px; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 32px;
  font-size: 14px; font-weight: 600;
  color: var(--ink);
  z-index: 9;
}
.device-status .left { font-variant-numeric: tabular-nums; }
.device-status .right { display: inline-flex; gap: 5px; align-items: center; }
.device-status .right svg { display: block; }
.signal-bars rect { animation: signal-blink 4s ease-in-out infinite; }
.signal-bars rect:nth-child(2) { animation-delay: 0.5s; }
.signal-bars rect:nth-child(3) { animation-delay: 1s; }
.signal-bars rect:nth-child(4) { animation-delay: 1.5s; }
@keyframes signal-blink {
  0%, 90%, 100% { opacity: 1; }
  45%, 55%      { opacity: 0.5; }
}

/* home indicator */
.device-home {
  height: 28px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26,22,18,0.02);
}
.device-home::after {
  content: '';
  width: 136px; height: 5px;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0.62;
}

/* ============== device content (the "app") ============== */
.app {
  padding: 0 18px;
}
.app > section + section,
.app > section + aside,
.app > aside + section { margin-top: 36px; }

/* In-app header (small brand + bell) */
.app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0 14px;
}
.app-head .who {
  display: flex; align-items: center; gap: 8px;
}
.app-head .who .av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px;
}
.app-head .who .greet { font-size: 13px; color: var(--ink-3); line-height: 1.1; }
.app-head .who .name  { font-size: 15px; color: var(--ink); font-weight: 600; }
.app-head .actions { display: inline-flex; gap: 8px; }
.app-head .act {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, background 0.2s ease;
}
.app-head .act:hover { transform: translateY(-1px); background: var(--paper-2); }
.app-head .act svg { width: 16px; height: 16px; }
.app-head .act .bell-dot {
  position: absolute;
  top: 8px; right: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
}

/* ============== HERO inside the screen ============== */
.hero {
  padding: 6px 0 0;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
  margin: 0 auto 18px;
  backdrop-filter: blur(8px);
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sage); position: relative;
}
.hero-eyebrow .dot::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%; border: 1px solid var(--sage);
  animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}
.hero h1 {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.6px;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 8px;
}
.hero .h-sub {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0 auto 22px;
  max-width: 280px;
}

/* SOS sphere */
.sos-wrap {
  position: relative;
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  margin: 12px 0 18px;
}
.sos-sphere {
  position: relative;
  width: 168px; height: 168px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #F4A487 0%, #C95F3E 55%, #9A4326 100%);
  box-shadow:
    0 24px 60px -10px rgba(201,95,62,0.55),
    inset 0 -12px 30px rgba(0,0,0,0.18),
    inset 0 12px 20px rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: 'Lora', serif; font-style: italic;
  font-size: 24px;
  animation: breathe 6s ease-in-out infinite;
  z-index: 2;
  user-select: none;
}
.sos-sphere::before,
.sos-sphere::after {
  content: '';
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(201,95,62,0.4);
  animation: sos-pulse 3.6s ease-out infinite;
}
.sos-sphere::after { animation-delay: -1.8s; }
@keyframes sos-pulse {
  0%   { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.6);  opacity: 0; }
}
@keyframes breathe {
  0%, 100% { transform: scale(0.92); }
  50%      { transform: scale(1.04); }
}
.sos-hint {
  font-size: 12px;
  color: var(--ink-3);
  margin: 4px 0 18px;
  letter-spacing: 0.2px;
}

/* streak pill */
.streak {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sage-tint); color: var(--sage-2);
  padding: 6px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  margin-bottom: 4px;
}
.streak svg { width: 12px; height: 12px; }

/* quick chips row */
.quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 4px;
}
.quick .q {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 6px 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.quick .q:hover { transform: translateY(-2px); border-color: var(--accent-soft); box-shadow: var(--shadow-sm); }
.quick .q .ic {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--tint-soft);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.quick .q .ic svg { width: 18px; height: 18px; }

/* ============== Stats strip ============== */
.stats {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stats::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(243,216,197,0.22) 50%, transparent 100%);
  pointer-events: none;
}
.stat { position: relative; text-align: left; }
.stat .num {
  font-family: 'Lora', serif; font-style: italic;
  font-size: 24px; color: var(--accent);
  line-height: 1; margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.stat .lbl { font-size: 11px; color: var(--ink-3); line-height: 1.4; }

/* ============== Section header ============== */
.sec-head { padding: 0 4px; }
.sec-eye {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
  position: relative;
}
.sec-eye::before {
  content: '';
  display: inline-block;
  width: 18px; height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 8px;
  opacity: 0.6;
}
.sec-title {
  font-family: 'Lora', serif; font-style: italic; font-weight: 500;
  font-size: 24px; line-height: 1.15;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin: 0 0 8px;
}
.sec-lead {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0 0 18px;
}

/* ============== Feature cards (vertical mobile list) ============== */
.features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.f-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: flex-start;
  transition: transform 0.3s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.3s ease, border-color 0.2s ease;
  text-align: left;
}
.f-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.f-card.tint { background: var(--tint-soft); border-color: rgba(201,95,62,0.16); }
.f-card.sage { background: var(--sage); color: #F8F4EA; border: none; }
.f-card.sage .f-title { color: #F8F4EA; }
.f-card.sage .f-text  { color: rgba(255,255,255,0.85); }
.f-card.ink  { background: var(--ink); color: #F8F4EA; border: none; }
.f-card.ink .f-title  { color: #F8F4EA; }
.f-card.ink .f-text   { color: rgba(248,244,234,0.7); }
.f-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease;
}
.f-icon svg { width: 24px; height: 24px; }
.f-card:hover .f-icon { transform: scale(1.06) rotate(-4deg); }
.f-card.sage .f-icon { background: rgba(255,255,255,0.18); }
.f-card.ink  .f-icon { background: var(--accent); }
.f-title {
  font-family: 'Lora', serif; font-style: italic; font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  margin: 2px 0 4px;
  letter-spacing: -0.2px;
}
.f-text { font-size: 13px; color: var(--ink-3); margin: 0; line-height: 1.5; }

/* ============== Steps (how-it-works) ============== */
.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  left: 22px; top: 22px; bottom: 22px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--sage));
  opacity: 0.25;
  border-radius: 2px;
}
.step {
  position: relative;
  padding-left: 60px;
}
.step .num {
  position: absolute;
  left: 0; top: 0;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--ink); color: var(--paper);
  font-family: 'Lora', serif; font-style: italic;
  font-size: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.step:nth-child(2) .num { background: var(--accent); color: #fff; }
.step:nth-child(3) .num { background: var(--sage);   color: #fff; }
.step h3 {
  font-family: 'Lora', serif; font-style: italic; font-weight: 500;
  font-size: 18px; margin: 6px 0 4px;
  color: var(--ink);
}
.step p { color: var(--ink-3); font-size: 13px; margin: 0; line-height: 1.5; }

/* ============== Quotes (rotator) ============== */
.quotes {
  position: relative;
  min-height: 200px;
}
.q-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  text-align: left;
}
.q-card.active {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.q-card::before {
  content: '\201C';
  position: absolute;
  top: 6px; right: 18px;
  font-family: 'Lora', serif; font-style: italic;
  font-size: 70px; line-height: 1;
  color: var(--accent-soft);
}
.q-card p {
  font-family: 'Lora', serif; font-style: italic;
  font-size: 16px; line-height: 1.4;
  color: var(--ink); margin: 0 0 18px;
}
.q-card .who {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--ink-3);
}
.q-card .who .av {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-2);
  font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
}
.q-dots {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 12px;
}
.q-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--line-2);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, width 0.3s ease;
  padding: 0;
}
.q-dot.active { background: var(--accent); width: 18px; }

/* ============== Pricing ============== */
.plans {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan {
  position: relative;
  display: block;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 22px;
  padding: 20px 20px 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.3s ease, transform 0.2s ease, background 0.3s ease;
  text-align: left;
}
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.plan .plan-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.plan-check {
  position: absolute;
  top: 20px; right: 20px;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.plan-check::after {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.plan.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(201,95,62,0.12), var(--shadow-md);
}
.plan.selected .plan-check {
  border-color: var(--accent);
}
.plan.selected .plan-check::after { transform: scale(1); }
.plan.featured {
  background: linear-gradient(180deg, #fff, var(--tint-soft));
}
.plan-badge {
  position: absolute;
  top: -10px; left: 18px;
  background: var(--accent); color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(201,95,62,0.3);
}
.plan-name {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--ink-3);
  margin: 0 0 6px;
}
.plan-price {
  font-family: 'Lora', serif; font-style: italic;
  font-size: 30px; font-weight: 500;
  color: var(--ink);
  line-height: 1; margin: 0;
  display: flex; align-items: baseline; gap: 6px;
}
.plan-price .per {
  font-family: 'Onest', sans-serif; font-style: normal;
  font-size: 13px; color: var(--ink-3); font-weight: 500;
}
.plan-note {
  font-size: 12px; color: var(--ink-3);
  margin: 6px 0 12px;
}
.plan-feats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plan-feats li {
  font-size: 13px; color: var(--ink-2);
  display: flex; align-items: flex-start; gap: 8px;
  line-height: 1.45;
}
.plan-feats li::before {
  content: '';
  flex-shrink: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  margin-top: 2px;
  background: var(--sage-tint) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%235E715A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/10px no-repeat;
}

/* ============== Pay button ============== */
.pay-wrap {
  margin-top: 16px;
}
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.2px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease;
  font-family: inherit;
  width: 100%;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: var(--shadow-pop);
}
.btn-primary:hover { background: var(--accent-2); color: #fff; transform: translateY(-2px); box-shadow: 0 20px 40px rgba(201,95,62,0.32); }
.btn-secondary {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }

.pay-btn {
  position: relative;
  overflow: hidden;
}
.pay-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
  animation: shimmer 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0%, 30%   { transform: translateX(-100%); }
  70%, 100% { transform: translateX(100%); }
}
.pay-note {
  font-size: 11px;
  color: var(--ink-3);
  text-align: center;
  margin: 10px 0 0;
  line-height: 1.5;
}
.pay-note a { color: var(--accent); }

/* ============== Download (stores) ============== */
.stores {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease;
}
.store-btn:hover { transform: translateY(-2px); color: var(--paper); }
.store-btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.store-btn .tx { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn .tx .top { font-size: 10px; color: rgba(248,244,234,0.6); text-transform: uppercase; letter-spacing: 0.6px; }
.store-btn .tx .bot { font-size: 14px; font-weight: 600; }
.store-btn.light {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.store-btn.light .tx .top { color: var(--ink-3); }
.store-btn.light:hover { color: var(--ink); border-color: var(--line-2); }

/* ============== Crisis banner ============== */
.crisis {
  background: linear-gradient(135deg, #1A1612 0%, #2A231C 100%);
  color: #F8F4EA;
  padding: 18px;
  border-radius: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.crisis::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(201,64,50,0.28), transparent 60%);
  pointer-events: none;
}
.crisis .icon {
  position: relative; z-index: 1;
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(201,95,62,0.4);
}
.crisis .icon svg { width: 20px; height: 20px; }
.crisis .body { position: relative; z-index: 1; }
.crisis h3 {
  font-family: 'Lora', serif; font-style: italic;
  font-size: 18px; margin: 0 0 4px;
}
.crisis p { font-size: 13px; opacity: 0.78; margin: 0; }
.crisis a {
  color: #F8F4EA;
  text-decoration: underline;
  text-decoration-color: rgba(248,244,234,0.45);
  text-underline-offset: 3px;
}
.crisis a:hover { color: var(--accent); }

/* ============== In-frame footer ============== */
.app-foot {
  text-align: center;
  font-size: 11px;
  color: var(--ink-3);
  padding: 8px 0 0;
}
.app-foot .links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}
.app-foot .links a {
  color: var(--ink-3);
  padding: 6px 10px;
  border-radius: 999px;
}
.app-foot .links a:hover { color: var(--accent); background: rgba(201,95,62,0.08); }

/* ============== Below-device strip (legal / brand outside) ============== */
.below {
  width: 100%;
  max-width: 760px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
}
.below .reqs {
  margin-top: 8px;
  opacity: 0.8;
}

/* ============== Floating notifications around device (desktop only) ============== */
.floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
}
.float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow-md);
  font-size: 12px;
  color: var(--ink-2);
  max-width: 200px;
  animation: float-y 5s ease-in-out infinite;
  pointer-events: auto;
}
.float-card .row { display: flex; align-items: center; gap: 10px; }
.float-card strong { color: var(--ink); font-weight: 600; }
.float-card .av {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.float-card.sage { background: var(--sage); color: #F8F4EA; border-color: transparent; }
.float-card.sage strong { color: #fff; }
.float-card.sage .av { background: rgba(255,255,255,0.25); color: #fff; }
.float-tl { top: 80px; left: -190px; animation-delay: -2s; }
.float-bl { bottom: 200px; left: -160px; animation-delay: -3s; }
.float-tr { top: 200px; right: -200px; animation-delay: -1s; }
.float-br { bottom: 100px; right: -170px; animation-delay: -4s; }
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.device-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto;
}

/* ============== Scroll reveal ============== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============== Page-content (legal / activate) ============== */
.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.content h1 {
  font-family: 'Lora', serif; font-style: italic; font-weight: 500;
  font-size: 40px;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}
.content .meta { color: var(--ink-3); font-size: 14px; margin-bottom: 28px; }
.content h2 {
  font-family: 'Lora', serif; font-style: italic; font-weight: 500;
  font-size: 24px;
  margin: 32px 0 8px;
  letter-spacing: -0.3px;
}
.content h3 { font-size: 16px; font-weight: 600; margin: 20px 0 6px; }
.content p, .content li { color: var(--ink-2); line-height: 1.7; }

.form {
  max-width: 440px;
  margin: 32px auto;
  background: var(--surface);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.form label {
  display: block;
  font-size: 12px; font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}
.form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--paper);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(201,95,62,0.12); }
.form .btn { width: 100%; }
.form-feedback {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  display: none;
}
.form-feedback.ok  { display: block; background: var(--sage-tint); color: var(--sage-2); }
.form-feedback.err { display: block; background: var(--tint-soft); color: var(--accent-2); }

/* Header for legal pages (simpler than landing) */
.legal-header {
  position: sticky; top: 0; z-index: 30;
  padding: 14px 0;
  background: rgba(251,246,238,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.legal-header .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.legal-header .brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.legal-header .brand-mark {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #E58660, #C95F3E);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
}
.legal-header .brand-mark svg { width: 20px; height: 20px; }
.legal-header .brand-name { font-family: 'Lora', serif; font-style: italic; font-size: 20px; }
.legal-header .nav { display: inline-flex; gap: 6px; }
.legal-header .nav a {
  font-size: 13px;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.legal-header .nav a:hover { background: rgba(201,95,62,0.08); color: var(--accent); }

/* Footer for legal pages */
.legal-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 56px;
  color: var(--ink-3);
  font-size: 13px;
}
.legal-footer .container {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.legal-footer .links { display: flex; flex-wrap: wrap; gap: 4px; }
.legal-footer .links a { color: var(--ink-3); padding: 6px 14px; border-radius: 999px; }
.legal-footer .links a:hover { color: var(--accent); background: rgba(201,95,62,0.08); }

/* ============== Responsive ============== */
@media (min-width: 1100px) {
  .floats { display: block; }
}
@media (max-width: 640px) {
  .page { padding: 16px 12px 28px; gap: 16px; }
  .top-brand { gap: 10px; }
  .top-brand .brand-tag { display: none; }
  .top-brand .top-links a:not(.pill-dark) { display: none; }
  .top-brand .top-links .pill-dark { padding: 8px 14px; font-size: 13px; }
  .device { max-width: 100%; }
  .device-frame {
    padding: 0;
    border-radius: 26px;
    box-shadow: var(--shadow-lg);
    background: transparent;
  }
  .device-frame::before, .device-frame::after,
  .device-frame .vol-up, .device-frame .vol-dn { display: none; }
  .device-notch, .device-status, .device-home { display: none; }
  .device-screen {
    border-radius: 26px;
    padding-top: 14px;
  }
  .device-wrap { width: 100%; display: block; }
  .floats { display: none !important; }
  .app { padding: 0 14px; }
  .app > section + section,
  .app > section + aside,
  .app > aside + section { margin-top: 30px; }
  .hero h1 { font-size: 26px; letter-spacing: -0.4px; }
  .hero .h-sub { font-size: 13px; }
  .sos-sphere { width: 150px; height: 150px; font-size: 22px; }
  .sec-title { font-size: 22px; }
  .sec-lead { font-size: 13px; }
  .f-card { padding: 16px; gap: 12px; grid-template-columns: 44px 1fr; }
  .f-icon { width: 44px; height: 44px; }
  .f-icon svg { width: 22px; height: 22px; }
  .stats { padding: 16px 14px; gap: 12px 14px; }
  .stat .num { font-size: 22px; }
  .plan { padding: 18px; }
  .plan-price { font-size: 26px; }
  .crisis { padding: 16px; gap: 12px; }
  .btn { font-size: 14px; padding: 14px 18px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 24px; }
  .sos-sphere { width: 140px; height: 140px; font-size: 20px; }
  .quick .q { font-size: 10px; padding: 10px 4px 8px; }
}
