/* vBati website. Same colours and type as the application: midnight, blue #306BEA, citron accent, Inter.
   Logical properties throughout so a right-to-left page works without overrides. */
:root {
  --blue: #306bea;
  --blue-hover: #2e60cf;
  --blue-soft: #e8f1ff;
  --midnight: #001525;
  --midnight-2: #0b2236;
  --midnight-3: #12304a;
  --citron: #c9f227;
  --ink: #1d1e20;
  --ink-2: #494a4c;
  --muted: #626366;
  --line: #e3e5e9;
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --ok: #1d6f2e;
  --danger: #c40d03;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(0, 21, 37, 0.06), 0 12px 32px rgba(0, 21, 37, 0.08);
  --shadow-lg: 0 30px 80px rgba(0, 21, 37, 0.18);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --top: 68px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--top) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-inline-size: 100%;
  block-size: auto;
  display: block;
}

a {
  color: var(--blue);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  inline-size: min(1200px, 100% - 2.5rem);
  margin-inline: auto;
}

.narrow {
  inline-size: min(780px, 100% - 2.5rem);
}

.skip {
  position: absolute;
  inset-inline-start: -999px;
}

.skip:focus {
  inset-inline-start: 1rem;
  inset-block-start: 1rem;
  z-index: 100;
  padding: 0.5rem 0.9rem;
  background: var(--bg);
}

.center {
  text-align: center;
}

.center .section-lead {
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 600 1rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(48, 107, 234, 0.35);
}

.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-outline {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

.btn-outline:hover {
  border-color: var(--ink-2);
}

.btn-sm {
  padding: 0.6rem 1rem;
  font-size: 0.92rem;
  box-shadow: none;
}

.btn-block {
  inline-size: 100%;
}

.arrow::after {
  content: "→";
  transition: transform 0.15s ease;
}

.arrow:hover::after {
  transform: translateX(3px);
}

[dir="rtl"] .arrow::after {
  content: "←";
}

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

/* Header */
.top {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  background: rgba(0, 21, 37, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-block-end: 1px solid rgba(255, 255, 255, 0.08);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  block-size: var(--top);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-inline-start: auto;
}

.top-nav a {
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
}

.top-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.top-nav a[aria-current="page"] {
  color: #fff;
}

.menu-btn {
  display: none;
  margin-inline-start: auto;
  inline-size: 42px;
  block-size: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  inline-size: 18px;
  block-size: 2px;
  margin-inline: auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-btn span {
  position: relative;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
}

.menu-btn span::before {
  inset-block-start: -6px;
}

.menu-btn span::after {
  inset-block-start: 6px;
}

.menu-btn[aria-expanded="true"] span {
  background: transparent;
}

.menu-btn[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(48, 107, 234, 0.45), transparent 60%),
    radial-gradient(600px 400px at 0% 110%, rgba(201, 242, 39, 0.08), transparent 60%),
    var(--midnight);
  color: #fff;
  padding-block: 5rem 0;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}

.hero-text {
  max-inline-size: 860px;
  margin-inline: auto;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.8);
}

.pill b {
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--citron);
  color: var(--midnight);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-block-end: 0.9rem;
}

.dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow {
  color: var(--citron);
}

.hero h1 {
  margin-block-start: 1.6rem;
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #8fb4ff, var(--citron));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin-block-start: 1.4rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.74);
}

.hero .lead {
  max-inline-size: 700px;
  margin-inline: auto;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-block-start: 2.2rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.6rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.66);
}

.hero-points li::before {
  content: "✓";
  color: var(--citron);
  margin-inline-end: 0.45rem;
  font-weight: 700;
}

.hero-stage {
  position: relative;
  margin-block-start: 4rem;
  margin-inline: auto;
  max-inline-size: 1100px;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 8% 10% auto;
  block-size: 70%;
  background: radial-gradient(closest-side, rgba(48, 107, 234, 0.55), transparent);
  filter: blur(40px);
  z-index: -1;
}

.frame {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 -10px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #eef0f3;
  border-block-end: 1px solid #e1e4e8;
}

.frame-bar span {
  inline-size: 10px;
  block-size: 10px;
  border-radius: 50%;
  background: #cdd1d7;
}

.frame-bar i {
  flex: 1;
  max-inline-size: 320px;
  margin-inline: auto;
  padding: 2px 10px;
  border-radius: 6px;
  background: #fff;
  font: 500 0.72rem/1.6 var(--mono);
  font-style: normal;
  color: var(--muted);
  text-align: center;
}

.frame-full {
  border-radius: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 21, 37, 0.06);
}

.phone {
  inline-size: 100%;
  border: 7px solid #0a0f14;
  border-radius: 34px;
  overflow: hidden;
  background: #0a0f14;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone img {
  border-radius: 27px;
}

.hero-phone {
  position: absolute;
  inset-inline-end: -2.5rem;
  inset-block-end: -3rem;
  inline-size: 210px;
}

.note {
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-note {
  padding-block: 0.9rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  background: var(--midnight);
}

/* Facts band */
.band {
  background: var(--midnight-2);
  color: rgba(255, 255, 255, 0.85);
  padding-block: 1.15rem;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}

.band .wrap {
  inline-size: min(1340px, 100% - 2.5rem);
}

.band-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.2rem;
  font-size: 0.88rem;
}

.band-row span::before {
  content: "■";
  color: var(--citron);
  font-size: 0.55rem;
  vertical-align: 0.25em;
  margin-inline-end: 0.55rem;
}

/* Sections */
.section {
  padding-block: 6rem;
}

.section-alt {
  background: var(--bg-alt);
}

.dark {
  background: var(--midnight);
  color: #fff;
}

.dark .section-lead {
  color: rgba(255, 255, 255, 0.7);
}

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 700;
}

.section-lead {
  margin-block-start: 1rem;
  max-inline-size: 660px;
  color: var(--muted);
  font-size: 1.1rem;
}

.head {
  margin-block-end: 3rem;
}

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

.card {
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.18rem;
  margin-block-end: 0.7rem;
}

.card p {
  color: var(--ink-2);
}

.card .answer {
  margin-block-start: 1.1rem;
  padding-block-start: 1.1rem;
  border-block-start: 1px dashed var(--line);
  color: var(--ink);
  font-weight: 500;
}

.card .answer::before {
  content: "Avec vBati";
  display: block;
  margin-block-end: 0.35rem;
  font: 500 0.7rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ok);
}

.icon {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  margin-block-end: 1.1rem;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
}

.icon svg {
  inline-size: 22px;
  block-size: 22px;
}

.dark .card {
  background: var(--midnight-2);
  border-color: rgba(255, 255, 255, 0.08);
}

.dark .card p {
  color: rgba(255, 255, 255, 0.7);
}

.dark .icon {
  background: rgba(48, 107, 234, 0.18);
  color: #8fb4ff;
}

/* Showcase (tabs) */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-block-end: 2rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  inline-size: fit-content;
  margin-inline: auto;
}

.tabs button {
  padding: 0.55rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: 500 0.94rem/1.2 var(--font);
  color: var(--ink-2);
  cursor: pointer;
}

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

.tabs button[aria-selected="true"] {
  background: var(--midnight);
  color: #fff;
}

.tab-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel h3 {
  font-size: 1.6rem;
  margin-block-end: 1rem;
}

.tab-panel p {
  color: var(--ink-2);
  margin-block-end: 1.2rem;
}

.js .tab-panel:not([hidden]) {
  animation: fade 0.35s ease;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* Features */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 4rem;
  align-items: center;
}

.feature + .feature {
  margin-block-start: 6rem;
}

.feature-flip {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.feature-flip .feature-text {
  order: 2;
}

.feature h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin-block-end: 1.1rem;
}

.feature-text > p {
  color: var(--ink-2);
  margin-block-end: 1.3rem;
}

.dark .feature-text > p {
  color: rgba(255, 255, 255, 0.72);
}

.shot {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: #fff;
}

.phones {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
}

.phones .phone {
  inline-size: min(250px, 46%);
}

.phones .phone:nth-child(2) {
  margin-block-start: 3rem;
}

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  color: var(--ink-2);
}

.ticks li {
  position: relative;
  padding-inline-start: 1.8rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.32em;
  inline-size: 1.05rem;
  block-size: 1.05rem;
  border-radius: 50%;
  background: #e5f3e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231d6f2e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.dark .ticks,
.ticks-light {
  color: rgba(255, 255, 255, 0.82);
}

.dark .ticks li::before,
.ticks-light li::before {
  background-color: rgba(201, 242, 39, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23c9f227' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

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

.mini {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
}

.mini h4 {
  font-size: 1.04rem;
  margin-block-end: 0.5rem;
}

.mini p {
  color: var(--ink-2);
  font-size: 0.95rem;
}

.more {
  margin-block-start: 2.5rem;
}

/* Arabic section */
.ar-sample {
  margin-block-start: 1.6rem;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.25rem;
  line-height: 1.9;
}

.ar-sample small {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Roles */
.role {
  position: relative;
  overflow: hidden;
}

.role .tag {
  display: inline-block;
  margin-block-end: 1rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font: 500 0.72rem/1.5 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.role ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  font-size: 0.93rem;
  color: var(--ink-2);
}

.role li::before {
  content: "—";
  color: var(--blue);
  margin-inline-end: 0.5rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-block-end: 1.2rem;
  font: 500 0.85rem/1 var(--mono);
  color: var(--blue);
  letter-spacing: 0.08em;
}

.steps h3 {
  font-size: 1.15rem;
  margin-block-end: 0.6rem;
}

.steps p {
  color: var(--ink-2);
}

/* FAQ */
.faq {
  margin-block-start: 2rem;
  border-block-start: 1px solid var(--line);
}

details {
  border-block-end: 1px solid var(--line);
  padding-block: 1.2rem;
}

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.06rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

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

summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  inline-size: 1.6rem;
  block-size: 1.6rem;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--blue);
  font-size: 1.1rem;
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin-block-start: 0.8rem;
  color: var(--ink-2);
  max-inline-size: 680px;
}

/* Call to action */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  border-radius: 20px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(48, 107, 234, 0.55), transparent 60%),
    radial-gradient(400px 260px at 0% 100%, rgba(201, 242, 39, 0.12), transparent 60%),
    var(--midnight);
  color: #fff;
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
}

.cta p {
  margin-block-start: 1rem;
  margin-inline: auto;
  max-inline-size: 560px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.08rem;
}

.cta .hero-cta {
  margin-block-start: 2rem;
}

/* Inner pages */
.page-hero {
  position: relative;
  padding-block: 4.5rem 4rem;
  background:
    radial-gradient(700px 360px at 85% -20%, rgba(48, 107, 234, 0.4), transparent 60%),
    var(--midnight);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  max-inline-size: 820px;
}

.page-hero .lead {
  max-inline-size: 700px;
}

.crumbs {
  margin-block-end: 1.4rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.55);
}

.crumbs a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.crumbs a:hover {
  color: #fff;
}

/* Features page: summary on the side */
.with-toc {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
}

.toc {
  position: sticky;
  inset-block-start: calc(var(--top) + 2rem);
}

.toc p {
  font: 500 0.72rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-block-end: 0.8rem;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-inline-start: 1px solid var(--line);
}

.toc a {
  display: block;
  margin-inline-start: -1px;
  padding: 0.38rem 0 0.38rem 1rem;
  padding-inline: 1rem 0;
  border-inline-start: 2px solid transparent;
  color: var(--ink-2);
  font-size: 0.92rem;
  text-decoration: none;
}

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

.toc a[aria-current="true"] {
  border-inline-start-color: var(--blue);
  color: var(--blue);
  font-weight: 600;
}

.module {
  padding-block: 3.5rem;
  border-block-end: 1px solid var(--line);
}

.module:first-child {
  padding-block-start: 0;
}

.module:last-child {
  border-block-end: 0;
}

.module h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-block-end: 0.9rem;
}

.module > p:not(.eyebrow) {
  color: var(--ink-2);
  font-size: 1.06rem;
  max-inline-size: 700px;
}

.module .cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 2.5rem;
  margin-block-start: 1.6rem;
}

.module .shot,
.module .phones {
  margin-block-start: 2rem;
}

.module .phones {
  justify-content: flex-start;
}

/* Security page */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.sec-grid .card h3 {
  font-size: 1.12rem;
}

.honest {
  margin-block-start: 3rem;
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-alt);
}

.honest h3 {
  font-size: 1.1rem;
  margin-block-end: 0.6rem;
}

.honest p {
  color: var(--ink-2);
}

/* Demo page */
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 4rem;
  align-items: start;
}

.demo-side h2 {
  font-size: 1.5rem;
  margin-block-end: 1.2rem;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.4rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 1rem;
}

.timeline b {
  display: grid;
  place-items: center;
  inline-size: 2.2rem;
  block-size: 2.2rem;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
}

.timeline h3 {
  font-size: 1.02rem;
  margin-block-end: 0.25rem;
}

.timeline p {
  color: var(--ink-2);
  font-size: 0.95rem;
}

.demo-form {
  display: grid;
  gap: 1.05rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.demo-form h2 {
  font-size: 1.35rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.demo-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
}

.demo-form label > input,
.demo-form label > select,
.demo-form label > textarea {
  display: block;
  margin-block-start: 0.35rem;
}

.demo-form label span {
  color: var(--muted);
  font-weight: 400;
}

.demo-form input,
.demo-form select,
.demo-form textarea {
  inline-size: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #d3d6db;
  border-radius: var(--radius);
  font: 400 1rem/1.4 var(--font);
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(48, 107, 234, 0.15);
}

.demo-form [aria-invalid="true"] {
  border-color: var(--danger);
}

.form-error {
  color: var(--danger);
  font-size: 0.92rem;
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

/* Legal pages */
.prose {
  color: var(--ink-2);
}

.prose h2 {
  margin-block: 2.6rem 0.8rem;
  font-size: 1.35rem;
  color: var(--ink);
}

.prose h2:first-child {
  margin-block-start: 0;
}

.prose p,
.prose ul {
  margin-block-end: 1rem;
}

.prose li {
  margin-block-end: 0.35rem;
}

.prose dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
  margin: 0 0 1rem;
}

.prose dt {
  color: var(--ink);
  font-weight: 600;
}

.prose dd {
  margin: 0;
}

.todo {
  color: var(--muted);
  font-style: italic;
}

/* 404 */
.lost {
  min-block-size: calc(100vh - var(--top));
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 4rem;
}

/* Footer */
.foot {
  background: #000d17;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  padding-block: 4rem 2rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

.foot h2 {
  margin-block-end: 1rem;
  font: 500 0.72rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.foot a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.foot a:hover {
  color: #fff;
}

.foot-about p {
  margin-block-start: 1rem;
  max-inline-size: 320px;
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-block-start: 3rem;
  padding-block-start: 1.5rem;
  border-block-start: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Reveal on scroll (only with JavaScript, never with reduced motion) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.seen {
  opacity: 1;
  transform: none;
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .tab-panel:not([hidden]) {
    animation: none;
  }

  .btn,
  .card {
    transition: none;
  }
}

/* Small screens */
@media (max-width: 960px) {
  .menu-btn {
    display: block;
  }

  .top-cta {
    display: none;
  }

  .top-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    inset-block-start: var(--top);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.8rem 1.25rem 1.4rem;
    background: var(--midnight);
    border-block-end: 1px solid rgba(255, 255, 255, 0.1);
  }

  .top-nav.open {
    display: flex;
  }

  .top-nav a {
    padding: 0.85rem 0.4rem;
    font-size: 1.02rem;
    border-block-end: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
  }

  .top-nav .btn {
    margin-block-start: 1rem;
    border: 0;
  }

  .hero {
    padding-block-start: 3.5rem;
  }

  .hero-phone {
    inline-size: 120px;
    inset-inline-end: -0.6rem;
    inset-block-end: -1rem;
    border-width: 5px;
    border-radius: 22px;
  }

  .hero-phone img {
    border-radius: 17px;
  }

  .feature,
  .tab-panel,
  .demo-grid,
  .with-toc {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
  }

  .feature-flip .feature-text {
    order: 0;
  }

  .feature + .feature {
    margin-block-start: 4rem;
  }

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

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

  .toc {
    display: none;
  }

  .section {
    padding-block: 4rem;
  }

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

  .foot-about {
    grid-column: 1 / -1;
  }

  .tabs {
    border-radius: var(--radius-lg);
  }
}

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

  .hero-cta .btn {
    inline-size: 100%;
  }

  .demo-form {
    padding: 1.4rem;
  }

  .prose dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
  }

  .prose dd {
    margin-block-end: 0.6rem;
  }
}

/* ------------------------------------------------------------------ Photo-led layout */
.hero-photo {
  display: flex;
  align-items: center;
  min-block-size: min(86vh, 820px);
  padding-block: 6rem 9rem;
  background:
    linear-gradient(90deg, rgba(0, 21, 37, 0.96) 0%, rgba(0, 21, 37, 0.82) 38%, rgba(0, 21, 37, 0.25) 75%, rgba(0, 21, 37, 0.1) 100%),
    linear-gradient(0deg, var(--midnight) 0%, transparent 30%),
    url("/assets/photos/hero.webp") 72% 30% / cover no-repeat,
    var(--midnight);
}

.hero-photo::before {
  display: none;
}

.hero-photo .wrap {
  inline-size: min(1200px, 100% - 2.5rem);
}

.hero-copy {
  max-inline-size: 640px;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.hero-copy .hero-cta,
.hero-copy .hero-points {
  justify-content: flex-start;
}

.lift {
  position: relative;
  background: linear-gradient(var(--midnight) 0 22%, var(--bg) 22%);
  padding-block-end: 2rem;
}

.lift .hero-stage {
  margin-block-start: -6rem;
}

.lift .frame {
  border-radius: 14px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 21, 37, 0.08);
}

.lift-note {
  margin-block-start: 4rem;
}

/* Problems beside a photo */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 4rem;
  align-items: start;
}

.split-photo {
  position: sticky;
  inset-block-start: calc(var(--top) + 2rem);
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.split-photo img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.stack {
  display: grid;
  gap: 1rem;
}

.stack .card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 1.2rem;
}

.stack .card > * {
  grid-column: 2;
}

.stack .card .icon {
  grid-column: 1;
  grid-row: 1 / span 3;
  margin: 0;
}

/* Full-width photo band */
.photo-band {
  padding-block: clamp(6rem, 14vw, 11rem);
  background:
    linear-gradient(90deg, rgba(0, 21, 37, 0.85), rgba(0, 21, 37, 0.35)),
    url("/assets/photos/casablanca.webp") center 60% / cover no-repeat,
    var(--midnight);
  color: #fff;
}

.manifesto {
  max-inline-size: 900px;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.manifesto span {
  color: var(--citron);
}

/* Field: photo with the phone on top */
.terrain-visual {
  position: relative;
  padding-block-end: 3rem;
  padding-inline-end: 3rem;
}

.terrain-photo {
  inline-size: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
}

.terrain-phone {
  position: absolute;
  inset-inline-end: 0;
  inset-block-end: 0;
  inline-size: 38%;
  max-inline-size: 230px;
}

/* Photo call to action */
.cta-photo {
  background:
    linear-gradient(90deg, rgba(0, 21, 37, 0.92), rgba(0, 21, 37, 0.7)),
    url("/assets/photos/casa.webp") center 40% / cover no-repeat,
    var(--midnight);
}

/* Inner page heroes with a photo */
.page-hero.has-photo {
  padding-block: 6rem 5rem;
}

.page-hero.has-photo::before {
  display: none;
}

.ph-features {
  background:
    linear-gradient(90deg, rgba(0, 21, 37, 0.95), rgba(0, 21, 37, 0.6)),
    url("/assets/photos/formwork.webp") center / cover no-repeat,
    var(--midnight);
}

.ph-security {
  background:
    linear-gradient(90deg, rgba(0, 21, 37, 0.95), rgba(0, 21, 37, 0.55)),
    url("/assets/photos/crane_city.webp") center 30% / cover no-repeat,
    var(--midnight);
}

.ph-demo {
  background:
    linear-gradient(90deg, rgba(0, 21, 37, 0.95), rgba(0, 21, 37, 0.6)),
    url("/assets/photos/hardhats.webp") center 35% / cover no-repeat,
    var(--midnight);
}

@media (max-width: 960px) {
  .hero-photo {
    min-block-size: 0;
    padding-block: 4rem 7rem;
    background:
      linear-gradient(0deg, var(--midnight) 0%, rgba(0, 21, 37, 0.88) 55%, rgba(0, 21, 37, 0.3) 100%),
      url("/assets/photos/hero.webp") 70% 20% / cover no-repeat,
      var(--midnight);
  }

  .hero-copy .hero-cta,
  .hero-copy .hero-points {
    justify-content: flex-start;
  }

  .lift .hero-stage {
    margin-block-start: -4rem;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .split-photo {
    position: static;
    aspect-ratio: 16 / 10;
  }

  .terrain-visual {
    padding-inline-end: 1.5rem;
  }
}

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

  .stack .card > *,
  .stack .card .icon {
    grid-column: 1;
    grid-row: auto;
  }

  .stack .card .icon {
    margin-block-end: 1rem;
  }
}
