/* dossiey — public site. Fonts are self-hosted; no third-party scripts or trackers. */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/manrope-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/manrope-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/manrope-latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Noto Naskh Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/noto-naskh-ar.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011,
    U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: 'Noto Naskh Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/noto-naskh-ar-700.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011,
    U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  --teal: #003b36;
  --teal-2: #0b4f48;
  --teal-deep: #002824;
  --mint: #35d6b0;
  --mint-ink: #0f7a62;
  --mist: #eaf4f2;
  --mist-2: #f2f8f6;
  --ink: #14201e;
  --muted: #5a6b68;
  --subtle: #8a9a97;
  --line: #d5e4e1;
  --white: #ffffff;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --warning-soft: #fff7e6;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(0, 59, 54, 0.06), 0 18px 40px -18px rgba(0, 59, 54, 0.28);
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: 'Manrope', 'Noto Naskh Arabic', system-ui, sans-serif;
  --font-display: 'Fraunces', 'Noto Naskh Arabic', Georgia, serif;

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--teal);
  text-underline-offset: 3px;
}

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

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

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.4vw, 3.75rem);
  font-weight: 600;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.4rem);
  font-weight: 600;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  inset-inline-start: 8px;
  top: -60px;
  background: var(--teal);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 100;
}

.skip:focus {
  top: 8px;
}

/* ---------- Language blocks ---------- */

html:not([data-lang]) [data-l]:not([data-l='fr']),
html[data-lang='fr'] [data-l]:not([data-l='fr']),
html[data-lang='en'] [data-l]:not([data-l='en']),
html[data-lang='ar'] [data-l]:not([data-l='ar']) {
  display: none !important;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.brand img {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  margin-inline-start: auto;
}

.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 560;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--teal);
  background: var(--mist);
}

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

.lang-switch {
  display: inline-flex;
  background: var(--mist);
  border-radius: 999px;
  padding: 3px;
}

.lang-switch button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switch button[aria-pressed='true'] {
  background: var(--white);
  color: var(--teal);
  box-shadow: 0 1px 3px rgba(0, 59, 54, 0.15);
}

.menu-btn {
  display: none;
  border: 0;
  background: var(--mist);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s, background 0.2s;
}

.menu-btn span::before,
.menu-btn span::after {
  content: '';
  position: absolute;
  left: 0;
}

.menu-btn span::before {
  top: -6px;
}

.menu-btn span::after {
  top: 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);
}

@media (max-width: 900px) {
  .menu-btn {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(0, 59, 54, 0.25);
  }

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

  .nav-links a {
    padding: 12px 14px;
    font-size: 1rem;
  }

  .nav-tools {
    margin-inline-start: auto;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--teal-2);
  color: var(--white);
}

.btn-ghost {
  background: var(--white);
  color: var(--teal);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--mist);
  color: var(--teal);
}

.btn-store {
  background: #000;
  color: #fff;
  padding: 0 18px;
  min-height: 54px;
  border-radius: 14px;
  text-align: start;
  line-height: 1.1;
}

.btn-store:hover {
  background: #1a1a1a;
  color: #fff;
}

.btn-store small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.85;
}

.btn-store strong {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.btn-store svg {
  width: 24px;
  height: 24px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Sections ---------- */

section {
  padding-block: clamp(56px, 9vw, 104px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint-ink);
  margin-bottom: 14px;
}

html[data-lang='ar'] .eyebrow {
  letter-spacing: 0;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--mint);
}

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: var(--muted);
  max-width: 60ch;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.center {
  text-align: center;
  margin-inline: auto;
}

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

.bg-mist {
  background: var(--mist-2);
}

.bg-teal {
  background: var(--teal);
  color: var(--mist);
}

.bg-teal h2,
.bg-teal h3 {
  color: var(--white);
}

.bg-teal .lead,
.bg-teal p {
  color: rgba(234, 244, 242, 0.82);
}

.bg-teal .eyebrow {
  color: var(--mint);
}

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

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: min(92vh, 920px);
  display: flex;
  align-items: center;
  padding-block: clamp(48px, 8vw, 96px) clamp(64px, 9vw, 112px);
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(53, 214, 176, 0.28), transparent 55%),
    radial-gradient(ellipse 55% 50% at 8% 90%, rgba(0, 59, 54, 0.12), transparent 50%),
    linear-gradient(165deg, #f7fbfa 0%, #e8f4f1 42%, #d9ebe7 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 59, 54, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 59, 54, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 214, 176, 0.35), transparent 68%);
  top: -8%;
  inset-inline-end: -8%;
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
  animation: hero-glow 10s ease-in-out infinite alternate;
}

html[dir='rtl'] .hero::after {
  inset-inline-end: auto;
  inset-inline-start: -8%;
}

@keyframes hero-glow {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 0.85;
  }
  to {
    transform: translate(-18px, 22px) scale(1.08);
    opacity: 1;
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  width: 100%;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--teal);
  line-height: 1;
}

.hero-brand img {
  width: clamp(42px, 5vw, 56px);
  height: clamp(42px, 5vw, 56px);
}

.hero h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 600;
  max-width: 18ch;
  margin-bottom: 16px;
}

.hero h1 .accent {
  color: var(--mint-ink);
}

.hero .lead {
  max-width: 36ch;
  margin-bottom: 28px;
  font-size: 1.05rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after {
    animation: none;
  }
}

/* ---------- Phone mockup ---------- */

.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 19.2;
  margin-inline: auto;
  background: #0d1312;
  border-radius: 46px;
  padding: 11px;
  box-shadow: 0 40px 80px -30px rgba(0, 59, 54, 0.55), inset 0 0 0 2px #2a3331;
}

.phone::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 25px;
  border-radius: 20px;
  background: #0d1312;
  z-index: 2;
}

.screen {
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  font-size: 11px;
  line-height: 1.35;
}

.screen-status {
  height: 44px;
  flex: none;
}

.screen-body {
  flex: 1;
  padding: 4px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.screen-hello {
  color: var(--muted);
  font-size: 11px;
}

.screen-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-top: -4px;
}

.id-card {
  background: var(--teal);
  color: var(--white);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.id-card small {
  display: block;
  opacity: 0.75;
  font-size: 9.5px;
}

.id-card strong {
  font-size: 15px;
  letter-spacing: 0.06em;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

.qr {
  width: 38px;
  height: 38px;
  background:
    conic-gradient(var(--white) 25%, transparent 0 50%, var(--white) 0 75%, transparent 0) 0 0 / 9.5px 9.5px,
    var(--teal-2);
  border-radius: 6px;
  border: 3px solid var(--white);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.stat {
  background: var(--mist);
  border-radius: 12px;
  padding: 8px;
}

.stat strong {
  display: block;
  font-size: 15px;
  color: var(--teal);
}

.stat span {
  color: var(--muted);
  font-size: 9.5px;
}

.list-title {
  font-weight: 750;
  font-size: 12px;
  color: var(--ink);
  margin-top: 2px;
}

.doc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.doc i {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--mist);
  position: relative;
}

.doc i::after {
  content: '';
  position: absolute;
  inset: 9px 10px;
  border-radius: 2px;
  border: 2px solid var(--teal);
}

.doc i.lab {
  background: #e8f1ff;
}

.doc i.lab::after {
  border-color: #2563eb;
}

.doc i.rx {
  background: #fdf0e6;
}

.doc i.rx::after {
  border-color: #d9640b;
}

.doc i.img {
  background: #f1ebff;
}

.doc i.img::after {
  border-color: #7c3aed;
}

.doc b {
  display: block;
  font-size: 11px;
  color: var(--ink);
  font-weight: 650;
}

.doc span {
  color: var(--subtle);
  font-size: 9.5px;
}

.screen-dock {
  flex: none;
  height: 56px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: 8px;
}

.screen-dock i {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--line);
}

.screen-dock i.on {
  background: var(--teal);
}

.screen-dock i.add {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--mint);
}

.hero-visual {
  position: relative;
  padding-block: 8px;
  display: grid;
  place-items: center;
}

.hero-visual .phone {
  animation: phone-rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes phone-rise {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual .phone {
    animation: none;
  }
}

/* ---------- Cards & grids ---------- */

.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

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

@media (max-width: 640px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.bg-teal .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(234, 244, 242, 0.14);
}

.icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--mist);
  color: var(--teal);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.icon svg {
  width: 22px;
  height: 22px;
}

.bg-teal .icon {
  background: rgba(53, 214, 176, 0.14);
  color: var(--mint);
}

/* ---------- Steps ---------- */

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

.steps li {
  counter-increment: step;
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--teal);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 16px;
}

.steps p {
  color: var(--muted);
  margin: 0;
}

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

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

/* ---------- Split feature ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.split + .split {
  margin-top: clamp(56px, 8vw, 96px);
}

.split.reverse > :first-child {
  order: 2;
}

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

  .split.reverse > :first-child {
    order: 0;
  }
}

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

.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checks li::before {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 7px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003B36' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
      center / 13px no-repeat,
    var(--mint);
}

.panel {
  background: var(--mist);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  gap: 12px;
}

.mini {
  background: var(--white);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(0, 59, 54, 0.06);
}

.mini .avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 0.9rem;
}

.mini .grow {
  flex: 1;
  min-width: 0;
}

.mini b {
  display: block;
  font-size: 0.95rem;
}

.mini span {
  color: var(--muted);
  font-size: 0.82rem;
}

.pill {
  flex: none;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--teal);
}

.pill.ok {
  background: #e6f8f1;
  color: #0f7a62;
}

.pill.wait {
  background: var(--warning-soft);
  color: #a15c00;
}

.pill.no {
  background: var(--danger-soft);
  color: var(--danger);
}

/* ---------- CTA band ---------- */

.cta {
  border-radius: 32px;
  padding: clamp(32px, 6vw, 64px);
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(53, 214, 176, 0.28), transparent 70%),
    var(--teal);
  color: var(--white);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
}

.cta h2 {
  color: var(--white);
}

.cta p {
  color: rgba(234, 244, 242, 0.82);
  margin: 0;
}

.cta .btn-row {
  justify-content: flex-end;
}

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

  .cta .btn-row {
    justify-content: flex-start;
  }
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding-block: clamp(48px, 7vw, 88px) clamp(24px, 4vw, 40px);
  background: linear-gradient(180deg, var(--mist-2), var(--white));
}

.page-hero .lead {
  margin: 0;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--subtle);
  margin-bottom: 14px;
}

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

/* ---------- Legal / prose ---------- */

.doc-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding-block: 24px clamp(56px, 8vw, 96px);
}

.toc {
  position: sticky;
  top: 92px;
  font-size: 0.9rem;
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover {
  background: var(--mist);
  color: var(--teal);
}

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

  .toc {
    position: static;
    background: var(--mist-2);
    border-radius: var(--radius-sm);
    padding: 16px;
  }
}

.prose {
  max-width: 74ch;
  min-width: 0;
}

.prose h2 {
  font-size: 1.4rem;
  margin-top: 2.2em;
  scroll-margin-top: 90px;
}

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

.prose h3 {
  margin-top: 1.6em;
}

.prose p,
.prose li {
  color: #36423f;
}

.prose ul,
.prose ol {
  padding-inline-start: 1.3em;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose .meta {
  color: var(--subtle);
  font-size: 0.92rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.2em;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 520px;
}

th,
td {
  text-align: start;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--mist-2);
  font-weight: 700;
  color: var(--ink);
}

tr:last-child td {
  border-bottom: 0;
}

.note {
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  background: var(--mist);
  border-inline-start: 4px solid var(--mint);
  margin: 0 0 1.4em;
}

.note.warn {
  background: var(--warning-soft);
  border-color: #e08600;
}

.note.danger {
  background: var(--danger-soft);
  border-color: var(--danger);
}

.note p:last-child {
  margin: 0;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 0 20px;
}

.faq details[open] {
  background: var(--mist-2);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 680;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.faq summary::after {
  content: '+';
  flex: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--teal);
  transition: transform 0.2s;
}

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

.faq details > div {
  padding-bottom: 18px;
  color: var(--muted);
}

.faq details > div p:last-child {
  margin: 0;
}

/* ---------- Forms ---------- */

.form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 650;
  font-size: 0.92rem;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(53, 214, 176, 0.35);
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--muted);
}

.check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.form-result {
  display: none;
}

.form-result.show {
  display: block;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.copy-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  word-break: break-all;
}

.copy-line svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--mint-ink);
}

.copy-btn {
  border: 1px solid var(--line);
  background: var(--white);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--teal);
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
}

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

.site-footer {
  background: var(--teal);
  color: rgba(234, 244, 242, 0.78);
  padding-block: 56px 28px;
  font-size: 0.92rem;
}

.site-footer a {
  color: rgba(234, 244, 242, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--mint);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 30px;
  height: 30px;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(234, 244, 242, 0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
}

.disclaimer {
  max-width: 70ch;
  color: rgba(234, 244, 242, 0.62);
  font-size: 0.82rem;
}

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

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- 404 ---------- */

.notfound {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.notfound .code {
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 850;
  letter-spacing: -0.06em;
  color: var(--mist);
  -webkit-text-stroke: 2px var(--teal);
  line-height: 1;
  margin-bottom: 12px;
}

/* ---------- Reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.in {
    opacity: 1;
    transform: none;
  }
}

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

/* ---------- Tablet (768–1099) ---------- */

@media (min-width: 768px) and (max-width: 1099px) {
  :root {
    --max: 960px;
    --gutter: clamp(28px, 4vw, 40px);
  }

  .nav {
    min-height: 72px;
  }

  .hero {
    min-height: min(88vh, 820px);
    padding-block: 64px 80px;
  }

  .hero-grid {
    gap: 48px;
  }

  .hero-brand {
    font-size: clamp(2.6rem, 5vw, 3.2rem);
  }

  .hero h1 {
    font-size: clamp(1.7rem, 2.8vw, 2.05rem);
    max-width: 22ch;
  }

  .phone {
    width: min(280px, 42vw);
  }

  .grid {
    gap: 22px;
  }

  .card {
    padding: 28px;
  }

  .split {
    gap: 48px;
  }

  section {
    padding-block: clamp(64px, 8vw, 96px);
  }
}

/* ---------- Desktop (≥1100) ---------- */

@media (min-width: 1100px) {
  :root {
    --max: 1240px;
    --gutter: clamp(32px, 3.5vw, 48px);
    --radius: 20px;
  }

  body {
    font-size: 17px;
  }

  .nav {
    min-height: 76px;
    gap: 32px;
  }

  .brand {
    font-size: 1.45rem;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .nav-links a {
    padding: 10px 14px;
    font-size: 0.98rem;
  }

  .hero {
    min-height: min(92vh, 960px);
    padding-block: 72px 120px;
  }

  .hero-grid {
    grid-template-columns: 1.12fr 0.88fr;
    gap: clamp(56px, 7vw, 96px);
  }

  .hero-brand {
    font-size: clamp(3.2rem, 4.2vw, 4rem);
    margin-bottom: 22px;
  }

  .hero-brand img {
    width: 64px;
    height: 64px;
  }

  .hero h1 {
    font-size: clamp(2rem, 2.4vw, 2.45rem);
    max-width: 20ch;
    margin-bottom: 20px;
  }

  .hero .lead {
    font-size: 1.15rem;
    max-width: 38ch;
    margin-bottom: 32px;
  }

  .phone {
    width: min(320px, 28vw);
  }

  section {
    padding-block: clamp(80px, 9vw, 128px);
  }

  .section-head {
    max-width: 780px;
    margin-bottom: clamp(40px, 5vw, 64px);
  }

  h2 {
    font-size: clamp(2rem, 2.8vw, 2.65rem);
  }

  .lead {
    font-size: clamp(1.1rem, 1.4vw, 1.28rem);
  }

  .grid {
    gap: 24px;
  }

  .grid-3 {
    gap: 28px;
  }

  .card {
    padding: 32px 30px;
    transition: border-color 0.2s, transform 0.25s ease, box-shadow 0.25s ease;
  }

  .card:hover {
    border-color: rgba(0, 59, 54, 0.22);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
  }

  @media (prefers-reduced-motion: reduce) {
    .card:hover {
      transform: none;
    }
  }

  .steps {
    gap: 22px;
  }

  .steps li {
    padding: 28px;
  }

  .split {
    gap: clamp(48px, 6vw, 100px);
  }

  .panel {
    border-radius: 32px;
    padding: clamp(32px, 4vw, 48px);
  }

  .btn-row {
    gap: 14px;
  }
}

/* ---------- Wide desktop (≥1400) ---------- */

@media (min-width: 1400px) {
  :root {
    --max: 1320px;
  }

  .hero-grid {
    gap: 110px;
  }

  .phone {
    width: 340px;
  }
}

/* ---------- Print (legal pages) ---------- */

@media print {
  .site-header,
  .site-footer,
  .toc,
  .skip {
    display: none !important;
  }

  .doc-layout {
    display: block;
  }
}
