:root {
  /* Takeback palette — matches the iOS app (AppColors.swift) + clickstan.com */
  --bg: #0a0a0a;
  --bg-deep: #000000;
  --card: #141414;
  --elevated: #1c1c1c;
  --variant: #262626;
  --border: #2a2a2a;
  --border-strong: #3d3d3d;

  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.7);
  --text-3: rgba(255, 255, 255, 0.5);
  --text-4: rgba(255, 255, 255, 0.32);

  --accent: #00ea8f;
  --accent-2: #02c577;
  --accent-glow: rgba(0, 234, 143, 0.35);
  --accent-soft: rgba(0, 234, 143, 0.12);

  --maxw: 760px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
  padding: clamp(20px, 4vw, 40px);
  /* respect notches */
  padding-top: max(clamp(20px, 4vw, 40px), env(safe-area-inset-top));
  padding-bottom: max(clamp(20px, 4vw, 40px), env(safe-area-inset-bottom));
}

/* --- Ambient layers --- */

/* Soft neon-green glow bloom behind the hero */
.glow {
  position: fixed;
  top: 38%;
  left: 50%;
  width: min(900px, 120vw);
  height: min(900px, 120vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0, 234, 143, 0.08) 38%, transparent 68%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}

/* Fine film grain for a cinematic finish */
.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* subtle vignette so edges fall into black */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* --- Layout regions sit above ambient layers --- */
.nav, .hero, .footer { position: relative; z-index: 3; }

/* --- Nav --- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.wordmark .mark { display: block; border-radius: 8px; }

.nav-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.02);
}
.nav-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

/* --- Hero --- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 0;
}

.eyebrow {
  font-size: clamp(0.72rem, 1.6vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

.headline {
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.75rem, 9vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text);
}
.headline .accent {
  color: var(--accent);
  text-shadow: 0 0 36px var(--accent-glow);
}

.sub {
  font-size: clamp(1.02rem, 2.4vw, 1.22rem);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 30ch;
}

/* --- Status / coming soon --- */
.status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.badge .apple { color: var(--text); flex: none; margin-top: -2px; }

.status-note {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--text-4);
}

/* --- Footer --- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  font-size: 0.78rem;
  color: var(--text-4);
}
.footer a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer a:hover { color: var(--accent); }

/* --- Entrance animation --- */
.eyebrow, .headline, .hero-logo, .tagline, .sub, .status { opacity: 0; animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.eyebrow { animation-delay: 0.05s; }
.hero-logo { animation-delay: 0.14s; }
.headline { animation-delay: 0.16s; }
.tagline { animation-delay: 0.24s; }
.sub { animation-delay: 0.34s; }
/* status (the CTA) sits ABOVE the phone now, so it enters first */
.status { animation-delay: 0.4s; }

.nav, .footer { opacity: 0; animation: fadeIn 1s ease forwards; animation-delay: 0.6s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { to { opacity: 1; } }
@keyframes breathe {
  0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--accent); }
  50% { opacity: 0.45; box-shadow: 0 0 4px var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  *, .glow, .nav-tag .dot { animation: none !important; }
  .eyebrow, .headline, .hero-logo, .tagline, .sub, .status, .status-after, .nav, .footer { opacity: 1; }
}

@media (max-width: 520px) {
  .footer { flex-direction: column-reverse; gap: 6px; text-align: center; }
  .sub { max-width: 34ch; }
}

/* =====================================================================
   App preview — animated iPhone that loops between the lock screen
   and the negotiation chat. Styling mirrors the real Takeback app
   (TakebackShieldUI.swift + ChatInterventionScreen.swift).
   ===================================================================== */

.phone-stage {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  margin: 14px 0 6px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.52s;
}

/* ambient green bloom hugging the device */
.phone-stage::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(540px, 92vw);
  height: min(540px, 92vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0, 234, 143, 0.06) 46%, transparent 70%);
  filter: blur(48px);
  z-index: -1;
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}

.phone {
  --screen-w: clamp(238px, 66vw, 280px);
  position: relative;
  width: var(--screen-w);
  aspect-ratio: 9 / 19.5;
  padding: 9px;
  border-radius: 13.5% / 6.2%;
  background: linear-gradient(150deg, #303035 0%, #0c0c0e 26%, #131316 60%, #34343a 100%);
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.05),
    inset 0 1px 3px rgba(255, 255, 255, 0.08),
    inset 0 -1px 3px rgba(0, 0, 0, 0.6),
    0 42px 80px -30px rgba(0, 0, 0, 0.85),
    0 20px 60px -34px var(--accent-glow);
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10.5% / 4.9%;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

/* Dynamic Island */
.island {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 31%;
  height: 18px;
  background: #000;
  border-radius: 999px;
  z-index: 30;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.05);
}
.island::after {
  content: "";
  position: absolute;
  right: 13%;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #16302a, #000 72%);
}

/* Status bar */
.statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 33px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 17px 0 19px;
  color: #fff;
}
.sb-time { font-size: 11.5px; font-weight: 600; letter-spacing: 0.01em; }
.sb-icons { display: inline-flex; align-items: center; gap: 5px; }
.sb-ico { display: block; }

/* Home indicator */
.home-ind {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  z-index: 40;
  pointer-events: none;
}

/* Three stacked screens: iPhone home (base), the Takeback shield (slides up),
   then the chat (slides in from the right). All opaque, transform-only, so
   they never ghost over each other during a transition. */
.scr {
  position: absolute;
  inset: 0;
  padding-top: 33px;
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.scr-home { z-index: 1; }
.scr-shield {
  z-index: 2;
  background:
    radial-gradient(125% 78% at 50% 16%, rgba(0, 234, 143, 0.12), transparent 60%),
    linear-gradient(180deg, #0c0c0c, var(--bg));
  transform: translateY(101%);
  transition: transform 0.52s cubic-bezier(0.4, 0, 0.2, 1);
}
.phone.show-shield .scr-shield { transform: translateY(0); }
.scr-chat {
  z-index: 3;
  background: var(--bg);
  transform: translateX(101%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.phone.show-chat .scr-chat { transform: translateX(0); }

/* ---- Lock / shield screen ---- */
.scr-lock {
  align-items: center;
  text-align: center;
  padding: 33px 22px 26px;
  background:
    radial-gradient(125% 75% at 50% 14%, rgba(0, 234, 143, 0.10), transparent 58%),
    linear-gradient(180deg, #0c0c0c, var(--bg));
}
.lock-top { margin: auto 0; display: flex; flex-direction: column; align-items: center; }
.lock-icon {
  margin-bottom: 20px;
  filter: drop-shadow(0 0 20px var(--accent-glow));
}
.lock-glyph { width: 58px; height: 58px; display: block; }
.lock-title {
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: #fff;
}
.lock-sub {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 25ch;
}
.lock-sub b { color: #fff; font-weight: 700; }
.lock-actions { margin-top: auto; width: 100%; padding-bottom: 6px; }
.lock-cta {
  width: 100%;
  border: 0;
  cursor: default;
  font-family: inherit;
  font-weight: 700;
  font-size: 14.5px;
  color: #000;
  background: var(--accent);
  padding: 14px;
  border-radius: 15px;
  box-shadow: 0 10px 26px -10px var(--accent-glow);
  transition: transform 0.16s ease, filter 0.16s ease;
}
.lock-cta.pressed { transform: scale(0.96); filter: brightness(1.12); }
.lock-close {
  margin-top: 6px;
  width: 100%;
  border: 0;
  background: none;
  cursor: default;
  color: var(--text-3);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 11px;
}

/* ---- Chat screen ---- */
.scr-chat { background: var(--bg); }
.chat-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px 9px;
}
.chat-ava {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 0 14px -2px var(--accent-glow);
}
.chat-id { display: flex; flex-direction: column; line-height: 1.18; }
.chat-name { font-size: 13px; font-weight: 600; color: #fff; }
.chat-role { font-size: 9.5px; color: var(--text-3); }
.chat-x { margin-left: auto; color: var(--text-2); font-size: 13px; }
.chat-divider { height: 1px; background: var(--border); }

.chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 13px 12px;
  overflow: hidden;
}

.msg {
  display: none;
  width: max-content;
  max-width: 82%;
  font-size: 12.5px;
  line-height: 1.4;
  padding: 9px 12px;
  border-radius: 16px;
  opacity: 0;
  transform: translateY(9px) scale(0.96);
}
.msg.in { display: block; animation: bubbleIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.msg-coach {
  align-self: flex-start;
  background: var(--card);
  color: #fff;
  border-bottom-left-radius: 6px;
  transform-origin: left bottom;
}
.msg-user {
  align-self: flex-end;
  background: var(--accent);
  color: #000;
  font-weight: 500;
  border-bottom-right-radius: 6px;
  transform-origin: right bottom;
}

.typing {
  display: none;
  align-self: flex-start;
  gap: 5px;
  padding: 11px 13px;
  border-radius: 16px;
  border-bottom-left-radius: 6px;
  background: var(--card);
}
.typing.show { display: inline-flex; }
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-2);
  animation: typedot 1s infinite ease-in-out;
}
.typing i:nth-child(2) { animation-delay: 0.16s; }
.typing i:nth-child(3) { animation-delay: 0.32s; }

/* granted-time card */
.grant {
  display: none;
  align-self: stretch;
  margin-top: 2px;
  padding: 13px;
  border-radius: 16px;
  background: var(--elevated);
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(9px) scale(0.97);
}
.grant.in { display: block; animation: bubbleIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.grant-row { display: flex; align-items: center; gap: 10px; }
.grant-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  flex: none;
}
.grant-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grant-meta { display: flex; flex-direction: column; line-height: 1.25; }
.grant-app { font-size: 13.5px; font-weight: 600; color: #fff; }
.grant-min { font-size: 12px; font-weight: 600; color: var(--accent); }
.grant-start {
  display: block;
  margin-top: 11px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #000;
  background: var(--accent);
  padding: 10px;
  border-radius: 999px;
  box-shadow: 0 8px 20px -8px var(--accent-glow);
}

/* input bar */
.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 16px;
}
.chat-field {
  flex: 1;
  background: var(--card);
  color: var(--text-3);
  font-size: 12px;
  padding: 9px 13px;
  border-radius: 14px;
}
.chat-send {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--variant);
  color: var(--text-4);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  flex: none;
}

@keyframes bubbleIn { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes typedot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Reduced motion: freeze the phone on the finished conversation */
@media (prefers-reduced-motion: reduce) {
  .phone-stage { opacity: 1; }
  .phone-stage::before { animation: none; }
  .scr { transition: none; }
  .scr-chat .msg, .scr-chat .grant { display: block; opacity: 1; transform: none; }
  .scr-chat .typing { display: none; }
  .scr-chat .grant { display: block; }
}

@media (max-width: 520px) {
  .phone { --screen-w: clamp(228px, 70vw, 266px); }
}

/* =====================================================================
   Legal pages (privacy.html, terms.html) — minimal, readable article
   that reuses the landing tokens, grain, and glow.
   ===================================================================== */

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-3);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-back:hover { color: var(--accent); border-color: var(--border-strong); }

.legal {
  position: relative;
  z-index: 3;
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 0 56px;
  text-align: left;
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.08s;
}
.legal h1 {
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
}
.legal .updated {
  margin-top: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--text-4);
}
.legal .lead {
  margin-top: 20px;
  font-size: clamp(1.04rem, 2.2vw, 1.16rem);
  line-height: 1.6;
  color: var(--text);
}
.legal h2 {
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin-top: 38px;
  margin-bottom: 4px;
}
.legal p,
.legal li {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--text-2);
}
.legal p { margin-top: 12px; }
.legal ul { margin-top: 12px; padding-left: 1.2em; }
.legal li { margin-top: 7px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--accent); text-decoration: none; }
.legal a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .legal { opacity: 1; }
}

/* =====================================================================
   Time Guard hero mascot + CTA buttons (added 2026-06-08)
   ===================================================================== */

.hero-coach {
  position: relative;
  z-index: 3;
  margin-bottom: -2px;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.02s;
}
.hero-coach img {
  display: block;
  width: clamp(98px, 21vw, 134px);
  height: auto;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.55))
          drop-shadow(0 0 34px var(--accent-glow));
  animation: float 5.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* CTA buttons (TestFlight + Coming soon) */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.18s ease, filter 0.18s ease,
              border-color 0.18s ease, color 0.18s ease;
}
.btn-primary {
  color: #04130d;
  background: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 12px 30px -12px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-primary .btn-ico { color: #04130d; flex: none; }
.btn-ghost {
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: default;
}
.btn-ghost .apple { color: var(--text-3); flex: none; margin-top: -2px; }

/* Time Guard inside the chat avatar */
.chat-ava {
  background: radial-gradient(circle at 50% 26%, rgba(0, 234, 143, 0.22), rgba(0, 0, 0, 0) 70%), #0e1714;
  overflow: hidden;
}
.chat-ava img {
  width: 118%;
  height: 118%;
  object-fit: cover;
  object-position: 50% 16%;
}

/* footer link group */
.footer-links { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 520px) {
  .footer-links { justify-content: center; gap: 12px; }
  .btn { font-size: 0.9rem; padding: 12px 18px; }
  /* Tighten the hero so wordmark + tagline + sub + download button all
     land above the fold, with the phone demo peeking from the bottom. */
  .hero { gap: 18px; padding: 28px 0 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-coach { opacity: 1; }
  .hero-coach img { animation: none; }
}

/* Support page header */
.support-hero { display: flex; align-items: center; gap: 16px; }
.support-coach {
  width: clamp(64px, 16vw, 92px);
  height: auto;
  flex: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 22px var(--accent-glow));
}
.support-hero .updated { margin-top: 6px; }

/* =====================================================================
   Real brand assets: nav app icon, hero wordmark, mobile-first CTA + QR
   (added 2026-06-08)
   ===================================================================== */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* App icon in the nav */
.nav-icon {
  display: block;
  width: 30px; height: 30px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 4px 14px -5px rgba(0, 0, 0, 0.7);
}

/* Real TakeBack wordmark as the hero logo */
.hero-logo { margin: 2px 0 0; line-height: 0; }
.hero-logo img {
  display: block;
  width: clamp(200px, 54vw, 290px);
  height: auto;
  filter: drop-shadow(0 0 30px rgba(0, 234, 143, 0.20));
}

.tagline {
  font-size: clamp(1.4rem, 4.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.tagline .accent { color: var(--accent); text-shadow: 0 0 28px var(--accent-glow); }

/* Mobile-first CTA: tap buttons on phones, scan-QR only on larger screens */
.cta-mobile { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-desktop { display: none; }

/* The .btn display rules would beat the UA's [hidden] style, so force it.
   The go-live swap relies on this to hide TestFlight CTAs / show App Store
   ones. */
[hidden] { display: none !important; }

/* Below the phone demo: "Coming soon to the App Store" pill + footnote */
.status-after {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.62s;
}

/* "No invite code" toast: appears 1s after tapping the TestFlight button,
   so it's waiting on screen if TestFlight bounces the user to a redeem
   prompt and they come back here. */
.tf-toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 auto;
  max-width: 420px;
  padding: 14px 14px 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: var(--elevated);
  box-shadow: 0 18px 48px -18px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 234, 143, 0.12);
  text-align: left;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.tf-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.tf-toast-txt { display: flex; flex-direction: column; gap: 3px; }
.tf-toast-txt strong { font-size: 0.92rem; font-weight: 700; color: var(--accent); }
.tf-toast-txt span { font-size: 0.86rem; line-height: 1.5; color: var(--text-2); }
.tf-toast-x {
  flex: none;
  margin-left: auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--variant);
  color: var(--text-2);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 760px) {
  .cta-mobile { display: none; }
  .cta-desktop { display: flex; flex-direction: column; align-items: center; gap: 14px; }
}

/* Scan-to-install QR card (desktop) */
.qr-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px 16px 16px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.qr-imgwrap {
  background: #fff;
  padding: 9px;
  border-radius: 13px;
  line-height: 0;
  box-shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.75);
}
.qr-img { display: block; width: 118px; height: 118px; }
.qr-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
  max-width: 220px;
}
.qr-appicon {
  width: 40px; height: 40px;
  border-radius: 10px;
  margin-bottom: 5px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.qr-side strong { font-size: 1.04rem; font-weight: 700; color: var(--text); }
.qr-side span { font-size: 0.86rem; line-height: 1.45; color: var(--text-3); }

/* =====================================================================
   Phone demo screens: iPhone home + Takeback shield (added 2026-06-08)
   ===================================================================== */

/* iPhone home screen */
.scr-home {
  padding: 40px 20px 14px;
  background:
    radial-gradient(120% 58% at 50% 0%, rgba(0, 234, 143, 0.10), transparent 56%),
    linear-gradient(180deg, #0e1513 0%, #0a0a0a 62%);
}
.hs-clock { text-align: center; color: #fff; margin: 4px 0 10px; }
.hs-time { display: block; font-size: 33px; font-weight: 600; line-height: 1; letter-spacing: 0.01em; }
.hs-date { display: block; font-size: 11px; color: var(--text-3); margin-top: 4px; }
.hs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px 8px;
}
.hs-app {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.hs-app img, .hs-tile {
  width: 100%;
  max-width: 47px;
  aspect-ratio: 1;
  border-radius: 11px;
  display: block;
  box-shadow: 0 4px 12px -5px rgba(0, 0, 0, 0.7);
}
.hs-tile { background: linear-gradient(160deg, var(--g1), var(--g2)); }
.hs-app > span { font-size: 9px; color: rgba(255, 255, 255, 0.85); letter-spacing: 0.01em; }
.hs-dock {
  margin-top: auto;
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 11px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hs-dock .hs-tile { width: 44px; max-width: 44px; }

/* finger tap on TikTok */
.hs-tiktok img { transition: transform 0.18s cubic-bezier(0.3, 0, 0.3, 1); }
.hs-tiktok.tap img { transform: scale(0.82); }
.hs-touch {
  position: absolute;
  top: 23px;
  left: 50%;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.42) 40%, rgba(255, 255, 255, 0) 72%);
  opacity: 0;
  z-index: 4;
  pointer-events: none;
}
.hs-tiktok.tap .hs-touch { animation: tapPulse 0.7s ease-out; }
@keyframes tapPulse {
  0% { opacity: 0; transform: scale(0.4); }
  25% { opacity: 0.95; transform: scale(0.78); }
  100% { opacity: 0; transform: scale(1.45); }
}

/* Takeback shield screen */
.scr-shield {
  align-items: center;
  text-align: center;
  padding: 33px 24px 26px;
}
.shield-top { margin: auto 0; display: flex; flex-direction: column; align-items: center; }
.shield-mascot img {
  width: 118px;
  height: auto;
  display: block;
  margin-bottom: 16px;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 26px var(--accent-glow));
}
.shield-title {
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: #fff;
}
.shield-sub {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 26ch;
}
.shield-sub b { color: #fff; font-weight: 700; }
.shield-actions { margin-top: auto; width: 100%; padding-bottom: 6px; }
.shield-cta {
  width: 100%;
  border: 0;
  cursor: default;
  font-family: inherit;
  font-weight: 700;
  font-size: 14.5px;
  color: #04130d;
  background: var(--accent);
  padding: 14px;
  border-radius: 15px;
  box-shadow: 0 10px 26px -10px var(--accent-glow);
  transition: transform 0.16s ease, filter 0.16s ease;
}
.shield-cta.pressed { transform: scale(0.96); filter: brightness(1.12); }
.shield-close {
  margin-top: 6px;
  width: 100%;
  border: 0;
  background: none;
  cursor: default;
  color: var(--text-3);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 11px;
}
