/* Momentlanes site. The same night sky, faces and lane colours as the app. */

/* Night is the default, as in the app. Day follows the visitor's system,
   unless they have picked one with the switch (data-theme on <html>). */
:root {
  --bg: #05060f;
  --ink: #eef1fb;
  --muted: rgba(238, 241, 251, 0.68);
  --faint: rgba(238, 241, 251, 0.5);
  --hair: rgba(255, 255, 255, 0.1);
  --glass: rgba(20, 18, 38, 0.6);
  --menu: #15132b;
  --hover: rgba(255, 255, 255, 0.07);
  --pink: #f08ab4;
  --teal: #5cc8e6;
  --violet: #b59cff;
  --amber: #f0b85a;
  --amber-fill: #f0b85a;
  --on-ink: #0b0b18;
  /* The main buttons: light on the night sky; in the day, the logo's violet into rose. */
  --btn-bg: var(--ink);
  --btn-ink: var(--on-ink);
  --btn-glow: rgba(160, 120, 255, 0.28);
  --btn-glow-hover: rgba(160, 120, 255, 0.4);
  --field: rgba(5, 6, 15, 0.6);
  --field-line: rgba(255, 255, 255, 0.22);
  --ghost-line: rgba(255, 255, 255, 0.28);
  --glow-1: rgba(120, 60, 200, 0.32);
  --glow-2: rgba(70, 40, 150, 0.22);
  --glow-3: rgba(90, 40, 170, 0.18);
  --screen-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  --menu-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --icon-sun: block;
  --icon-moon: none;
  --badge-light: none;
  --badge-dark: inline;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wide: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --bg: #f7f5fc;
    --ink: #191630;
    --muted: rgba(25, 22, 48, 0.74);
    --faint: rgba(25, 22, 48, 0.58);
    --hair: rgba(40, 25, 100, 0.12);
    --glass: rgba(255, 255, 255, 0.68);
    --menu: #ffffff;
    --hover: rgba(25, 22, 48, 0.06);
    --pink: #c2417c;
    --teal: #127f9c;
  --violet: #6a45c9;
    --violet: #6a45c9;
    --amber: #a2650a;
    --on-ink: #fbfaff;
    --btn-bg: linear-gradient(120deg, #4b1a96 0%, #7a2aa8 55%, #a8407f 100%);
    --btn-ink: #ffffff;
    --btn-glow: rgba(140, 50, 150, 0.28);
    --btn-glow-hover: rgba(140, 50, 150, 0.4);
    --field: #ffffff;
    --field-line: rgba(25, 22, 48, 0.2);
    --ghost-line: rgba(25, 22, 48, 0.26);
    --glow-1: rgba(150, 100, 235, 0.22);
    --glow-2: rgba(240, 138, 180, 0.13);
    --glow-3: rgba(92, 200, 230, 0.13);
    --screen-shadow: 0 24px 70px rgba(50, 30, 110, 0.22);
    --menu-shadow: 0 18px 50px rgba(50, 30, 110, 0.18);
    --icon-sun: none;
    --icon-moon: block;
    --badge-light: inline;
    --badge-dark: none;
    color-scheme: light;
  }
}

:root[data-theme='light'] {
  --bg: #f7f5fc;
  --ink: #191630;
  --muted: rgba(25, 22, 48, 0.74);
  --faint: rgba(25, 22, 48, 0.58);
  --hair: rgba(40, 25, 100, 0.12);
  --glass: rgba(255, 255, 255, 0.68);
  --menu: #ffffff;
  --hover: rgba(25, 22, 48, 0.06);
  --pink: #c2417c;
  --teal: #127f9c;
  --amber: #a2650a;
  --on-ink: #fbfaff;
  --btn-bg: linear-gradient(120deg, #4b1a96 0%, #7a2aa8 55%, #a8407f 100%);
  --btn-ink: #ffffff;
  --btn-glow: rgba(140, 50, 150, 0.28);
  --btn-glow-hover: rgba(140, 50, 150, 0.4);
  --field: #ffffff;
  --field-line: rgba(25, 22, 48, 0.2);
  --ghost-line: rgba(25, 22, 48, 0.26);
  --glow-1: rgba(150, 100, 235, 0.22);
  --glow-2: rgba(240, 138, 180, 0.13);
  --glow-3: rgba(92, 200, 230, 0.13);
  --screen-shadow: 0 24px 70px rgba(50, 30, 110, 0.22);
  --menu-shadow: 0 18px 50px rgba(50, 30, 110, 0.18);
  --icon-sun: none;
  --icon-moon: block;
  --badge-light: inline;
  --badge-dark: none;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 78% -10%, var(--glow-1), transparent 70%),
    radial-gradient(900px 600px at -10% 30%, var(--glow-2), transparent 70%),
    radial-gradient(1000px 700px at 110% 75%, var(--glow-3), transparent 70%),
    var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(38px, 6.2vw, 72px);
  font-weight: 300;
}

h2 {
  font-size: clamp(28px, 3.6vw, 42px);
}

h3 {
  font-size: 22px;
}

p {
  margin: 0;
}

.muted {
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 34px var(--btn-glow);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px var(--btn-glow-hover);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.btn.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
  box-shadow: none;
}

/* The quieter one beside a button: an outline in the page's own ink. */
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ghost-line);
}

.btn.ghost:hover {
  box-shadow: none;
  border-color: var(--ink);
}

/* ---------- layout ---------- */

.top,
main > section,
.foot {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-links .link {
  margin-right: 8px;
}

.link {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.link:hover {
  color: var(--ink);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  text-decoration: none;
}

.logo {
  display: block;
  flex: none;
  border-radius: 22%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- theme switch and language menu ---------- */

.icon-btn,
.lang summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.icon-btn {
  width: 38px;
  padding: 0;
}

.icon-btn:hover,
.lang summary:hover,
.lang[open] summary {
  color: var(--ink);
  border-color: var(--ghost-line);
}

.icon-btn svg,
.lang summary svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .sun {
  display: var(--icon-sun);
}

.theme-toggle .moon {
  display: var(--icon-moon);
}

.lang {
  position: relative;
}

.lang summary {
  gap: 6px;
  padding: 0 12px 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  list-style: none;
}

.lang summary::-webkit-details-marker {
  display: none;
}

.lang ul {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  right: 0;
  min-width: 176px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 14px;
  background: var(--menu);
  border: 1px solid var(--hair);
  box-shadow: var(--menu-shadow);
}

.lang a {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.lang a:hover {
  background: var(--hover);
  color: var(--ink);
}

.lang a[aria-current] {
  color: var(--ink);
  font-weight: 600;
}

main > section {
  padding-top: clamp(56px, 9vw, 112px);
}

/* ---------- hero ---------- */

.hero {
  padding-top: clamp(28px, 6vw, 72px) !important;
}

.hero-text {
  max-width: 760px;
}

.lede {
  margin-top: 22px;
  font-size: clamp(18px, 1.9vw, 21px);
  color: var(--muted);
  max-width: 620px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 32px;
}

.note {
  color: var(--faint);
  font-size: 15px;
}

.screen {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--hair);
  background: #0a0918;
  box-shadow: var(--screen-shadow), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  aspect-ratio: 16 / 9;
}

.screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s;
}

/* The poster, laid under the video by main.js: what a stopped loop shows. */
.screen {
  background-size: cover;
  background-position: center;
}

.screen video.still {
  opacity: 0;
}

.screen {
  position: relative;
}

/* Stops every loop on the page, or starts them again. Quiet until wanted. */
.video-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(8, 7, 20, 0.55);
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s, background 0.15s;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.video-toggle:hover,
.video-toggle:focus-visible {
  opacity: 1;
  background: rgba(8, 7, 20, 0.8);
}

.video-toggle:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.video-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hero-screen {
  margin-top: clamp(36px, 6vw, 64px);
}

/* ---------- what it is ---------- */

.points {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.points li {
  padding: 26px 24px 28px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--hair);
}

.points svg {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
}

.points h3 {
  margin-bottom: 10px;
}

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

svg [class*='s-'] {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.s-pink { stroke: var(--pink); }
.s-teal { stroke: var(--teal); }
.s-amber { stroke: var(--amber); }
.f-pink { fill: var(--pink); background: var(--pink); }
.f-teal { fill: var(--teal); background: var(--teal); }
.f-amber { fill: var(--amber); background: var(--amber); }
.f-violet { fill: var(--violet); background: var(--violet); }
.dash { stroke-dasharray: 3 5; }

/* ---------- three ways ---------- */

.section-lede {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}

.way {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  margin-top: clamp(36px, 5vw, 64px);
}

.way.flip {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
}

.way.flip .screen {
  order: 2;
}

.way-text h3 {
  font-size: clamp(26px, 2.8vw, 32px);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.way-text p {
  color: var(--muted);
}

/* ---------- private / everywhere ---------- */

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.panel {
  padding: clamp(26px, 4vw, 40px);
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--hair);
}

.panel > p {
  margin-top: 14px;
  color: var(--muted);
}

.ticks {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ticks li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
}

/* ---------- get it ---------- */

.get-grid {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.get-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 24px 20px 22px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--hair);
}

/* Each platform's own mark, filled; the browser's globe is drawn in line. */
.get-card .mark {
  width: 30px;
  height: 30px;
  fill: var(--teal);
}

.get-card .mark.line {
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.get-card h3 {
  font-size: 20px;
}

.get-card p {
  flex: 1;
  color: var(--muted);
  font-size: 15px;
}

.get-card .btn,
.get-card .tag {
  align-self: flex-start;
}

/* A store's own badge, at its own proportions and the 40px height Apple draws it at. */
.store-badge {
  align-self: flex-start;
  line-height: 0;
  border-radius: 8px;
}

.store-badge img {
  height: 40px;
  width: auto;
}

.store-badge .light {
  display: var(--badge-light);
}

.store-badge .dark {
  display: var(--badge-dark);
}

/* The visitor's own kind of device, found by main.js. */
.get-card.yours {
  border-color: color-mix(in srgb, var(--teal) 55%, transparent);
}

.yours-tag {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.get-card.yours .yours-tag {
  display: block;
}

/* ---------- examples ---------- */

.example-grid {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.example-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--hair);
}

.example-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--hair);
}

.example-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 22px;
}

.example-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.example-meta .dot {
  margin: 0;
}

.example-text h3 {
  font-size: 20px;
}

.example-text p:not(.example-meta) {
  flex: 1;
  color: var(--muted);
  font-size: 15px;
}

.example-text .btn {
  align-self: flex-start;
}

.example-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.example-actions span {
  margin-right: 4px;
  color: var(--faint);
  font-size: 14px;
}

/* Two files to choose between, as plain links so they sit on one line under the button. */
.example-files {
  gap: 4px 12px;
  font-size: 14px;
}

.example-files span {
  margin-right: 0;
}

.example-files a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 3px;
}

.examples-note {
  margin-top: 20px;
  color: var(--faint);
  font-size: 14px;
}

@media (max-width: 960px) {
  .example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .example-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- plans ---------- */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
  align-items: start;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: clamp(26px, 4vw, 36px);
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--hair);
}

/* Plus is drawn in the Adventures lane's amber: the one still on its way. */
.plan.plus {
  border-color: color-mix(in srgb, var(--amber) 40%, transparent);
  background:
    radial-gradient(520px 260px at 100% 0%, color-mix(in srgb, var(--amber-fill) 12%, transparent), transparent 70%),
    var(--glass);
}

.plan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.plan-head h3 {
  font-size: clamp(26px, 2.8vw, 32px);
}

.tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.tag.now {
  color: var(--teal);
  background: color-mix(in srgb, var(--teal) 13%, transparent);
}

.tag.soon {
  color: var(--amber);
  background: color-mix(in srgb, var(--amber) 15%, transparent);
}

.plan .ticks {
  margin: 0;
}

.plan.plus .ticks li::before {
  background: var(--amber);
}

.plan > .btn {
  align-self: flex-start;
}

.waitlist {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
}

.waitlist label {
  font-weight: 600;
}

.waitlist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.waitlist input[type='email'] {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--field-line);
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.waitlist input[type='email']::placeholder {
  color: var(--faint);
}

.waitlist input[type='email']:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.waitlist .btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  background: var(--amber-fill);
  color: #1a1206;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--amber-fill) 24%, transparent);
}

.waitlist .btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

.waitlist-note {
  font-size: 14px;
  color: var(--faint);
}

.waitlist-note.done {
  color: var(--amber);
}

.waitlist-note.error {
  color: var(--pink);
}

/* What is kept, and for how long: stays put while the note above changes. */
.waitlist-privacy {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--faint);
}

.waitlist-privacy a {
  color: var(--muted);
}

/* ---------- organisations ---------- */

.orgs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.orgs .ticks {
  margin-top: 22px;
}

.contact {
  gap: 14px;
}

.contact label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}

.contact-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.contact input:not(.trap),
.contact textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--field-line);
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
}

.contact input:not(.trap) {
  min-height: 48px;
}

.contact textarea {
  resize: vertical;
  line-height: 1.5;
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: var(--faint);
}

.contact input:focus-visible,
.contact textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.contact .btn {
  align-self: flex-start;
  padding-left: 32px;
  padding-right: 32px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.contact .btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

.contact-note {
  font-size: 14px;
  color: var(--faint);
}

.contact-note.done {
  color: var(--amber);
}

.contact-note.error {
  color: var(--pink);
}

@media (max-width: 820px) {
  .orgs {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Off screen rather than display:none, which some bots skip. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ---------- questions ---------- */

.faq h2 {
  margin-bottom: 24px;
  text-align: center;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--hair);
}

.faq-item {
  border-bottom: 1px solid var(--hair);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  flex: none;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--faint);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--amber);
}

.faq-item p {
  margin: 0 0 20px;
  max-width: 680px;
  color: var(--muted);
}

/* ---------- end + footer ---------- */

.end {
  text-align: center;
  padding-bottom: clamp(56px, 9vw, 112px);
}

.end h2 {
  max-width: 640px;
  margin: 0 auto 28px;
}

.foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px 24px;
  padding-top: 28px;
  padding-bottom: 40px;
  border-top: 1px solid var(--hair);
  font-size: 14px;
}

.foot .wordmark {
  font-size: 18px;
  gap: 8px;
  margin-right: 12px;
  vertical-align: middle;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-links.start {
  justify-content: flex-start;
}

.foot-links a {
  color: var(--muted);
}

.foot-links a:hover {
  color: var(--ink);
}

.foot-legal {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
}

@media (max-width: 820px) {
  .foot {
    grid-template-columns: 1fr;
  }

  .foot-brand .muted {
    display: block;
    margin-top: 6px;
  }

  .foot-links {
    justify-content: flex-start;
  }
}

/* The legal notice and the privacy policy. */
.legal {
  max-width: 720px;
  padding-top: 32px;
  padding-bottom: 64px;
}

.legal h1 {
  margin: 0 0 24px;
}

.legal h2 {
  margin: 40px 0 12px;
  font-size: clamp(22px, 3vw, 26px);
}

.legal p,
.legal li {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
}

.legal ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal strong {
  color: var(--ink);
  font-weight: 600;
}

.legal code {
  font-size: 0.92em;
  color: var(--ink);
}

.legal .date {
  margin-top: -12px;
  margin-bottom: 28px;
  font-size: 14px;
}

.legal .short {
  padding: 16px 20px;
  border: 1px solid var(--hair);
  border-radius: 14px;
  color: var(--ink);
}

.legal .back {
  margin-top: 40px;
}

/* A page that is not there. */
.missing {
  min-height: 60vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
}

.missing h1 {
  margin: 0;
}

/* ---------- small screens ---------- */

@media (max-width: 820px) {
  .points,
  .pair,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .way,
  .way.flip {
    grid-template-columns: 1fr;
  }

  .way.flip .screen {
    order: 0;
  }
}

@media (max-width: 1020px) {
  .get-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .get-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* One column of cards on a phone: the visitor's own comes first. */
  .get-card.yours {
    order: -1;
  }
}

/* Too narrow for every link in the header: the downloads are a scroll away. */
@media (max-width: 720px) {
  .top .get-link {
    display: none;
  }
}

/* On a phone each card is a row: the icon beside its words. */
@media (max-width: 560px) {
  .get-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .get-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 6px;
    padding: 18px 18px 18px 16px;
  }

  .get-card svg {
    grid-row: 1 / span 3;
  }

  .get-card > :not(svg) {
    grid-column: 2;
  }

  .get-card .btn,
  .get-card .tag,
  .get-card .store-badge {
    justify-self: start;
    margin-top: 6px;
  }

  .get-card .yours-tag {
    position: static;
    grid-row: 1;
  }
}

/* The hero's own button is right below on a phone, so the header keeps
   the logo, the language and the switch. Up to 600px, where "Abrir o
   Momentlanes" and its neighbours no longer fit beside them. */
@media (max-width: 600px) {
  .top .link,
  .top .open {
    display: none;
  }
}

@media (max-width: 420px) {
  .top {
    gap: 10px;
  }

  .top .wordmark {
    gap: 8px;
    font-size: 19px;
  }

  .top .logo {
    width: 30px;
    height: 30px;
  }


  .cta-row .btn {
    width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

/* ---------- use-case pages ---------- */


.use-hero .note {
  margin-top: 14px;
}

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

.steps li {
  counter-increment: step;
  padding: 24px 22px 26px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--hair);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  border: 2px solid var(--amber);
  color: var(--amber);
  font-weight: 700;
}

.steps h3 {
  margin-bottom: 10px;
}

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

.pair.single {
  grid-template-columns: minmax(0, 1fr);
}

.cta-row.center {
  justify-content: center;
  margin-top: 0;
}

.uses h2 {
  margin-bottom: 20px;
}

.use-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.use-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.use-card:hover {
  border-color: currentColor;
  transform: translateY(-2px);
}

.use-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.use-card-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 20px;
}

.use-card-text strong {
  font-size: 1.15rem;
}

.use-card-text span {
  color: var(--muted);
}

@media (max-width: 1020px) {
  .use-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .use-cards {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--muted);
}

.crumbs li + li::before {
  content: '›';
  margin-right: 6px;
  color: var(--faint);
}

.crumbs a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--hair);
  text-underline-offset: 4px;
}

.crumbs a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.crumbs [aria-current] {
  color: var(--ink);
}

/* ---------- Plus card: the pitch, the price and the one question ---------- */

.plan-pitch {
  font-size: clamp(19px, 1.9vw, 22px);
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.plan-cost {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0;
}

.cost-now {
  font-size: clamp(30px, 3.2vw, 38px);
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -0.01em;
}

.cost-later {
  font-size: 18px;
  color: var(--faint);
}

.cost-note {
  flex-basis: 100%;
  font-size: 14px;
  color: var(--muted);
}

.plan-pitch-wrap {
  display: grid;
  gap: 6px;
}

.plan-sub {
  margin: 0;
  color: var(--muted);
}

/* ---------- plans, balanced: equal cards, the form and the notes below ---------- */

.plan-grid { align-items: stretch; }
.plan > .btn { margin-top: auto; }
.plan .ticks { margin-bottom: 8px; }
.plan:not(.plus) .cost-now { color: var(--teal); }
.plan:not(.plus) .ticks li::before { background: var(--teal); }
.fine {
  margin-top: 18px;
  display: grid;
  gap: 6px;
  max-width: 760px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--faint);
}
.fine p { margin: 0; }
.fine a { color: var(--muted); }

.waitlist.in-card {
  margin-top: auto;
  padding-top: 0;
  border-top: 0;
  gap: 8px;
}
.waitlist.in-card .sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
.waitlist.in-card .waitlist-note { font-size: 13.5px; }
