/* ─────────────────────────────────────────────────────────────
   BuyEsimAfrica — design system
   One brand colour (RentSimConnect blue, a shade darker), cool neutrals, Jost.
   No gradients, no glows: colour is used sparingly and on purpose.
   ───────────────────────────────────────────────────────────── */
:root {
  /* Neutrals (cool, to sit with the brand blue) */
  --ink: #101426;
  --ink-2: #39405a;
  --muted: #6a7186;
  --line: #e3e6ef;
  --line-strong: #cdd3e2;
  --paper: #f6f7fb;
  --tint: #edeff6;
  --card: #ffffff;
  --bg: var(--paper);

  /* Brand — RentSimConnect blue (#00239f), a shade darker for this site */
  --brand: #001c7a;
  --brand-hover: #001560;
  --brand-50: #eaedf7;
  --brand-100: #ccd4ea;
  --deep: #0a1030;

  /* Status (muted, never loud) */
  --ok: #2f6b4f;
  --ok-bg: #e7f0ea;
  --warn: #8a5a12;
  --warn-bg: #f6eedd;
  --bad: #9b3426;
  --bad-bg: #f6e4df;
  --info: #3d4a5c;
  --info-bg: #eceef1;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgb(16 20 38 / .05);
  --shadow: 0 12px 32px -16px rgb(16 20 38 / .2);
  --shadow-lg: 0 24px 60px -24px rgb(16 20 38 / .3);
  --font: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
::selection { background: var(--brand-100); }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
.muted { color: var(--muted); }
/* Emphasis inside headlines: the brand colour. */
.gradient-text { color: var(--brand); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon {
  width: 1.2em; height: 1.2em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.link-btn {
  background: none; border: 0; padding: 0; font-weight: 600; color: inherit;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong);
}
.link-btn:hover { text-decoration-color: currentColor; }

@media (max-width: 479px) { .hide-xs { display: none; } }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid transparent; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem; line-height: 1;
  padding: .8rem 1.25rem; min-height: 46px; white-space: nowrap; letter-spacing: .005em;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, opacity .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { color: #fff; background: var(--brand); }
.btn--primary:hover { background: var(--brand-hover); }
/* Secondary outline button (was "glass" on dark heroes). */
.btn--glass { color: var(--ink); background: transparent; border-color: var(--line-strong); }
.btn--glass:hover { background: var(--card); border-color: var(--ink-2); }
.btn--white { background: var(--paper); color: var(--deep); }
.btn--white:hover { background: #fff; }
.btn--light { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn--light:hover { border-color: var(--line-strong); background: #fafbfd; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--sm { padding: .55rem .95rem; font-size: .875rem; min-height: 40px; }
.btn--lg { padding: .95rem 1.5rem; font-size: 1rem; min-height: 52px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgb(255 255 255 / .35); border-top-color: #fff;
  animation: spin .8s linear infinite;
}

/* ── Demo banner ─────────────────────────────────────────── */
.demo-banner {
  background: var(--warn-bg); color: var(--warn); text-align: center;
  font-size: .8rem; font-weight: 600; padding: .5rem 1rem; border-bottom: 1px solid #eadcbd;
}

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50; color: var(--ink);
  background: rgb(246 247 251 / .9);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav--solid { background: var(--paper); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.nav__links { display: none; gap: 2rem; font-weight: 500; font-size: .92rem; color: var(--ink-2); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--brand); }
.nav__actions { display: flex; gap: .5rem; align-items: center; }
@media (min-width: 880px) { .nav__links { display: flex; } }

.logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.logo__mark { width: 34px; height: 34px; border-radius: 9px; }
.logo__text span { color: var(--brand); }
@media (max-width: 379px) { .logo__text { font-size: 1rem; } .logo { gap: .45rem; } }

/* ── Headings ────────────────────────────────────────────── */
h2 {
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 2.6rem); line-height: 1.1; letter-spacing: -.01em;
  margin: .5rem 0 .8rem;
}
h3 { font-weight: 600; letter-spacing: -.02em; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: var(--paper); color: var(--ink);
  padding-block: 48px 72px; border-bottom: 1px solid var(--line);
}
.hero__glow { display: none; }
.hero__inner { display: grid; gap: 44px; align-items: center; }
.hero__copy { animation: rise .8s var(--ease) both; }
.pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .38rem .8rem .38rem .6rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-size: .8rem; font-weight: 500; color: var(--ink-2);
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.hero h1 {
  font-weight: 700;
  font-size: clamp(2.5rem, 6.6vw, 4rem);
  line-height: 1; letter-spacing: -.015em;
  margin: 1.2rem 0 1.1rem;
}
.lead { font-size: clamp(1.02rem, 2.4vw, 1.15rem); color: var(--muted); max-width: 34rem; margin: 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__cta .btn { flex: 1 1 auto; }
@media (min-width: 520px) { .hero__cta .btn { flex: 0 0 auto; } }
.trust {
  list-style: none; padding: 0; margin: 2.2rem 0 0;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
  font-size: .87rem; font-weight: 500; color: var(--ink-2);
}
.trust li { display: flex; align-items: center; gap: .45rem; }
.trust .icon { color: var(--brand); }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 440px; }

/* Shop hero phone */
.phone {
  position: relative; width: 250px; height: 500px; padding: 10px;
  border-radius: 44px; background: var(--ink);
  box-shadow: var(--shadow-lg);
}
.phone__notch {
  position: absolute; top: 20px; left: 50%; translate: -50% 0; z-index: 2;
  width: 76px; height: 20px; border-radius: 20px; background: var(--ink);
}
.phone__screen {
  height: 100%; border-radius: 35px; overflow: hidden;
  padding: 46px 18px 18px;
  display: flex; flex-direction: column; gap: 16px;
  background: var(--card); color: var(--ink);
}
.phone__top { display: flex; justify-content: space-between; align-items: center; font-size: .75rem; font-weight: 600; color: var(--muted); }
.chip { background: var(--tint); padding: .22rem .6rem; border-radius: 999px; font-size: .68rem; font-weight: 600; color: var(--ink-2); }
.ring { position: relative; width: 158px; aspect-ratio: 1; margin: 2px auto 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__track { stroke: var(--tint); }
.ring__bar { color: var(--brand); stroke-dasharray: 327; stroke-dashoffset: 327; animation: ring-fill 2s var(--ease) .4s forwards; }
.ring__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__label strong { font-weight: 700; font-size: 3rem; line-height: 1; }
.ring__label span { font-size: .72rem; color: var(--muted); font-weight: 500; margin-top: 4px; }
.phone__rows { border: 1px solid var(--line); border-radius: 14px; padding: 2px 14px; }
.phone__row { display: flex; justify-content: space-between; padding: 9px 0; font-size: .78rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.phone__row:last-child { border-bottom: 0; }
.phone__row b { color: var(--ink); font-weight: 600; }
.phone__row .ok { color: var(--ok); }
.phone__btn { margin-top: auto; border-radius: 10px; background: var(--brand); color: #fff; text-align: center; padding: 12px; font-weight: 600; font-size: .82rem; }

.float {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: .65rem;
  padding: .65rem .95rem .65rem .65rem; border-radius: 14px;
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
  font-size: .82rem; font-weight: 600; line-height: 1.25;
  box-shadow: var(--shadow);
  animation: pop-in .6s var(--ease) both;
}
.float small { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; }
.float__icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; }
.float__icon--green { background: var(--brand-50); color: var(--brand); }
.float__icon--brand { background: var(--brand); color: #fff; }
.float--a { top: 7%; left: 0; animation-delay: .9s; }
.float--b { bottom: 8%; right: 0; animation-delay: 1.4s; }

@media (max-width: 519px) {
  .hero__visual { min-height: 400px; }
  .phone { width: 212px; height: 424px; border-radius: 38px; }
  .phone__screen { border-radius: 30px; padding: 40px 14px 14px; gap: 12px; }
  .ring { width: 128px; }
  .ring__label strong { font-size: 2.4rem; }
  .float { font-size: .75rem; padding: .5rem .75rem .5rem .5rem; }
  .float__icon { width: 28px; height: 28px; }
}
@media (min-width: 960px) {
  .hero { padding-block: 84px 104px; }
  .hero__inner { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .hero__visual { min-height: 520px; }
}

/* ── Home: agent restock board ───────────────────────────── */
.board {
  position: relative; width: min(100%, 370px); padding: 20px;
  border-radius: 20px; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.board__head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .92rem; margin-bottom: 12px; }
.chip--live { display: inline-flex; align-items: center; gap: .35rem; }
.chip--live i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.board__rows { list-style: none; margin: 0; padding: 0; display: grid; }
.board__rows li {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px;
  padding: 11px 2px; border-top: 1px solid var(--line);
  animation: rise .6s var(--ease) both;
}
.board__rows li:nth-child(2) { animation-delay: .1s; }
.board__rows li:nth-child(3) { animation-delay: .2s; }
.board__rows li:nth-child(4) { animation-delay: .3s; }
.board__avatar { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 600; font-size: .82rem; background: var(--tint); color: var(--ink-2); }
.board__who { display: grid; line-height: 1.2; min-width: 0; }
.board__who b { font-size: .84rem; font-weight: 600; }
.board__who small { font-size: .72rem; color: var(--muted); }
.board__amt { font-weight: 600; font-size: .92rem; font-variant-numeric: tabular-nums; }
.board__status { font-size: .68rem; font-weight: 600; padding: .2rem .5rem; border-radius: 999px; background: var(--tint); color: var(--muted); }
.board__status--ok { background: var(--ok-bg); color: var(--ok); }
.board__status--busy { background: var(--brand); color: #fff; }
.board__nets { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .74rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.board__nets span { display: inline-flex; align-items: center; gap: .35rem; }
.board__nets .net__dot { display: none; }
@media (max-width: 519px) {
  .board { padding: 16px; }
  .board__rows li { gap: 9px; }
  .hero__visual:has(.board) { padding-bottom: 36px; }
  .hero__visual:has(.board) .float--b { bottom: 0; }
  .hero__visual:has(.board) .float--a { display: none; }
}

.why__lead { color: rgb(246 247 251 / .72); margin: .75rem 0 0; font-size: 1.05rem; }
.why__cta { margin-top: 30px; }

.shop-band {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px;
  padding: 18px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  transition: border-color .2s;
}
.shop-band:hover { border-color: var(--line-strong); }
.shop-band__icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: var(--brand); background: var(--brand-50); }
.shop-band__text { flex: 1 1 220px; display: grid; }
.shop-band__text b { font-weight: 600; }
.shop-band__text small { color: var(--muted); }
.shop-band__cta { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--brand); }

.contact-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); max-width: 900px; margin: 0 auto; }
.contact-card {
  display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); transition: border-color .2s;
}
.contact-card:hover { border-color: var(--brand); }
.contact-card__icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; color: var(--brand); background: var(--brand-50); }
.contact-card small { display: block; color: var(--muted); font-size: .78rem; font-weight: 500; }
.contact-card b { font-weight: 600; word-break: break-word; }

/* ── Sections ────────────────────────────────────────────── */
.section { padding-block: 88px; }
.section--tight { padding-block: 44px; }
.section__head { text-align: center; max-width: 660px; margin: 0 auto 40px; }
.section__head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow--light { color: rgb(246 247 251 / .6); }

/* ── Tabs ────────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 2px; padding: 4px; margin: 0 auto 28px;
  width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  border: 0; background: transparent; white-space: nowrap;
  padding: .55rem 1rem; border-radius: 9px; min-height: 38px;
  font-weight: 600; font-size: .875rem; color: var(--muted);
  transition: background-color .2s, color .2s;
}
.tab small { font-weight: 500; opacity: .75; margin-left: .3rem; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
@media (max-width: 519px) { .tab small { display: none; } .tab { padding: .55rem .85rem; } }

/* ── Bundle cards ────────────────────────────────────────── */
.bundle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .bundle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 980px) { .bundle-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }

.bundle {
  position: relative; display: flex; flex-direction: column; text-align: left;
  padding: 20px 18px 18px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
  animation: rise .5s var(--ease) both;
}
.bundle:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.bundle--featured { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.bundle__signal { display: flex; align-items: flex-end; gap: 3px; height: 14px; margin-bottom: 16px; }
.bundle__signal i { width: 4px; border-radius: 1px; background: var(--line); }
.bundle__signal i:nth-child(1) { height: 30%; }
.bundle__signal i:nth-child(2) { height: 55%; }
.bundle__signal i:nth-child(3) { height: 80%; }
.bundle__signal i:nth-child(4) { height: 100%; }
.bundle__signal i.on { background: var(--brand); }
.bundle__size { display: flex; align-items: baseline; gap: 4px; line-height: 1; }
.bundle__size strong { font-weight: 700; font-size: clamp(2.6rem, 7.5vw, 3.3rem); letter-spacing: -.01em; }
.bundle__size span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.bundle--featured .bundle__size strong { color: var(--brand); }
.bundle__label { font-size: .76rem; font-weight: 500; color: var(--muted); margin: 6px 0 16px; }
.bundle__price { font-size: 1.12rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.bundle__per { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .75rem; color: var(--muted); margin-top: 2px; min-height: 22px; }
.save { font-weight: 600; font-size: .68rem; color: var(--ok); background: var(--ok-bg); padding: .12rem .45rem; border-radius: 999px; }
.bundle__cta {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  margin-top: 16px; padding: .7rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); font-weight: 600; font-size: .875rem;
  transition: background-color .2s, color .2s, border-color .2s;
}
.bundle__cta .icon { transition: transform .25s var(--ease); }
.bundle:hover .bundle__cta { background: var(--brand); border-color: var(--brand); color: #fff; }
.bundle:hover .bundle__cta .icon { transform: translateX(3px); }
.bundle__tag {
  position: absolute; top: 14px; right: 14px;
  font-size: .66rem; font-weight: 600; letter-spacing: .03em;
  padding: .25rem .55rem; border-radius: 999px; color: #fff; background: var(--brand);
}
.bundle--skeleton {
  height: 236px; border: 0; animation: shimmer 1.3s linear infinite;
  background: linear-gradient(90deg, #e9ebf2 0%, #f3f5fa 50%, #e9ebf2 100%); background-size: 200% 100%;
}
.grid-message { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }
@media (max-width: 379px) {
  .bundle { padding: 16px 14px 14px; }
  .bundle__tag { top: 10px; right: 10px; font-size: .6rem; }
}

/* ── Steps / services ────────────────────────────────────── */
.steps { display: grid; gap: 16px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step__num { position: absolute; top: 18px; right: 22px;  font-size: 2.6rem; line-height: 1; color: var(--line-strong); }
.step__icon {
  width: 46px; height: 46px; border-radius: 10px; margin-bottom: 20px;
  display: grid; place-items: center; color: var(--brand); background: var(--brand-50);
}
.step h3 { margin: 0 0 .4rem; font-size: 1.12rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ── Dark feature block (agents on home, reasons on shop) ── */
.why { background: var(--deep); color: var(--paper); border-radius: 24px; padding: 44px 24px; }
.why__glow { display: none; }
.why__head { max-width: 580px; margin-bottom: 34px; }
.why__head h2 { margin-bottom: 0; }
.why__grid { display: grid; gap: 1px; background: rgb(246 247 251 / .1); border-radius: 16px; overflow: hidden; }
@media (min-width: 640px) { .why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .why { padding: 64px 56px; } .why__grid { grid-template-columns: repeat(4, 1fr); } }
.feature { background: var(--deep); padding: 24px 22px; }
.feature__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--paper); border: 1px solid rgb(246 247 251 / .22); margin-bottom: 18px; }
.feature h3 { font-size: 1.02rem; margin: 0 0 .35rem; }
.feature p { margin: 0; color: rgb(246 247 251 / .64); font-size: .9rem; }
.why .btn--primary { background: var(--paper); color: var(--deep); }
.why .btn--primary:hover { background: #fff; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 0 4px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; font-weight: 600; font-size: 1.02rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 680px; }

/* ── CTA ─────────────────────────────────────────────────── */
.cta { text-align: center; color: var(--paper); background: var(--brand); border-radius: 24px; padding: 56px 24px; }
.cta h2 { margin-top: 0; }
.cta p { margin: 0 0 1.6rem; color: rgb(246 247 251 / .8); font-size: 1.05rem; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--deep); color: rgb(246 247 251 / .66); padding-block: 60px 28px; margin-top: 64px; font-size: .9rem; }
.footer__grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer .logo { color: var(--paper); }
.footer .logo__text span { color: #93a6e0; }
.footer .logo__mark, .auth-brand .logo__mark { box-shadow: 0 0 0 1px rgb(246 247 251 / .28); }
.footer__about { max-width: 320px; margin: 1rem 0 0; }
.footer h4 { color: var(--paper); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.footer a, .footer .link-btn { text-decoration: none; font-weight: 400; transition: color .2s; }
.footer a:hover, .footer .link-btn:hover { color: var(--paper); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgb(246 247 251 / .1); font-size: .78rem;
}

/* ── Sheets (dialogs) ────────────────────────────────────── */
dialog.sheet {
  border: 0; padding: 0; background: transparent; color: var(--ink);
  width: 100%; max-width: 100vw; max-height: 100dvh; margin: auto 0 0;
}
dialog.sheet::backdrop { background: rgb(22 24 29 / .42); }
dialog.sheet[open] .sheet__body { animation: sheet-up .35s var(--ease); }
.sheet__body {
  background: var(--card); border-radius: 20px 20px 0 0; overflow-y: auto; max-height: 94dvh;
  padding: 10px 20px calc(22px + env(safe-area-inset-bottom));
}
.sheet__handle { width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 0 auto 12px; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.sheet__head h3 { margin: 0; font-weight: 700; font-size: 1.7rem; letter-spacing: 0; line-height: 1.1; }
.sheet__note { text-align: center; font-size: .8rem; color: var(--muted); margin: 12px 0 0; }
@media (min-width: 640px) {
  dialog.sheet { width: min(480px, calc(100vw - 32px)); margin: auto; }
  dialog.sheet[open] .sheet__body { animation: pop .25s var(--ease); }
  .sheet__body { border-radius: 20px; padding: 24px 28px 28px; max-height: calc(100dvh - 40px); }
  .sheet__handle { display: none; }
}
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
  display: grid; place-items: center; transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--paper); }

.summary-card {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
  padding: 18px 20px; border-radius: 14px; background: var(--deep); color: var(--paper);
}
.summary-card__label { display: block; font-size: .72rem; font-weight: 500; color: rgb(246 247 251 / .6); margin-bottom: 2px; }
.summary-card__size { font-weight: 700; font-size: 2.4rem; line-height: 1; }
.summary-card__right { text-align: right; }
.summary-card__price { font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.size-picker {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 14px 2px 6px; margin: 0 -2px 4px; scroll-snap-type: x proximity;
}
.size-picker::-webkit-scrollbar { display: none; }
.size-chip {
  flex: 0 0 auto; scroll-snap-align: start; min-height: 40px;
  border: 1px solid var(--line); background: var(--card); border-radius: var(--radius-sm);
  padding: .5rem .85rem; font-weight: 600; font-size: .85rem;
  transition: border-color .2s, background-color .2s, color .2s;
}
.size-chip:hover { border-color: var(--line-strong); }
.size-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }

.group-label { display: block; font-size: .85rem; font-weight: 600; margin: 16px 0 8px; }
.segmented {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  background: var(--tint); border-radius: 12px;
}
.segmented button {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  border: 0; background: transparent; border-radius: 9px; min-height: 44px; padding: .6rem;
  font-weight: 600; font-size: .9rem; color: var(--muted);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-checked="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgb(22 24 29 / .08), 0 0 0 1px var(--line); }
.segmented button[aria-checked="true"] .icon { color: var(--brand); }

.field__label-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 26px; }
.chip-btn {
  border: 0; border-radius: 999px; padding: .3rem .7rem; white-space: nowrap;
  background: var(--brand-50); color: var(--brand); font-weight: 600; font-size: .75rem;
}
.chip-btn:hover { background: var(--brand-100); }

.network-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 6px; }
.net {
  display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px;
  border: 1px solid var(--line); background: var(--card); border-radius: var(--radius-sm); padding: .55rem .4rem;
  font-weight: 600; font-size: .8rem; white-space: nowrap;
  transition: border-color .2s, box-shadow .2s;
}
.net:hover { border-color: var(--line-strong); }
.net[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.net__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--line-strong); }
.net[aria-checked="true"] .net__dot { background: var(--brand); }
@media (max-width: 379px) { .net { font-size: .72rem; gap: .3rem; } }

.otp { text-align: center; padding-top: 4px; }
.otp .field { text-align: left; }
.otp__icon {
  width: 60px; height: 60px; margin: 4px auto 14px; border-radius: 14px;
  display: grid; place-items: center; color: var(--brand); background: var(--brand-50);
}
.otp__icon .icon { width: 28px; height: 28px; }
.otp__text { color: var(--muted); margin: 0 auto 6px; max-width: 340px; }
.otp input { font-size: 1.4rem; letter-spacing: .4em; text-align: center; font-weight: 600; }
.otp .btn { margin-top: 16px; }
.otp__cancel { margin-top: 10px !important; }

.field { display: grid; gap: 6px; margin-top: 14px; }
.field__label { font-size: .85rem; font-weight: 600; }
.field__label small { color: var(--muted); font-weight: 400; }
.field__control {
  display: flex; align-items: center; background: var(--card);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field__control:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.field__control.is-valid { border-color: var(--ok); }
.field__control.is-invalid { border-color: var(--bad); }
.field__control.is-invalid:focus-within { box-shadow: 0 0 0 3px var(--bad-bg); }
.field__prefix { padding-left: 14px; font-weight: 600; color: var(--muted); font-size: .92rem; }
.field input, .field select {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  padding: 13px 14px; font-size: 1rem; /* ≥16px stops iOS zoom */
}
.field__prefix + input { padding-left: 8px; }
.field__hint { font-size: .78rem; color: var(--muted); min-height: 1.2em; }
.field__hint .icon { display: inline-block; vertical-align: -3px; width: 1.1em; height: 1.1em; stroke-width: 2.4; }
.field__hint.is-ok { color: var(--ok); font-weight: 500; }
.field__hint.is-error { color: var(--bad); font-weight: 500; }

.order-lines { display: grid; gap: 8px; margin: 20px 0 16px; padding-top: 16px; border-top: 1px dashed var(--line-strong); font-size: .9rem; }
.order-lines div { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); }
.order-lines b { color: var(--ink); font-weight: 600; text-align: right; }
.order-lines .total { font-size: 1.05rem; color: var(--ink); font-weight: 600; }

.form-error {
  margin: 0 0 14px; padding: .7rem .9rem; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 500;
  background: var(--bad-bg); color: var(--bad); border: 1px solid #ecc9c1;
}

.recent { margin-top: 22px; }
.recent h4 { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.recent ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.recent a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); font-size: .875rem;
  transition: border-color .2s;
}
.recent a:hover { border-color: var(--line-strong); }
.recent a b { font-weight: 600; }
.recent a span { color: var(--muted); font-family: var(--mono); font-size: .75rem; }

/* ── Toast ───────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 100;
  translate: -50% 0; padding: .7rem 1.1rem; border-radius: 10px;
  background: var(--ink); color: #fff; font-size: .875rem; font-weight: 500;
  box-shadow: var(--shadow-lg); animation: toast 2.4s var(--ease) forwards;
}

/* ── Order status page (shop) ────────────────────────────── */
.status-wrap { padding-block: 32px 64px; display: grid; justify-items: center; }
.status-card { width: 100%; max-width: 520px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.status-card__hero { background: var(--deep); color: var(--paper); text-align: center; padding: 40px 24px 28px; }
.status-card h1 { font-weight: 700; font-size: clamp(1.7rem, 5vw, 2.1rem); line-height: 1.15; margin: 0 0 .5rem; }
.status-card__hero p { color: rgb(246 247 251 / .72); margin: 0 auto; max-width: 380px; font-size: .95rem; }

.status-extra {
  display: grid; gap: 4px; max-width: 380px; margin: 18px auto 0; padding: .8rem 1rem;
  border-radius: 12px; border: 1px solid rgb(246 247 251 / .16);
  font-size: .84rem; color: rgb(246 247 251 / .82);
}
.status-extra strong { color: var(--paper); font-variant-numeric: tabular-nums; }
.status-extra small { color: rgb(246 247 251 / .6); font-size: .78rem; }
.status-icon {
  position: relative; width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; color: var(--paper);
  border: 1px solid rgb(246 247 251 / .2);
}
.status-icon .icon { width: 34px; height: 34px; stroke-width: 2; }
.status-icon--pending::after, .status-icon--working::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--paper);
  animation: spin 1.2s linear infinite;
}
.status-icon--success { background: var(--paper); color: var(--deep); border-color: var(--paper); animation: pop .5s var(--ease); }
.status-icon--success .icon path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .2s var(--ease) forwards; }
.status-icon--warn { background: #c9a24a; border-color: #c9a24a; color: var(--deep); }
.status-icon--muted { color: rgb(246 247 251 / .8); }

.progress { list-style: none; display: flex; justify-content: space-between; padding: 0; margin: 28px auto 0; max-width: 340px; }
.progress li {
  position: relative; flex: 1; display: grid; justify-items: center; gap: 8px;
  font-size: .74rem; font-weight: 500; color: rgb(246 247 251 / .5);
}
.progress li:not(:first-child)::before {
  content: ""; position: absolute; top: 8px; right: 50%; width: 100%; height: 1px;
  background: rgb(246 247 251 / .18); z-index: 0;
}
.progress__dot { position: relative; z-index: 1; width: 17px; height: 17px; border-radius: 50%; background: var(--deep); border: 1px solid rgb(246 247 251 / .3); }
.progress li.is-done, .progress li.is-active { color: var(--paper); }
.progress li.is-done .progress__dot { background: var(--paper); border-color: var(--paper); }
.progress li.is-done:not(:first-child)::before, .progress li.is-active:not(:first-child)::before { background: var(--paper); }
.progress li.is-active .progress__dot { background: var(--deep); border: 2px solid var(--paper); animation: pulse 1.8s infinite; }

.details { padding: 8px 24px 8px; }
.detail-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .925rem; }
.detail-row:last-child { border-bottom: 0; }
.detail-row span { color: var(--muted); }
.detail-row b { font-weight: 600; text-align: right; }
.ref { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--mono); font-size: .82rem; font-weight: 500; }
.copy-btn { border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: .3rem; display: grid; place-items: center; color: var(--muted); }
.copy-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.status-actions { display: grid; gap: 10px; padding: 16px 24px 26px; }
.status-note { font-size: .8rem; color: var(--muted); text-align: center; margin: 0; }

.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 90; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 1px; animation: confetti-fall linear forwards; }

/* ── Simple page (404) ───────────────────────────────────── */
.simple-page { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.simple-page main { display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.simple-page .big { font-weight: 700; font-size: clamp(6rem, 24vw, 10rem); line-height: 1; margin: 0; }
.simple-page .btn { margin-top: 12px; }

/* ── Motion ──────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes ring-fill { to { stroke-dashoffset: 60; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(246 247 251 / .45); } 70%, 100% { box-shadow: 0 0 0 8px rgb(246 247 251 / 0); } }
@keyframes toast { 0% { opacity: 0; translate: -50% 12px; } 12%, 85% { opacity: 1; translate: -50% 0; } 100% { opacity: 0; translate: -50% 8px; } }
@keyframes confetti-fall { to { transform: translate3d(var(--dx, 0), 105vh, 0) rotate(var(--rot, 720deg)); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ring__bar { stroke-dashoffset: 60; }
}
