/* BLADES — blades-app.com. Typography matches the product renders: Playfair Display + Inter, cyan italic accent. */

@font-face { font-family: "Playfair Display"; src: url(../fonts/playfair-display-latin-wght-normal.woff2) format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url(../fonts/playfair-display-latin-wght-italic.woff2) format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --navy: #0a1628;
  --night: #070f1f;
  --cyan: #19c6e6;
  --cyan-deep: #0786a3;   /* cyan for text on light grounds */
  --cream: #f4efe7;
  --mist: #b9c7da;
  --light: #f2f4f8;
  --white: #ffffff;
  --ink: #0a1628;
  --muted: #4b5b72;
  --line: rgba(10, 22, 40, 0.1);

  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}
h1 em, h2 em { font-style: italic; color: var(--cyan); }

.skip { position: absolute; left: 16px; top: -80px; z-index: 50; background: var(--cyan); color: var(--night); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 28px;
  border-radius: 999px;
  background: var(--cyan); color: #04111f;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { background: #4fd6ef; box-shadow: 0 8px 28px rgba(25, 198, 230, 0.35); }
.btn:active { transform: scale(0.97); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); box-shadow: inset 0 0 0 1.5px var(--ink); }
/* Until the app is out: "Soon on App Store", leading nowhere yet (no href; data-store and data-text keep the link and
   the words for release day). The button keeps its look but no longer reacts. */
.btn-soon { cursor: default; }
.btn-soon:hover { background: var(--cyan); box-shadow: none; }
.btn-soon:active { transform: none; }
.btn-line.btn-soon:hover { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- Navigation ---------- */
.nav-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 20; padding: 14px var(--pad); pointer-events: none; }
.nav {
  pointer-events: auto;
  max-width: 1160px; margin: 0 auto;
  height: 62px; padding: 0 12px 0 24px;
  display: flex; align-items: center; gap: 24px;
  border-radius: 999px;
  background: rgba(7, 15, 31, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.nav-logo { display: flex; align-items: center; min-height: 44px; }
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: flex; gap: 32px; margin-left: auto; }
.nav-links a { color: #d6deea; text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--white); }
.nav .btn-sm { margin-left: 8px; }
/* The app and Guides: lists under the bar, the same groups as the phone menu */
.nav-links { align-items: center; }
.nav-dd { position: relative; }
.nav-dd summary { list-style: none; display: flex; align-items: center; gap: 5px; cursor: pointer; color: #d6deea; font-size: 15px; font-weight: 500; transition: color 0.2s ease; }
.nav-dd summary::-webkit-details-marker { display: none; }
.nav-dd summary:hover, .nav-dd[open] summary { color: var(--white); }
.nav-dd summary svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease; }
.nav-dd[open] summary svg { transform: rotate(180deg); }
.nav-dd-panel {
  position: absolute; top: calc(100% + 24px); right: -20px; width: 300px; padding: 8px;
  display: grid; gap: 2px; border-radius: 18px;
  background: rgba(7, 15, 31, 0.97); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 24px 50px rgba(0, 0, 0, 0.5);
  animation: menuIn 0.2s ease both;
}
.nav-dd:first-child .nav-dd-panel { right: auto; left: -20px; }   /* The app opens to the right */
.nav-dd-panel a { display: grid; gap: 2px; padding: 11px 14px; border-radius: 12px; text-decoration: none; }
.nav-dd-panel a:hover, .nav-dd-panel a[aria-current="page"] { background: rgba(255, 255, 255, 0.06); }
.nav-dd-panel b { color: var(--white); font-size: 15px; font-weight: 600; }
.nav-dd-panel a[aria-current="page"] b { color: var(--cyan); }
.nav-dd-panel span { color: var(--mist); font-size: 13px; }
/* The Instagram glyph (Socials menu, footer) */
.ig { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ig .ig-dot { fill: currentColor; stroke: none; }
.nav-dd-panel b .ig { width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; color: var(--cyan); }
.nav-toggle, .nav-menu { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(100svh, 640px);
  /* Night sky with a blue horizon glow behind the phones (the picture itself is transparent). */
  background:
    radial-gradient(42% 30% at 70% 82%, rgba(30, 150, 255, 0.42), rgba(30, 150, 255, 0) 70%),
    radial-gradient(70% 22% at 62% 86%, rgba(25, 198, 230, 0.2), rgba(25, 198, 230, 0) 72%),
    radial-gradient(35% 40% at 78% 30%, rgba(40, 90, 200, 0.18), rgba(40, 90, 200, 0) 70%),
    linear-gradient(180deg, #040914 0%, #071226 48%, #0b1d3d 78%, #070f1f 100%);
  overflow: hidden;
  display: flex; align-items: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, var(--night) 0%, rgba(7, 15, 31, 0) 12%);
}
.hero-img {
  position: absolute; z-index: 1;
  right: max(var(--pad), calc((100% - 1280px) / 2 + 10px)); top: 50%;
  width: auto; height: min(80vh, 780px); max-width: 50%;
  object-fit: contain; object-position: 100% 50%;
  margin-top: calc(min(80vh, 780px) / -2 + 24px);
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55));
}
.hero-text {
  position: relative; z-index: 2;
  width: 100%; max-width: 1280px; margin: 0 auto;
  padding: 120px var(--pad) 80px;
}
.hero h1 {
  color: var(--white);
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(44px, 5.6vw, 92px); line-height: 0.98; letter-spacing: -0.045em;
  max-width: 8.6em;
}
.hero h1 .ht-brand { display: block; margin-bottom: 0.06em; font-size: 1.18em; letter-spacing: -0.055em; }
.hero h1 em { font-family: var(--serif); font-weight: 500; letter-spacing: -0.025em; }
.hero-sub { margin-top: 28px; max-width: 24em; color: var(--mist); font-size: clamp(18px, 1.55vw, 23px); line-height: 1.45; }

.hero-text > * { animation: arrive 0.9s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: 0.55s; }
.hero-text > h1 { animation: none; }
/* The title is there from the first paint, half lit and soft, and comes into focus word by word once js/motion.js has
   split it (so the page's largest words count as shown at once). Should the script not run, it comes into focus
   by itself after a moment. */
.js:not(.motion-on) .hero h1 { opacity: 0.35; filter: blur(6px); animation: heroFocus 0.6s ease 2.5s forwards; }
@keyframes heroFocus { to { opacity: 1; filter: none; } }
.hero-img { animation: fade 1.4s ease both; }
@keyframes arrive { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }

/* ---------- Shared section heads ---------- */
.section-sub { margin-top: 18px; color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); }
.roles h2, .pricing h2, .faq h2 { font-size: clamp(36px, 4.4vw, 64px); color: var(--ink); }
.roles h2 em, .pricing h2 em { color: var(--cyan-deep); }

/* ---------- Roles: manned and unmanned ---------- */
.roles { background: var(--light); padding: clamp(72px, 8vw, 110px) var(--pad) 72px; text-align: center; }
.role-cards {
  max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  text-align: left;
}
.role-card {
  position: relative;
  padding: clamp(28px, 3.4vw, 40px);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(10, 22, 40, 0.04), 0 18px 40px -24px rgba(10, 22, 40, 0.25);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.role-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(10, 22, 40, 0.04), 0 28px 50px -24px rgba(10, 22, 40, 0.32); }
.role-icon {
  display: grid; place-items: center;
  width: 76px; height: 76px; border-radius: 22px;
  background: var(--navy);
}
.role-icon svg { width: 52px; height: 52px; fill: none; stroke: var(--cyan); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.role-card h3 { margin-top: 26px; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -0.02em; line-height: 1.1; }
.role-card > p { margin-top: 8px; color: var(--muted); }
.role-card ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.role-card li { position: relative; padding-left: 26px; line-height: 1.45; }
.role-card li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-deep); }
.role-both {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  margin: 28px auto 0; padding: 12px 22px;
  border-radius: 999px; background: var(--white);
  color: var(--muted); font-size: 15px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.role-both span { color: var(--ink); font-weight: 600; }

/* ---------- Feature cards (the renders), on a slowly flowing band ---------- */
.cards { background: var(--light); padding: 40px 0 clamp(96px, 11vw, 140px); overflow: hidden; }
.marquee {
  --cw: min(720px, 80vw);
  --gap: clamp(14px, 1.8vw, 24px);
  overflow-x: auto; scrollbar-width: none;
  padding: 4px var(--pad);
}
.marquee::-webkit-scrollbar { display: none; }
.marquee:focus-visible { outline-offset: -3px; }
.js .marquee { overflow: hidden; padding: 4px 0; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.js .marquee.is-held { cursor: grabbing; }
.strip, .set { display: flex; gap: var(--gap); }
.strip { width: max-content; will-change: transform; }
.card {
  /* Sizes come from the card width (--cw), not container queries: Safari mislays size-contained
     flex items inside the moving band and draws the cards on top of each other. */
  position: relative;
  flex: none;
  width: var(--cw); min-width: var(--cw);
  border-radius: clamp(20px, 2.4vw, 30px);
  overflow: hidden;
  background: var(--bg, var(--navy));
  display: flex; flex-direction: column;
  isolation: isolate;
  -webkit-transform: translateZ(0); transform: translateZ(0);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.card picture { display: contents; }
.card img { display: block; width: 100%; height: auto; -webkit-user-drag: none; }
.card-text { position: absolute; left: calc(var(--cw) * 0.05); top: calc(var(--cw) * 0.046); }
.card h2 { max-width: calc(var(--cw) * 0.64); color: var(--cream); font-size: max(calc(var(--cw) * 0.05), 30px); }
.card p { max-width: calc(var(--cw) * 0.34); margin-top: calc(var(--cw) * 0.013); color: var(--mist); font-size: max(calc(var(--cw) * 0.02), 14px); line-height: 1.4; }

/* Narrow cards (phones): the heading sits above the picture instead of on it. */
@media (max-width: 640px) {
  .card-text { position: static; order: -1; padding: 30px 24px 8px; }
  .card h2 { max-width: none; font-size: clamp(30px, calc(var(--cw) * 0.086), 42px); }
  .card p { max-width: none; margin-top: 10px; font-size: 17px; }
  /* Phones get their own crop (img/*-m.jpg, 1000×920) so the screens are big enough to read. */
  .card img { margin-top: auto; height: calc(var(--cw) * 0.92); object-fit: cover; object-position: 50% 50%; }
}

/* ---------- Pricing ---------- */
.pricing { background: var(--white); padding: clamp(96px, 11vw, 150px) var(--pad); text-align: center; }
.plans {
  margin: 56px auto 0; max-width: 880px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  text-align: left;
}
.plan {
  display: flex; flex-direction: column;
  padding: 36px;
  border-radius: 28px;
  background: var(--light);
}
.plan h3 { font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 1; letter-spacing: -0.03em; }
.plan ul { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; }
.plan li { position: relative; padding-left: 30px; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 0.3em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--cyan-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.plan .btn { margin-top: auto; width: 100%; }
.plan-pro { background: var(--navy); color: var(--white); }
.plan-pro li::before { background-color: #0fa7c6; }

/* ---------- FAQ ---------- */
.faq { background: var(--white); padding: 0 var(--pad) clamp(96px, 11vw, 150px); }
.faq h2 { text-align: center; }
.faq-list { max-width: 760px; margin: 48px auto 0; }
/* On the home page the questions are a pointer to the support page, where the answers are */
.faq-sub { max-width: 46ch; margin: 18px auto 0; text-align: center; color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); }
.faq-cta { margin-top: 30px; text-align: center; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  font-size: 18px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; max-width: 62ch; color: var(--muted); }

/* ---------- Closer ---------- */
.closer {
  background:
    radial-gradient(ellipse 70% 60% at 50% 115%, rgba(25, 198, 230, 0.28), transparent 70%),
    var(--night);
  color: var(--white);
  text-align: center;
  padding: clamp(110px, 12vw, 170px) var(--pad);
}
.closer h2 { font-size: clamp(38px, 5vw, 76px); max-width: 12em; margin: 0 auto; }
.closer .section-sub { color: var(--mist); }
.closer .btn { margin-top: 40px; }

/* ---------- Footer ---------- */
.foot { background: #050b16; color: var(--mist); padding: 44px var(--pad); }
.foot-in { max-width: 1160px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.foot-logo { height: 22px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--white); }
.foot-ig { display: inline-flex; align-items: center; gap: 7px; }
.foot-ig .ig { width: 17px; height: 17px; }
.foot-copy { margin-left: auto; font-size: 14px; }

/* ---------- Scroll entrances ---------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

/* ================= Motion: scroll progress, statements, word reveals, numbers ================= */
.progress {
  position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--cyan), #7be3f5);
  transform: scaleX(var(--sp, 0)); transform-origin: 0 50%;
  pointer-events: none;
}

/* Words, split by js/motion.js. Hidden only once that script has run (html.motion-on). */
.w { display: inline-block; }

/* The hero title arrives word by word. */
.motion-on .hero h1 .w { animation: wordIn 0.95s var(--ease) both; animation-delay: calc(0.12s + var(--i) * 70ms); }
@keyframes wordIn { from { opacity: 0.35; filter: blur(6px); } to { opacity: 1; filter: none; } }

/* Statements: the words light up one by one while the text stays pinned in the middle of the screen. */
.say { position: relative; height: 190vh; }
.say--dark { background: var(--night); color: var(--white); }
.say-pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 var(--pad); text-align: center; overflow: hidden;
}
.say-pin::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: 0;
  width: min(1100px, 140vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(25, 198, 230, 0.22), rgba(25, 198, 230, 0) 72%);
  transform: translate(-50%, -50%) scale(calc(0.55 + var(--g, 1) * 0.55));
  opacity: var(--g, 1);
  pointer-events: none;
}
.say-text {
  position: relative; z-index: 1;
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(46px, 9vw, 152px); line-height: 0.94; letter-spacing: -0.055em;
  max-width: 10.5ch; text-wrap: balance;
}
.say-text em { font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; color: var(--cyan); }
.say-sub { position: relative; z-index: 1; margin-top: clamp(22px, 3vw, 36px); color: var(--mist); font-size: clamp(18px, 1.7vw, 24px); }
.motion-on .say-text .w {
  --blur: 10px;
  opacity: calc(0.1 + 0.9 * var(--p, 0));
  transform: translate3d(0, calc((1 - var(--p, 0)) * 0.35em), 0);
  filter: blur(calc((1 - var(--p, 0)) * var(--blur)));
}
.motion-on .say-text em .w { color: color-mix(in srgb, var(--cyan) calc(var(--p, 0) * 100%), var(--white)); }
.motion-on .say-sub { opacity: var(--s, 0); transform: translate3d(0, calc((1 - var(--s, 0)) * 16px), 0); }

/* Other headings: the words rise in as the heading comes into view. */
.motion-on [data-words] .w {
  opacity: 0; transform: translate3d(0, 0.5em, 0) rotate(2deg); filter: blur(8px);
  transition: opacity 0.8s var(--ease), transform 0.95s var(--ease), filter 0.8s var(--ease);
  transition-delay: calc(var(--i) * 75ms);
}
.motion-on [data-words].in .w { opacity: 1; transform: none; filter: none; }

/* Numbers */
.stats {
  background: var(--light);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  padding: 0 max(var(--pad), calc((100% - 1160px) / 2)) clamp(96px, 11vw, 140px);
}
.stat { display: grid; gap: 6px; padding-top: 18px; border-top: 2px solid var(--ink); }
.stat b { font-family: var(--sans); font-weight: 800; font-size: clamp(40px, 5vw, 76px); line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat span { color: var(--muted); font-size: 16px; }

/* Role cards lean towards the pointer (desktop). */
@media (hover: hover) and (pointer: fine) {
  .role-card { transform-style: preserve-3d; will-change: transform; }
  .role-card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(25, 198, 230, 0.12), transparent 60%);
    opacity: var(--glow, 0); transition: opacity 0.3s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  .say { height: auto; }
  .say-pin { position: relative; height: auto; padding: clamp(110px, 14vw, 180px) var(--pad); }
  .motion-on .say-text .w, .motion-on .say-sub, .motion-on [data-words] .w { opacity: 1; transform: none; filter: none; transition: none; color: inherit; }
  .motion-on .say-text em .w { color: var(--cyan); }
  .motion-on .hero h1 .w { animation: none; }
  .js:not(.motion-on) .hero h1 { opacity: 1; filter: none; animation: none; }
  .progress { display: none; }
  html { scroll-behavior: auto; }
  .hero-text > *, .hero-img { animation: none; }
  .nav-menu, .nm-main li, .nm-foot { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .role-card, .btn { transition: none; }
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 820px) {
  .nav { height: 56px; padding: 0 8px 0 6px; gap: 8px; }
  .nav-links { display: none; }
  .nav .btn-sm { margin-left: auto; }
  .nav-logo img { height: 22px; }

  /* Phone menu: the button left of the logo opens the sections (js/nav.js). */
  .nav-toggle {
    display: grid; align-content: center; justify-items: center; gap: 5px;
    flex: none; width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255, 255, 255, 0.07);
    transition: background-color 0.2s ease;
  }
  .nav-toggle:active { background: rgba(255, 255, 255, 0.14); }
  .nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--white); transition: transform 0.3s var(--ease), opacity 0.2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* The open menu fills the screen under the bar: sections first, then download, help and legal. */
  .nav { position: relative; z-index: 2; }
  .nav-menu {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column;
    overflow-y: auto; overscroll-behavior: contain;
    padding: 92px var(--pad) max(26px, env(safe-area-inset-bottom));
    pointer-events: auto;
    background:
      radial-gradient(90% 45% at 100% 0%, rgba(25, 198, 230, 0.16), transparent 70%),
      radial-gradient(80% 40% at 0% 100%, rgba(52, 110, 200, 0.2), transparent 70%),
      var(--night);
    animation: menuIn 0.3s ease both;
  }
  .nav-menu[hidden] { display: none; }
  .nm-group + .nm-group { margin-top: 26px; }
  .nm-h { margin: 0 0 2px; font: 700 11px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
  .nm-main { list-style: none; margin: 0; padding: 0; }
  .nm-main li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .nm-main li, .nm-foot { animation: nmIn 0.55s var(--ease) both; animation-delay: calc(60ms + var(--i, 0) * 45ms); }
  .nm-main a {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px;
    padding: 11px 2px; color: var(--white); text-decoration: none;
  }
  .nm-t { font-weight: 700; font-size: 22px; line-height: 1.15; letter-spacing: -0.025em; transition: color 0.2s ease; }
  .nm-main a[aria-current="page"] .nm-t { color: var(--cyan); }
  .nm-d { grid-column: 1; margin-top: 4px; font-size: 14px; line-height: 1.3; color: var(--mist); }
  .nm-ar {
    grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px;
    fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    transition: transform 0.25s var(--ease);
  }
  .nm-main a:hover .nm-t, .nm-main a:active .nm-t { color: var(--cyan); }
  .nm-main a:hover .nm-ar, .nm-main a:active .nm-ar { transform: translateX(4px); }
  .nm-foot { margin-top: auto; padding-top: 30px; display: grid; justify-items: center; gap: 16px; }
  .nm-dl { width: 100%; height: 54px; }
  .nm-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .nm-legal a {
    padding: 9px 18px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    color: #d6deea; font-size: 14px; font-weight: 500; text-decoration: none;
  }
  .nm-legal a[aria-current="page"] { color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(25, 198, 230, 0.6); background: rgba(25, 198, 230, 0.1); }
  .nm-mail { color: var(--mist); font-size: 14px; text-decoration: none; }
  html.nav-open { overflow: hidden; }
  @keyframes menuIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes nmIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  /* Short screens (iPhone SE): titles only, so help and legal stay in view. */
  @media (max-height: 700px) {
    .nm-main a { padding: 8px 2px; }
    .nm-t { font-size: 20px; }
    .nm-group + .nm-group { margin-top: 18px; }
    .nm-foot { padding-top: 22px; gap: 12px; }
  }

  /* The words, then the phones under them: whole, in full light (the Download button is in the bar above). */
  .hero { display: block; min-height: 0; }
  .hero-text { position: relative; z-index: 2; padding: 124px var(--pad) 0; }
  .hero-sub { max-width: 17em; }
  .hero-img {
    position: relative; inset: auto; display: block; margin: 18px auto 0;
    width: min(92%, 500px); height: auto; max-width: none;
  }
  .hero::after { background: linear-gradient(to top, var(--night) 0%, rgba(7, 15, 31, 0) 9%); }

  .role-cards { grid-template-columns: 1fr; }
  .role-both { border-radius: 20px; }
  .marquee { --cw: 82vw; }
  .say { height: 160vh; }
  .motion-on .say-text .w { --blur: 0px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 18px; }

  .plans { grid-template-columns: 1fr; }
  .plan { padding: 30px 26px; }

  .foot-copy { margin-left: 0; width: 100%; }
}

/* ---------- Who it's for: four kinds of flying ---------- */
.who { background: var(--white); padding: clamp(96px, 11vw, 150px) 0; text-align: center; }
.who h2, .who .section-sub { padding: 0 var(--pad); }
.who-guides { margin-top: 14px; padding: 0 var(--pad); font-size: 15px; line-height: 1.6; color: var(--muted); }
.who-guides a { color: var(--cyan-deep); font-weight: 600; text-decoration: none; }
.who-guides a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.who h2, .switch h2 { font-size: clamp(36px, 4.4vw, 64px); color: var(--ink); }
.who h2 em, .switch h2 em { color: var(--cyan-deep); }
/* The cards flow past in a band, like the feature band above (js/site.js) */
.marquee-who { --cw: clamp(290px, 25vw, 360px); --gap: 18px; margin-top: 56px; text-align: left; }
.who-card { flex: none; width: var(--cw); display: flex; flex-direction: column; gap: 12px; padding: 30px 28px 32px; border-radius: 26px; background: var(--light); }
.who-card h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
.who-card ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.who-card li { position: relative; padding-left: 18px; }
.who-card li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-deep); }

/* ---------- Switch in minutes ---------- */
.switch { background: var(--light); padding: clamp(96px, 11vw, 150px) var(--pad); }
.switch-in { max-width: 1060px; margin: 0 auto; }
.switch-head { text-align: center; }
.switch-from { list-style: none; padding: 0; margin: 40px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 880px; }
.switch-from li { padding: 10px 18px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 15px; color: var(--ink); }
.switch-from li:last-child { background: var(--navy); color: var(--white); box-shadow: none; }
.switch-ways { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.switch-ways div { padding-top: 18px; border-top: 2px solid var(--ink); }
.switch-ways h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.switch-ways p { margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.switch-note { margin-top: 36px; text-align: center; color: var(--muted); font-size: 15px; }

/* ---------- Your logbook is yours ---------- */
.trust {
  padding: clamp(96px, 11vw, 150px) max(var(--pad), calc((100% - 1160px) / 2));
  background: radial-gradient(70% 60% at 85% 0%, rgba(25, 198, 230, 0.12), transparent 70%), var(--navy);
  color: var(--white); text-align: center;
}
.trust h2 { font-size: clamp(36px, 4.4vw, 64px); color: var(--white); }
.trust-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 36px; text-align: left; }
.trust-grid div { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.trust-grid h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; }
.trust-grid p { margin-top: 8px; color: var(--mist); font-size: 16px; line-height: 1.5; }
.trust-note { margin-top: 48px; color: var(--mist); font-size: 15px; }

/* ---------- Prices ---------- */
.plan .price { margin-top: 18px; display: flex; align-items: baseline; gap: 8px; }
.plan .price b { font-family: var(--sans); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.04em; }
.plan .price span { color: var(--muted); font-size: 17px; }
.plan-pro .price span { color: var(--mist); }
.plan .price + ul { margin-top: 24px; }
.plans-note { max-width: 640px; margin: 28px auto 0; color: var(--muted); font-size: 15px; }

@media (max-width: 1000px) {
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .switch-ways, .trust-grid { grid-template-columns: 1fr; }
  .marquee-who { --cw: min(320px, 78vw); --gap: 14px; margin-top: 40px; }
  .who-card { padding: 24px 22px 26px; }
  .who-card h3 { font-size: 28px; }
  .switch-from li { padding: 8px 14px; font-size: 14px; }
  .trust-grid { gap: 26px; }
}
