/* ===================== Arise marketing site ===================== */
/* Palette mirrors the app's light Wayk-style tokens (src/theme/index.ts) */
:root {
  --bg: #EDEFF4;
  --surface: #FFFFFF;
  --text: #1A1D22;
  --text-muted: #626973;
  --primary: #F5761A;      /* orange — fills & large glyphs only */
  --primary-soft: #FFF1E6;
  --success: #2FB170;
  --hairline: #ECEFF3;
  --ink: #0d0d0f;          /* dark sections / device body */
  --radius: 18px;
  --shadow-card: 0 10px 30px rgba(20, 25, 40, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }

.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; text-align: center; }
.section-sub { text-align: center; color: var(--text-muted); margin-top: 10px; }
section { padding: 76px 0; }

/* ===================== NAV ===================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.nav__brand { font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; }
.nav__links { display: flex; gap: 28px; margin-left: 8px; }
.nav__links a { color: var(--text-muted); font-weight: 500; font-size: 0.98rem; transition: color .15s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { display: flex; gap: 10px; margin-left: auto; }
.badge { display: inline-flex; transition: transform .15s ease; }
.badge:hover { transform: translateY(-1px); }
.badge svg { display: block; height: 42px; width: auto; }

.nav__toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; flex-direction: column; gap: 5px; justify-content: center; align-items: center; }
.nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ===================== HERO ===================== */
.hero { padding-top: 56px; padding-bottom: 40px; background: linear-gradient(180deg, #F4F6FA 0%, var(--bg) 100%); }
.hero__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.hero__copy, .hero__art { min-width: 0; max-width: 100%; }
.hero__copy h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); font-weight: 800; }
.hero__sub { margin: 22px 0 28px; font-size: 1.14rem; color: var(--text-muted); max-width: 30ch; }
.hero__badges { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- phone art ---- */
.hero__art { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 480px; overflow: hidden; }
.hero__arrow { width: 92px; height: 52px; flex: 0 0 auto; margin: 0 -6px; align-self: flex-start; margin-top: 200px; }
.phone {
  width: 224px; background: var(--ink); border-radius: 40px; padding: 9px;
  box-shadow: 0 34px 70px rgba(15, 20, 40, 0.22); position: relative; flex: 0 0 auto;
}
.phone--left { transform: rotate(-4deg); }
.phone--right { transform: rotate(4deg); }
.phone__notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 92px; height: 22px; background: var(--ink); border-radius: 12px; z-index: 3; }
.phone__screen { border-radius: 32px; overflow: hidden; aspect-ratio: 9 / 19; padding: 34px 18px 18px; display: flex; flex-direction: column; align-items: center; position: relative; }
.phone__screen--light { background: #F7F8FB; }
.phone__screen--dark { background: #0f0f12; }

.scr-brand { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--text); margin-bottom: 18px; }
.scr-brand--light { color: #fff; }
.scr-prompt { font-weight: 700; font-size: 0.9rem; text-align: center; color: var(--text); margin-bottom: 22px; }
.scr-phrase { font-size: 0.92rem; letter-spacing: 0.02em; margin-bottom: 14px; color: #aeb4bf; }
.scr-phrase .ok { color: var(--success); font-weight: 600; }
.scr-input { width: 100%; background: #fff; border: 1.5px solid var(--primary); border-radius: 12px; padding: 10px 12px; font-size: 0.86rem; color: var(--text); box-shadow: 0 0 0 4px var(--primary-soft); }
.scr-input .caret { display: inline-block; width: 2px; height: 1em; background: var(--primary); margin-left: 2px; vertical-align: -2px; }
.scr-keys { margin-top: auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; width: 100%; }
.scr-keys span { height: 22px; background: #e4e7ee; border-radius: 5px; }

/* dismissed screen */
.scr-check { width: 74px; height: 74px; border-radius: 50%; background: var(--success); color: #fff; font-size: 2.2rem; display: grid; place-items: center; margin: 26px 0 16px; box-shadow: 0 8px 24px rgba(47,177,112,.5); }
.scr-done { color: #fff; font-weight: 800; font-size: 1.15rem; }
.scr-sub { color: #9aa0ab; font-size: 0.8rem; text-align: center; margin-top: 6px; max-width: 22ch; }
.scr-streak { color: #ffb27a; font-size: 0.82rem; margin-top: auto; }
.scr-continue { width: 100%; background: #fff; color: var(--ink); text-align: center; font-weight: 700; font-size: 0.9rem; padding: 11px; border-radius: 12px; margin-top: 12px; }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti span { position: absolute; width: 7px; height: 11px; border-radius: 2px; opacity: .9; }
.confetti span:nth-child(1){ left:18%; top:14%; background:#F5761A; transform: rotate(20deg);}
.confetti span:nth-child(2){ left:70%; top:12%; background:#2FB170; transform: rotate(-15deg);}
.confetti span:nth-child(3){ left:40%; top:20%; background:#4285F4; transform: rotate(35deg);}
.confetti span:nth-child(4){ left:82%; top:26%; background:#FBBC04; transform: rotate(10deg);}
.confetti span:nth-child(5){ left:12%; top:30%; background:#EA4335; transform: rotate(-25deg);}
.confetti span:nth-child(6){ left:56%; top:9%;  background:#F5761A; transform: rotate(45deg);}
.confetti span:nth-child(7){ left:28%; top:40%; background:#2FB170; transform: rotate(-10deg);}
.confetti span:nth-child(8){ left:88%; top:44%; background:#4285F4; transform: rotate(28deg);}
.confetti span:nth-child(9){ left:8%;  top:52%; background:#FBBC04; transform: rotate(-30deg);}
.confetti span:nth-child(10){left:64%; top:34%; background:#EA4335; transform: rotate(15deg);}
.confetti span:nth-child(11){left:44%; top:48%; background:#F5761A; transform: rotate(-40deg);}
.confetti span:nth-child(12){left:76%; top:56%; background:#2FB170; transform: rotate(22deg);}

/* ===================== MARQUEE ===================== */
.marquee { padding-bottom: 60px; }
.marquee__viewport { margin-top: 34px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: 16px; width: max-content; padding: 6px 8px; }
.mcard {
  min-width: 300px; max-width: 300px; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 16px; box-shadow: var(--shadow-card);
  padding: 22px 24px; font-size: 1.05rem; font-weight: 600; display: flex; align-items: center;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: scroll 42s linear infinite; }
  .marquee__viewport:hover .marquee__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__viewport { overflow-x: auto; }
}
@keyframes scroll { to { transform: translateX(calc(-50% - 8px)); } }

/* ===================== HOW IT WORKS ===================== */
.how__grid { list-style: none; margin-top: 44px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 24px 20px; position: relative; }
.step__num { position: absolute; top: 16px; right: 16px; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 0.85rem; font-weight: 700; display: grid; place-items: center; }
.step__emoji { font-size: 2rem; display: block; margin-bottom: 12px; }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: 0.94rem; }

/* ===================== MISSIONS ===================== */
.missions { background: linear-gradient(180deg, var(--bg), #F4F6FA); }
.missions__grid { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mission { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 28px 22px; text-align: center; transition: transform .15s ease; }
.mission:hover { transform: translateY(-3px); }
.mission__emoji { font-size: 2.4rem; display: block; margin-bottom: 12px; }
.mission h3 { font-size: 1.15rem; margin-bottom: 8px; }
.mission p { color: var(--text-muted); font-size: 0.94rem; }

/* ===================== FAQ ===================== */
.faq__item { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.faq__item:first-of-type { margin-top: 40px; }
.faq__item summary { cursor: pointer; padding: 18px 22px; font-weight: 650; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__mark { width: 12px; height: 12px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); transition: transform .2s; flex: 0 0 auto; margin-top: -4px; }
.faq__item[open] .faq__mark { transform: rotate(-135deg); margin-top: 4px; }
.faq__a { padding: 0 22px 20px; color: var(--text-muted); }

/* ===================== FOOTER ===================== */
.footer { background: var(--ink); color: #fff; }
.footer__cta { text-align: center; padding-top: 80px; padding-bottom: 44px; }
.footer__cta h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.footer__cta p { color: #a7adb8; margin: 14px 0 26px; }
.footer__cta .hero__badges { justify-content: center; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: center; padding-bottom: 40px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 28px; }
.footer__links a { color: #c3c8d2; font-size: 0.92rem; transition: color .15s; }
.footer__links a:hover { color: #fff; }
.footer__copy { color: #6b7180; font-size: 0.92rem; margin-left: auto; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { max-width: none; margin-left: auto; margin-right: auto; }
  .hero__badges { justify-content: center; }
  .hero__art { margin-top: 20px; min-height: 0; }
  .hero__arrow { display: none; }
  .how__grid { grid-template-columns: repeat(3, 1fr); }
  .missions__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav__links { position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--hairline); padding: 8px 0; display: none; }
  .nav--open .nav__links { display: flex; }
  .nav__links a { padding: 14px 24px; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav--open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav--open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav--open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 620px) {
  .how__grid { grid-template-columns: 1fr; }
  .missions__grid { grid-template-columns: 1fr; }
  .hero__art { gap: 4px; min-height: 0; }
  .phone { width: 42vw; padding: 7px; border-radius: 32px; }
  .phone__screen { border-radius: 26px; }
  .phone__notch { width: 72px; height: 18px; top: 12px; }
  .footer__links { flex-direction: column; gap: 14px; }
  .footer__copy { margin-left: 0; }
}
