/* ============================================================
   LogOut — landing site design system
   Shared by index.html, how-it-works.html, why.html
   Palette matches the app: deep green-black, cream ink,
   brand greens, ember orange accent.
   ============================================================ */

:root {
  --bg:         #0a0e0b;
  --bg-raise:   #0e1410;
  --card:       #121a14;
  --card-soft:  rgba(127, 191, 127, 0.045);
  --line:       #1f2b22;
  --line-soft:  rgba(127, 191, 127, 0.14);
  --ink:        #f4f1e8;
  --muted:      rgba(244, 241, 232, 0.62);
  --faint:      rgba(244, 241, 232, 0.38);
  --green:      #2D8050;
  --green-deep: #226340;
  --green-lite: #7fbf7f;
  --orange:     #ff8c2a;
  --radius:     18px;
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(45, 128, 80, 0.45); color: #fff; }

img { max-width: 100%; }

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

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(10, 14, 11, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease, background 300ms ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 14, 11, 0.85);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.nav-brand img.mark { width: 28px; height: 28px; border-radius: 7px; display: block; }
.nav-brand img.word { height: 16px; width: auto; display: block; }
.nav-link {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--green-lite); }
.nav-cta {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  box-shadow: 0 2px 12px rgba(45, 128, 80, 0.35);
  transition: transform 160ms var(--ease-out), box-shadow 160ms ease;
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(45, 128, 80, 0.5); }
@media (max-width: 640px) {
  .nav-link { display: none; }
}

/* ---------- Buttons ---------- */

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px 14px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green) 100%);
  color: #fff;
  text-decoration: none;
  text-align: left;
  box-shadow: 0 6px 28px rgba(45, 128, 80, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 180ms var(--ease-out), box-shadow 180ms ease;
}
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(45, 128, 80, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.btn-store:active { transform: translateY(0); }
.btn-store svg { flex: 0 0 auto; }
.btn-store .lines { display: flex; flex-direction: column; line-height: 1.15; }
.btn-store .small { font-size: 11px; font-weight: 600; opacity: 0.85; letter-spacing: 0.02em; }
.btn-store .big { font-size: 17px; font-weight: 800; letter-spacing: -0.3px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  text-decoration: none;
  background: var(--card-soft);
  transition: transform 180ms var(--ease-out), border-color 180ms ease, background 180ms ease;
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(127, 191, 127, 0.35); background: rgba(127, 191, 127, 0.08); }

.cta-note { font-size: 12.5px; color: var(--faint); margin: 16px 0 0; }

/* ---------- Type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-lite);
  background: rgba(127, 191, 127, 0.08);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-lite);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.75); }
}

h1.display {
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 22px;
}
.accent { color: var(--green-lite); }
.accent-warm { color: var(--orange); }

.section-title {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 14px;
}
.section-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 14px;
}
.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin: 0;
  line-height: 1.6;
}

.lede {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--muted);
  line-height: 1.65;
  max-width: 520px;
  margin: 0 0 36px;
}

/* ---------- Sections ---------- */

section { padding: 96px 0; position: relative; }
@media (max-width: 700px) { section { padding: 72px 0; } }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .section-sub { margin: 0 auto; }

/* ---------- Cards ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  transition: transform 240ms var(--ease-out), border-color 240ms ease, box-shadow 240ms ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(127, 191, 127, 0.3);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }

.icon-chip {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(127, 191, 127, 0.08);
  border: 1px solid var(--line-soft);
  margin-bottom: 18px;
}
.icon-chip.warm { background: rgba(255, 140, 42, 0.08); border-color: rgba(255, 140, 42, 0.2); }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Ambient glow ---------- */

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.glow.green {
  background: radial-gradient(circle, rgba(45, 128, 80, 0.35), transparent 70%);
  animation: drift-a 16s ease-in-out infinite alternate;
}
.glow.ember {
  background: radial-gradient(circle, rgba(255, 140, 42, 0.16), transparent 70%);
  animation: drift-b 20s ease-in-out infinite alternate;
}
@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(50px, -34px) scale(1.15); }
}
@keyframes drift-b {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-44px, 30px) scale(1.1); }
}

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--line);
  padding: 48px 24px 56px;
  text-align: center;
}
footer.site .foot-brand {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
}
footer.site .foot-brand img.mark { width: 30px; height: 30px; border-radius: 8px; }
footer.site .foot-brand img.word { height: 15px; width: auto; }
footer.site nav { margin-bottom: 18px; }
footer.site nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  margin: 0 12px;
  transition: color 160ms ease;
}
footer.site nav a:hover { color: var(--green-lite); }
footer.site .fine { font-size: 12px; color: var(--faint); margin: 0; }

/* ---------- Top gradient hairline ---------- */

.top-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--green-deep) 0%, var(--green) 50%, var(--orange) 100%);
  position: relative;
  z-index: 60;
}
