/* =====================================================================
   trytakeback.com landing, Oct 2026: the App Store page's look.
   Neon green canvas, near-black Geist titles with black highlight pills,
   Sarge as a white-outlined sticker, the Hardcore voice screen as a dark
   card (App Store screenshot #2). One job: send people to the App Store.
   Only index.html loads this file; the other pages keep styles.css.
   ===================================================================== */
:root {
  --ink: #0a0a0a;
  --ink-2: rgba(10, 10, 10, 0.72);
  --ink-3: rgba(10, 10, 10, 0.55);
  --accent: #00ea8f;
  --accent-glow: rgba(0, 234, 143, 0.35);
  --accent-soft: rgba(0, 234, 143, 0.12);
  --elevated: #1c1c1c;
  --border-strong: #3d3d3d;
  --text: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  /* The App Store screenshots' canvas: #1bf09d at the top into brand green. */
  background: linear-gradient(180deg, #1bf09d 0%, #02ea90 42%, #02e68d 100%);
  background-color: #02ea90;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

.lp {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Titles: the App Store screenshots' type. */
.lp-title {
  font-weight: 800;
  font-size: clamp(34px, 10vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
.lp-title2 {
  font-weight: 800;
  font-size: clamp(28px, 8.4vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.pill {
  display: inline-block;
  padding: 0.02em 0.2em 0.06em;
  margin: 0.04em 0;
  border-radius: 0.22em;
  background: var(--ink);
  color: var(--accent);
  line-height: 1;
}

/* Sarge, arms crossed, as a white-outlined sticker (like screenshot #1). */
.lp-sarge {
  width: min(66vw, 268px);
  margin: 18px auto 4px;
}
.lp-sarge img {
  width: 100%;
  height: auto;
  filter:
    drop-shadow(5px 0 0 #fff) drop-shadow(-5px 0 0 #fff)
    drop-shadow(0 5px 0 #fff) drop-shadow(0 -5px 0 #fff)
    drop-shadow(0 18px 22px rgba(0, 60, 35, 0.28));
}

/* The one button. Black like the highlight pills, says exactly where it goes
   so the iOS "Open in App Store?" prompt is no surprise. */
.lp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 330px;
  min-height: 60px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 14px 30px -12px rgba(0, 40, 22, 0.55);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}
.lp-cta:active { transform: scale(0.97); }
@media (hover: hover) {
  .lp-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(0, 40, 22, 0.6); }
}
.lp-cta .apple { flex: none; margin-top: -3px; }

.lp-note {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
}

/* Screenshot #2: the Hardcore voice screen as a dark card. */
.lp-voice {
  width: 100%;
  margin-top: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lp-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 22px auto 26px;
  border-radius: 30px;
  overflow: hidden;
  background: #1c1f1e;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 30px 60px -22px rgba(0, 40, 22, 0.55);
}
.lp-card img { width: 100%; height: auto; }

/* Sarge is talking: a soft pulse behind the screen, nothing more. */
.lp-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 56%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: radial-gradient(circle, rgba(0, 234, 143, 0.22) 0%, rgba(0, 234, 143, 0) 65%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: lp-talk 1.6s ease-in-out infinite;
}
@keyframes lp-talk {
  0%, 100% { opacity: 0.35; transform: translate(-50%, -50%) scale(0.86); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}

.footer {
  width: 100%;
  max-width: 480px;
  margin: 56px auto 0;
  padding: 22px 20px max(26px, env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  font-size: 13px;
  color: var(--ink-3);
}
.footer-links { display: inline-flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

@media (min-width: 760px) {
  .lp { padding-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-card::after { animation: none; opacity: 0.6; }
  .lp-cta { transition: none; }
}

/* =====================================================================
   In-app browser "open in browser" popup (from styles.css, unchanged).
   Only webviews that can't open the App Store get it (TikTok and others);
   Instagram and Facebook open the store link themselves, with iOS's own
   "Open in App Store?" prompt.
   ===================================================================== */
.ib-popup {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.24s ease;
}
.ib-popup[hidden] { display: none; }
.ib-popup.show { opacity: 1; }
.ib-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 11px;
  width: 100%;
  max-width: 332px;
  padding: 32px 28px 30px;
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  background: var(--elevated);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.95), 0 0 0 1px var(--accent-soft);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.ib-popup.show .ib-card { transform: translateY(0) scale(1); }
.ib-card.nudge { animation: ib-shake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes ib-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}
.ib-arrow {
  position: fixed;
  top: 8px;
  right: 10px;
  width: 100px;
  height: 100px;
  color: var(--accent);
  pointer-events: none;
}
.ib-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px var(--accent-glow)) drop-shadow(0 0 26px rgba(0, 234, 143, 0.4));
  animation: ib-point 1.1s ease-in-out 1.7s infinite;
}
.ib-arrow.fly { animation: ib-fly 1.5s ease 0.2s both; }
@keyframes ib-fly {
  0% {
    opacity: 0;
    transform: translate(calc(-50vw + 50% + 10px), calc(50vh - 178px)) scale(0.5);
    animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  18%, 40% {
    opacity: 1;
    transform: translate(calc(-50vw + 50% + 10px), calc(50vh - 178px)) scale(1.3);
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
  100% { opacity: 1; transform: translate(0, 0) scale(1); }
}
@keyframes ib-point {
  0%, 100% { transform: translate(0, 0); }
  55% { transform: translate(7px, -13px); }
}
.ib-icon {
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 30px -10px rgba(0, 0, 0, 0.8);
  margin-bottom: 4px;
}
.ib-title {
  max-width: 17em;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}
@media (prefers-reduced-motion: reduce) {
  .ib-arrow.fly, .ib-arrow svg, .ib-card.nudge { animation: none; }
  .ib-popup, .ib-card { transition: none; }
}
