/* Safara — public site
 *
 * Plain CSS, no build step: these files are served straight off Cloudflare.
 *
 * The landing page is one calm idea: a pale violet sky, one sentence, and the
 * real app on a real-looking phone. Violet is the brand; black is its accent
 * (the primary button, the closing panel). Colour appears where something is
 * live or chosen, not as decoration.
 *
 * Shape system:
 *   --r-interactive 999px  buttons are pills
 *   --r-surface      24px  cards and panels
 *   --r-inner        16px  things inside cards
 */

:root {
  /* Light only, on purpose: the page is a pale sky, and a marketing site that
     flips to a night version for dark-mode visitors loses the one image it
     is built on (Airbnb's public web has no dark mode either). The app
     itself is separate and unaffected. */
  color-scheme: light;

  --ink: #1d1d1f;
  --ink-soft: #4b4557;
  --ink-faint: #7a7387;
  --line: #ebe8f0;
  --line-strong: #dcd7e5;

  --surface: #ffffff;
  --surface-sunk: #f5f5f7;
  --page: #ffffff;

  --accent: #7c3aed;
  --accent-deep: #6d28d9;
  --accent-ink: #2e1065;
  --accent-wash: #f3efff;

  --black: #111111;
  --on-black: #ffffff;

  --sky-top: #e6dcff;
  --sky-mid: #f1ebff;
  --cloud: rgba(255, 255, 255, 0.92);

  --wrap-w: 1200px;
  /* The page's one vertical rhythm: every section has this above and below. */
  --section: 72px;
  --head-gap: 56px;
  --r-interactive: 999px;
  --r-surface: 28px;
  --r-inner: 16px;

  --shadow-card: 0 1px 2px rgba(22, 12, 40, 0.05), 0 12px 32px rgba(22, 12, 40, 0.07);
  --shadow-phone: 0 2px 4px rgba(22, 12, 40, 0.08), 0 30px 60px rgba(22, 12, 40, 0.18), 0 80px 120px rgba(76, 29, 149, 0.16);

  --font: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* height: auto matters: images carry width/height attributes (so the browser
   reserves space and nothing jumps as they load), and without this the height
   attribute wins over a CSS width and stretches the picture. */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); }

::selection { background: var(--accent-wash); color: var(--ink); }

/* Keyboard focus only on :focus-visible, so a click leaves no ring but
   anyone tabbing through always sees where they are. */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.closing a:focus-visible { outline-color: #c4b5fd; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: var(--section) 0; }

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

h1, h2, h3, .brand {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(44px, 6.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

h3 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 8px; }

.lede {
  font-size: clamp(18px, 1.7vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 20px 0 0;
  text-wrap: pretty;
}

.section-head { margin-bottom: var(--head-gap); }
.section-head.center { text-align: center; }
.section-head.center h2 { max-width: 18ch; margin-inline: auto; }
.section-head.center .lede { margin-inline: auto; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--r-interactive);
  text-decoration: none;
  font-family: var(--font);
  font-weight: 500;
  white-space: nowrap;
  transition: transform .16s cubic-bezier(.16,1,.3,1), background .16s ease, border-color .16s ease, color .16s ease;
}

/* Black is the accent: the one filled button on the page. */
.btn-primary {
  background: var(--black);
  color: var(--on-black);
  padding: 11px 20px;
  font-size: 15px;
}
.btn-primary:hover { background: color-mix(in srgb, var(--black) 82%, var(--accent)); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-lg { padding: 16px 30px; font-size: 17px; }

.btn-quiet {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn-quiet:hover { border-color: var(--accent); color: var(--accent-deep); }

.btn-light { background: #ffffff; color: var(--ink); }
.btn-light:hover { background: #f3efff; transform: translateY(-1px); }

.btn .arrow { transition: transform .2s cubic-bezier(.16,1,.3,1); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------------- nav ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--page) 78%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }

.nav-spacer { flex: 1; }
.nav-links { display: flex; gap: 4px; }

.nav-link {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-interactive);
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--accent-deep); background: var(--accent-wash); }
.nav-link:active { background: color-mix(in srgb, var(--accent-wash) 70%, var(--accent) 12%); }

/* ---------------- hero ----------------
 * A pale violet sky with soft cloud masses, the headline centred in it, and
 * the whole phone below. It starts a little low, just past the fold, and
 * rises into place over the first part of the scroll (--rise, set by the
 * page's script: 1 at the top of the page, 0 once it has risen).
 */

.hero {
  position: relative;
  /* Clip sideways only (the clouds run past the edges). Clipping the bottom
     cut the phone's soft shadow off in a straight line across the page;
     left free, it fades out into the white on its own. */
  overflow-x: clip;
  overflow-y: visible;
  isolation: isolate;
  padding: 96px 0 0;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 42%, var(--page) 92%);
}

.sky { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.cloud {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--cloud), transparent);
  filter: blur(6px);
}
.c1 { width: 620px; height: 260px; top: 8%;  left: -6%; }
.c2 { width: 520px; height: 220px; top: 4%;  right: -4%; }
.c3 { width: 760px; height: 300px; top: 34%; left: 18%; opacity: .85; }
.c4 { width: 460px; height: 200px; top: 46%; right: 6%; opacity: .7; }

.hero-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-center h1 { max-width: 15ch; }
.hero-center .lede { max-width: 52ch; }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
/* Apple's own badge art, untouched (their rules): only sized, never recoloured. */
.hero-store, .closing-store { display: flex; justify-content: center; margin-top: 20px; }
.store-badge { display: inline-block; line-height: 0; border-radius: 10px; transition: transform .2s ease, opacity .2s ease; }
.store-badge:hover { opacity: .85; }
.store-badge:active { transform: scale(.97); }
.store-badge img { height: 50px; width: auto; }
@media (prefers-reduced-motion: reduce) { .store-badge { transition: none; } }
.hero-note { margin: 18px 0 0; font-size: 14px; color: var(--ink-soft); }

.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 64px;
  /* Room for the phone's shadow below and either side. */
  padding: 0 80px var(--section);
}
.hero-phone .phone {
  transform: translateY(calc(var(--rise, 0) * 96px)) scale(calc(1 - var(--rise, 0) * 0.05));
  transform-origin: 50% 0;
  will-change: transform;
}

/* ---------------- phone ----------------
 * A straight-on iPhone: titanium rim, black bezel, Dynamic Island, side
 * buttons. Never rotated -- a tilted screenshot is resampled by the browser
 * and its text goes soft.
 */

.phone {
  position: relative;
  flex: none;
  border-radius: 64px;
  padding: 12px;
  background: #0b0b0e;
  box-shadow:
    inset 0 0 0 1.5px #3a3840,
    inset 0 0 0 4px #0b0b0e,
    0 0 0 1px rgba(0, 0, 0, 0.06),
    var(--shadow-phone);
}
.phone-lg { width: 390px; max-width: 86vw; }
.phone-md { width: 320px; max-width: 78vw; border-radius: 54px; padding: 10px; }

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 52px;
  aspect-ratio: 1206 / 2622;
  background: #f5f5f5;
  container-type: inline-size;
}
.phone-md .phone-screen { border-radius: 44px; }
.phone-screen img,
.phone-screen video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

.island {
  position: absolute;
  z-index: 3;
  top: 3.2cqw;
  left: 50%;
  transform: translateX(-50%);
  width: 31cqw;
  height: 9.2cqw;
  border-radius: 999px;
  background: #000;
}

/* A clean status bar (9:41, full battery) drawn over each capture, in the
   colour of that screen's header. */
.statusbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  /* 150 of the capture's 2622px height, as a share of the screen -- a plain
     percentage, so every browser sizes it the same. The captures have their
     own status bar painted out, so nothing shows through if this ever misses. */
  height: 5.72%;
  background: #111111;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6cqw 8cqw 0 10cqw;
  font: 600 4.4cqw/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--font);
}
.statusbar-light { background: #ffffff; color: #111111; }
/* Over the app's violet-sky header: the capture already carries the sky, so the bar is just the time and icons. */
.statusbar-clear { background: transparent; color: #1d1d1f; }
.statusbar svg { height: 3.4cqw; width: auto; fill: currentColor; }
.status-icons { display: inline-flex; align-items: center; gap: 1.5cqw; }

.phone-btn { position: absolute; width: 3px; background: #2a2830; border-radius: 2px; }
.phone-btn.b1 { left: -3px; top: 17%; height: 5%; }
.phone-btn.b2 { left: -3px; top: 25%; height: 9%; }
.phone-btn.b3 { right: -3px; top: 23%; height: 13%; }

/* ---------------- take a look around ----------------
 * Apple's "Take a closer look": one large flat white panel on the soft gray
 * band, the pages of the app listed on one side and a big phone on the
 * other. The phone plays a real tour of a trip; the list lights up the page
 * it's on, with a thin bar filling as it goes. Picking a page swaps in that
 * page's still (a crossfade, no slide), and Play picks the tour back up.
 */


.tour-stage {
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 40px 24px;
  border-radius: var(--r-surface);
  background: var(--surface-sunk);
}

.tour-tabs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tour-tab {
  --p: 0;
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 14px;
  align-items: center;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .4s cubic-bezier(.16,1,.3,1), color .3s ease;
}
.tour-tab:hover { background: rgba(255, 255, 255, .6); color: var(--ink); }
.tour-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tour-ico { fill: currentColor; }
.tour-name { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
/* The description opens under the page that's on, and stays shut on the rest. */
.tour-desc {
  grid-column: 2;
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-soft);
  opacity: 0;
  transition: grid-template-rows .5s cubic-bezier(.16,1,.3,1), opacity .4s ease, margin .5s cubic-bezier(.16,1,.3,1);
}
.tour-desc > span { min-height: 0; }
.tour-tab.is-on { background: #ffffff; color: var(--ink); }
.tour-tab.is-on .tour-ico { color: var(--accent); }
.tour-tab.is-on .tour-desc { grid-template-rows: 1fr; opacity: 1; margin-top: 6px; }
/* The bar only shows while the tour is playing, filling as the page plays. */
.tour-bar {
  grid-column: 2;
  display: block;
  height: 3px;
  margin-top: 12px;
  border-radius: 3px;
  background: rgba(124, 58, 237, .14);
  overflow: hidden;
  opacity: 0;
  transition: opacity .3s ease;
}
.tour-bar span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p)); background: var(--accent); border-radius: inherit; }
.tour-tab:not(.is-on) .tour-bar { display: none; }
.is-touring .tour-tab.is-on .tour-bar { opacity: 1; }

.tour-device { display: grid; justify-items: center; gap: 22px; }
.tour-device .phone-lg { width: min(100%, 340px); }
.tour-shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .45s cubic-bezier(.16,1,.3,1);
}
.tour-shot.is-shown { opacity: 1; }
/* Under the status bar and island, above the video. */
.phone-screen .tour-shot { z-index: 1; }
.phone-screen .statusbar { z-index: 2; }

.tour-play {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px 0 14px;
  border: 0; border-radius: 999px;
  background: rgba(210, 210, 215, .64);
  color: rgba(0, 0, 0, .72);
  font: 500 15px/1 var(--font);
  cursor: pointer;
  transition: background-color .2s ease;
}
.tour-play:hover { background: rgba(200, 200, 206, .8); }
.tour-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tour-play svg { fill: currentColor; }
.tour-play .i-play, .tour-play.is-paused .i-pause { display: none; }
.tour-play.is-paused .i-play { display: block; }
.tour-play.is-paused { background: var(--black); color: #ffffff; }

.tour-caption { display: none; }

/* Phones: the pages become a row of buttons above the phone, with the one
   that's on described underneath -- so a tap changes the phone right there
   in view, instead of one already scrolled past. */
@media (max-width: 859px) {
  .tour-stage { padding: 24px 16px 28px; gap: 0; }
  /* Two by two, so every page fits on screen -- nothing runs off the edge. */
  .tour-tabs { grid-template-columns: 1fr 1fr; gap: 6px; }
  .tour-tab {
    grid-template-columns: auto auto;
    justify-content: center;
    column-gap: 6px;
    padding: 10px 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .6);
    white-space: nowrap;
    overflow: hidden;
  }
  .tour-tab.is-on { background: #ffffff; }
  .tour-ico { width: 18px; height: 18px; }
  .tour-name { font-size: 15px; }
  .tour-desc { display: none; }
  /* The progress bar becomes a thin line along the bottom of the button. */
  .tour-bar { position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; margin: 0; }
  .tour-caption {
    display: block;
    min-height: 3em;
    margin: 14px 4px 18px;
    text-align: center;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.45;
  }
  .tour-device .phone-lg { width: min(100%, 290px); }
}
@media (min-width: 860px) {
  .tour-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 56px; gap: 56px; }
  .tour-tabs { max-width: 440px; justify-self: end; width: 100%; }
}

/* ---------------- plan together ---------------- */

.together-grid { display: grid; gap: 48px; align-items: center; }
.together-points { display: grid; gap: 28px; }
.t-point { padding-top: 20px; border-top: 1px solid var(--line-strong); }
.t-point h3 { font-size: 18px; margin-bottom: 6px; }
.t-point p { color: var(--ink-soft); margin: 0; font-size: 16px; }

/* The live demo: the app's own card language drawn in HTML so it is sharp
   at any size. It plays once when scrolled into view: two places are there,
   the third drops in as "just now", and the note confirms it reached
   everyone. */
.live-demo {
  position: relative;
  width: 100%;
  max-width: 500px;
  justify-self: center;
  padding: 28px;
  border-radius: 32px;
  background: #ffffff;
  color: #222222;
  box-shadow: 0 1px 2px rgba(22, 12, 40, .06), 0 30px 80px rgba(76, 29, 149, .18);
}
.ld-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ld-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.ld-meta { color: #6e6e73; font-size: 14px; margin-top: 2px; }
.ld-live {
  display: inline-flex; align-items: center;
  padding: 6px 12px 6px 4px;
  border-radius: 999px;
  background: #e7f7ec; color: #15803d;
  font-size: 13px; font-weight: 600;
}
.ld-people { display: flex; align-items: center; gap: 10px; margin: 18px 0 20px; color: #6e6e73; font-size: 14px; }
.ld-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ld-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px 12px 12px;
  border-radius: 18px;
  background: #f7f7f7;
}
.ld-text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.ld-text strong { font-size: 16px; font-weight: 600; }
.ld-text span { color: #6e6e73; font-size: 13px; }
.sticker {
  display: inline-grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 14px;
  font-size: 24px;
}
.sticker-violet { background: #ede9fe; }
.sticker-orange { background: #ffedd5; }
.sticker-green { background: #dcfce7; }
.ld-new { background: #f5f1ff; box-shadow: inset 0 0 0 2px #7c3aed; }
.ld-toast {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px;
  padding: 12px 14px 12px 10px;
  border-radius: 16px;
  background: #111111; color: #ffffff;
  font-size: 14px; line-height: 1.35;
}

.avatars { display: inline-flex; }
.avatars .av + .av { margin-left: -8px; }
.av {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 2px solid #ffffff;
}
.av-violet { background: #ede9fe; color: #6d28d9; }
.av-orange { background: #ffedd5; color: #c2410c; }
.av-you { background: #111111; color: #ffffff; }
.ld-toast .av { border-color: #111111; background: #7c3aed; }

.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  margin: 0 6px 1px 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .18);
}

/* ---------------- features ---------------- */

.feature-cards { display: grid; gap: 20px; margin-top: 20px; }
.f-card {
  padding: 32px;
  border-radius: var(--r-surface);
  background: var(--surface-sunk);
}
.f-card p { color: var(--ink-soft); margin: 0; font-size: 16px; }
/* Icon beside its heading, in the heading's line, not boxed above it. */
.f-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.f-head h3 { margin: 0; }
.f-icon { display: inline-flex; flex: none; color: var(--accent); }
.f-card-wide { display: grid; gap: 24px; align-items: center; }
.f-card-wide img { border-radius: var(--r-inner); box-shadow: var(--shadow-card); }

/* ---------------- closing ---------------- */

.closing { text-align: center; }
.closing .inner {
  /* Fixed values, not tokens: this panel is black in both schemes so the
     white copy always passes. */
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(124, 58, 237, .5), transparent 70%),
    #111111;
  border-radius: var(--r-surface);
  padding: clamp(64px, 9vw, 104px) 28px;
  color: #ffffff;
}
.closing h2 { color: #ffffff; max-width: 16ch; margin-inline: auto; }
.closing p { color: rgba(255, 255, 255, .8); font-size: 19px; max-width: 34ch; margin: 18px auto 36px; }
.closing .fine { color: rgba(255, 255, 255, .6); font-size: 15px; margin: 22px auto 0; }

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

footer { padding: 44px 0 56px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
footer a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
footer a:hover { color: var(--accent-deep); }
.copyright { color: var(--ink-faint); font-size: 15px; }

/* ---------------- legal pages ---------------- */

main.doc { max-width: 760px; margin: 0 auto; padding: 60px 24px 104px; }
.doc h1 { font-size: clamp(32px, 4vw, 42px); line-height: 1.06; margin-bottom: 10px; }
.doc h2 { font-size: 22px; margin: 42px 0 10px; letter-spacing: -0.02em; }
.doc h3 { font-size: 17px; margin: 26px 0 6px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 16px; }
.doc .updated { color: var(--ink-faint); font-size: 14px; margin: 0 0 6px; }
.doc ul, .doc ol { padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.doc table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--ink); font-weight: 600; }
.doc td { color: var(--ink-soft); }

.callout {
  background: var(--accent-wash);
  border-radius: var(--r-inner);
  padding: 18px 20px;
  margin: 24px 0;
}
.callout p { margin: 0; color: var(--accent-ink); }

/* ---------------- responsive ---------------- */

@media (min-width: 760px) {
  .together-points { grid-template-columns: 1fr 1fr; gap: 28px 36px; }
  .feature-cards { grid-template-columns: 1fr 1.6fr; }
  .f-card-wide { grid-template-columns: 1fr 1.1fr; }
}

@media (min-width: 980px) {
  .together-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
}

@media (min-width: 1440px) {
  :root { --wrap-w: 1280px; }
  .wrap, .nav-inner { max-width: 1280px; }
  .phone-lg { width: 420px; }
}

@media (max-width: 759px) {
  :root { --section: 48px; --head-gap: 36px; }
  .nav-links.hide-sm { display: none; }
  .hero { padding-top: 64px; }
  .hero-phone { margin-top: 48px; padding: 0 16px var(--section); }
  .phone-lg { border-radius: 54px; padding: 10px; }
  .phone-lg .phone-screen { border-radius: 44px; }
  .f-card { padding: 26px; }
  .live-demo { padding: 20px; border-radius: 26px; }
}

/* Narrow phones: brand and one clear button. "Start planning" opens the same
   sign-in screen as "Log in". */
@media (max-width: 440px) {
  .nav-login { display: none; }
  .btn-lg { width: 100%; }
  .hero-actions { width: 100%; }
}

/* ---------------- motion ----------------
 * An entrance on first paint, scroll reveals while reading, and the live
 * demo's one authored moment. Pure CSS apart from the demo's trigger, and all
 * of it collapses under reduced motion.
 */

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes drift {
    from { transform: translateX(0); }
    to   { transform: translateX(40px); }
  }
  @keyframes drop {
    from { opacity: 0; transform: translateY(-14px) scale(.97); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes ring {
    0%   { box-shadow: inset 0 0 0 2px #7c3aed, 0 0 0 0 rgba(124, 58, 237, .35); }
    100% { box-shadow: inset 0 0 0 2px #7c3aed, 0 0 0 14px rgba(124, 58, 237, 0); }
  }
  @keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); } }

  .enter { animation: rise .8s cubic-bezier(.16,1,.3,1) both; }
  .enter-1 { animation-delay: .05s; }
  .enter-2 { animation-delay: .14s; }
  .enter-3 { animation-delay: .22s; }
  .enter-4 { animation-delay: .3s; }
  .hero-phone.enter { animation: rise 1s cubic-bezier(.16,1,.3,1) .28s both; }

  .c1, .c3 { animation: drift 24s ease-in-out infinite alternate; }
  .c2, .c4 { animation: drift 30s ease-in-out infinite alternate-reverse; }

  .js .live-demo .ld-new,
  .js .live-demo .ld-toast { opacity: 0; }
  .live-demo.play .ld-new { animation: drop .6s cubic-bezier(.16,1,.3,1) .5s both, ring 1.1s ease-out 1.1s; }
  .live-demo.play .ld-toast { animation: drop .6s cubic-bezier(.16,1,.3,1) 1.5s both; }
  .live-dot { animation: pulse 2.4s ease-in-out infinite; }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 6% cover 28%;
    }
    @keyframes ink { from { color: #c7c7cc; } to { color: var(--ink); } }
    .section-head h2 {
      animation: ink linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 40%;
    }
  }
}
