/* Unstack site
   Colours come from the app icon. Dark by default, light when the system is in light mode. */

:root {
  /* Colours sampled from the app's own header art, so the page matches the icon exactly. */
  --g-indigo: #5657e7;
  --g-violet: #9759cd;
  --g-pink: #d06fae;
  --g-coral: #e66776;
  --g-orange: #f48d4d;
  --page:
    radial-gradient(55% 60% at 50% 45%, rgba(255, 255, 255, 0.1), transparent 70%),
    linear-gradient(115deg, var(--g-indigo) 0%, var(--g-violet) 26%, var(--g-pink) 50%, var(--g-coral) 74%, var(--g-orange) 100%);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.84);
  --line: rgba(255, 255, 255, 0.32);
  --panel: rgba(255, 255, 255, 0.16);
  --check: #b2428f;
  --phone-shadow: 0 40px 90px rgba(50, 20, 90, 0.4);
  --display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--g-pink);
  color: var(--text);
  font: 17px/1.6 var(--body);
}

/* The gradient stays put behind the page, so every screen shows the full sweep from the icon,
   the way the app's header art does. A fixed layer is used because iOS Safari ignores
   background-attachment: fixed. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--page);
}

a { color: inherit; }

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

:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; margin: 0; }

h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.04; }

/* Top bar (shared with the privacy page) */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  text-decoration: none;
}

.brand img { width: 34px; height: 34px; border-radius: 8px; }

.bar nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); }

.bar nav a:hover { color: var(--text); }

/* App Store button */

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: 12px 26px 12px 20px;
  border-radius: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(30, 10, 60, 0.35); }

.store svg { width: 28px; height: 28px; fill: currentColor; }

.store span { display: flex; flex-direction: column; line-height: 1.1; }

.store small { font-size: 12px; }

.store strong { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }

/* Hero: the three screens are dealt like a hand of cards */

.hero {
  padding: 40px 0 120px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 40px;
}

.hero h1 {
  font-size: clamp(56px, 8.6vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
}

.lede {
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 32ch;
  margin: 0 0 34px;
}

.platforms { margin: 16px 0 0; font-size: 15px; color: var(--muted); }

.hero-phone {
  justify-self: center;
  width: min(340px, 78%);
  rotate: 4deg;
}

.hero-phone img {
  border-radius: 46px;
  border: 9px solid #0a0c0d;
  outline: 1.5px solid #4a5358;
  box-shadow: var(--phone-shadow);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-phone { animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both; }
  @keyframes rise { from { opacity: 0; translate: 0 60px; rotate: 0deg; } }
}

/* How it works: a real sequence, so it is numbered */

.day { padding: 30px 0 120px; }

.day h2 { margin-bottom: 48px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}

.steps li { counter-increment: step; border-top: 2px solid var(--line); padding-top: 22px; }

.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  color: var(--text);
  margin-bottom: 18px;
}

.steps h3 { font-size: 22px; line-height: 1.2; margin-bottom: 8px; }

.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* Privacy */

.yours { padding: 20px 0 120px; }

.yours-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 0;
}

.yours h2 { margin-bottom: 16px; }

.yours p { color: var(--muted); margin: 0; max-width: 44ch; }

.yours ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-weight: 600; font-size: 18px; }

.yours li { display: flex; align-items: center; gap: 12px; }

.yours li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--check);
  font-size: 14px;
}

/* Closing call to action */

.last {
  padding: 110px 0 120px;
  text-align: center;
}

.last img { margin: 0 auto 26px; border-radius: 22px; box-shadow: 0 20px 40px rgba(30, 10, 60, 0.35); }

.last h2 { max-width: 16ch; margin: 0 auto 34px; }

/* Footer */

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 15px;
}

footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }

footer nav { display: flex; gap: 20px; }

footer a { text-decoration: none; }

footer a:hover { color: var(--text); }

/* Privacy policy page */

.page-head {
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 40px 0 10px;
}

.page-head p { margin: 0; color: var(--muted); }

.policy { width: min(720px, 100% - 40px); margin: 0 auto; padding: 48px 0 80px; }

.policy h2 { font-size: 26px; margin: 44px 0 10px; }

.policy p, .policy li { color: var(--text-2); }

.policy a { color: #fff; text-decoration-thickness: 1.5px; }

.policy strong { color: var(--text); }

.policy .short {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 5px solid #fff;
  border-radius: 16px;
  padding: 20px 24px;
}

.policy .short p { margin: 0; color: var(--text); }

/* Smaller screens */

@media (max-width: 900px) {
  .hero-grid, .yours-grid { grid-template-columns: 1fr; }
  .hero { padding-bottom: 80px; }
  .hero-copy { text-align: center; }
  .lede { margin-inline: auto; }
  .hero-phone { width: min(300px, 72%); margin-top: 20px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}

@media (max-width: 560px) {
  .hero-phone img { border-width: 7px; border-radius: 38px; }
  .steps { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
}
