/*
 * Googie Gogo — marketing site
 *
 * The palette, type pairing and shapes are lifted directly from the app's design
 * system (GoogieGogo/DesignSystem/GogieTheme.swift), so the site and the product
 * read as one thing. Every token below has a counterpart in the app.
 */

/* ---------------------------------------------------------------- tokens */

:root {
  /* Surfaces */
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-muted: #f0f2f8;
  --surface-tint: #eef1ff;
  --separator: #e6e9f2;

  /* Text */
  --ink: #0b1033;
  --ink-2: #5a6180;
  --ink-3: #8b92ad;

  /* Brand */
  --brand: #2b6bff;
  --brand-deep: #6c3bff;
  --brand-soft: #e8edff;

  /* Semantics — one per gesture, matching the app */
  --keep: #16a34a;
  --keep-soft: #e8f8ee;
  --remove: #f43f5e;
  --remove-soft: #ffebef;
  --favourite: #7c3aed;
  --favourite-soft: #f1ebff;
  --later: #f59e0b;
  --later-soft: #fff4e0;
  --gold: #ffb020;
  --streak: #fb6a15;

  --gradient: linear-gradient(120deg, var(--brand), var(--brand-deep));

  /* Shape */
  --radius: 24px;
  --radius-sm: 18px;
  --gutter: clamp(20px, 5vw, 48px);
  --max: 1160px;

  --shadow-sm: 0 6px 18px rgba(11, 16, 51, 0.06);
  --shadow-md: 0 18px 44px rgba(11, 16, 51, 0.10);
  --shadow-brand: 0 16px 40px rgba(43, 107, 255, 0.28);

  --serif: "New York", ui-serif, Georgia, "Times New Roman", serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Nunito, "Trebuchet MS", system-ui, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0c16;
    --surface: #161a2b;
    --surface-muted: #1e2234;
    --surface-tint: #1b2040;
    --separator: #272c41;
    --ink: #f3f5fc;
    --ink-2: #a6adc8;
    --ink-3: #767d99;
    --brand: #5a8bff;
    --brand-deep: #8b63ff;
    --brand-soft: #1e2547;
    --keep-soft: #16301f;
    --remove-soft: #351520;
    --favourite-soft: #241a3d;
    --later-soft: #35270f;
    --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 18px 44px rgba(0, 0, 0, 0.45);
  }
}

/* ---------------------------------------------------------------- base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--rounded);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(-140%);
  background: var(--surface);
  padding: 12px 18px;
  border-radius: 0 0 12px 0;
  z-index: 100;
}
.skip:focus { transform: none; }

/* ---------------------------------------------------------------- type */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

.grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--rounded);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 12px;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-2);
  margin: 18px 0 0;
  max-width: 56ch;
}

.section-intro { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 56px); }

/* ---------------------------------------------------------------- header */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
header.scrolled { border-bottom-color: var(--separator); }

.bar {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.lockup img { width: 34px; height: 34px; }
.lockup:hover { text-decoration: none; }

nav.links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 0.95rem;
  font-weight: 600;
}
nav.links a { color: var(--ink-2); }
nav.links a:hover { color: var(--ink); text-decoration: none; }

@media (max-width: 860px) {
  nav.links { display: none; }
  .bar .btn { margin-left: auto; }
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--rounded);
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-secondary {
  background: var(--surface);
  color: var(--brand);
  border-color: var(--separator);
  box-shadow: var(--shadow-sm);
}
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 0.92rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.note {
  font-size: 0.86rem;
  color: var(--ink-3);
  margin-top: 16px;
}

/* ---------------------------------------------------------------- hero */

.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}

/* A single centred column with the video as its centrepiece. */
.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-stack .lede {
  max-width: 60ch;
  margin-inline: auto;
}

/* The hero video, big and central. The glow sits behind it, sized to the 16:9 frame. */
.hero-video-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: clamp(28px, 4vw, 44px) auto 0;
}
.hero-video-wrap .glow {
  position: absolute;
  inset: -6% -4%;
  border-radius: 32px;
  background: radial-gradient(circle, rgba(108, 59, 255, 0.28), transparent 70%);
  filter: blur(34px);
  z-index: 0;
}
.hero-video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: clamp(16px, 2.4vw, 24px);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--separator);
}
/* Hero rhythm: even, roomy separation between the video, the buttons and the pills. */
.hero-stack .actions {
  margin-top: clamp(30px, 4vw, 44px);
  justify-content: center;
}
.hero-stack .badges {
  margin-top: clamp(20px, 2.6vw, 30px);
  gap: 12px;
  justify-content: center;
  max-width: none;
}

.hero-video-note {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.86rem;
  color: var(--ink-3);
}

50% { transform: translateY(-16px) rotate(0.6deg); }
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  max-width: 56ch;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--separator);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* ---------------------------------------------------------------- sections */

section {
  padding: clamp(56px, 8vw, 104px) 0;
  /* Clears the sticky header when an anchor link lands on a section. */
  scroll-margin-top: 88px;
}
section.tinted { background: var(--surface-tint); }

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 24px);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 940px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 30px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 8px; font-family: var(--rounded); font-weight: 800; }
.card p { color: var(--ink-2); margin: 0; font-size: 0.97rem; }

.tile {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
}

/* ---------------------------------------------------------------- gestures */

.gesture {
  text-align: center;
  padding: 26px 18px;
}
.gesture img { width: 108px; margin: 0 auto 14px; }
.gesture .dir {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.gesture .act {
  font-family: var(--rounded);
  font-size: 1.3rem;
  font-weight: 800;
  margin: 2px 0 6px;
}
.gesture p { font-size: 0.92rem; }

.g-keep .act { color: var(--keep); }
.g-remove .act { color: var(--remove); }
.g-fav .act { color: var(--favourite); }
.g-later .act { color: var(--later); }

/* ---------------------------------------------------------------- showcase */

.showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}
.showcase > figure { margin: 0; }

/* Two phones beside the reward copy, capped so they read as supporting evidence rather
   than a second showcase. */
.reward-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 46px);
  max-width: 560px;
  margin: clamp(28px, 4vw, 44px) auto clamp(34px, 5vw, 54px);
}
.reward-shots > figure { margin: 0; }

/* A real device frame, not a floating rectangle. These are genuine captures of the app,
   and the bezel is what tells a visitor that at a glance — an unframed screenshot reads
   as a design comp, which is exactly what these replaced. */
.phone {
  position: relative;
  border-radius: 38px;
  padding: 7px;
  background: linear-gradient(160deg, #2c3350, #171b2c 55%, #0d101c);
  box-shadow:
    var(--shadow-md),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 31px;
  /* The capture already has the simulator's own rounded corners; clipping again keeps
     the seam invisible at any width. */
  background: var(--surface);
}
/* The dynamic island. Drawn rather than captured, because the simulator renders it as a
   black shape inside the screenshot and the bezel needs to sit on top of it. */
.phone::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 4.4%;
  max-height: 26px;
  border-radius: 99px;
  background: #0b0d16;
}
.shot-label {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-2);
  margin-top: 16px;
}
.shot-note {
  text-align: center;
  margin-top: clamp(26px, 4vw, 40px);
  font-size: 0.88rem;
  color: var(--ink-3);
}

/* On a phone, four full-height screenshots stacked would be several thousand pixels
   of scrolling, so they become a swipeable strip instead. */
@media (max-width: 720px) {
  .showcase {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* let the strip bleed to the screen edges, which reads as "there is more" */
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .showcase > figure {
    flex: 0 0 min(72%, 280px);
    scroll-snap-align: center;
  }
}

/* ---------------------------------------------------------------- split */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split.reverse .split-art { order: -1; }
@media (max-width: 940px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-art { order: 0; }
}
.split-art img { width: min(100%, 400px); margin-inline: auto; }

.ticks { list-style: none; padding: 0; margin: 26px 0 0; }
.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 9px 0;
  color: var(--ink-2);
}
.ticks li::before {
  content: "";
  flex: 0 0 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--keep-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2316a34a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------------------------------------------------------------- badges */

.badge-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 18px;
}
.badge-item { text-align: center; }
.badge-item img { width: 86px; margin: 0 auto 8px; }
.badge-item span {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.plan.featured {
  border-color: var(--brand);
  border-width: 2px;
  box-shadow: var(--shadow-md);
}
.plan .tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan .name { font-weight: 800; font-size: 1.05rem; }
.plan .price {
  font-family: var(--rounded);
  font-size: 2.9rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 8px 0 2px;
}
.plan.featured .price { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan .per { color: var(--ink-3); font-size: 0.9rem; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; flex: 1; }
.plan li { padding: 6px 0; color: var(--ink-2); font-size: 0.94rem; }
.plan .btn { width: 100%; }

.free-note {
  margin-top: 26px;
  text-align: center;
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* ---------------------------------------------------------------- faq */

details {
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 12px;
}
details[open] { box-shadow: var(--shadow-sm); }
summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brand);
  line-height: 1;
}
details[open] summary::after { content: "\2212"; }
details p { color: var(--ink-2); margin: 12px 0 0; font-size: 0.96rem; }

/* ---------------------------------------------------------------- cta */

.cta {
  background: var(--gradient);
  border-radius: clamp(24px, 4vw, 40px);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.9); max-width: 52ch; margin: 18px auto 0; }
.cta .btn-secondary { background: #fff; color: var(--brand); border-color: transparent; }
.cta .actions { justify-content: center; }
.cta img { width: 150px; margin: 0 auto 20px; }

/* ---------------------------------------------------------------- footer */

footer {
  padding: clamp(40px, 6vw, 72px) 0 40px;
  border-top: 1px solid var(--separator);
  margin-top: clamp(56px, 8vw, 104px);
}
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 0.92rem; font-weight: 600; }
.foot-links a { color: var(--ink-2); }
.small { font-size: 0.85rem; color: var(--ink-3); margin-top: 24px; }

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

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

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