/* Reelx landing.
   A plain, light page: white ground, black type, a serif for headings, brand red kept for the mark and small accents.
   Recordings of the real app sit inside two drawn device frames that scale with their container. */

:root {
  --bg: #ffffff;
  --soft: #f6f5f5;
  --tint: #fff0eb;
  --card: #ffffff;
  --fg: #121113;
  --muted: #5d585b;
  --line: #e6e3e4;
  --ink: #0b0b0c;
  --on-ink: #ffffff;
  --red: #ff2f00;
  --red-text: #c22400;
  --nav-bg: rgba(255, 255, 255, 0.88);
  --bezel: #19181b;
  --shadow: 40, 12, 4;
  --shadow-strength: 1;

  --display: 'Lora', Georgia, 'Times New Roman', serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  color-scheme: light;
}

/* Dark theme: follows the system unless the visitor picked a theme with the button in the top bar
   (main.js sets data-theme on <html>). The two blocks below must hold the same values. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #111012;
    --soft: #18161a;
    --tint: #2a1611;
    --card: #1c1a1e;
    --fg: #f5f2ef;
    --muted: #aaa3a6;
    --line: #322e34;
    --ink: #f5f2ef;
    --on-ink: #111012;
    --red-text: #ff6a45;
    --nav-bg: rgba(17, 16, 18, 0.86);
    --bezel: #353137;
    --shadow: 0, 0, 0;
    --shadow-strength: 2;
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bg: #111012;
  --soft: #18161a;
  --tint: #2a1611;
  --card: #1c1a1e;
  --fg: #f5f2ef;
  --muted: #aaa3a6;
  --line: #322e34;
  --ink: #f5f2ef;
  --on-ink: #111012;
  --red-text: #ff6a45;
  --nav-bg: rgba(17, 16, 18, 0.86);
  --bezel: #353137;
  --shadow: 0, 0, 0;
  --shadow-strength: 2;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img,
video,
svg {
  max-width: 100%;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.3rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.15;
}

/* Vietnamese accents stack above capitals, so headings need more room. */
html[lang='vi'] h1 {
  line-height: 1.18;
}

html[lang='vi'] h2 {
  line-height: 1.25;
}

h3 {
  font-size: 1.02rem;
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 1160px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ic {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 8px;
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.15s;
}

.btn .ic {
  font-size: 1.15em;
  stroke-width: 2.1;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--ink);
  color: var(--on-ink);
}

.btn-dark:hover {
  opacity: 0.86;
}

.btn-line {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-line:hover {
  background: var(--ink);
  color: var(--on-ink);
}

.btn-small {
  padding: 0.6em 1.15em;
  font-size: 0.9rem;
}

/* ---------- Top bar ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-in {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--red);
}

.nav-links {
  display: flex;
  gap: clamp(16px, 2.6vw, 32px);
  margin-inline: auto;
  font-size: 0.93rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
}

.lang .ic {
  font-size: 18px;
}

.theme {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(--fg);
  cursor: pointer;
}

.theme:hover {
  background: var(--soft);
}

.theme .ic {
  font-size: 19px;
}

/* The moon shows in light (press for dark), the sun in dark. */
.theme .ic-sun {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme .ic-sun {
    display: block;
  }

  :root:not([data-theme='light']) .theme .ic-moon {
    display: none;
  }
}

:root[data-theme='dark'] .theme .ic-sun {
  display: block;
}

:root[data-theme='dark'] .theme .ic-moon {
  display: none;
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .nav-end {
    margin-left: auto;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(2.6rem, 6vw, 4.6rem) clamp(3rem, 6vw, 4.5rem);
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 48%, var(--tint) 100%);
}

.hero-sub {
  max-width: 58ch;
  margin: 1.2rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  text-wrap: balance;
}

/* Sizes inside .devices are in cqw, so the laptop and the phone scale together. */
.devices {
  position: relative;
  max-width: 1020px;
  margin: clamp(2rem, 5vw, 3.4rem) auto 0;
  padding-bottom: 2.4cqw;
  container-type: inline-size;
}

.laptop {
  width: 80cqw;
  margin-left: 6cqw;
}

.laptop-screen {
  aspect-ratio: 1280 / 842;
  background: #111012;
  border: 1.1cqw solid var(--bezel);
  border-radius: 1.7cqw 1.7cqw 0 0;
  overflow: hidden;
  box-shadow: 0 3cqw 7cqw rgba(var(--shadow), calc(0.16 * var(--shadow-strength)));
}

.laptop-base {
  position: relative;
  height: 1.5cqw;
  margin-inline: -6cqw;
  background: linear-gradient(#e7e6e8, #b6b5ba);
  border-radius: 0 0 1.8cqw 1.8cqw;
}

.laptop-base::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 13cqw;
  height: 0.55cqw;
  transform: translateX(-50%);
  background: #a3a2a8;
  border-radius: 0 0 1cqw 1cqw;
}

/* The phone recording already includes its iPhone frame; a mask cuts it out of the recording's background. */
.iphone {
  aspect-ratio: 600 / 1218;
  filter: drop-shadow(0 18px 30px rgba(var(--shadow), calc(0.3 * var(--shadow-strength))));
}

.iphone .rec {
  -webkit-mask: url('app/mobile-mask.png') center / 100% 100% no-repeat;
  mask: url('app/mobile-mask.png') center / 100% 100% no-repeat;
}

.iphone--hero {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 21cqw;
}

.rec {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
}

.facts {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
}

.facts div {
  padding-inline: clamp(1rem, 4vw, 2.6rem);
}

.facts div + div {
  border-left: 1px solid var(--line);
}

.facts dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.facts dd {
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------- Two-column sections ---------- */

.split {
  padding-block: var(--section);
}

.split--soft {
  background: var(--soft);
}

.split-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.split--flip .split-copy {
  order: 2;
}

.label {
  margin-bottom: 0.9rem;
  color: var(--red-text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead {
  max-width: 54ch;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.points {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.8rem;
}

.points li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.points .ic {
  box-sizing: content-box;
  padding: 7px;
  background: var(--tint);
  color: var(--red-text);
  border-radius: 50%;
  font-size: 16px;
  stroke-width: 2.6;
}

.split--soft .points .ic {
  background: var(--bg);
}

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

.ticks {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.ticks .ic {
  margin-top: 3px;
  font-size: 19px;
  color: var(--red-text);
  stroke-width: 2.4;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.9rem;
}

.chips li {
  padding: 5px 13px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(var(--shadow), calc(0.16 * var(--shadow-strength)));
}

.iphone--big {
  width: min(320px, 74%);
  margin-inline: auto;
}

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

  .split--flip .split-copy {
    order: 0;
  }
}

/* ---------- The video the agent made ---------- */

.made {
  padding-block: var(--section);
}

.made .head .label {
  margin: 0 0 0.7rem;
  color: var(--red-text);
  font-size: 0.8rem;
}

.film {
  max-width: 980px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(var(--shadow), calc(0.22 * var(--shadow-strength)));
}

.request {
  max-width: 780px;
  margin: clamp(1.6rem, 4vw, 2.4rem) auto 0;
  padding: 18px 22px;
  background: var(--soft);
  border-left: 3px solid var(--red);
  border-radius: 0 12px 12px 0;
}

.request figcaption {
  margin-bottom: 0.5rem;
  color: var(--red-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.request blockquote {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Section heads ---------- */

.head {
  max-width: 44rem;
  margin: 0 auto clamp(1.8rem, 4vw, 3rem);
  text-align: center;
}

.head p {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Features ---------- */

.features {
  padding-block: var(--section);
}

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

.grid li {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.tile {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  background: var(--tint);
  color: var(--ink);
  border-radius: 11px;
}

.tile .ic {
  font-size: 22px;
}

.grid p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.93rem;
}

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

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

/* ---------- Download ---------- */

.download {
  padding-block: var(--section);
  background: var(--soft);
}

.plats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.plats li {
  flex: 1 1 170px;
  max-width: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 16px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
}

.plat-ic {
  font-size: 38px;
  stroke-width: 1.3;
}

.badge {
  padding: 2px 10px;
  background: var(--tint);
  color: var(--red-text);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.badge--none {
  visibility: hidden;
}

.soon {
  margin-top: 6px;
  padding: 0.5em 1.1em;
  border: 1px dashed #c9c5c7;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
}

.plats .btn {
  margin-top: 6px;
}

/* ---------- Questions ---------- */

.faq {
  padding-block: var(--section);
}

.faq-in {
  max-width: 860px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

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

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

.faq summary .ic {
  font-size: 20px;
  color: var(--muted);
  transition: transform 0.2s;
}

.faq details[open] summary .ic {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 70ch;
  padding-bottom: 20px;
  color: var(--muted);
}

/* ---------- Legal documents ---------- */

.legal {
  padding-block: clamp(2.4rem, 6vw, 4rem) var(--section);
}

.legal-in {
  max-width: 800px;
}

.legal h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
}

.legal-date {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.legal-draft {
  margin-top: 1rem;
  padding: 12px 16px;
  background: var(--tint);
  border-left: 3px solid var(--red);
  border-radius: 0 10px 10px 0;
  font-size: 0.93rem;
}

.legal-summary,
.legal-toc {
  margin-top: 2rem;
  padding: 20px 24px;
  background: var(--soft);
  border-radius: 14px;
}

.legal .legal-summary h2,
.legal .legal-toc h2 {
  margin: 0;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-text);
}

.legal ul,
.legal-toc ol {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding-left: 1.2rem;
}

.legal ul {
  list-style: disc;
}

.legal-toc ol {
  list-style: decimal;
  columns: 2;
  column-gap: 2rem;
  display: block;
}

.legal-toc li {
  margin-bottom: 0.4rem;
  break-inside: avoid;
}

.legal a {
  color: var(--fg);
  text-underline-offset: 3px;
}

.legal section {
  margin-top: 2.6rem;
}

.legal section > h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.25;
}

.legal section > h3 {
  margin-top: 1.5rem;
  font-size: 1.05rem;
}

.legal section > p,
.legal section > .table-scroll,
.legal-in > p {
  margin-top: 0.9rem;
}

.legal-in > .legal-head + p {
  margin-top: 1.5rem;
}

.legal section > p,
.legal section li,
.legal-in > p,
.legal td {
  color: var(--muted);
}

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

.table-scroll {
  overflow-x: auto;
}

.legal table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.legal th,
.legal td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--soft);
  font-weight: 600;
}

@media (max-width: 620px) {
  .legal-toc ol {
    columns: 1;
  }
}

/* ---------- Footer ---------- */

.footer {
  padding-block: 2.6rem 2rem;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem 3rem;
}

.footer-top p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  font-size: 0.93rem;
}

.footer-links a {
  color: var(--fg);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links .lang {
  padding: 0;
  font-size: inherit;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover {
    transform: none;
  }
}
