/* ==========================================================================
   Nuka marketing site
   Tokens mirror apps/mobile/theme/colors.ts so the site and the app stay in
   step: change a colour there, change it here.
   ========================================================================== */

:root {
  /* Brand ramp — primary from theme/colors.ts */
  --p50: #e8f4fd;
  --p100: #d1e9fb;
  --p200: #a3d3f7;
  --p300: #75bdf3;
  --p400: #47a7ef;
  --p500: #1890eb;
  --p600: #1373bc;
  --p700: #0e568d;
  --p800: #0a3b60;
  --p900: #062033;

  --green: #2ba82b;
  --green-soft: #e8f5e8;
  --amber: #ff9800;
  --amber-soft: #fff4e6;
  --rose: #f44336;
  --rose-soft: #ffebee;

  /* Accent line gradient: brand blue running into violet. */
  --grad-a: #1890eb;
  --grad-b: #7b4fe8;

  /* Hero wash — blue leads, the rest keep it from flattening into one hue. */
  --iris: #9b8cf0;
  --blush: #ffb59a;
  --mint: #7fd7da;

  /* Surfaces */
  --bg: #f9fbff;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --ink: #062033;
  --ink-2: #475467;
  --ink-3: #667085;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --shadow-sm:
    0 1px 2px rgba(6, 32, 51, 0.06), 0 4px 12px rgba(6, 32, 51, 0.05);
  --shadow-md:
    0 2px 6px rgba(6, 32, 51, 0.07), 0 18px 40px rgba(6, 32, 51, 0.09);
  --shadow-lg:
    0 4px 10px rgba(6, 32, 51, 0.08), 0 40px 80px rgba(6, 32, 51, 0.14);

  /* Type — ui-rounded resolves to SF Pro Rounded on Apple, matching the app. */
  --font:
    ui-rounded, 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, 'Nunito',
    'Segoe UI', Roboto, system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 34px;

  --shell: 1140px;
  --gutter: clamp(20px, 5vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0b1220;
    --surface: #101828;
    --surface-2: #1d2939;
    --ink: #e4e7ec;
    --ink-2: #cbd5e1;
    --ink-3: #94a3b8;
    --line: rgb(35, 52, 74);
    --line-strong: #334155;
    --green-soft: #092209;
    --amber-soft: #3a2300;
    --rose-soft: #3a1113;
    --p50: #0d2338;
    --p100: #123048;
    --grad-a: #47a7ef;
    --grad-b: #a78bfa;
    --grad-a: #47a7ef;
    --grad-b: #a78bfa;
    --iris: #4b3fa8;
    --blush: #8a4a38;
    --mint: #2c7a80;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.45), 0 18px 40px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.5), 0 40px 80px rgba(0, 0, 0, 0.6);
  }
}

:root[data-theme='dark'] {
  --bg: #0b1220;
  --surface: #101828;
  --surface-2: #1d2939;
  --ink: #e4e7ec;
  --ink-2: #cbd5e1;
  --ink-3: #94a3b8;
  --line: rgb(35, 52, 74);
  --line-strong: #334155;
  --green-soft: #092209;
  --amber-soft: #3a2300;
  --rose-soft: #3a1113;
  --p50: #0d2338;
  --p100: #123048;
  --grad-a: #47a7ef;
  --grad-b: #a78bfa;
  --iris: #4b3fa8;
  --blush: #8a4a38;
  --mint: #2c7a80;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.45), 0 18px 40px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.5), 0 40px 80px rgba(0, 0, 0, 0.6);
}

/* -------------------------------------------------------------------------- */
/* Base                                                                       */
/* -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  max-width: 100%;
  display: block;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
button {
  font: inherit;
  color: inherit;
}

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--p500);
  color: #fff;
  font-weight: 600;
  transition: top 0.18s ease;
}
.skip-link:focus {
  top: 12px;
}

/* -------------------------------------------------------------------------- */
/* Shared pieces                                                              */
/* -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--p50);
  color: var(--p600);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid color-mix(in srgb, var(--p500) 18%, transparent);
}
.eyebrow .dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--p500);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .eyebrow {
    color: var(--p300);
  }
}
:root[data-theme='dark'] .eyebrow {
  color: var(--p300);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--p500);
  color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--p500) 38%, transparent);
}
.btn-primary:hover {
  background: var(--p600);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  border-color: var(--line-strong);
}

/* App Store badge, drawn rather than fetched so there is no external asset. */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px 11px 18px;
  border-radius: 14px;
  background: #ffffff;
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
  box-shadow: var(--shadow-md);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .appstore {
    background: #000000;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.14);
  }
}
:root[data-theme='dark'] .appstore {
  background: #000000;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
}
.appstore:hover {
  transform: translateY(-2px);
}
.appstore svg {
  width: 26px;
  height: 26px;
  flex: none;
}
.appstore .lines {
  display: grid;
  text-align: left;
  line-height: 1.15;
}
.appstore .lines small {
  font-size: 11px;
  opacity: 0.8;
  font-weight: 500;
}
.appstore .lines strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

section[id],
.hero {
  scroll-margin-top: 104px;
}

.section {
  padding: clamp(72px, 10vw, 128px) 0;
}
.section-head {
  max-width: 660px;
}
.section-head h2 {
  font-size: clamp(31px, 4.3vw, 46px);
  margin-top: 18px;
  text-wrap: balance;
}
.section-head p {
  margin-top: 18px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-2);
}

.mascot {
  width: 30px;
  height: auto;
  aspect-ratio: 142 / 128;
  flex: none;
}

/* -------------------------------------------------------------------------- */
/* Header                                                                     */
/* -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px var(--gutter) 0;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 9px 9px 20px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.25s ease,
    background 0.25s ease;
}
.site-header.is-stuck .nav {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
  margin-right: 12px;
}
.brand .mascot {
  width: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.nav-links a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.nav .btn {
  padding: 10px 20px;
  font-size: 15px;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 0;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.15s ease;
}
.theme-toggle:hover {
  color: var(--ink);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
}
.theme-toggle .moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .moon {
    display: block;
  }
  :root:not([data-theme='light']) .theme-toggle .sun {
    display: none;
  }
}
:root[data-theme='dark'] .theme-toggle .moon {
  display: block;
}
:root[data-theme='dark'] .theme-toggle .sun {
  display: none;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav {
    width: 100%;
    justify-content: space-between;
  }
  .brand {
    margin-right: auto;
  }
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */

/* The wash sits behind the header as well as the hero, so the colour starts at
   the very top of the page the way the reference does. */
.page-glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: clamp(560px, 78vh, 880px);
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      58% 52% at 16% 4%,
      color-mix(in srgb, var(--p400) 42%, transparent),
      transparent 68%
    ),
    radial-gradient(
      52% 48% at 82% 2%,
      color-mix(in srgb, var(--iris) 40%, transparent),
      transparent 70%
    ),
    radial-gradient(
      46% 40% at 50% 0%,
      color-mix(in srgb, var(--blush) 34%, transparent),
      transparent 72%
    ),
    radial-gradient(
      66% 56% at 44% 22%,
      color-mix(in srgb, var(--mint) 30%, transparent),
      transparent 74%
    );
  -webkit-mask-image: linear-gradient(to bottom, #000 42%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 42%, transparent 96%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .page-glow {
    opacity: 0.55;
  }
}
:root[data-theme='dark'] .page-glow {
  opacity: 0.55;
}

body {
  position: relative;
}
main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  z-index: 1;
  padding: clamp(44px, 6vw, 76px) 0 clamp(60px, 8vw, 96px);
}

.hero .shell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* The real app icon, at the size the App Store shows it. */
.hero-icon {
  width: clamp(70px, 8.8vw, 93px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 23%;
  box-shadow:
    0 10px 26px color-mix(in srgb, var(--p600) 30%, transparent),
    0 30px 60px color-mix(in srgb, var(--p700) 22%, transparent);
}

@property --badge-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.hero-eyebrow {
  position: relative;
  isolation: isolate;
  margin-top: clamp(20px, 2.6vw, 30px);
  color: var(--ink);
  border-color: color-mix(in srgb, var(--p500) 18%, transparent);
  box-shadow: 0 3px 12px color-mix(in srgb, var(--p500) 14%, transparent);
}
:root[data-theme='dark'] .hero-eyebrow {
  color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .hero-eyebrow {
    color: var(--ink);
  }
}

/* A light that travels around the border. */
.hero-eyebrow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--badge-angle),
    transparent 0deg,
    color-mix(in srgb, var(--grad-a) 85%, #fff) 45deg,
    color-mix(in srgb, var(--grad-b) 85%, #fff) 80deg,
    transparent 130deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: badge-orbit 3s linear infinite;
  pointer-events: none;
}

.hero-eyebrow .dot {
  background: none;
  color: inherit;
  width: auto;
  height: auto;
}
.hero-eyebrow .dot svg {
  width: 17px;
  height: 17px;
}

@keyframes badge-orbit {
  to {
    --badge-angle: 360deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow::before {
    animation: none;
  }
}

.hero h1 {
  font-size: clamp(29px, 7.6vw, 85px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-top: clamp(16px, 2vw, 22px);
  max-width: 100%;
}
.hero h1 .accent {
  color: var(--p500);
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero h1 .accent {
    background-image: linear-gradient(
      96deg,
      var(--grad-a) 12%,
      var(--grad-b) 88%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero-sub {
  margin-top: 20px;
  font-size: clamp(17px, 1.9vw, 20px);
  color: var(--ink-2);
  max-width: 55ch;
  text-wrap: pretty;
}

.hero-cta {
  margin-top: clamp(28px, 3.4vw, 38px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------------------- */
/* Phone mockup                                                               */
/* -------------------------------------------------------------------------- */

.phone {
  --phone-w: 330px;
  width: var(--phone-w);
  aspect-ratio: 390 / 800;
  border-radius: 52px;
  padding: 11px;
  background: linear-gradient(160deg, #3a4657, #171d29 42%, #0a0e16);
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  position: relative;
  flex: none;
}
.phone::after {
  /* Side button, for a little physicality. */
  content: '';
  position: absolute;
  right: -2px;
  top: 168px;
  width: 3px;
  height: 62px;
  border-radius: 3px;
  background: linear-gradient(180deg, #4a5566, #2a323f);
}

.phone-screen {
  text-align: left;
  position: relative;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.phone-notch {
  position: absolute;
  top: 9px;
  left: 50%;
  translate: -50% 0;
  width: 106px;
  height: 30px;
  border-radius: 999px;
  background: #05080e;
  z-index: 5;
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 24px 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}
.phone-status .icons {
  display: flex;
  gap: 5px;
  align-items: center;
}
.phone-status .bar {
  width: 3px;
  border-radius: 1px;
  background: currentColor;
}

.phone-body {
  flex: 1;
  min-height: 0;
  padding: 14px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  overflow: hidden;
}

.phone-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.phone-title b {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.phone-title span {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}

/* In-app cards */
.mini-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 11px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.mini-card .rail {
  width: 4px;
  align-self: stretch;
  border-radius: 999px;
  background: var(--p400);
  flex: none;
}
.mini-card.task .rail {
  background: var(--green);
}
.mini-card.remind .rail {
  background: var(--amber);
}
.mini-card .copy {
  min-width: 0;
  flex: 1;
}
.mini-card .copy b {
  display: block;
  font-size: 13.5px;
  letter-spacing: -0.01em;
}
.mini-card .copy small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.who {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  flex: none;
  letter-spacing: 0;
}
.who.a {
  background: #6c5ce7;
}
.who.b {
  background: var(--p500);
}
.who.c {
  background: #e8763a;
}
.who.d {
  background: var(--green);
}

.check {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid var(--line-strong);
  flex: none;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.check.done {
  background: var(--green);
  border-color: var(--green);
}
.check.done::after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  rotate: -45deg;
  translate: 0 -1px;
}

.notif-icon {
  width: 30px;
  height: auto;
  aspect-ratio: 1;
  border-radius: 9px;
  flex: none;
}

.phone-composer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 12px;
}
.phone-composer .field {
  flex: 1;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--ink-3);
}
.phone-composer .send {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--p500);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.phone-composer .send svg {
  width: 15px;
  height: 15px;
}

/* The iOS home indicator, so the bottom of each screen reads as a real device. */
.phone-home {
  height: 22px;
  display: grid;
  place-items: center;
  flex: none;
}
.phone-home::after {
  content: '';
  width: 108px;
  height: 4px;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0.28;
}
.phone-screen.lock .phone-home::after {
  background: #fff;
  opacity: 0.55;
}

.phone-tabs {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding: 10px 8px 6px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.phone-tab {
  display: grid;
  justify-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ink-3);
}
.phone-tab svg {
  width: 19px;
  height: 19px;
}
.phone-tab.active {
  color: var(--p500);
}

/* Chat bubbles used in the "send it anything" phone */
.bubble {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 17px;
  font-size: 13px;
  line-height: 1.42;
  box-shadow: var(--shadow-sm);
}
.bubble.out {
  align-self: flex-end;
  background: var(--p500);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.bubble.in {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
}
.bubble .shot {
  display: block;
  height: 62px;
  border-radius: 10px;
  margin-bottom: 7px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.28),
      rgba(255, 255, 255, 0.06)
    ),
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.16) 0 7px,
      transparent 7px 15px
    );
}

.typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 2px 0;
}
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ink-3);
  animation: blink 1.3s infinite ease-in-out;
}
.typing i:nth-child(2) {
  animation-delay: 0.18s;
}
.typing i:nth-child(3) {
  animation-delay: 0.36s;
}
@keyframes blink {
  0%,
  60%,
  100% {
    opacity: 0.28;
  }
  30% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .typing i {
    animation: none;
    opacity: 0.6;
  }
}

/* Floating chips beside the hero phone */
.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: clamp(46px, 6vw, 78px);
}

.float {
  text-align: left;
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 2;
}
.float .pip {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
}
.float small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
}
.float-1 {
  top: -2%;
  left: -18%;
  animation: bob 6s ease-in-out infinite;
}
.float-2 {
  bottom: -5%;
  right: -16%;
  animation: bob 6s ease-in-out infinite 0.9s;
}
@keyframes bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .float {
    animation: none;
  }
}

@media (max-width: 620px) {
  .phone {
    --phone-w: min(300px, 78vw);
  }
  .float-1 {
    left: -10%;
  }
  .float-2 {
    right: -8%;
  }
}
@media (max-width: 400px) {
  .float {
    display: none;
  }
}

/* -------------------------------------------------------------------------- */
/* Logo / trust strip                                                         */
/* -------------------------------------------------------------------------- */

.strip {
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.strip .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  align-items: center;
  justify-content: center;
  padding-block: 22px;
}
.strip span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.strip svg {
  width: 17px;
  height: 17px;
  color: var(--p500);
  flex: none;
}

/* -------------------------------------------------------------------------- */
/* Feature rows                                                               */
/* -------------------------------------------------------------------------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}
.feature + .feature {
  margin-top: clamp(80px, 11vw, 150px);
}
.feature.flip .feature-art {
  order: -1;
}

.feature h2 {
  font-size: clamp(29px, 3.9vw, 44px);
  margin-top: 18px;
  text-wrap: balance;
}
.feature p.lede {
  margin-top: 18px;
  font-size: clamp(16.5px, 1.9vw, 19px);
  color: var(--ink-2);
}

.feature-art {
  display: flex;
  justify-content: center;
  position: relative;
}

.bullets {
  margin-top: 26px;
  display: grid;
  gap: 13px;
}
.bullets li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  color: var(--ink-2);
}
.bullets .tick {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--p50);
  color: var(--p600);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 2px;
}
.bullets .tick svg {
  width: 12px;
  height: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .bullets .tick {
    color: var(--p300);
  }
}
:root[data-theme='dark'] .bullets .tick {
  color: var(--p300);
}

@media (max-width: 940px) {
  .feature {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature.flip .feature-art {
    order: 0;
  }
}

/* -------------------------------------------------------------------------- */
/* Feature grid                                                               */
/* -------------------------------------------------------------------------- */

.grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px 28px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.tile .ic {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--p50);
  color: var(--p600);
  margin-bottom: 18px;
}
.tile .ic svg {
  width: 21px;
  height: 21px;
}
.tile.g .ic {
  background: var(--green-soft);
  color: var(--green);
}
.tile.a .ic {
  background: var(--amber-soft);
  color: #e65100;
}
.tile.r .ic {
  background: var(--rose-soft);
  color: var(--rose);
}
.tile h3 {
  font-size: 19px;
}
.tile p {
  margin-top: 9px;
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .tile .ic {
    color: var(--p300);
  }
  :root:not([data-theme='light']) .tile.g .ic {
    color: #77c777;
  }
  :root:not([data-theme='light']) .tile.a .ic {
    color: #ffb74d;
  }
  :root:not([data-theme='light']) .tile.r .ic {
    color: #e57373;
  }
}
:root[data-theme='dark'] .tile .ic {
  color: var(--p300);
}
:root[data-theme='dark'] .tile.g .ic {
  color: #77c777;
}
:root[data-theme='dark'] .tile.a .ic {
  color: #ffb74d;
}
:root[data-theme='dark'] .tile.r .ic {
  color: #e57373;
}

/* -------------------------------------------------------------------------- */
/* Steps                                                                      */
/* -------------------------------------------------------------------------- */

.steps {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 26px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--p500);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--p500) 34%, transparent);
}
.step h3 {
  margin-top: 26px;
  font-size: 20px;
}
.step p {
  margin-top: 9px;
  color: var(--ink-2);
  font-size: 15.5px;
}

/* -------------------------------------------------------------------------- */
/* Pricing                                                                    */
/* -------------------------------------------------------------------------- */

.pricing-wrap {
  display: grid;
  place-items: center;
  text-align: center;
}
.pricing-wrap .section-head {
  text-align: center;
}

.plans {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  gap: 20px;
  justify-content: center;
  width: 100%;
  text-align: left;
}

.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.plan.best {
  border-color: var(--p500);
  box-shadow:
    var(--shadow-md),
    0 0 0 4px color-mix(in srgb, var(--p500) 12%, transparent);
}
.plan .tag {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--p500);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.plan h3 {
  font-size: 18px;
  color: var(--ink-2);
  font-weight: 700;
}
.plan .price {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.plan .price b {
  font-size: 44px;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.plan .price span {
  color: var(--ink-3);
  font-size: 16px;
  font-weight: 600;
}
.plan .save {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
}
.plan .plan-note {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-3);
}
.plan .btn {
  width: 100%;
  margin-top: auto;
}
.plan ul {
  margin-top: 24px;
  margin-bottom: 26px;
  display: grid;
  gap: 11px;
}
.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-2);
}
.plan li svg {
  width: 17px;
  height: 17px;
  color: var(--green);
  flex: none;
  margin-top: 4px;
}

.pricing-foot {
  margin-top: 30px;
  font-size: 15px;
  color: var(--ink-3);
  max-width: 56ch;
}

/* -------------------------------------------------------------------------- */
/* FAQ                                                                        */
/* -------------------------------------------------------------------------- */

.faq {
  margin-top: 46px;
  display: grid;
  gap: 12px;
  max-width: 780px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 22px;
  transition: border-color 0.16s ease;
}
.faq details[open] {
  border-color: var(--line-strong);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 34px 18px 0;
  font-weight: 700;
  font-size: 17px;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid var(--ink-3);
  border-bottom: 2.5px solid var(--ink-3);
  translate: 0 -70%;
  rotate: 45deg;
  transition: rotate 0.2s ease;
}
.faq details[open] summary::after {
  rotate: -135deg;
  translate: 0 -20%;
}
.faq .answer {
  padding: 0 0 20px;
  color: var(--ink-2);
  font-size: 16px;
}
.faq .answer a {
  color: var(--p600);
  font-weight: 600;
  text-decoration: underline;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .faq .answer a {
    color: var(--p300);
  }
}
:root[data-theme='dark'] .faq .answer a {
  color: var(--p300);
}

/* -------------------------------------------------------------------------- */
/* Final CTA                                                                  */
/* -------------------------------------------------------------------------- */

.cta-band {
  padding-bottom: clamp(72px, 10vw, 128px);
}
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(48px, 7vw, 84px) clamp(28px, 6vw, 72px);
  background: linear-gradient(
    150deg,
    var(--p600),
    var(--p500) 45%,
    var(--p400)
  );
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .cta-card {
    background: linear-gradient(
      150deg,
      var(--surface),
      var(--surface-2)
    );
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  :root:not([data-theme='light']) .cta-card::before {
    background: radial-gradient(
      closest-side,
      rgba(120, 170, 240, 0.10),
      transparent 72%
    );
  }
}
:root[data-theme='dark'] .cta-card {
  background: linear-gradient(
    150deg,
    var(--surface),
    var(--surface-2)
  );
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
:root[data-theme='dark'] .cta-card::before {
  background: radial-gradient(
    closest-side,
    rgba(120, 170, 240, 0.10),
    transparent 72%
  );
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: auto -10% -60% -10%;
  aspect-ratio: 2;
  background: radial-gradient(
    closest-side,
    rgba(255, 255, 255, 0.22),
    transparent 72%
  );
}
.cta-card > * {
  position: relative;
}
.cta-card .mascot {
  width: 66px;
  margin-inline: auto;
}
.cta-card h2 {
  margin-top: 22px;
  font-size: clamp(31px, 4.4vw, 48px);
  text-wrap: balance;
}
.cta-card p {
  margin-top: 16px;
  font-size: clamp(16.5px, 2vw, 19px);
  opacity: 0.92;
}
.cta-card .appstore {
  margin-top: 32px;
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 52px 0 40px;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  justify-content: space-between;
}
.footer-brand {
  max-width: 300px;
}
.footer-brand p {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-3);
}
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
}
.footer-cols h3 {
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.footer-cols ul {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.footer-cols a {
  font-size: 15px;
  color: var(--ink-2);
}
.footer-cols a:hover {
  color: var(--p500);
}
.footer-bottom {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-3);
}

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

.reveal {
  opacity: 0;
  translate: 0 22px;
  transition:
    opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    translate 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  translate: 0 0;
}

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