/* =====================================================================
   trytakeback.com landing, Nov 2026: the App Store page's look (set K).
   Pastel mint canvas, deep green Geist titles with deep green highlight
   pills, Sarge as a white-outlined sticker and the App Store screenshot
   gallery. Only index.html loads this file; the other pages keep styles.css.
   ===================================================================== */
:root {
  /* Set K's title ink and highlight pill. */
  --ink: #14241d;
  --ink-2: rgba(20, 36, 29, 0.86);
  --ink-3: rgba(20, 36, 29, 0.72);
  --pill-bg: #123327;
  --pill-ink: #62f2b6;
  --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 (set K, pastel mint): soft mint at the
     top, deeper green toward the foot, over the whole page. */
  background: linear-gradient(180deg, #b2e6cd 0%, #7cd0ab 35%, #46ac84 100%);
  background-color: #7cd0ab;
  -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-intro {
  max-width: 31ch;
  margin: 14px auto 0;
  font-size: clamp(17px, 4.4vw, 20px);
  line-height: 1.4;
}
.pill {
  display: inline-block;
  padding: 0.02em 0.2em 0.06em;
  margin: 0.04em 0;
  border-radius: 0.22em;
  background: var(--pill-bg);
  color: var(--pill-ink);
  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. Deep green 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(--pill-bg);
  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);
}

/* A peek at the next screenshot keeps the row discoverable on touch screens. */
.lp-gallery {
  width: min(calc(100vw - 40px), 840px);
  margin-top: 54px;
}
.gallery-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
  text-align: left;
}
.gallery-heading h2 {
  font-size: clamp(25px, 5vw, 34px);
  line-height: 1.1;
  letter-spacing: -.04em;
}
.gallery-controls:not([hidden]) { display: inline-flex; align-items: center; gap: 7px; }
.gallery-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 23px;
  cursor: pointer;
}
.gallery-controls button[aria-disabled="true"] { opacity: .35; cursor: default; }
.gallery-range {
  min-width: 5.4ch;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.gallery-viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--ink-2) transparent;
  scrollbar-width: thin;
}
.gallery-viewport:focus-visible, .gallery-controls button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.gallery-viewport ol {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(82%, 256px);
  gap: 12px;
  list-style: none;
  padding-bottom: 8px;
}
.gallery-viewport li {
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid rgba(20, 36, 29, .25);
  border-radius: 15px;
}
.gallery-viewport img { width: 100%; height: auto; }
.lp-gallery .lp-cta { margin-top: 22px; }
@media (prefers-reduced-motion: no-preference) {
  .gallery-viewport { scroll-behavior: smooth; }
}

.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;
  /* One step darker than the rest of the muted text: the footer sits on the
     gradient's deepest green. */
  color: var(--ink-2);
}
.footer-links { display: inline-flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

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

@media (prefers-reduced-motion: reduce) {
  .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; }
}

.lp-guides {
  width: 100%;
  margin-top: 62px;
  border-top: 1px solid rgba(20, 36, 29, .24);
  padding-top: 26px;
  text-align: left;
}
.lp-guides h2 { font-size: 25px; letter-spacing: -.035em; }
.lp-guides p { margin: 12px 0 18px; line-height: 1.55; }
.lp-guides a { color: var(--ink); font-weight: 700; text-underline-offset: .2em; }
