/* NextMe landing — one responsive page out of two design files:
   "NextMe Landing Mobile.dc.html" is the base, "NextMe Landing v2.dc.html"
   takes over at 1024px. Every number below is the design's; the 700px step is
   the only invention, so tablets do not read as a stretched phone. */

:root {
  --bg: #0b0b12;
  --s1: #0f0f18;
  --s2: #14141f;
  --s3: #1a1a24;
  --ink: #f4f2f7;
  --dim: rgba(255, 255, 255, 0.6);
  --line: rgba(255, 255, 255, 0.1);
  --grad: linear-gradient(120deg, #5d5bd7, #ff746f);
  --coral: #ff9d9a;
  --mint: #7fd8c7;
  --star: #ffc46b;

  --maxw: 560px;
  --pad: 20px;
  --navh: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Archivo, -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; }
a { color: rgba(255, 255, 255, 0.55); text-decoration: none; }
a:hover { color: #fff; }

:where(section, header)[id] { scroll-margin-top: var(--navh); }

:focus-visible { outline: 2px solid #8f8dff; outline-offset: 3px; }

.mono {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  word-spacing: normal;
}

.wide-only { display: none; }
.narrow-only { display: inline; }

@keyframes nm-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes nm-marquee { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ---------- shared shells ---------- */

.section {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--pad) 64px;
}

.head { display: flex; flex-direction: column; gap: 12px; text-align: center; }
.head h2 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1.1px;
  word-spacing: 0.08em;
  line-height: 1.02;
  text-transform: uppercase;
}
.head h2 em { letter-spacing: -0.5px; }
.head p { font-size: 15px; line-height: 1.55; color: var(--dim); text-wrap: pretty; }

.head--split { text-align: left; }
.head--split h2 { line-height: 1; }
.head--split p { line-height: 1.6; }

.rule { border-top: 1px solid var(--line); padding-top: 30px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  border-radius: 26px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.88; }
.btn--light { background: #f4f2f7; color: #0b0b12; }
.btn--light:hover { color: #0b0b12; }
.btn--grad { background: var(--grad); color: var(--ink); }
.btn--grad:hover { color: var(--ink); opacity: 0.9; }
.btn--sm { height: 44px; padding: 0 18px; font-size: 14px; border-radius: 22px; }
.btn--lg { height: 56px; padding: 0 34px; font-size: 17px; border-radius: 28px; }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 11, 18, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.nav__in {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.brand__mark { width: 26px; height: 26px; flex-shrink: 0; }
.brand__name { font-size: 16px; font-weight: 900; letter-spacing: -0.4px; }

.nav__menu { display: none; }
.nav__signin { display: none; }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.burger {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
}

.menu {
  position: fixed;
  inset: var(--navh) 0 0;
  z-index: 55;
  background: #14141c;
  overflow-y: auto;
  padding: 8px 0 24px;
}
.menu[hidden] { display: none; }
.menu__group {
  display: flex;
  flex-direction: column;
  padding: 20px 24px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.menu__group--last { border-bottom: 0; padding: 26px 24px; }
.menu__title { font-size: 26px; font-weight: 900; letter-spacing: -0.8px; margin-bottom: 12px; }
.menu__group a { padding: 14px 0; font-size: 17px; color: rgba(255, 255, 255, 0.72); }

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

.hero { position: relative; min-height: 700px; overflow: hidden; }

.mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  padding: 5px;
  opacity: 0.5;
}
.mosaic div { height: 150px; border-radius: 7px; overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }

.hero__veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(11, 11, 18, 0.94) 0%, rgba(11, 11, 18, 0.76) 46%, rgba(11, 11, 18, 0.94) 100%);
}
.hero__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 18, 0.7) 0%, rgba(11, 11, 18, 0.2) 26%, rgba(11, 11, 18, 0.85) 80%, #0b0b12 100%);
}

.hero__body {
  position: relative;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 88px var(--pad) 96px;
  text-align: center;
}
.hero__title {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -1.8px;
  word-spacing: 0.1em;
  line-height: 0.96;
  text-transform: uppercase;
  max-width: 1020px;
}
.hero__title em { font-size: 48px; letter-spacing: -1px; }
.hero__sub {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
  text-wrap: pretty;
}
.hero__cta {
  width: 100%;
  max-width: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}
.hero__cta .btn { width: 100%; }

.dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 10px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}
.dots i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); }

.hero__scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-align: center;
  white-space: nowrap;
}
.hero__arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  animation: nm-bob 2.2s ease-in-out infinite;
}

/* ---------- styles ---------- */

.section--styles { padding-top: 56px; }
.section--styles .head { margin-bottom: 26px; }

.styles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.style {
  position: relative;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color 0.15s ease;
}
.style:hover { border-color: rgba(255, 255, 255, 0.4); }
.style img { width: 100%; height: 100%; object-fit: cover; }
.style figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 10px 10px;
  background: linear-gradient(180deg, rgba(8, 8, 15, 0) 0%, rgba(8, 8, 15, 0.9) 100%);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- before / after ---------- */

#looks .head { margin-bottom: 22px; }

.ba-grid { display: none; }
.ba-single { display: flex; flex-direction: column; gap: 22px; max-width: 430px; margin-inline: auto; }

.ba-card {
  position: relative;
  height: 470px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.ba-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-card .ba-before { filter: saturate(0.8) brightness(0.92); }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.85);
  pointer-events: none;
}
.ba-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f4f2f7;
  color: #0b0b12;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}
.ba-tag {
  position: absolute;
  top: 12px;
  padding: 6px 11px;
  border-radius: 8px;
  background: rgba(4, 4, 8, 0.7);
  font-size: 10px;
  pointer-events: none;
}
.ba-tag--before { left: 12px; }
.ba-tag--after { right: 12px; }
.ba-hint {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--dim);
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.ba-card.is-touched .ba-hint { opacity: 0; }

.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.thumb {
  position: relative;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.14);
  padding: 0;
  background: none;
  cursor: pointer;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.thumb[aria-current='true'] { border-color: #ff746f; }
.thumb[aria-current='true'] img { opacity: 1; }

/* ---------- how it works ---------- */

.section--how { padding-inline: 0; }
.section--how .head { margin: 0 var(--pad); }
.section--how .head p { max-width: 420px; }
.phones {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 26px var(--pad) 8px;
}

.phone {
  flex: 0 0 auto;
  width: 268px;
  height: 580px;
  scroll-snap-align: center;
  border-radius: 32px;
  padding: 7px;
  background: var(--s3);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.phone__in {
  position: relative;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: #08080f;
}
.phone__notch {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 58px;
  height: 14px;
  border-radius: 9px;
  background: #08080f;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.phone__steps {
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 5px;
}
.phone__steps i { width: 5px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); }
.phone__steps i.on { width: 16px; background: #fff; }

.phone__media { position: absolute; top: 0; left: 0; right: 0; overflow: hidden; }
.phone__media--grid { height: 376px; }
.phone__media--photo { height: 372px; }
.phone__media--photo img { width: 100%; height: 100%; object-fit: cover; }
.phone__photofade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 15, 0.45) 0%, rgba(8, 8, 15, 0) 28%, rgba(8, 8, 15, 0.25) 62%, #08080f 100%);
}

.tiles { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 118px; gap: 8px; padding: 46px 10px 0; }
.tile { position: relative; border-radius: 11px; overflow: hidden; background: #16162a; }
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.tile span {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 5px;
  padding: 4px 6px;
  border-radius: 9px;
  background: rgba(4, 4, 8, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  font-size: 9px;
  font-weight: 600;
}
.tiles__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 15, 0.5) 0%, rgba(8, 8, 15, 0) 16%, rgba(8, 8, 15, 0.12) 70%, rgba(8, 8, 15, 0.6) 92%, #08080f 100%);
  pointer-events: none;
}

.card {
  position: absolute;
  left: 14px;
  right: 14px;
  border-radius: 15px;
  background: rgba(4, 4, 8, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}
.card--brief { top: 214px; padding: 12px 14px; }
.card__label { font-size: 8px; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.5); }
.card__quote {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.3;
  margin-top: 6px;
}
.card--progress {
  top: 232px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 13px 15px;
  background: rgba(4, 4, 8, 0.72);
}
.card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: var(--dim);
}
.bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #5d5bd7, #ff746f); }
.card__note { font-size: 11px; color: rgba(255, 255, 255, 0.55); }
.card--export {
  top: 242px;
  display: flex;
  gap: 8px;
  background: none;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
}
.card__dl {
  flex: 1;
  height: 40px;
  border-radius: 20px;
  background: #fff;
  color: #0b0b12;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.card__heart {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.phone__foot {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.phone__kicker { display: flex; align-items: center; gap: 9px; }
.phone__kicker .mono { font-size: 9px; letter-spacing: 0.18em; color: rgba(255, 255, 255, 0.5); }
.phone__no {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.75);
}
.phone__title { font-size: 22px; font-weight: 900; letter-spacing: -0.8px; word-spacing: 0.06em; line-height: 1.06; }
.phone__accent {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 23px;
  line-height: 1.06;
  color: var(--coral);
}
.phone__body { font-size: 12px; line-height: 1.5; color: var(--dim); margin-top: 8px; text-wrap: pretty; }

/* ---------- numbers ---------- */

.section--numbers { padding-bottom: 56px; }
.section--numbers .head { margin-bottom: 24px; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.stat {
  background: var(--s1);
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
}
.stat__n { font-family: 'Instrument Serif', serif; font-size: 38px; line-height: 1; }
.stat__n--rated { display: flex; align-items: baseline; gap: 6px; }
.stars { color: var(--star); font-size: 12px; letter-spacing: 1px; }
.stat__l { font-size: 10px; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.5); }

/* ---------- reviews ---------- */

.reviews { display: flex; flex-direction: column; gap: 12px; padding-bottom: 64px; overflow: hidden; }
.marquee { width: max-content; display: flex; gap: 12px; }
.marquee--a { animation: nm-marquee 52s linear infinite; }
.marquee--b { animation: nm-marquee 66s linear infinite; }
.review {
  width: 258px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--s1);
}
.review__stars { color: var(--star); font-size: 11px; letter-spacing: 2px; }
.review__text { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.85); text-wrap: pretty; }
.review__who {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-top: auto;
}

/* ---------- gallery ---------- */

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.frame {
  position: relative;
  height: 210px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.frame:hover { border-color: rgba(255, 255, 255, 0.4); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 7px 14px;
  border-radius: 14px;
  background: rgba(11, 11, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 11px;
  font-weight: 700;
}

/* ---------- install ---------- */

.install {
  display: grid;
  gap: 22px;
  padding: 28px 20px;
  border-radius: 22px;
  background: linear-gradient(150deg, #14141f 0%, #1b1730 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.pill {
  justify-self: start;
  padding: 6px 13px;
  border-radius: 16px;
  background: rgba(63, 157, 143, 0.18);
  border: 1px solid rgba(63, 157, 143, 0.5);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
}
.install h3 {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -1px;
  word-spacing: 0.08em;
  line-height: 1.04;
  text-transform: uppercase;
}
.install h3 em { letter-spacing: -0.5px; }
.install__lead { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.65); text-wrap: pretty; }
.install__points { display: flex; flex-direction: column; gap: 9px; list-style: none; }
.install__points li { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.78); }
.install__points span { color: var(--mint); }
.install__cta { display: flex; flex-direction: column; gap: 12px; }
.install__cta .btn { width: 100%; }
.install__cta .mono { font-size: 10px; letter-spacing: normal; text-transform: none; text-align: center; color: rgba(255, 255, 255, 0.45); }

.window {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #08080f;
}
.window__bar {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  background: #16161f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.window__bar i { width: 8px; height: 8px; border-radius: 50%; }
.window__bar .r { background: #ff6058; }
.window__bar .y { background: #ffbd2e; }
.window__bar .g { background: #28ca42; }
.window__bar .mono {
  margin-left: 8px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 9px;
  letter-spacing: normal;
  text-transform: none;
  color: rgba(255, 255, 255, 0.5);
}
.window__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 9px; }
.window__grid div { height: 68px; border-radius: 6px; overflow: hidden; }
.window__grid img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- faq ---------- */

.faq__head { text-align: left; gap: 10px; }
.faq__head p { font-size: 14px; }
.faq__head a { text-decoration: underline; }
.faq { border-top: 0; padding-top: 18px; }
.q { border-bottom: 1px solid var(--line); }
.q button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  background: none;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  text-align: left;
  cursor: pointer;
}
.q button i {
  font-family: 'IBM Plex Mono', monospace;
  font-style: normal;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}
.q__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s ease;
}
.q__a > p {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
  max-width: 760px;
  text-wrap: pretty;
}
.q.is-open .q__a { grid-template-rows: 1fr; }
.q.is-open .q__a > p { padding-bottom: 18px; }

/* ---------- final cta + footer ---------- */

.final { position: relative; padding: 64px var(--pad) 72px; text-align: center; overflow: hidden; }
.final__glow {
  position: absolute;
  bottom: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 620px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 91, 215, 0.32) 0%, rgba(11, 11, 18, 0) 68%);
  pointer-events: none;
}
.final__in {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.final h2 {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -1.5px;
  word-spacing: 0.08em;
  line-height: 0.98;
  text-transform: uppercase;
}
.final h2 em { letter-spacing: -0.5px; }
.final p { font-size: 15px; color: var(--dim); max-width: 520px; text-wrap: pretty; }
.final .btn { width: 100%; max-width: 390px; }
.final .final__note { font-size: 10px; letter-spacing: 0.06em; text-transform: none; color: rgba(255, 255, 255, 0.42); }

.foot { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.foot__in {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 26px var(--pad) 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
}
.brand--foot { gap: 9px; color: rgba(255, 255, 255, 0.42); }
.brand--foot .brand__mark { width: 22px; height: 22px; }
.foot__links { display: flex; gap: 22px; }

/* ---------- tablet: the phone layout, wider ---------- */

@media (min-width: 700px) {
  :root { --maxw: 860px; --pad: 28px; }

  .styles { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .style { height: 300px; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .frame { height: 260px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .mosaic { grid-template-columns: repeat(6, 1fr); }
  .head--split p { max-width: 560px; }
  .install { padding: 40px 36px; }
  .install__cta { flex-direction: row; align-items: center; gap: 16px; }
  .install__cta .btn { width: auto; }
  .install__cta .mono { text-align: left; }
  .final .btn { width: auto; }
}

/* ---------- desktop: "NextMe Landing v2" ---------- */

@media (min-width: 1024px) {
  :root { --maxw: 1440px; --pad: 56px; --navh: 84px; }

  .wide-only { display: inline; }
  .narrow-only { display: none; }

  .section { padding-bottom: 110px; }
  .rule { padding-top: 40px; }

  .head { gap: 16px; }
  .head h2 { font-size: 46px; letter-spacing: -1.8px; word-spacing: 0.12em; }
  .head h2 em { letter-spacing: -1px; }
  .head p { font-size: 17px; max-width: 560px; margin-inline: auto; }

  .head--split {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: end;
  }
  .head--split h2 { font-size: 52px; letter-spacing: -2px; }
  .head--split p { font-size: 16px; max-width: none; margin-inline: 0; }

  /* nav */
  .nav {
    background: rgba(11, 11, 18, 0.7);
    border-bottom-color: rgba(255, 255, 255, 0.07);
  }
  .nav__in { position: relative; padding: 16px var(--pad); }
  .brand__mark { width: 30px; height: 30px; }
  .brand__name { font-size: 18px; }
  .nav__menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 32px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  .nav__signin { display: inline; font-size: 13px; }
  .nav__actions { gap: 16px; }
  .burger { display: none; }
  .menu { display: none !important; }
  .btn--sm { height: 34px; padding: 0 20px; font-size: 13px; }

  /* hero */
  .hero { height: 840px; min-height: 0; }
  .mosaic { grid-template-columns: repeat(10, 1fr); gap: 6px; padding: 6px; opacity: 0.55; }
  .mosaic div { height: 208px; border-radius: 8px; }
  .hero__veil {
    background: radial-gradient(ellipse at 50% 42%, rgba(11, 11, 18, 0.94) 0%, rgba(11, 11, 18, 0.72) 42%, rgba(11, 11, 18, 0.9) 100%);
  }
  .hero__fade {
    background: linear-gradient(180deg, rgba(11, 11, 18, 0.6) 0%, rgba(11, 11, 18, 0) 30%, rgba(11, 11, 18, 0.8) 82%, #0b0b12 100%);
  }
  .hero__body { height: 100%; min-height: 0; gap: 28px; padding: 0 var(--pad); }
  .hero__title { font-size: 92px; letter-spacing: -4px; word-spacing: 0.14em; line-height: 0.92; }
  .hero__title em { font-size: 98px; letter-spacing: -2px; }
  .hero__sub { font-size: 20px; }
  .hero__cta { width: auto; max-width: none; margin-top: 6px; }
  .hero__cta .btn { width: auto; }
  .dots { font-size: 11px; }
  .hero__scroll { bottom: 26px; gap: 10px; font-size: 10px; }

  /* styles */
  .section--styles { padding-top: 96px; padding-bottom: 100px; }
  .section--styles .head { margin-bottom: 44px; }
  .styles { grid-template-columns: repeat(6, 1fr); gap: 14px; }
  .style { height: auto; aspect-ratio: 21 / 30; border-radius: 16px; }
  .style figcaption { padding: 34px 12px 12px; font-size: 13px; }

  /* before / after */
  #looks .head { margin-bottom: 40px; }
  .ba-single { display: none; }
  .ba-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .ba-grid .ba-card { height: auto; aspect-ratio: 253 / 460; }
  .ba-card .ba-handle span { width: 38px; height: 38px; font-size: 13px; }
  .ba-tag { padding: 5px 10px; border-radius: 6px; font-size: 9px; }
  .ba-hint { font-size: 9px; }

  /* how it works */
  .section--how .head p { max-width: none; }
  .phones { gap: 22px; padding: 44px var(--pad) 8px; justify-content: safe center; }
  .phone { width: 315px; height: 620px; border-radius: 34px; padding: 8px; }
  .phone__in { border-radius: 27px; }
  .phone__notch { top: 5px; width: 62px; height: 15px; }
  .phone__steps { top: 34px; }
  .phone__media--grid { height: 404px; }
  .phone__media--photo { height: 400px; }
  .tiles { grid-auto-rows: 128px; gap: 9px; padding: 50px 11px 0; }
  .tile { border-radius: 12px; }
  .tile span { left: 6px; right: 6px; bottom: 6px; border-radius: 9px; font-size: 10px; }
  .tiles__fade {
    background: linear-gradient(180deg, rgba(8, 8, 15, 0.5) 0%, rgba(8, 8, 15, 0) 16%, rgba(8, 8, 15, 0.12) 72%, rgba(8, 8, 15, 0.55) 92%, #08080f 100%);
  }
  .card { left: 16px; right: 16px; border-radius: 16px; }
  .card--brief { top: 232px; padding: 13px 15px; }
  .card__quote { font-size: 16px; line-height: 1.32; }
  .card--progress { top: 252px; padding: 14px 16px; }
  .card--export { top: 262px; }
  .phone__foot { left: 18px; right: 18px; bottom: 26px; gap: 12px; }
  .phone__title { font-size: 24px; letter-spacing: -0.9px; }
  .phone__accent { font-size: 25px; }

  /* numbers */
  .section--numbers { padding-bottom: 60px; }
  .section--numbers .head { margin-bottom: 40px; }
  .stats { border-radius: 20px; }
  .stat { padding: 34px 30px; gap: 8px; }
  .stat__n { font-size: 54px; }
  .stat__n--rated { gap: 8px; }
  .stars { font-size: 14px; }
  .stat__l { font-size: 11px; letter-spacing: 0.12em; }

  /* reviews */
  .reviews { gap: 18px; padding-bottom: 110px; }
  .marquee { gap: 16px; }
  .marquee--a { animation-duration: 64s; }
  .marquee--b { animation-duration: 78s; }
  .review { width: 330px; padding: 24px; gap: 11px; border-radius: 18px; }
  .review__stars { font-size: 12px; }
  .review__who { font-size: 10px; }

  /* gallery */
  .gallery { grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 36px; }
  .frame { height: auto; aspect-ratio: 211 / 240; }
  .frame span { right: 10px; bottom: 10px; padding: 6px 12px; }

  /* install */
  .install {
    grid-template-columns: 1fr 460px;
    /* Five explicit rows so the mock can span them with grid-row: 1 / -1;
       without them -1 stops at row 1 and the browser mock sets its height. */
    grid-template-rows: repeat(5, auto);
    column-gap: 48px;
    row-gap: 18px;
    align-items: center;
    padding: 52px;
    border-radius: 26px;
    background: linear-gradient(120deg, #14141f 0%, #1b1730 100%);
  }
  .install > :not(.window) { grid-column: 1; }
  .install h3 { font-size: 40px; letter-spacing: -1.6px; word-spacing: 0.1em; line-height: 1.02; }
  .install__lead { font-size: 16px; max-width: 540px; }
  .install__cta { gap: 14px; margin-top: 8px; }
  .install__cta .btn { height: 50px; padding: 0 28px; font-size: 15px; border-radius: 25px; }
  .install__cta .mono { font-size: 11px; }
  .window { grid-column: 2; grid-row: 1 / -1; align-self: center; }
  .window__bar { height: 32px; padding: 0 12px; gap: 6px; }
  .window__bar i { width: 9px; height: 9px; }
  .window__bar .mono { margin-left: 10px; padding: 3px 10px; }
  .window__grid { grid-template-columns: repeat(4, 1fr); gap: 7px; padding: 11px; }
  .window__grid div { height: 100px; }

  /* faq */
  .section--faq { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
  .faq__head { gap: 12px; }
  .faq__head h2 { font-size: 46px; letter-spacing: -1.8px; }
  .faq__head p { font-size: 15px; line-height: 1.55; }
  .faq { border-top: 1px solid var(--line); padding-top: 40px; }
  .q button { padding: 22px 4px; font-size: 18px; letter-spacing: -0.3px; gap: 24px; }
  .q__a > p { font-size: 15px; }
  .q.is-open .q__a > p { padding-bottom: 22px; }

  /* final + footer */
  .final { padding: 104px var(--pad) 112px; }
  .final__glow { bottom: -340px; width: 960px; height: 720px; background: radial-gradient(circle, rgba(93, 91, 215, 0.3) 0%, rgba(11, 11, 18, 0) 68%); }
  .final__in { gap: 24px; }
  .final h2 { font-size: 66px; letter-spacing: -2.8px; word-spacing: 0.12em; line-height: 0.96; }
  .final h2 em { letter-spacing: -1px; }
  .final p { font-size: 17px; }
  .final .btn { height: 58px; padding: 0 36px; border-radius: 29px; }
  .final .final__note { font-size: 11px; letter-spacing: 0.08em; }
  .foot__in { flex-direction: row; justify-content: space-between; padding: 34px var(--pad) 44px; }
  .foot__links { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__arrow, .marquee { animation: none; }
  .q__a { transition: none; }
}
