/* SENDEED marketing site — plain CSS, no build step. Brand tokens match the app. */

:root {
  --green: #0b513d;
  --green-deep: #0c3b2d;
  --green-darker: #082a20;
  --green-bright: #1f8a66;
  --tint: #e6efea;
  --tint-soft: #f2f7f4;
  --gold: #f5c451;
  --ink: #18201d;
  --body: #3d4742;
  --muted: #738079;
  --line: #e1e8e4;
  --white: #ffffff;
  --danger: #b42318;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(12, 59, 45, 0.06), 0 8px 24px rgba(12, 59, 45, 0.08);
  --shadow-lg: 0 24px 60px rgba(8, 42, 32, 0.22);
  --max: 1160px;
  --gutter: 20px;
  --header-h: 68px;
  --font: 'IBM Plex Sans', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html[lang='ar'] {
  --font: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

html[lang='ar'] h1,
html[lang='ar'] h2,
html[lang='ar'] h3 {
  letter-spacing: 0;
  line-height: 1.35;
}

p {
  margin: 0 0 1em;
}

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

/* ---------- Bilingual content: one block per language ---------- */
html[lang='en'] [data-lang='ar'],
html[lang='ar'] [data-lang='en'] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  background: var(--green);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--green);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--green-deep);
}
.btn--light {
  background: var(--white);
  color: var(--green);
}
.btn--light:hover {
  background: var(--tint);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 40px;
  height: auto;
}
.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name b {
  font-size: 19px;
  letter-spacing: 0.06em;
  color: var(--green);
}
.brand__name small {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  color: var(--body);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav a:hover {
  color: var(--green);
  background: var(--tint-soft);
}

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

.lang-toggle {
  min-height: 40px;
  min-width: 48px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.lang-toggle:hover {
  border-color: var(--green);
  color: var(--green);
}
.lang-toggle [data-lang='en'] {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header-cta {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(31, 138, 102, 0.45), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(31, 138, 102, 0.25), transparent 60%),
    linear-gradient(160deg, var(--green-deep), var(--green-darker));
  color: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding-block: 88px 96px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 14px;
}
html[lang='ar'] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-size: 14px;
}
.hero .eyebrow {
  color: var(--gold);
  background: rgba(245, 196, 81, 0.1);
  border: 1px solid rgba(245, 196, 81, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(38px, 5.4vw, 62px);
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero__lead {
  font-size: clamp(17px, 1.6vw, 19px);
  max-width: 34em;
  margin-bottom: 30px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.store-badge svg {
  width: 18px;
  height: 18px;
}
.stores__note {
  color: rgba(255, 255, 255, 0.55);
}

/* Phone mock-up (pure CSS) */
.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-wrap::before {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 196, 81, 0.18), transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.phone {
  position: relative;
  width: 300px;
  border-radius: 44px;
  padding: 10px;
  background: #0f1714;
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.phone__screen {
  border-radius: 36px;
  overflow: hidden;
  background: var(--white);
  min-height: 580px;
  color: var(--body);
  font-size: 12px;
  direction: inherit;
}
.phone__hero {
  position: relative;
  height: 190px;
  background: url('../assets/hero.jpg') center 35% / cover;
  padding: 44px 16px 16px;
  color: var(--white);
}
.phone__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 42, 32, 0.55), rgba(8, 42, 32, 0.15) 55%, rgba(8, 42, 32, 0.6));
}
.phone__hero > * {
  position: relative;
  z-index: 1;
}
.phone__brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 12px;
}
.phone__brand img {
  width: 22px;
}
.phone__title {
  margin-top: 30px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}
.phone__search {
  margin: -22px 14px 0;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--muted);
}
.phone__search svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}
.phone__section {
  padding: 16px 14px 0;
}
.phone__label {
  font-weight: 700;
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 10px;
}
.chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
}
.chip span {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--tint-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.chip svg {
  width: 20px;
  height: 20px;
}
.mini-card {
  display: flex;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 8px;
}
.mini-card__img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  flex: none;
  background: linear-gradient(135deg, var(--tint), #cfe0d7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.mini-card__img svg {
  width: 22px;
  height: 22px;
}
.mini-card b {
  display: block;
  color: var(--ink);
  font-size: 12px;
}
.mini-card small {
  color: var(--muted);
  font-size: 10.5px;
}
.mini-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 10.5px;
}
.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--green);
  font-weight: 600;
}
.badge-verified svg {
  width: 12px;
  height: 12px;
}
.star {
  color: #d89b00;
  font-weight: 600;
}

/* ---------- Sections ---------- */
.section {
  padding-block: 96px;
}
.section--tint {
  background: var(--tint-soft);
}
.section__head {
  max-width: 680px;
  margin-bottom: 48px;
}
.section__head--center {
  margin-inline: auto;
  text-align: center;
}
.section h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 700;
}
.section__lead {
  font-size: 18px;
  color: var(--body);
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 4.2;
  background: url('../assets/hero.jpg') center / cover;
  box-shadow: var(--shadow);
}
.about__media figcaption {
  position: absolute;
  inset-inline: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 14px;
}
.about__media figcaption img {
  width: 36px;
}
.about__media figcaption b {
  display: block;
}
.about__media figcaption small {
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.stat {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--tint-soft);
}
.stat b {
  display: block;
  font-size: 24px;
  color: var(--green);
  line-height: 1.2;
}
.stat span {
  font-size: 14px;
  color: var(--muted);
}

/* Cards / steps */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.panel__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--green);
  background: var(--tint);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.panel__tag svg {
  width: 16px;
  height: 16px;
}
.panel h3 {
  font-size: 24px;
  margin-bottom: 20px;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-inline-start: 52px;
  padding-bottom: 22px;
}
.steps li:last-child {
  padding-bottom: 0;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  inset-inline-start: 16px;
  top: 38px;
  bottom: 4px;
  width: 2px;
  background: var(--tint);
}
.steps b {
  display: block;
  color: var(--ink);
  margin-bottom: 2px;
}
.steps p {
  margin: 0;
  font-size: 15px;
}

.feature {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature__icon svg {
  width: 24px;
  height: 24px;
}
.feature h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.feature p {
  margin: 0;
  font-size: 15px;
}
.note {
  margin-top: 28px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px dashed #c6d6cd;
  font-size: 15px;
  color: var(--body);
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: start;
}
.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.field label .opt {
  font-weight: 400;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--tint-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(31, 138, 102, 0.15);
}
.field input[type='tel'] {
  direction: ltr;
}
html[lang='ar'] .field input[type='tel'] {
  text-align: right;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
  background: #fff8f7;
}
.field__error {
  font-size: 13px;
  color: var(--danger);
  min-height: 0;
}
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.form__consent {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: 34em;
}
.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
}
.form-status[hidden] {
  display: none;
}
.form-status.is-ok {
  background: var(--tint);
  color: var(--green-deep);
}
.form-status.is-error {
  background: #fdecea;
  color: var(--danger);
}
.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
  display: none;
}
.btn.is-loading .spinner {
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.company {
  background: linear-gradient(160deg, var(--green-deep), var(--green-darker));
  color: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.company h3 {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 20px;
}
.company dl {
  margin: 0;
  display: grid;
  gap: 16px;
}
.company dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2px;
}
html[lang='ar'] .company dt {
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
}
.company dd {
  margin: 0;
  color: var(--white);
  font-size: 15px;
}
.company a {
  color: var(--white);
}
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-darker);
  color: rgba(255, 255, 255, 0.65);
  padding-block: 56px 28px;
  font-size: 14px;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__brand .brand__name b {
  color: var(--white);
}
.footer__brand .brand__name small {
  color: rgba(255, 255, 255, 0.55);
}
.footer__brand p {
  margin-top: 14px;
  max-width: 30em;
}
.site-footer h4 {
  color: var(--white);
  font-size: 14px;
  margin-bottom: 14px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Legal pages ---------- */
.legal-hero {
  background: linear-gradient(160deg, var(--green-deep), var(--green-darker));
  color: rgba(255, 255, 255, 0.75);
  padding-block: 64px 56px;
}
.legal-hero h1 {
  color: var(--white);
  font-size: clamp(32px, 4.4vw, 48px);
  margin-bottom: 10px;
}
.legal-hero p {
  margin: 0;
}
.legal {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  padding-block: 56px 96px;
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  font-size: 14px;
}
.toc b {
  display: block;
  color: var(--ink);
  margin-bottom: 10px;
}
.toc ol {
  margin: 0;
  padding-inline-start: 18px;
  display: grid;
  gap: 6px;
}
.toc a {
  color: var(--body);
  text-decoration: none;
}
.toc a:hover {
  color: var(--green);
}
.prose {
  max-width: 760px;
  font-size: 16px;
}
.prose h2 {
  font-size: 22px;
  margin-top: 40px;
  padding-top: 8px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  font-size: 17px;
  margin-top: 22px;
}
.prose ul {
  padding-inline-start: 22px;
  margin: 0 0 1em;
}
.prose li {
  margin-bottom: 6px;
}
.prose .callout {
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--tint-soft);
  border-inline-start: 4px solid var(--green);
  margin-bottom: 24px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    padding-block: 64px 72px;
    gap: 56px;
  }
  .about,
  .contact {
    grid-template-columns: 1fr;
  }
  .about__media {
    aspect-ratio: 16 / 10;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
  .legal {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .toc {
    position: static;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--tint-soft);
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }
  .header-cta {
    display: none;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(8, 42, 32, 0.08);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.2s,
      transform 0.2s,
      visibility 0.2s;
  }
  .nav.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
  }
  .nav a {
    padding: 14px 12px;
    font-size: 16px;
    border-radius: 12px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  .section {
    padding-block: 64px;
  }
  .section__head {
    margin-bottom: 32px;
  }
  .grid-3,
  .form__row,
  .stats {
    grid-template-columns: 1fr;
  }
  .panel,
  .form,
  .company {
    padding: 22px;
  }
  .phone {
    width: 270px;
  }
  .phone__screen {
    min-height: 520px;
  }
  .hero__actions .btn {
    flex: 1 1 100%;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .brand__name small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
