/* NextLine landing page, third version. A product page in the manner of the
   good Mac-app sites: white, quiet, system type, and the product itself shown
   large. Colour is kept to one soft wash behind the hero and a tint per card.
   The app is never redrawn here: the video is the app at work, and the pictures
   in landing/ui/ are taken from the app's own pages (scripts/landing-shots.mjs). */
:root {
  --ink: #111110;
  --text: #1f1e1c;
  --mute: #6e6b65;
  --line: #e8e6e1;
  --soft: #f5f4f1;
  --coral: #f0806b;
  --coral-ink: #d4532f;
  --panel: #171614;
  --cream: #f4efe6;
  /* What the overlay's pictures are taken against: the frame around one continues it. */
  --behind: #27303b;
  --page: min(1160px, calc(100vw - 48px));
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: #fff; color: var(--text); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
p { margin: 0; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--coral-ink); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ---- navigation ---- */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; height: 60px; padding: 0 max(24px, calc((100vw - 1160px) / 2)); background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid rgba(17, 17, 16, 0.06); }
.brand { display: inline-flex; align-items: center; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.brand img { margin-right: 9px; }
.nav nav { margin: 0 auto; display: flex; }
.nav nav a { margin: 0 14px; font-size: 15px; color: var(--mute); text-decoration: none; }
.nav nav a:hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; height: 50px; padding: 0 24px; border-radius: 25px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; transition: transform 0.16s ease, box-shadow 0.16s ease; }
.btn svg { margin-right: 9px; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(17, 17, 16, 0.2); }
.btn.small { height: 36px; padding: 0 16px; border-radius: 18px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(17, 17, 16, 0.18); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.light { background: #fff; color: var(--ink); }
.btn.outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); }
.btn.outline:hover { box-shadow: inset 0 0 0 1.5px #fff; }
/* No installer to hand out yet: the button states that, and does nothing. */
.btn.soon { cursor: default; }
.btn.soon:hover { transform: none; box-shadow: none; }
.btn.soon svg { display: none; }
.no-download .only-download { display: none; }
.no-download-win .only-download-win, .no-download-win a[data-download="win"] { display: none; }

/* ---- hero: the words centred, then the product at work ---- */
.hero { position: relative; padding: 48px 24px 0; text-align: center; }
.hero::before { content: ""; position: absolute; left: 0; right: 0; top: -60px; height: 720px; z-index: -1; background: radial-gradient(52% 56% at 50% 0%, #ffe6da 0%, rgba(255, 230, 218, 0) 70%), radial-gradient(34% 40% at 86% 8%, #ebe6ff 0%, rgba(235, 230, 255, 0) 70%), radial-gradient(34% 40% at 12% 10%, #fff3d2 0%, rgba(255, 243, 210, 0) 70%); }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 14px 4px 5px; border-radius: 16px; background: rgba(255, 255, 255, 0.8); box-shadow: inset 0 0 0 1px rgba(17, 17, 16, 0.08); font-size: 13.5px; color: var(--mute); }
.chip b { flex: none; display: inline-flex; align-items: center; height: 22px; margin-right: 9px; padding: 0 9px; border-radius: 11px; background: var(--ink); color: #fff; font-size: 12px; }
h1 { margin-top: 20px; font-size: clamp(36px, 5.1vw, 68px); line-height: 1.12; letter-spacing: -0.035em; }
.lede { margin: 22px auto 0; max-width: 33em; font-size: clamp(17px, 1.5vw, 20px); color: var(--mute); }
.cta { margin-top: 26px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.also { margin: 16px auto 0; max-width: 34em; font-size: 14px; color: var(--mute); text-wrap: balance; }
.also b { margin-right: 6px; font-weight: 600; color: var(--text); }

/* The film: the app at work in a meeting. The picture brings its own desktop, so the frame is only a rounded edge. */
.film { width: min(1120px, 100%); margin: 44px auto 0; }
.screen { position: relative; aspect-ratio: 1200 / 750; border-radius: 24px; overflow: hidden; background: #e9cfd2; box-shadow: 0 44px 80px -36px rgba(74, 40, 84, 0.5), 0 0 0 1px rgba(17, 17, 16, 0.08); }
.screen video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film button { border: 0; font: inherit; cursor: pointer; color: #fff; background: rgba(17, 17, 16, 0.74); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; padding: 0 0 0 4px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform 0.16s ease, opacity 0.2s ease; }
.play:hover { transform: scale(1.06); }
.film.playing .play { opacity: 0; pointer-events: none; }
.sound { position: absolute; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 11px; border-radius: 18px; font-size: 13.5px; font-weight: 600; }
.sound[aria-pressed="true"] .cross, .sound[aria-pressed="false"] .waves { display: none; }
.film figcaption { margin: 14px auto 0; max-width: 40em; font-size: 14px; color: var(--mute); text-wrap: balance; }

.facts { list-style: none; width: var(--page); margin: 44px auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; text-align: left; }
.facts li { padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--mute); }
.facts b { display: block; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); }
.section .facts { width: auto; margin-top: 40px; }

/* ---- sections ---- */
.section { width: var(--page); margin: 0 auto; padding: 120px 0 0; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--coral-ink); }
h2 { margin-top: 10px; font-size: clamp(30px, 3.7vw, 50px); line-height: 1.18; letter-spacing: -0.03em; }
.section > h2 { max-width: 16em; }

/* A picture of the app, in a frame the colour it was taken against. */
.shot { display: flex; align-items: center; justify-content: center; border-radius: 18px; overflow: hidden; background: var(--behind); }
.shot img { display: block; }

/* Three things it does in a meeting: when, what, and what that looks like. */
.steps { margin-top: 48px; display: grid; gap: 20px; }
.step { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); align-items: center; gap: 44px; padding: 26px 26px 26px 48px; border-radius: 28px; }
.step:nth-child(1) { background: linear-gradient(160deg, #eeeaff, #dfe8ff); }
.step:nth-child(2) { background: linear-gradient(160deg, #ffe9df, #ffd9d0); }
.step:nth-child(3) { background: linear-gradient(160deg, #e7f6ea, #fdf3d3); }
.when { display: inline-block; padding: 8px 14px; border-radius: 14px 14px 14px 4px; background: #fff; font-size: 15px; font-weight: 600; color: var(--ink); box-shadow: 0 6px 16px rgba(17, 17, 16, 0.08); }
.step h3 { margin-top: 20px; font-size: clamp(24px, 2.5vw, 32px); letter-spacing: -0.025em; }
.step .words p:not(.when) { margin-top: 10px; max-width: 23em; font-size: 16.5px; color: #55524c; }
.step .shot { min-height: 280px; box-shadow: 0 22px 40px -18px rgba(17, 17, 16, 0.45); }

/* Features: one card each. The app in that state on top, its name, two lines. */
.cards { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.fcard { padding: 14px 14px 30px; border-radius: 28px; background: var(--soft); }
.fcard .shot { height: 270px; }
.fcard .shot.plain { background: #fff; box-shadow: inset 0 0 0 1px var(--line); padding: 0 18px; }
/* The overlay over a slide: only its top fits, which is the part the colours show through. */
.fcard .shot.slide { align-items: flex-start; background: #c98a4a; }
.fcard .shot.slide img { width: 100%; }
.fcard h3 { margin: 24px 18px 0; font-size: 24px; letter-spacing: -0.025em; }
.fcard p { margin: 8px 18px 0; font-size: 16px; color: var(--mute); }

/* The main window, as a window. */
.window { position: relative; max-width: 1040px; margin-top: 44px; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 44px 80px -36px rgba(17, 17, 16, 0.4), 0 0 0 1px rgba(17, 17, 16, 0.1); }
.window img { display: block; width: 100%; }
.window::before { content: ""; position: absolute; left: 18px; top: 17px; width: 52px; height: 12px; background: radial-gradient(circle at 6px 6px, #ff5f57 5.5px, transparent 6px), radial-gradient(circle at 26px 6px, #febc2e 5.5px, transparent 6px), radial-gradient(circle at 46px 6px, #28c840 5.5px, transparent 6px); }

/* ---- price ---- */
.plans { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 840px; }
.plan { padding: 30px 30px 32px; border-radius: 28px; background: var(--soft); }
.plan h3 { font-size: 20px; }
.price { margin-top: 14px; font-size: 17px; color: var(--mute); }
.price b { margin-right: 4px; font-size: 58px; line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.what { margin-top: 12px; font-weight: 600; color: var(--ink); }
.plan ul { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(17, 17, 16, 0.1); font-size: 15.5px; color: var(--mute); }
.plan li { position: relative; padding-left: 24px; }
.plan li + li { margin-top: 6px; }
.plan li::before { content: ""; position: absolute; left: 3px; top: 0.52em; width: 11px; height: 6px; border-left: 2px solid var(--coral-ink); border-bottom: 2px solid var(--coral-ink); transform: rotate(-45deg); }
.plan.best { background: var(--panel); background-image: radial-gradient(90% 70% at 100% 0%, rgba(240, 128, 107, 0.34), rgba(240, 128, 107, 0) 70%); }
.plan.best h3, .plan.best .price b, .plan.best .what { color: #fff; }
.plan.best .price, .plan.best ul { color: #b9b0a0; }
.plan.best ul { border-top-color: rgba(255, 255, 255, 0.14); }
.plan.best li::before { border-color: var(--coral); }
.small-print { margin-top: 22px; font-size: 14.5px; color: var(--mute); }

/* ---- privacy ---- */
.privacy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); column-gap: 64px; align-items: center; }
.privacy-copy p:not(.eyebrow) { margin-top: 18px; max-width: 30em; color: var(--mute); }
.flow { display: flex; align-items: center; padding: 36px 28px; border-radius: 28px; background: var(--soft); }
.local { position: relative; flex: 1; padding: 30px 18px 18px; border: 1.5px dashed #c9c5bc; border-radius: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: #fff; }
.local .tag { position: absolute; left: 18px; top: -13px; padding: 2px 12px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; }
.node { padding: 12px 14px; border-radius: 13px; background: var(--soft); font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.node small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--mute); }
.join { text-align: center; line-height: 1; color: #b3aea4; }
.local .join { grid-column: span 2; }
.join small { font-size: 12px; }
.node.strong { grid-column: span 2; background: var(--ink); color: #fff; text-align: center; }
.node.strong small { color: #ffb5a4; font-weight: 600; }
.wire { flex: none; width: 76px; height: 2px; position: relative; background: repeating-linear-gradient(90deg, var(--coral-ink) 0 6px, transparent 6px 11px); }
.wire span { position: absolute; left: 0; right: 0; top: -26px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--coral-ink); white-space: nowrap; }
.remote { flex: none; width: 150px; display: grid; gap: 8px; }
.node.cloud { background: #fff; box-shadow: inset 0 0 0 1.5px rgba(212, 83, 47, 0.5); text-align: center; }

/* ---- questions ---- */
#faq { max-width: 820px; }
.faq { margin-top: 36px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; padding: 20px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; padding-left: 16px; font-weight: 400; font-size: 24px; line-height: 1; color: var(--mute); }
details[open] summary::after { content: "–"; }
details p { padding: 0 40px 22px 0; font-size: 16px; color: var(--mute); }

/* ---- closing ---- */
.closing { padding: 120px 24px 36px; }
.panel { width: var(--page); max-width: 100%; margin: 0 auto; padding: 72px 28px 64px; border-radius: 32px; background: var(--panel); color: var(--cream); text-align: center; background-image: radial-gradient(60% 80% at 50% 120%, rgba(240, 128, 107, 0.4), rgba(240, 128, 107, 0) 70%); }
.panel img { border-radius: 16px; }
.panel h2 { margin: 22px auto 30px; color: #fff; }
.panel .cta { margin-top: 0; }
.panel .fine { margin-top: 20px; font-size: 13.5px; color: #b9b0a0; }
.panel .fine.dim { max-width: 34em; margin: 8px auto 0; color: #8f877a; }
.foot { width: var(--page); max-width: 100%; margin: 36px auto 0; display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--mute); }
.foot .brand { font-size: 16px; }

/* ---- arriving on the page, and on scroll. `translate` is used so that it never fights an element's own transform. ---- */
.js .reveal, .js .section > *, .js .closing > * { opacity: 0; translate: 0 16px; transition: opacity 0.7s ease, translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in, .js .section.in > *, .js .closing.in > * { opacity: 1; translate: none; }
.js .section.in > :nth-child(2) { transition-delay: 0.07s; }
.js .section.in > :nth-child(3) { transition-delay: 0.14s; }

/* ---- narrower screens ---- */
@media (max-width: 1100px) {
  .privacy { grid-template-columns: minmax(0, 1fr); row-gap: 44px; }
  .step { gap: 32px; padding-left: 34px; }
}
@media (max-width: 900px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .cards, .plans, .facts, .step { grid-template-columns: minmax(0, 1fr); }
  .step { gap: 22px; padding: 26px 18px 18px; }
  .step .words { padding: 0 8px; }
  .step .shot { min-height: 0; padding: 14px 0; }
  .section { padding-top: 88px; }
  .closing { padding-top: 88px; }
  .fcard .shot { height: auto; min-height: 200px; }
  .fcard .shot.slide { max-height: 300px; }
}
/* Below this the film is the narrow cut (landing.js picks it at the same width). */
@media (max-width: 700px) {
  .screen { aspect-ratio: 620 / 760; border-radius: 20px; }
}
@media (max-width: 640px) {
  :root { --page: calc(100vw - 40px); }
  body { font-size: 16px; }
  .hero { padding: 40px 20px 0; }
  h1 { font-size: min(8vw, 36px); }
  .film { margin-top: 36px; }
  .play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .fcard h3 { font-size: 21px; }
  .flow { flex-direction: column; padding: 30px 18px 22px; }
  .wire { width: 2px; height: 50px; background: repeating-linear-gradient(180deg, var(--coral-ink) 0 6px, transparent 6px 11px); }
  .wire span { left: 14px; right: auto; top: 15px; }
  .remote { width: 100%; }
  details p { padding-right: 0; }
  .panel { padding: 56px 22px 48px; border-radius: 26px; }
  .window { border-radius: 9px; }
  .window::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .section > *, .js .closing > * { opacity: 1; translate: none; transition: none; }
  .btn, .play { transition: none; }
}
