/* بيطار — الموقع. الألوان والخط من docs/design-system.md. بلا تدرجات؛ الظل الناعم لإطار الهاتف ولقطة التقرير فقط. */

@font-face {
  font-family: "Alexandria";
  src: url("./fonts/Alexandria-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alexandria";
  src: url("./fonts/Alexandria-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alexandria";
  src: url("./fonts/Alexandria-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alexandria";
  src: url("./fonts/Alexandria-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #223a2c;
  --field: #4a9167;
  --gold: #c69a2d;
  --sand: #efe8df;
  --stone: #565957;

  --canvas: #f7f3ee;
  --surface: #fffdf9;
  --line: #e6ddd0;
  --ink-soft: #2e4a39;
  --sand-muted: #c9bfae;
  --field-tint: #e3efe7;
  --field-ink: #2f5e43;
  --gold-tint: #f3ead3;
  --gold-ink: #7a5c14;
  --cold-tint: #e1ecf3;
  --cold-ink: #1f4e6b;
  --stone-tint: #ecebe8;
  --stone-ink: #3e403e;

  --font: "Alexandria", "Segoe UI", Tahoma, system-ui, sans-serif;
  --gutter: 16px;
  --max: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}
.hero :focus-visible,
.footer :focus-visible,
.invite :focus-visible {
  outline-color: var(--gold);
}

.skip {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--sand);
  border-radius: 12px;
  font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}

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

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--sand);
  border-radius: 0 0 24px 24px;
  padding-block-end: 0;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}
.bar-brand {
  display: inline-flex;
  border-radius: 12px;
}
.bar-brand img {
  height: 48px;
  width: auto;
}
.bar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
}
.bar-nav a {
  display: none;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--sand);
  border-radius: 12px;
}
.bar-nav a:hover {
  color: var(--gold);
}
.bar-nav .bar-cta {
  display: inline-flex;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 600;
}
.bar-nav .bar-cta:hover {
  background: var(--gold);
  color: var(--ink);
}

.hero-body {
  display: grid;
  gap: 32px;
  padding-block-start: 32px;
}
.eyebrow {
  color: var(--gold);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-block-end: 12px;
}
.hero h1 {
  font-size: clamp(2rem, 8.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--sand);
  text-wrap: balance;
}
.lead {
  margin-block-start: 16px;
  max-width: 34em;
  font-size: 1.0625rem;
  color: var(--sand-muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-block-start: 28px;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  min-height: 48px;
  background: var(--ink-soft);
  color: var(--sand);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* ---------- إطار الهاتف (CSS فقط) ---------- */
/* اللقطة نفسها فيها شريط الحالة والجزيرة، فلا نرسم شقًّا. الأبعاد كلها نسبة من عرض الهاتف (cqw). */
.phone {
  container-type: inline-size;
  width: var(--w, 260px);
  max-width: 100%;
}
.phone-body {
  padding: 3cqw;
  background: #0f1a14;
  border-radius: 40px;
  border-radius: 16.5cqw;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 28px 48px -24px rgba(15, 26, 20, 0.55),
    0 10px 20px -12px rgba(15, 26, 20, 0.35);
}
.phone-body img {
  width: 100%;
  height: auto;
}

.hero {
  overflow: hidden;
}
.hero-art {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  align-items: start;
  height: 380px;
  padding-block-start: 8px;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0 -20%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(198, 154, 45, 0.2), transparent);
}
.phone-main {
  --w: min(240px, 66vw);
  position: relative;
}
.phone-back {
  display: none;
}

/* ---------- Sections ---------- */
.section {
  padding-block: 64px;
}
.section-alt {
  background: var(--sand);
}
.section-head {
  max-width: 40em;
  margin-block-end: 32px;
}
.kicker {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-ink);
  margin-block-end: 8px;
}
.section h2 {
  font-size: clamp(1.5rem, 5.4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.4;
  text-wrap: balance;
}
.section-lead {
  margin-block-start: 12px;
  color: var(--stone);
}

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

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
}
.card p {
  font-size: 0.9375rem;
  color: var(--stone);
}
.card .pill {
  margin-block-start: auto;
}
.card p + .pill {
  margin-block-start: 8px;
}

.icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-block-end: 8px;
  background: var(--sand);
  border-radius: 14px;
}
.section-alt .icon {
  background: var(--canvas);
}
.icon svg {
  width: 32px;
  height: 32px;
}
.icon-mark img {
  width: auto;
  height: 38px;
}
.i-ink {
  stroke: var(--ink);
}
.i-field {
  stroke: var(--field);
}
.i-gold {
  stroke: var(--gold);
}

.pill {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.8;
}
.pill-field {
  background: var(--field-tint);
  color: var(--field-ink);
}
.pill-gold {
  background: var(--gold-tint);
  color: var(--gold-ink);
}
.pill-cold {
  background: var(--cold-tint);
  color: var(--cold-ink);
}
.pill-stone {
  background: var(--stone-tint);
  color: var(--stone-ink);
}

/* ---------- كيف تعمل: ثلاث خطوات بهواتفها ---------- */
.how-steps {
  --how-gap: 16px;
  display: flex;
  gap: var(--how-gap);
  margin-inline: calc(var(--gutter) * -1);
  padding: 8px var(--gutter) 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.how-steps::-webkit-scrollbar {
  display: none;
}
.how-step {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 min(72vw, 300px);
  min-width: 0;
  scroll-snap-align: start;
}
.how-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-block-end: 16px;
  background: var(--ink);
  color: var(--sand);
  border-radius: 50%;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1;
}
.how-step h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
}
.how-step p {
  max-width: 34ch;
  margin-block-start: 6px;
  margin-block-end: 28px;
  font-size: 0.9375rem;
  color: var(--stone);
}
/* الهواتف على خط قاعدة واحد: النص يتمدد والهاتف في أسفل العمود */
.how-step .phone {
  --w: 100%;
  margin-block-start: auto;
}

/* ---------- تقرير الاستشارة ---------- */
.feature {
  display: grid;
  gap: 32px;
  align-items: center;
}
.feature .section-lead {
  max-width: 32em;
}
.ticks {
  display: grid;
  gap: 10px;
  margin-block-start: 24px;
}
.ticks li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-weight: 500;
}
.ticks li::before {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  background: var(--field-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5e43' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E")
    center / 16px no-repeat;
  border-radius: 50%;
}
.feature-art {
  display: grid;
  place-items: center;
  padding: 28px 20px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.feature-art img {
  width: min(100%, 380px);
  height: auto;
  box-shadow: 0 24px 40px -28px rgba(34, 58, 44, 0.5);
  border-radius: 22px;
}

.section-alt .feature-art {
  background: var(--surface);
}

/* ظهور ناعم عند التمرير: CSS فقط، ومعطّل مع تقليل الحركة */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .how-steps,
    .feature-copy,
    .feature-art {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
    @keyframes rise {
      from {
        opacity: 0;
        transform: translateY(24px);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }
  }
}

/* ---------- Vets invite ---------- */
.invite {
  display: grid;
  gap: 28px;
  padding: 28px 20px;
  background: var(--ink);
  color: var(--sand);
  border-radius: 24px;
}
.invite h2 {
  color: var(--sand);
}
.invite-copy p:not(.kicker) {
  margin-block-start: 12px;
  max-width: 34em;
  color: var(--sand-muted);
}
.kicker-dark {
  color: var(--gold);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover {
  background: var(--sand);
}
.mail {
  margin-block-start: 12px;
  font-size: 0.9375rem;
  color: var(--sand-muted);
}

/* ---------- تسجيل الاهتمام قبل الإطلاق ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.notify-layout {
  display: grid;
  gap: 24px;
}
.notify-layout .section-head {
  margin-block-end: 0;
}
.notify-fine {
  margin-block-start: 12px;
  font-size: 0.875rem;
  color: var(--stone);
}
.notify-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.notify-form {
  position: relative;
  display: grid;
  gap: 18px;
}
.notify-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.notify-form [hidden],
.notify-card [hidden] {
  display: none !important;
}

/* مفتاح اختيار من خيارين (أزرار راديو حقيقية) */
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px !important;
  background: var(--sand);
  border-radius: 14px !important;
}
.seg-opt {
  position: relative;
  display: block;
}
.seg-opt input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.seg-opt span {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--stone-ink);
  text-align: center;
  transition: background-color 0.15s, color 0.15s;
}
.seg-opt input:checked + span {
  background: var(--ink);
  color: var(--sand);
}
.seg-opt input:focus-visible + span {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.field {
  display: grid;
  gap: 6px;
}
.field label,
.chips legend {
  font-size: 0.9375rem;
  font-weight: 600;
}
.opt {
  margin-inline-start: 6px;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--stone);
}
.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--stone);
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
}
.field input[dir="ltr"] {
  text-align: right;
}
.field input::placeholder {
  color: var(--stone);
  opacity: 0.7;
}
.field input:focus-visible {
  border-color: var(--ink);
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
.notify-form [aria-invalid="true"] {
  border-color: #a4361f;
}

.chips legend {
  padding: 0;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block-start: 8px;
}
.chip {
  position: relative;
  display: block;
}
.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--stone);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background-color 0.15s, color 0.15s;
}
.chip input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--sand);
}
.chip input:checked + span::before {
  content: "";
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23efe8df' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.chip input:focus-visible + span {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--stone-ink);
}
.consent input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}
.consent a {
  color: var(--field-ink);
  text-underline-offset: 3px;
}
.consent a:hover {
  color: var(--ink);
}

/* حقل الفخ: خارج الرؤية بلا إزاحة تسبب تمريرًا أفقيًا */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(50%);
}

.form-error {
  min-height: 0;
  color: #a4361f;
  font-size: 0.9375rem;
  font-weight: 500;
}
.form-error:empty {
  display: none;
}

.btn-ink {
  background: var(--ink);
  color: var(--sand);
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn-ink:hover {
  background: var(--ink-soft);
}
.btn-ink:disabled {
  opacity: 0.7;
  cursor: progress;
}
.btn-block {
  width: 100%;
}
.btn-ink[aria-busy="true"] .btn-label::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-inline-end: 10px;
  vertical-align: -2px;
  border: 2px solid var(--sand-muted);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn-ink[aria-busy="true"] .btn-label::before {
    animation: none;
    border-top-color: var(--sand-muted);
  }
  .seg-opt span,
  .chip span {
    transition: none;
  }
}

.notify-done {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 32px 8px;
  text-align: center;
}
.notify-done:focus {
  outline: none;
}
.notify-done-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--field-tint);
  color: var(--field-ink);
  border-radius: 50%;
}
.notify-done-icon svg {
  width: 28px;
  height: 28px;
}
.notify-done p {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.7;
}

.invite .mail a {
  color: var(--sand);
  text-underline-offset: 3px;
}
.invite .mail a:hover {
  color: var(--gold);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--sand);
  padding-block: 40px 32px;
}
.footer-top {
  display: grid;
  gap: 24px;
  padding-block-end: 24px;
  border-block-end: 1px solid var(--ink-soft);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  width: fit-content;
}
.footer-brand img {
  height: 40px;
  width: auto;
}
.footer-brand strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}
.footer-brand small {
  display: block;
  font-size: 0.8125rem;
  color: var(--sand-muted);
  line-height: 1.3;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 0.9375rem;
}
.footer-nav a {
  padding: 6px 0;
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--gold);
}
.footer-note {
  margin-block-start: 20px;
  max-width: 44em;
  font-size: 0.875rem;
  color: var(--sand-muted);
}
.footer-copy {
  margin-block-start: 12px;
  font-size: 0.8125rem;
  color: var(--sand-muted);
}
.footer-legal {
  margin-block-start: 4px;
  font-size: 0.8125rem;
  color: var(--sand-muted);
}

/* ---------- صفحات المستندات (الخصوصية، الشروط، الدعم، حذف الحساب) ---------- */
.hero-doc {
  padding-block-end: 32px;
}
.doc-title {
  padding-block-start: 16px;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.4;
}
.doc-sub {
  margin-block-start: 8px;
  color: var(--sand-muted);
  font-size: 0.9375rem;
}
.doc-main {
  padding-block: 32px 56px;
}
.doc {
  max-width: 720px;
  margin-inline: auto;
  font-size: 1.0625rem;
  line-height: 1.9;
}
.doc > * + * {
  margin-block-start: 16px;
}
.doc h2 {
  margin-block-start: 40px;
  padding-block-start: 24px;
  border-block-start: 1px solid var(--line);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.5;
}
.doc h3 {
  margin-block-start: 24px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.6;
}
.doc h2 + *,
.doc h3 + * {
  margin-block-start: 8px;
}
.doc ul,
.doc ol {
  padding-inline-start: 24px;
}
.doc ul {
  list-style: disc;
}
.doc ol {
  list-style: decimal;
}
.doc li + li {
  margin-block-start: 6px;
}
.doc li::marker {
  color: var(--field);
}
.doc a {
  color: var(--field-ink);
  text-underline-offset: 3px;
}
.doc a:hover {
  color: var(--ink);
}
.doc strong {
  font-weight: 600;
}
.doc-meta {
  color: var(--stone);
  font-size: 0.9375rem;
}
.doc-notice {
  padding: 14px 18px;
  background: var(--gold-tint);
  color: var(--gold-ink);
  border-radius: 16px;
  font-size: 0.9375rem;
  font-weight: 500;
}
.doc-toc {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.doc-toc p {
  font-weight: 600;
  font-size: 1rem;
}
.doc-toc ol {
  margin-block-start: 8px;
  font-size: 0.9375rem;
  line-height: 1.8;
}
.doc-toc a {
  text-decoration: none;
}
.doc-toc a:hover {
  text-decoration: underline;
}
.doc-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.7;
}
.doc th,
.doc td {
  padding: 10px 14px;
  text-align: start;
  vertical-align: top;
  border-block-end: 1px solid var(--line);
}
.doc tr:last-child td {
  border-block-end: 0;
}
.doc th {
  background: var(--stone-tint);
  font-weight: 600;
  white-space: nowrap;
}
.doc-faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 18px;
}
.doc-faq details + details {
  margin-block-start: 10px;
}
.doc-faq summary {
  cursor: pointer;
  padding-block: 14px;
  font-weight: 600;
  line-height: 1.7;
}
.doc-faq details > p {
  padding-block-end: 16px;
}
.doc-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.doc-card p + p,
.doc-card ul {
  margin-block-start: 8px;
}

@media (min-width: 640px) {
  .doc-title {
    font-size: 2.125rem;
  }
  .doc-main {
    padding-block: 48px 80px;
  }
}

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }
  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid {
    gap: 16px;
  }
}

@media (min-width: 900px) {
  :root {
    --gutter: 32px;
  }
  .bar-nav a {
    display: inline-flex;
  }
  .hero {
    padding-block-end: 80px;
    overflow: visible;
    border-radius: 0 0 32px 32px;
  }
  .hero-body {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    padding-block-start: 56px;
  }
  .hero-art {
    justify-self: center;
    width: 100%;
    max-width: 420px;
    height: 580px;
    padding-block-start: 0;
  }
  .hero-art::before {
    inset: -8% -12%;
  }
  .phone-main {
    --w: 260px;
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    z-index: 1;
  }
  .phone-back {
    --w: 200px;
    display: block;
    position: absolute;
    inset-block-start: 84px;
    inset-inline-end: 0;
    transform: rotate(-6deg);
    transform-origin: bottom center;
  }
  .how-steps {
    --how-gap: 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-inline: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .how-step {
    flex: none;
  }
  /* خط رفيع يصل مركز كل دائرة بالتي تليها ويمرّ خلفها */
  .how-step:not(:last-child)::before {
    content: "";
    position: absolute;
    inset-block-start: 18px;
    inset-inline-start: 18px;
    width: calc(100% + var(--how-gap));
    height: 1px;
    background: var(--sand-muted);
  }
  .how-step .phone {
    --w: min(100%, 280px);
  }
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .feature-art {
    padding: 40px;
  }
  .section {
    padding-block: 96px;
  }
  .section-head {
    margin-block-end: 48px;
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .card {
    padding: 24px;
  }
  .notify-layout {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
    gap: 64px;
  }
  .notify-card {
    padding: 32px;
  }
  .invite {
    grid-template-columns: 1.6fr 1fr;
    align-items: center;
    gap: 48px;
    padding: 56px 48px;
  }
  .invite-action {
    justify-self: end;
    text-align: center;
  }
  .footer-top {
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-content: space-between;
  }
  .footer-nav {
    justify-content: flex-end;
  }
}

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