/* ============================================================
   مقرأة تجارة لن تبور — Muqraa marketing & legal site
   Brand-matched with the Flutter mobile app (Cairo + teal).
   RTL-first, bilingual (ar/en), mobile-first, a11y-first.
   ============================================================ */

@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/cairo-arabic.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, U+1EE00-1EEFF;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/cairo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary: #147F64;
  --primary-700: #0E6A52;
  --primary-600: #117056;
  --primary-050: #E7F2EE;
  --accent: #EC003F;
  --accent-bg: #FDD6E7;
  --gold: #D4AF37;
  --purple-accent: #5E2263;
  --pink-star: #EC003F;

  --header-start: #E8DFF5;
  --header-end: #F3E8FF;
  --header-start-soft: #EDE7F6;
  --header-end-soft: #F8F3FF;
  --btn-start: #6A9C89;
  --btn-end: #8FBFA8;

  --bg: #FFFFFF;
  --bg-soft: #F6F3EE;
  --bg-alt: #F1F3F4;
  --background-soft: #F6F3EE;
  --card: #FFFFFF;
  --border: #E4E6EA;
  --border-light: #F0F0F0;

  --text: #1F2633;
  --text-2: #4A5160;
  --text-muted: #6B6B6B;
  --text-hint: #6B717B;
  --white: #fff;

  --success: #2E7D32;
  --success-bg: #E6F4EA;
  --warning: #B7791F;
  --warning-bg: #FFF4D6;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow: 0 8px 24px rgba(16, 24, 40, .08);
  --shadow-lg: 0 18px 48px rgba(20, 127, 100, .14);
  --soft-shadow: 0 4px 20px rgba(8, 0, 0, .05);

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;

  --container: 1160px;
  --gutter: clamp(12px, 3.5vw, 32px);
  --section-y: clamp(48px, 7vw, 104px);
  --header-h: 72px;

  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 960px;
  --bp-xl: 1040px;

  --ff: 'Cairo', system-ui, 'Segoe UI', Tahoma, 'Noto Sans Arabic', Arial, sans-serif;
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--ff);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: clamp(15px, 2.5vw, 17px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overscroll-behavior-x: none;
  touch-action: pan-y pinch-zoom;
}
#main > * {
  max-width: 100%;
  min-width: 0;
}
#main,
.site-header,
.site-footer,
.hero,
.section,
.page-hero {
  max-width: 100%;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
svg:not([width]) { width: 1.5rem; height: 1.5rem; flex: none; }
a { color: var(--primary-700); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-inline-start: 1.25em; }
h1, h2, h3, h4 { line-height: 1.28; font-weight: 800; color: var(--text); text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.85rem, 5.2vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 3.6vw, 2.35rem); }
h3 { font-size: clamp(1.12rem, 2.2vw, 1.4rem); }
p { color: var(--text-2); overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: min(var(--container), 100%);
  margin-inline: auto;
  padding-inline: max(var(--gutter), var(--safe-left)) max(var(--gutter), var(--safe-right));
}
.grid { min-width: 0; }
.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--alt { background: var(--bg-alt); }
.section--trust { background: linear-gradient(180deg, var(--bg) 0%, var(--primary-050) 100%); }
.section--cta { padding-block: clamp(2rem, 5vw, var(--section-y)); }
.center { text-align: center; }
.section.is-visible { animation: fadeUp .5s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .section.is-visible { animation: none; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .82rem; letter-spacing: .04em;
  color: var(--primary-700); background: var(--primary-050);
  padding: .4rem .85rem; border-radius: var(--radius-pill); margin-bottom: 1rem;
  word-break: break-word;
}
.section__head { max-width: 720px; margin-inline: auto; margin-bottom: clamp(1.6rem, 4vw, 3.5rem); }
.section__head p { margin-top: .75rem; font-size: 1.06rem; }
.lead { font-size: clamp(1rem, 2.5vw, 1.15rem); color: var(--text-2); }

.skip-link {
  position: fixed; inset-inline-start: max(var(--gutter), var(--safe-left)); top: 8px; z-index: 1000;
  background: var(--primary); color: #fff;
  padding: .6rem 1.1rem; border-radius: var(--radius-pill); font-weight: 700;
  transform: translateY(-160%);
  transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: inherit; font-weight: 700; font-size: 1rem; line-height: 1.35;
  padding: .85rem 1.5rem; border-radius: var(--radius-pill); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: normal; text-align: center; text-decoration: none;
  min-height: 44px;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { box-shadow: var(--shadow-lg); }
.btn--ghost { background: #fff; color: var(--primary-700); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--primary); background: var(--primary-050); }
.btn--light { background: rgba(255, 255, 255, .9); color: var(--primary-700); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--lg { padding: 1rem 1.75rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, background .25s ease, border-color .25s ease;
  padding-inline: max(0px, var(--safe-left)) max(0px, var(--safe-right));
  width: 100%;
  max-width: 100%;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .96);
  border-bottom-color: var(--border-light);
  box-shadow: 0 6px 24px rgba(16, 24, 40, .07);
}
.nav-wrap { padding-inline: max(var(--gutter), var(--safe-left)) max(var(--gutter), var(--safe-right)); max-width: 100%; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  min-height: var(--header-h); transition: min-height .25s ease;
}
.site-header.scrolled { --header-h: 62px; }
.nav__start { flex: 1; min-width: 0; }
.nav__end { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  font-weight: 800; color: var(--text); font-size: 1.02rem;
  min-width: 0; max-width: 100%;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  flex: none; width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-050), var(--header-end-soft));
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.brand__mark--lg { width: 56px; height: 56px; border-radius: 16px; }
.brand__mark img { width: 78%; height: 78%; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; word-break: break-word; }
.brand__text b { color: var(--primary-700); }
.brand__text small {
  display: block; font-size: .68rem; font-weight: 700; color: var(--primary-700);
  line-height: 1.2; margin-top: 2px; opacity: .88;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.brand__text--short { display: none; }

.lang-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  font-family: inherit; font-weight: 700; font-size: .88rem; color: var(--primary-700);
  background: #fff; border: 1.5px solid var(--border);
  padding: .5rem .85rem; border-radius: var(--radius-pill); cursor: pointer;
  min-height: 44px; text-decoration: none;
}
.lang-toggle:hover { border-color: var(--primary); background: var(--primary-050); text-decoration: none; }
.lang-toggle svg { width: 18px; height: 18px; }
.lang-toggle .abbr { display: none; }

.nav__toggle {
  display: none; width: 48px; height: 48px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: #fff; cursor: pointer;
  align-items: center; justify-content: center; padding: 0; flex-shrink: 0;
}
.nav__toggle-bars { display: block; width: 22px; height: 16px; position: relative; }
.nav__toggle-bars span {
  position: absolute; inset-inline: 0; height: 2.5px; border-radius: 2px; background: var(--text);
  transition: transform .26s ease, opacity .2s ease, top .26s ease;
}
.nav__toggle-bars span:nth-child(1) { top: 0; }
.nav__toggle-bars span:nth-child(2) { top: 6.75px; }
.nav__toggle-bars span:nth-child(3) { top: 13.5px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(1) { top: 6.75px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(3) { top: 6.75px; transform: rotate(-45deg); }

.nav__scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(15, 38, 32, .45); backdrop-filter: blur(2px);
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
body.nav-open { overflow: hidden; }

.nav__panel {
  position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 95;
  width: min(320px, 88vw); max-width: 100%;
  background: #fff; border-inline-start: 1px solid var(--border);
  box-shadow: -8px 0 32px rgba(16, 24, 40, .12);
  transform: translate3d(100%, 0, 0);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1), visibility .32s;
  overflow-y: auto; padding-block: calc(var(--header-h) + 1rem) 1.5rem;
  padding-inline: max(var(--gutter), var(--safe-left)) max(var(--gutter), var(--safe-right));
  padding-bottom: max(1.5rem, var(--safe-bottom));
  visibility: hidden;
  pointer-events: none;
}
[dir="rtl"] .nav__panel {
  inset-inline-end: auto; inset-inline-start: 0;
  border-inline-start: none; border-inline-end: 1px solid var(--border);
  box-shadow: 8px 0 32px rgba(16, 24, 40, .12);
  transform: translate3d(-100%, 0, 0);
}
.nav__panel.open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
}
.nav__panel-inner { display: flex; flex-direction: column; gap: 1.25rem; }
.nav__links {
  display: flex; flex-direction: column; gap: .2rem;
  list-style: none; padding: 0; margin: 0;
}
.nav__links a {
  display: block; color: var(--text-2); font-weight: 600;
  padding: .85rem 1rem; border-radius: var(--radius-sm); font-size: 1.05rem;
}
.nav__links a:hover, .nav__links a[aria-current="page"] {
  color: var(--primary-700); background: var(--primary-050); text-decoration: none;
}
.nav__cta-mobile { margin-top: .5rem; }
.nav__cta-desktop { display: none; }

@media (min-width: 961px) {
  .nav__toggle { display: none !important; }
  .nav__panel,
  .nav__panel[hidden] {
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  .nav__panel {
    position: static; width: auto; max-width: none; transform: none !important;
    background: transparent; border: 0; box-shadow: none;
    overflow: visible; padding: 0; flex: 1; min-width: 0;
  }
  .nav { flex-wrap: nowrap; }
  .nav__panel-inner {
    flex-direction: row; align-items: center; justify-content: flex-end; gap: .35rem;
  }
  .nav__links { flex-direction: row; align-items: center; gap: .15rem; }
  .nav__links a { padding: .5rem .75rem; font-size: .94rem; }
  .nav__cta-mobile { display: none; }
  .nav__cta-desktop { display: inline-flex; }
  .nav__scrim { display: none !important; }
  .brand__text--full { display: flex; }
  .brand__text--short { display: none; }
}
@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; }
  .lang-toggle .full { display: none; }
  .lang-toggle .abbr { display: inline; }
  .nav__panel[hidden] {
    display: none !important;
    transform: none !important;
    visibility: hidden;
  }
  [dir="rtl"] .nav__panel[hidden] {
    transform: none !important;
  }
  .brand__text--full { display: none; }
  .brand__text--short { display: flex; }
}
@media (max-width: 480px) {
  .lang-toggle { padding: .5rem .7rem; }
  .nav { gap: .45rem; }
  .brand__mark { width: 40px; height: 40px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--header-start) 0%, var(--header-end) 60%, #fff 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23147F64' stroke-opacity='0.10' stroke-width='1'%3E%3Cpath d='M40 5l10 25 25 10-25 10-10 25-10-25L5 40l25-10z'/%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3C/g%3E%3C/svg%3E");
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  padding-block: clamp(40px, 7vw, 92px);
}
.hero h1 { margin-bottom: 1rem; word-break: break-word; }
.hero h1 .accent { color: var(--primary-700); }
.hero p { font-size: clamp(1rem, 2.5vw, 1.18rem); color: var(--text-2); max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(20, 127, 100, .15);
}
.hero__stat b {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800; color: var(--primary-700); line-height: 1.1;
}
.hero__stat b svg { width: 1.5rem; height: 1.5rem; }
.hero__stat span { display: block; font-size: .86rem; color: var(--text-2); margin-top: .2rem; }
.hero__art { position: relative; display: grid; place-items: center; max-width: 100%; overflow: hidden; }
.hero__badge {
  width: min(300px, 100%); aspect-ratio: 1; border-radius: 28px;
  background: linear-gradient(145deg, #fff 0%, var(--header-end-soft) 100%);
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .8); padding: 1.5rem;
}
.hero__badge img { width: 88%; max-height: 88%; object-fit: contain; border-radius: 12px; }
.hero__ring {
  position: absolute; inset: 0; border: 2px dashed rgba(20, 127, 100, .2);
  border-radius: 32px; pointer-events: none;
}

.trust-strip {
  display: flex; flex-wrap: wrap; gap: .5rem .85rem; margin-top: 1.25rem;
}
.trust-strip__item {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 700; color: var(--primary-700);
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(20, 127, 100, .12);
  padding: .35rem .75rem; border-radius: var(--radius-pill);
}
.trust-strip__item svg { width: 15px; height: 15px; color: var(--primary); }

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-inline: auto; max-width: 100%; }
  .hero__cta, .trust-strip { justify-content: center; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); justify-items: center; }
  .hero__art { order: -1; width: 100%; }
  .hero__badge { width: min(240px, 78vw); margin-inline: auto; }
  .hero__ring { display: none; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; max-width: 100%; }
}
@media (max-width: 480px) {
  .hero__stats { gap: .85rem 1rem; }
  .hero__cta .btn { flex: 1 1 100%; }
  .trust-strip { justify-content: center; }
  .trust-strip__item { font-size: .76rem; padding: .3rem .6rem; }
}

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) { .grid--3, .grid--4, .features-grid, .trust-grid, .programs-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid--2, .grid--3, .grid--4, .features-grid, .trust-grid, .programs-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius);
  padding: clamp(1.2rem, 2.5vw, 1.7rem); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  min-width: 0;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--primary-050); color: var(--primary-700); margin-bottom: .9rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .35rem; }
.card p { font-size: .96rem; }

/* ---------- Programs ---------- */
.program {
  position: relative; border-radius: var(--radius); padding: 1.35rem 1.4rem;
  border: 1px solid rgba(0, 0, 0, .04); overflow: hidden;
  background: linear-gradient(145deg, var(--prog-bg, #F1F3F4) 0%, var(--prog-bg-end, #fff) 100%);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  min-width: 0;
}
.program:hover {
  transform: translateY(-4px); box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--prog-fg, var(--primary-700)) 25%, transparent);
}
.program__head { display: flex; align-items: center; gap: .65rem; margin-bottom: .75rem; }
.program__icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .75); color: var(--prog-fg, var(--primary-700)); flex: none;
}
.program__icon svg { width: 22px; height: 22px; }
.program__badge {
  display: inline-block; font-weight: 800; font-size: .95rem;
  color: var(--prog-fg, var(--primary-700));
}
.program p { color: var(--text-2); font-size: .94rem; margin: 0; }

/* ---------- Trust band ---------- */
.trust-card {
  text-align: center; padding: 1.5rem 1.25rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--border-light); box-shadow: var(--soft-shadow);
  min-width: 0;
}
.trust-card__icon {
  width: 56px; height: 56px; margin: 0 auto .85rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary-050); color: var(--primary-700);
}
.trust-card__icon svg { width: 28px; height: 28px; }
.trust-card h3 { margin-bottom: .4rem; font-size: 1.1rem; }
.trust-card p { font-size: .92rem; margin: 0; }

/* ---------- Steps timeline ---------- */
.steps__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.6rem);
}
.step {
  position: relative; padding: 1.25rem 1rem 1rem;
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step::before {
  content: var(--step-n); position: absolute; top: -14px; inset-inline-start: 1rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-600)); box-shadow: var(--shadow-sm);
}
.step h3 { margin-bottom: .3rem; padding-top: .5rem; font-size: 1.05rem; }
.step p { font-size: .9rem; margin: 0; }

@media (max-width: 768px) {
  .steps__grid {
    grid-template-columns: 1fr; gap: 1.25rem; padding-inline-start: 0;
    border-inline-start: none;
  }
  .step {
    border-inline-start: 3px solid var(--primary);
    margin-inline-start: 0;
    padding-top: 2.75rem;
  }
  .step::before {
    top: 1rem; inset-inline-start: 1rem; width: 2rem; height: 2rem; font-size: .9rem;
  }
}

/* ---------- CTA band ---------- */
.cta {
  border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.6rem); text-align: center;
  color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, #0a4f3c 55%, var(--purple-accent) 120%);
}
.cta::after {
  content: ""; position: absolute; inset: 0; opacity: .22; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 2l8 20 20 8-20 8-8 20-8-20L2 30l20-8z' fill='none' stroke='%23ffffff' stroke-opacity='0.35'/%3E%3C/svg%3E");
}
.cta > * { position: relative; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .92); max-width: 56ch; margin: .85rem auto 1.6rem; font-size: 1.05rem; }
.cta .btn--primary { background: #fff; color: var(--primary-700); }
.cta .store-badge { background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .2); }
.cta__alt { margin-top: 1.25rem; font-size: .95rem; }
.cta__alt a { color: #fff; font-weight: 700; }

/* ---------- Store badges ---------- */
.stores { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; width: 100%; max-width: 100%; }
.store-badge {
  display: inline-flex; align-items: center; gap: .65rem; background: #11181f; color: #fff;
  padding: .7rem 1.15rem; border-radius: 14px; min-width: 0; flex: 1 1 160px; max-width: 220px;
  min-height: 44px; text-decoration: none;
}
.store-badge--soon { opacity: .55; pointer-events: none; cursor: default; }
.store-badge:hover { text-decoration: none; opacity: .92; }
.store-badge--soon:hover { opacity: .55; }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge small { display: block; font-size: .7rem; opacity: .8; line-height: 1; }
.store-badge b { font-size: 1.05rem; line-height: 1.2; }

@media (max-width: 480px) {
  .stores { flex-direction: column; align-items: stretch; }
  .store-badge { flex: 1 1 100%; max-width: 100%; }
}

.download-block {
  display: grid; place-items: center; gap: 1.4rem; max-width: 520px; margin-inline: auto;
}
.download-block__icon img {
  border-radius: 28px; box-shadow: var(--shadow-lg);
  background: linear-gradient(145deg, #fff, var(--header-end-soft));
  padding: .5rem;
}
.download-block__soon { max-width: 100%; width: 100%; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .75rem; background: #fff; overflow: hidden; }
.faq__q {
  width: 100%; text-align: start; font-family: inherit; font-weight: 700; font-size: 1rem;
  color: var(--text); background: none; border: 0; cursor: pointer;
  padding: 1.1rem 1.2rem; display: flex; gap: .85rem; align-items: center; justify-content: space-between;
  min-height: 44px;
}
.faq__q .chev { width: 22px; height: 22px; color: var(--primary); transition: transform .25s ease; flex: none; }
.faq__q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.faq__a > div { overflow: hidden; }
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }
.faq__a p { padding: 0 1.2rem 1.1rem; color: var(--text-2); font-size: .96rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .4rem; font-size: .94rem; }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--text); background: #F9FAFB;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: .85rem 1rem; min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 127, 100, .12);
}
.contact-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .85rem; align-items: flex-start; }
.contact-list .ci {
  width: 46px; height: 46px; border-radius: 12px; background: var(--primary-050);
  color: var(--primary-700); display: grid; place-items: center; flex: none;
}
.contact-list .ci svg { width: 22px; height: 22px; }
.form-note { font-size: .85rem; color: var(--text-hint); margin-top: .4rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { margin-bottom: 1rem; font-size: .88rem; }
.breadcrumb ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: .35rem .5rem; align-items: center;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: .5rem; color: var(--text-hint); }
.breadcrumb li:not(:last-child)::after { content: '/'; opacity: .5; }
.breadcrumb a { font-weight: 600; color: var(--primary-700); }
.breadcrumb [aria-current="page"] { color: var(--text-2); font-weight: 700; }

/* ---------- Page hero / prose ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--header-start), var(--header-end));
  padding-block: clamp(36px, 6vw, 72px); text-align: center;
}
.page-hero .breadcrumb { text-align: start; max-width: 820px; margin-inline: auto; }
.page-hero p { margin-top: .6rem; color: var(--text-2); }
.page-hero .updated { font-size: .88rem; color: var(--text-hint); margin-top: .75rem; }
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { margin-top: 2.2rem; margin-bottom: .75rem; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h3 { margin-top: 1.5rem; margin-bottom: .45rem; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose p, .prose li { color: var(--text-2); }
.prose ul, .prose ol { margin: .55rem 0 1rem; display: grid; gap: .35rem; }
.prose strong { color: var(--text); }

.toc {
  background: var(--bg-soft); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 2rem;
}
.toc ul { list-style: none; padding: 0; display: grid; gap: .4rem; margin: 0; }
.toc a { font-weight: 600; font-size: .94rem; }
.toc--accordion { padding: 0; overflow: hidden; }
.toc__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  font-family: inherit; font-weight: 800; font-size: 1rem; color: var(--text);
  background: var(--bg-soft); border: 0; cursor: pointer; padding: 1rem 1.25rem; min-height: 44px;
}
.toc__chev { width: 20px; height: 20px; color: var(--primary); transition: transform .25s; flex: none; }
.toc__trigger[aria-expanded="true"] .toc__chev { transform: rotate(180deg); }
.toc__panel { padding: 0 1.25rem 1.1rem; }
.toc__panel[hidden] { display: none; }
@media (min-width: 769px) {
  .toc--accordion .toc__trigger { display: none; }
  .toc--accordion .toc__panel { display: block !important; padding: 0 1.4rem 1.2rem; }
  .toc--accordion::before {
    content: attr(data-toc-title); display: block; font-weight: 800; font-size: 1.05rem;
    padding: 1.2rem 1.4rem .5rem; color: var(--text);
  }
}

.callout {
  border-inline-start: 4px solid var(--primary); background: var(--primary-050);
  padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin: 1.2rem 0;
}
.callout--warn { border-inline-start-color: var(--warning); background: var(--warning-bg); }
.callout p { color: var(--text); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  color: #cfe0d9;
  padding-block: clamp(2.5rem, 5vw, 4rem) max(1.4rem, var(--safe-bottom));
  padding-inline: max(0px, var(--safe-left)) max(0px, var(--safe-right));
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background:
    radial-gradient(1100px 380px at 88% -10%, rgba(20,127,100,.5), transparent 60%),
    radial-gradient(800px 300px at 0% 0%, rgba(90,26,77,.45), transparent 55%),
    linear-gradient(180deg, #0e2a22 0%, #0a1f1a 100%);
  border-top: 3px solid var(--primary);
}
.site-footer a { color: #cfe0d9; transition: color .15s ease; }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.25fr;
  gap: 2rem 1.6rem;
}
@media (max-width: 1040px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: 48ch; }
}
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 0; }
}

.footer-brand p { color: #9fb6ac; font-size: .92rem; margin-top: .5rem; }
.footer-brand__logo {
  display: inline-flex; align-items: center; gap: .75rem; margin-bottom: .5rem;
}
.footer-brand__logo:hover { text-decoration: none; }
.footer-brand__logo b { display: block; color: #fff; font-size: 1rem; line-height: 1.2; }
.footer-brand__logo small { display: block; color: var(--primary); font-weight: 700; font-size: .74rem; margin-top: 3px; }
.footer-store { margin-top: 1rem; }
.footer-store .stores { justify-content: flex-start; }
.footer-store .store-badge {
  flex: 1 1 140px; max-width: none; padding: .55rem .95rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
}
.footer-store .store-badge:hover { background: rgba(255,255,255,.12); opacity: 1; }

.footer-col h4, .footer-col__title {
  color: #fff; font-size: .95rem; margin: 0; font-weight: 800;
  letter-spacing: .02em;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .55rem; margin: 0; }
.footer-col a { font-size: .9rem; }

.footer-col--accordion { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-col__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  background: none; border: 0; cursor: pointer; color: #fff; font-family: inherit;
  padding: 1rem 0; min-height: 44px; text-align: start;
}
.footer-col__chev { width: 18px; height: 18px; color: var(--primary); transition: transform .25s; flex: none; }
.footer-col__trigger[aria-expanded="true"] .footer-col__chev { transform: rotate(180deg); }
.footer-col__panel { padding-bottom: 1rem; }
.footer-col__panel[hidden] { display: none; }

@media (min-width: 768px) {
  .footer-col--accordion { border-bottom: none; }
  .footer-col__trigger { pointer-events: none; padding: 0 0 .85rem; min-height: 0; }
  .footer-col__chev { display: none; }
  .footer-col__panel { display: block !important; padding-bottom: 0; }
}

.footer-contact__list { list-style: none; padding: 0; display: grid; gap: .65rem; margin: 0 0 .85rem; }
.footer-contact__list li {
  display: flex; align-items: flex-start; gap: .55rem; font-size: .88rem; color: #9fb6ac;
}
.footer-contact__list li svg { width: 16px; height: 16px; color: var(--primary); flex: none; margin-top: .15rem; }
.footer-contact__list a { color: #cfe0d9; word-break: break-all; }
.lang-toggle--footer { color: #cfe0d9; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.lang-toggle--footer:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; }

.footer-divider {
  height: 1px; margin: 2rem 0 1.25rem;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem;
  justify-content: space-between; align-items: center;
  font-size: .84rem; color: #8fa69d; text-align: center;
}
@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; align-items: center; }
  .footer-made { font-size: .8rem; }
  .footer-store .store-badge { flex: 1 1 100%; max-width: 100%; }
}
.footer-made a { color: #fff; font-weight: 700; }
.footer-made a:hover { color: var(--primary); }
.footer-heart { display: inline-block; animation: heartbeat 1.6s ease-in-out infinite; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .footer-heart { animation: none; } }

/* ---------- Go to top ---------- */
.go-top {
  position: fixed; inset-block-end: max(18px, var(--safe-bottom)); inset-inline-end: max(18px, var(--safe-right));
  z-index: 80; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-600)); color: #fff;
  box-shadow: var(--shadow-lg); display: grid; place-items: center;
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.go-top.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.go-top:hover { transform: translateY(-2px) scale(1.05); }
.go-top svg { width: 22px; height: 22px; }

/* ---------- Delete account ---------- */
.delete-layout {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.4rem, 4vw, 3rem); align-items: start;
}
@media (max-width: 900px) {
  .delete-layout { grid-template-columns: 1fr; }
  .delete-main { order: -1; }
}
.delete-main { display: flex; flex-direction: column; gap: 1rem; }
.delete-main__warn { order: 2; margin: 0; }
.delete-form {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 3vw, 2rem); box-shadow: var(--shadow);
  position: sticky; top: calc(var(--header-h) + 12px);
}
@media (max-width: 900px) { .delete-form { position: static; } }
.delete-form h2 { display: flex; align-items: center; gap: .55rem; font-size: 1.3rem; margin-bottom: .45rem; flex-wrap: wrap; }
.delete-form h2 svg { width: 24px; height: 24px; color: var(--accent); flex: none; }
.delete-form__intro { font-size: .94rem; margin-bottom: 1.2rem; }
.input-pass { position: relative; }
.input-pass input { padding-inline-end: 3rem; }
.pass-toggle {
  position: absolute; inset-inline-end: .5rem; inset-block: 50%; transform: translateY(-50%);
  width: 2.4rem; height: 2.4rem; border: 0; background: none; cursor: pointer; color: var(--text-hint);
  display: grid; place-items: center; border-radius: 8px; min-height: 44px;
}
.pass-toggle:hover { color: var(--primary-700); background: var(--primary-050); }
.pass-toggle svg { width: 20px; height: 20px; }
.pass-toggle.is-visible { color: var(--primary-700); }
.check {
  display: flex; gap: .65rem; align-items: flex-start; margin: .35rem 0 1.2rem;
  font-size: .9rem; color: var(--text-2); cursor: pointer;
}
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; flex: none; accent-color: var(--accent); }
.form-status {
  margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .92rem; border-inline-start: 4px solid;
}
.form-status--loading { background: var(--primary-050); border-color: var(--primary); color: var(--primary-700); }
.form-status--success { background: var(--success-bg); border-color: var(--success); color: #1B5E20; }
.form-status--error { background: var(--accent-bg); border-color: var(--accent); color: #9B1B3A; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.delete-info h2 { font-size: 1.2rem; }
.legal-meta { margin-top: 2rem; font-size: .84rem; color: var(--text-hint); font-style: italic; }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
