/* Rest Assured — styles. Mobile-first, RTL. Colors from the brief. */
:root {
  --navy: #102a43;
  --blue: #2f6f95;
  --teal: #bfe7e3;
  --bg: #f7fafc;
  --text: #4b5c68;
  --sand: #f3e8d4;
  --white: #ffffff;
  --line: #dde6ec;
  --tint: #eef4f7;

  --font: "Heebo", "Assistant", system-ui, sans-serif;
  --font-latin: "Inter", "Heebo", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(16 42 67 / 0.04), 0 8px 24px rgb(16 42 67 / 0.06);
  --container: 1180px;
  --gutter: 20px;
  --section-y: clamp(64px, 10vw, 128px);
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 4vw, 2.625rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { color: var(--navy); font-weight: 600; }
a { color: var(--blue); }
[dir="ltr"][lang="en"] { font-family: var(--font-latin); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }

.skip-link { position: absolute; inset-inline-start: 12px; top: -48px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }

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

/* ---------------------------------------------------------- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 500; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.eyebrow { font-size: 0.875rem; font-weight: 500; color: var(--blue); letter-spacing: 0.02em; margin-bottom: 14px; }

/* ----------------------------------------------------------- header --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(247 250 252 / 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.logo-mark { color: var(--blue); flex: none; }
.logo-word { font-family: var(--font-latin); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.logo-light { color: #fff; }
.logo-light .logo-mark { color: var(--teal); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--navy); text-decoration: none; font-size: 0.9375rem; }
.site-nav a:hover { color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-cta { display: none; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 11px;
  background: transparent; border: 0; border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.site-nav {
  position: absolute; inset-inline: 0; top: var(--header-h);
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 24px;
  display: none;
}
.site-nav.is-open { display: block; }
.site-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
.nav-cta-mobile { margin-top: 20px; width: 100%; }

@media (min-width: 980px) {
  .nav-toggle, .nav-cta-mobile { display: none; }
  .header-cta { display: inline-flex; }
  .site-nav { position: static; display: block; background: none; border: 0; padding: 0; }
  .site-nav ul { display: flex; gap: 28px; }
  .site-nav li a { display: inline; padding: 0; border: 0; font-size: 0.9375rem; }
}

/* ------------------------------------------------------------- media --- */
.media { margin: 0; aspect-ratio: var(--ratio, 16/9); border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-placeholder {
  display: grid; place-items: center; text-align: center;
  background:
    linear-gradient(135deg, rgb(191 231 227 / 0.55), rgb(47 111 149 / 0.12)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgb(16 42 67 / 0.03) 14px 15px),
    var(--tint);
  border: 1px dashed rgb(47 111 149 / 0.35);
  color: var(--blue);
}
.ph-inner { display: grid; justify-items: center; gap: 6px; padding: 16px; }
.ph-label { font-weight: 500; color: var(--navy); font-size: 0.9375rem; }
.ph-note { font-family: var(--font-latin); font-size: 0.75rem; opacity: 0.8; }

/* -------------------------------------------------------------- hero --- */
.hero { padding-block: 40px 0; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero .lead { font-size: 1.1875rem; max-width: 36em; }
.trust { margin-top: 20px; font-size: 0.9375rem; color: var(--blue); }
.hero-media { --ratio: 4/3 !important; }

@media (min-width: 980px) {
  .hero { padding-top: 72px; }
  .hero-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; }
  .hero-media { --ratio: 16/11 !important; }
}

.stats {
  display: grid; gap: 0; margin: 48px 0 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: 22px 0; }
.stat + .stat { border-top: 1px solid var(--line); }
.stat dt { font-size: 1.5rem; font-weight: 600; color: var(--navy); line-height: 1.3; }
.stat dd { margin: 2px 0 0; font-size: 0.9375rem; }
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(3, 1fr); margin-top: 72px; }
  .stat { padding: 28px 32px; }
  .stat:first-child { padding-inline-start: 0; }
  .stat + .stat { border-top: 0; border-inline-start: 1px solid var(--line); }
}

/* ---------------------------------------------------------- sections --- */
.section { padding-block: var(--section-y); }
.section-tint { background: var(--white); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-lead { font-size: 1.125rem; }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split-media-wide { grid-template-columns: 1.1fr 0.9fr; }
}

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.section-tint .card { background: var(--bg); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

.cards-3 { display: grid; gap: 16px; }
@media (min-width: 760px) { .cards-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.promise .card { border-top: 3px solid var(--teal); }

/* ------------------------------------------------------------- steps --- */
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; gap: 0; counter-reset: s; }
.step { position: relative; padding: 0 0 36px; padding-inline-start: 64px; }
.step::before { content: ""; position: absolute; inset-inline-start: 21px; top: 44px; bottom: 4px; width: 1px; background: var(--line); }
.step:last-child::before { display: none; }
.step-num {
  position: absolute; inset-inline-start: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal); color: var(--navy);
  font-family: var(--font-latin); font-weight: 600; font-size: 0.875rem;
}
.step h3 { padding-top: 8px; }
.step p { margin: 0; }
@media (min-width: 980px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .step { padding: 64px 0 0; }
  .step::before { inset-inline-start: 56px; inset-inline-end: -24px; top: 22px; bottom: auto; width: auto; height: 1px; }
}

/* ------------------------------------------------------------- plans --- */
.plans { display: grid; gap: 24px; }
@media (min-width: 980px) { .plans { grid-template-columns: 1fr 1fr; gap: 32px; } }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.plan-media { border-radius: 0; --ratio: 16/9 !important; border-inline: 0; border-top: 0; }
.plan-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.plan-body .btn { align-self: flex-start; margin-top: auto; }
.plan-title { font-size: 1.375rem; display: flex; flex-direction: column; gap: 4px; }
.plan-sub { font-size: 1rem; font-weight: 400; color: var(--blue); }
.plan-list-title { font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.plan-list { font-size: 1rem; line-height: 1.9; }
.features { list-style: none; padding: 16px 0; margin: 8px 0 24px; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); }
.features li { font-size: 0.875rem; padding: 4px 12px; border-radius: 999px; background: var(--tint); color: var(--navy); }

/* --------------------------------------------------------- companion --- */
.companion-media { --ratio: 4/5 !important; max-width: 520px; width: 100%; justify-self: center; }
.phrases { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.phrases li {
  padding: 12px 18px; border-inline-start: 3px solid var(--teal);
  background: var(--bg); color: var(--navy); font-weight: 500;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
[dir="rtl"] .phrases li { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.subline { font-size: 0.9375rem; color: var(--blue); margin: 0; }

/* ------------------------------------------------------------ island --- */
.island { background: var(--sand); }
.island .eyebrow { color: #8a6d3b; font-family: var(--font-latin); }
.island-media { border-radius: var(--radius); }
.island-media.media-placeholder {
  background:
    linear-gradient(180deg, rgb(126 200 214 / 0.45), rgb(243 232 212 / 0.9)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgb(16 42 67 / 0.03) 14px 15px), #fdf8ef;
  border-color: rgb(138 109 59 / 0.35);
}
.island-body { display: grid; gap: 32px; margin-top: 40px; }
@media (min-width: 980px) { .island-body { grid-template-columns: 1.2fr 1fr; gap: 72px; } }
.island-includes { background: rgb(255 255 255 / 0.6); border-radius: var(--radius); padding: 28px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li { position: relative; padding-inline-start: 26px; }
.checklist li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: 0.7em;
  width: 10px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: translateY(-50%) rotate(-45deg);
}
.island .btn-ghost { border-color: rgb(16 42 67 / 0.2); }
.footnote { font-size: 0.8125rem; margin: 40px 0 0; max-width: 60em; opacity: 0.85; }

/* ---------------------------------------------------------- standard --- */
.standard-list { margin: 32px 0 0; display: grid; gap: 0; }
.standard-list > div { padding: 16px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.standard-list dt { font-weight: 600; color: var(--navy); }
.standard-list dd { margin: 0; }
@media (min-width: 640px) { .standard-list > div { grid-template-columns: 160px 1fr; gap: 16px; } }

/* ------------------------------------------------------ testimonials --- */
.quote { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: 1.125rem; line-height: 1.7; color: var(--navy); margin: 0; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 0.9375rem; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--teal); color: var(--navy); font-weight: 600;
}

/* --------------------------------------------------------------- faq --- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; font-size: 1.125rem; font-weight: 500; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }
.faq-icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; inset-inline-start: 0; top: 7px; width: 16px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.2s;
}
.faq-icon::after { transform: rotate(90deg); }
.faq details[open] .faq-icon::after { transform: rotate(0); }
.faq-answer { padding: 0 0 22px; max-width: 46em; }
.faq-answer p { margin: 0; }

/* --------------------------------------------------------- final cta --- */
.final-cta { background: var(--navy); color: rgb(255 255 255 / 0.8); }
.final-cta h2 { color: #fff; }
.final-cta .btn-primary { background: #fff; color: var(--navy); }
.final-cta .btn-primary:hover { background: var(--teal); }
.final-cta .btn-ghost { color: #fff; border-color: rgb(255 255 255 / 0.3); }
.final-cta .btn-ghost:hover { border-color: #fff; color: #fff; }
.final-cta .media-placeholder { background-color: rgb(255 255 255 / 0.06); border-color: rgb(191 231 227 / 0.35); }
.final-cta .ph-label { color: #fff; }
.final-cta .ph-inner { color: var(--teal); }
.micro { font-size: 0.875rem; margin: 18px 0 0; opacity: 0.85; }

/* -------------------------------------------------------------- form --- */
.contact-form { display: grid; gap: 18px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (min-width: 720px) { .contact-form { grid-template-columns: 1fr 1fr; padding: 36px; gap: 20px 24px; } }
.field { display: grid; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.9375rem; font-weight: 500; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--navy);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; min-height: 48px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input[dir="ltr"] { text-align: right; }
.field textarea { resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%); background-position: 18px 50%, 23px 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-left: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(47 111 149 / 0.15); }
.field [aria-invalid="true"] { border-color: #b4483c; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-foot .micro { margin: 0; }
.form-success { grid-column: 1 / -1; margin: 0; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--teal); color: var(--navy); font-weight: 500; }

/* -------------------------------------------------------------- page --- */
.page h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 24px; }

/* ------------------------------------------------------------ footer --- */
.site-footer { background: #0b1f33; color: rgb(255 255 255 / 0.72); padding: 56px 0 32px; font-size: 0.9375rem; }
.footer-top { display: grid; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid rgb(255 255 255 / 0.1); }
@media (min-width: 760px) { .footer-top { grid-template-columns: 1fr auto; align-items: start; } }
.footer-tagline { margin: 12px 0 0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-links a { color: rgb(255 255 255 / 0.85); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.disclaimer { padding: 28px 0; max-width: 62em; }
.disclaimer strong { color: #fff; font-weight: 500; }
.disclaimer .fine { font-size: 0.8125rem; margin: 0; opacity: 0.8; }
.copyright { font-size: 0.8125rem; margin: 0; opacity: 0.6; }

/* ------------------------------------------------------ reveal (soft) --- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
bdi { white-space: nowrap; }
