/* Mizan's website: the home page, the company, copyright, the policies and
   the account on the web. Arabic first (RTL), English beside it; light and
   dark; Mizan's own teal and gold; no outside files. */

@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/vazirmatn-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/vazirmatn-medium.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/vazirmatn-bold.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f3f6f5;
  --surface: #ffffff;
  --surface-2: #e9f0ee;
  --ink: #13201e;
  --muted: #4e5f5b;
  --line: #d6e1de;
  --accent: #1f6f6b;
  --accent-strong: #175855;
  --on-accent: #ffffff;
  --accent-soft: #e0eeeb;
  --warn: #8f4c00;
  --warn-soft: #fcefd9;
  --hero-top: #1b625f;
  --hero-bottom: #0e3d3b;
  --gold: #c9a24b;
  --on-hero-gold: #f6e2ad;
  --shadow: 0 1px 2px rgba(16, 32, 30, .06), 0 10px 30px rgba(16, 32, 30, .07);
  --radius: 20px;

  /* The names the account page was written with. */
  --card: var(--surface);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1312;
    --surface: #141e1c;
    --surface-2: #1b2826;
    --ink: #e6efed;
    --muted: #a7b7b3;
    --line: #273532;
    --accent: #74c8be;
    --accent-strong: #93d8cf;
    --on-accent: #062421;
    --accent-soft: #19312e;
    --warn: #f3b766;
    --warn-soft: #3a2c16;
    --hero-top: #18524f;
    --hero-bottom: #0a2b29;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
  }
}

/* --- Base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Vazirmatn", system-ui, -apple-system, "Segoe UI", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-strong); }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
[hidden] { display: none !important; }
[id] { scroll-margin-top: 84px; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .4em; font-weight: 700; }
p { margin: 0 0 1em; }

/* One language at a time: Arabic unless the page is in English (site.js);
   without scripts, Arabic. */
html:not([lang="en"]) .only-en,
html[lang="en"] .only-ar { display: none !important; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
}
.skip:focus { top: 12px; color: var(--on-accent); }
.ltr, .ltr-num, bdi.num { direction: ltr; unicode-bidi: isolate; }
.ltr { display: inline-block; }
/* A link in running text (a phone number) is easy to tap, without moving the
   lines around it. */
a.ltr { padding-block: 8px; margin-block: -8px; }
.ltr-num { white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }

/* --- Buttons ------------------------------------------------------------- */

.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover, .button:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.secondary, .button.ghost {
  background: var(--accent-soft);
  color: var(--accent);
}
.btn.secondary:hover, .button.ghost:hover { background: var(--surface-2); color: var(--accent-strong); }
.btn.outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.outline:hover { background: var(--surface-2); color: var(--ink); }
.btn.light { background: #ffffff; color: #124a47; }
.btn.light:hover { background: #e7f3f1; color: #0d3b39; }
.btn.clear { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .45); color: #ffffff; }
.btn.clear:hover { background: rgba(255, 255, 255, .2); color: #ffffff; }
.btn.small { min-height: 44px; padding: 6px 16px; font-size: 15px; }
.btn.large { min-height: 52px; padding: 10px 26px; font-size: 17px; }
.button[disabled], .btn[disabled] { opacity: .6; cursor: progress; }
.button.busy { opacity: .6; }

/* --- The header ---------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: saturate(1.5) blur(16px);
    backdrop-filter: saturate(1.5) blur(16px);
  }
}
.site-header .bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand img { width: 38px; height: 38px; border-radius: 11px; display: block; }
.nav-wide { display: flex; align-items: center; gap: 2px; margin-inline-start: 16px; }
.nav-wide a,
.menu-panel a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.nav-wide a:hover, .menu-panel a:hover { background: var(--surface-2); color: var(--ink); }
.nav-wide a[aria-current="page"], .menu-panel a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.header-end { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.lang-switch:hover { background: var(--surface-2); color: var(--ink); }

/* The menu on phones: a native disclosure, so it opens without scripts. */
.menu { display: none; position: static; }
.menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 22px; height: 22px; }
.menu > summary .close, .menu[open] > summary .open { display: none; }
.menu[open] > summary .close { display: block; }
.menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline: 16px;
  display: grid;
  gap: 2px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.menu-panel a { min-height: 48px; padding-inline: 14px; }
.menu-panel hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

@media (max-width: 900px) {
  .nav-wide { display: none; }
  .menu { display: block; }
  .site-header .bar { position: relative; }
}
@media (max-width: 560px) {
  .header-end .lang-switch { display: none; }
  .brand { font-size: 19px; }
  .brand img { width: 34px; height: 34px; }
}

/* --- The footer ---------------------------------------------------------- */

.site-footer {
  margin-top: 72px;
  padding: 48px 0 28px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.footer-grid .brand { font-size: 19px; margin-bottom: 6px; }
.footer-grid h2 { font-size: 15px; color: var(--ink); margin: 6px 0 8px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  color: var(--muted);
  text-decoration: none;
}
.footer-grid li a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.footer-bottom p { margin: 0; }
.policy-links { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 0; padding: 0; list-style: none; }
.policy-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}
.policy-links a:hover { color: var(--accent); }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* --- The home page ------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 255, 255, .14), transparent 45%),
    linear-gradient(160deg, var(--hero-top), var(--hero-bottom));
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
  pointer-events: none;
}
.hero::before { width: 720px; height: 720px; inset-inline-start: -260px; bottom: -420px; }
.hero::after { width: 480px; height: 480px; inset-inline-start: -140px; bottom: -300px; }
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 32px;
  padding-top: clamp(40px, 7vw, 80px);
}
.hero-text { padding-bottom: clamp(40px, 6vw, 80px); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  font-weight: 700;
  margin-bottom: 18px;
}
[dir="rtl"] .chip { padding: 4px 4px 4px 14px; }
.chip img { width: 30px; height: 30px; border-radius: 9px; display: block; }
.hero h1 {
  font-size: clamp(2.1rem, 3.2vw + 1.2rem, 3.6rem);
  line-height: 1.25;
  margin-bottom: 16px;
}
.hero h1 .gold { color: var(--on-hero-gold); }
.hero .lead {
  font-size: clamp(1.05rem, .4vw + 1rem, 1.25rem);
  color: rgba(255, 255, 255, .92);
  max-width: 34em;
  margin-bottom: 28px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 18px 0 0; font-size: 15px; color: rgba(255, 255, 255, .92); }
.hero a:not(.btn), .hero a:not(.btn):hover { color: #ffffff; font-weight: 700; }
.hero-visual {
  align-self: end;
  display: flex;
  justify-content: center;
  height: clamp(380px, 42vw, 540px);
  overflow: hidden;
}
.phone {
  width: min(300px, 74vw);
  padding: 9px;
  border-radius: 44px;
  background: #0a1110;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .12);
  align-self: flex-start;
}
.phone img, .phone picture { display: block; width: 100%; border-radius: 36px; }
.phone.small { width: 100%; max-width: 250px; border-radius: 36px; padding: 7px; }
.phone.small img { border-radius: 30px; }

.section { padding-block: clamp(56px, 8vw, 96px); }
.section.tint { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 1.6vw + 1.1rem, 2.3rem); }
.section-head p { color: var(--muted); font-size: 1.07rem; margin: 0; }
.kicker {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.section.tint .card { background: var(--bg); box-shadow: none; }
.card h3 { font-size: 1.12rem; margin: 14px 0 6px; }
.card p { color: var(--muted); margin: 0; }
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.icon svg { width: 24px; height: 24px; }

.steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps-row li { counter-increment: step; }
.steps-row .card::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 18px;
}

.band {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, .12), transparent 40%),
    linear-gradient(150deg, var(--hero-top), var(--hero-bottom));
}
.band h2 { font-size: clamp(1.6rem, 1.6vw + 1.1rem, 2.3rem); }
.band > p { color: rgba(255, 255, 255, .92); max-width: 40em; font-size: 1.07rem; }
.band .kicker { color: var(--on-hero-gold); }
.promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 14px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}
.promises li {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  padding: 18px;
}
.promises strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.promises span { color: rgba(255, 255, 255, .92); }
.promises svg { width: 26px; height: 26px; color: var(--on-hero-gold); display: block; margin-bottom: 10px; }
.band a:not(.btn) { color: #ffffff; }

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.shots figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.shots figcaption { text-align: center; color: var(--muted); max-width: 18em; }
.shots figcaption strong { display: block; color: var(--ink); }
@media (max-width: 760px) {
  .shots {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
  }
  .shots li { scroll-snap-align: center; }
}

.free {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-bottom: 18px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.free h3 { margin: 0; font-size: 1.15rem; }
.free p { margin: 0; flex: 1 1 320px; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.plan-card { display: flex; flex-direction: column; }
.plan-card h3 { margin-top: 0; font-size: 1.25rem; }
.plan-card .for { color: var(--muted); margin-bottom: 14px; }
.ticks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231f6f6b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
@media (prefers-color-scheme: dark) {
  .ticks li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2374c8be' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}
.plan-card .btn { margin-top: auto; }
.plans-note { margin: 18px 0 0; color: var(--muted); }

.get {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.get .card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.get .card h3 { margin-top: 12px; }
.get .card .btn { margin-top: 14px; }

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cta > div { flex: 1 1 380px; }
.cta h2 { margin-bottom: 6px; }
.cta p { margin: 0; color: var(--muted); }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero-text { padding-bottom: 8px; }
  .hero-visual { height: 360px; }
}

/* --- Inner pages (company, copyright, 404) ------------------------------- */

.page-head { padding: clamp(36px, 6vw, 64px) 0 8px; }
.page-head h1 { font-size: clamp(1.8rem, 2vw + 1.2rem, 2.6rem); }
.page-head .lead { color: var(--muted); font-size: 1.1rem; max-width: 40em; margin: 0; }
.prose { font-size: 1.03rem; }
.prose h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.prose ul { padding-inline-start: 22px; }
.prose li { margin: 6px 0; }
.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.link-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  color: var(--ink);
  text-decoration: none;
}
.link-card:hover { border-color: var(--accent); color: var(--ink); }
.link-card strong { color: var(--accent); font-size: 1.05rem; }
.link-card span { color: var(--muted); font-size: 15px; }
.contact { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.not-found { text-align: center; padding: clamp(56px, 10vw, 120px) 0; }
.not-found .big {
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  margin: 0 0 12px;
}
.not-found .actions { justify-content: center; margin-top: 24px; }

/* --- The policies (privacy, terms, account deletion) ---------------------- */

.doc { padding-top: 28px; }
nav.docs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
nav.docs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
}
nav.docs a:hover { border-color: var(--accent); }
nav.docs a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.doc article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(20px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.doc article + article { margin-top: 18px; }
.doc article h1 { font-size: clamp(1.6rem, 1.4vw + 1.2rem, 2.2rem); margin: 0 0 4px; }
.doc article h2 { font-size: 1.25rem; margin: 30px 0 8px; }
.doc article h3 { font-size: 1.05rem; margin: 20px 0 6px; }
.doc p, .doc li { margin: 6px 0; }
.doc ul, .doc ol { padding-inline-start: 22px; }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.summary {
  background: var(--accent-soft);
  border-radius: 16px;
  padding: 12px 18px;
  margin: 16px 0;
}
.note {
  background: var(--warn-soft);
  color: var(--ink);
  border-radius: 16px;
  padding: 12px 18px;
  margin: 16px 0;
}
.note strong { color: var(--warn); }
.steps li { margin: 8px 0; }
.path { font-weight: 700; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 15px; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; text-align: start; }
th { color: var(--muted); font-weight: 600; font-size: 14px; }
.doc .button { margin: 6px 0 10px; }

/* --- The account on the web (account.html, pay.html) --------------------- */

.app-page { padding-top: 28px; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(20px, 3vw, 28px);
  margin: 0 0 16px;
  box-shadow: var(--shadow);
}
.panel h1 { font-size: clamp(1.5rem, 1vw + 1.2rem, 2rem); }
.panel h2 { font-size: 1.2rem; }
.panel.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel.row > div { flex: 1; min-width: 0; }
.panel.row h1 { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.grid .panel { margin: 0; }
.grid + .panel { margin-top: 16px; }
.code {
  direction: ltr;
  text-align: center;
  font: 700 clamp(28px, 7vw, 42px)/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 6px;
  background: var(--accent-soft);
  color: var(--ink);
  border-radius: 18px;
  padding: 18px 8px;
  margin: 16px 0 4px;
  overflow-wrap: anywhere;
}
.code.faded { opacity: .35; }
.balance {
  font-size: 34px;
  font-weight: 800;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
  margin: 4px 0 14px;
  color: var(--accent);
}
.plan-now { font-size: 22px; font-weight: 700; margin: 4px 0; }
label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.field { display: flex; gap: 8px; flex-wrap: wrap; }
.field input {
  flex: 1 1 200px;
  min-width: 0;
  min-height: 48px;
  font: 600 17px ui-monospace, Menlo, Consolas, monospace;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
}
.field input:focus-visible { outline-offset: 0; }
.field .button { margin: 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 8px 0 10px; }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.plan h3 { margin: 0; font-size: 1.05rem; }
.plan .price { font-size: 22px; font-weight: 800; direction: ltr; unicode-bidi: isolate; text-align: start; }
.plan .button { margin: 6px 0 0; }
.plan.locked { opacity: .65; }
.plan.chosen { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.msg { min-height: 1.5em; margin: 8px 0 0; font-weight: 600; }
.msg.good { color: var(--accent); }
.msg.bad { color: var(--warn); }
.note.small { font-size: 14px; }
.panel > h1:first-child, .panel > h2:first-child, .panel > div > h1:first-child { margin-top: 0; }
.pay-bar { display: flex; align-items: center; justify-content: center; min-height: 68px; border-bottom: 1px solid var(--line); background: var(--surface); }

@media print {
  .site-header, .site-footer, nav.docs, .skip { display: none !important; }
  body { background: #ffffff; color: #000000; }
  .doc article { border: 0; box-shadow: none; padding: 0; }
}
