/* The HafizPro website: the app's colours (pine black, cyan, antique gold). */

@font-face {
  font-family: "EB Garamond";
  src: url("/static/fonts/EBGaramond.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/static/fonts/EBGaramond-Italic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Amiri";
  src: url("/static/fonts/Amiri-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Amiri";
  src: url("/static/fonts/Amiri-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0B0F0E;
  --surface: #111715;
  --surface-high: #141C19;
  --border: #1E2A26;
  --border-strong: #2B3A34;
  --primary: #25F9E0;
  --primary-dark: #17D9C1;
  --primary-ink: #062723;
  --primary-soft: #0D2B28;
  --gold: #D9B36A;
  --gold-soft: #2A2314;
  --text: #E9F1ED;
  --text-2: #95A8A0;
  --nav: #B9CCC5;
  --danger: #F87A72;
  --danger-border: #54231F;
  --danger-soft: #251412;
  --dark: #080B0A;
  --radius: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: "EB Garamond", Georgia, serif; font-weight: 600; }
h1 { letter-spacing: 0.005em; }
h2 { letter-spacing: 0.005em; }

/* Header and footer */

.site-header { border-bottom: 1px solid var(--border); background: rgba(11, 15, 14, 0.88); position: sticky; top: 0; backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand span { font-family: "EB Garamond", Georgia, serif; font-size: 21px; font-weight: 700; letter-spacing: 0.005em; }
.badge-admin { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); background: var(--gold-soft); border-radius: 999px; padding: 4px 10px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; flex: 1 1 auto; }
.nav-link { color: var(--nav); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 2px; background: none; border: none; cursor: pointer; font-family: inherit; }
.nav-link:hover { color: var(--primary); }
.nav-link[aria-current="page"] { color: var(--primary); box-shadow: inset 0 -2px 0 var(--primary); }
.header-end { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.header-end form { margin: 0; }
.lang-switch { color: var(--nav); text-decoration: none; font-weight: 600; font-size: 14px; padding: 5px 14px; border: 1px solid var(--border-strong); border-radius: 999px; }
.lang-switch:hover { color: var(--primary); border-color: var(--primary); }
.who { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--text); text-decoration: none; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; text-transform: uppercase; }

.site-footer { border-top: 1px solid var(--border); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 28px 64px; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; }
.site-footer .about { max-width: 320px; display: flex; flex-direction: column; gap: 10px; }
.site-footer .about p { margin: 0; font-size: 14px; color: var(--text-2); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 28px 56px; }
.footer-nav div { display: flex; flex-direction: column; gap: 8px; }
.footer-nav span { font-size: 13px; font-weight: 700; }
.footer-nav a { color: var(--text-2); text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: var(--primary); }

/* Buttons and forms */

.btn, .btn2, .btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 15px; text-decoration: none;
  padding: 12px 20px; border-radius: 12px; min-height: 44px; cursor: pointer;
}
.btn { background: var(--primary); color: var(--primary-ink); border: none; }
.btn:hover { background: #5FF6E4; color: var(--primary-ink); }
.btn2 { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.btn2:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--surface); color: var(--danger); border: 1px solid var(--danger-border); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; min-height: 40px; }
.btn-block { width: 100%; }
button:disabled, .btn2[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group label, .label { font-size: 14px; font-weight: 700; }
.field-group .hint { font-size: 13px; color: var(--text-2); }
.field {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 13px; min-height: 46px;
  border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text);
}
.field:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.field:disabled { background: var(--surface-high); color: var(--text-2); }
.field::placeholder { color: #5E716B; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--nav); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--primary); }

.alert { border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.alert-error { background: var(--danger-soft); color: var(--danger); border: 1px solid var(--danger-border); }
.alert-ok { background: var(--primary-soft); color: #7CF6E9; border: 1px solid #1E4A44; }
.alert-note { background: var(--surface-high); color: var(--text-2); }

.chip { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.chip-ok { color: var(--primary); background: var(--primary-soft); }
.chip-warn { color: var(--gold); background: var(--gold-soft); }
.chip-off { color: var(--text-2); background: var(--surface-high); }

/* Beta badge */

.brand .badge-beta { font-family: system-ui, sans-serif; font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(217, 179, 106, 0.35); border-radius: 999px; padding: 1px 6px; line-height: 1.5; }

/* Facebook icon in the footer */

.fb-icon { width: 16px; height: 16px; border-radius: 4px; vertical-align: -3px; margin-inline-end: 6px; }

/* Comparison table */

.compare-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 560px; }
table.compare th, table.compare td { padding: 13px 18px; text-align: center; }
table.compare td:first-child, table.compare th:first-child { text-align: left; font-weight: 500; color: var(--text); }
table.compare thead th { border-bottom: 1px solid var(--border-strong); font-size: 16.5px; font-weight: 700; white-space: nowrap; }
table.compare thead th img { width: 26px; height: 26px; border-radius: 7px; vertical-align: -7px; margin-right: 9px; }
table.compare tbody tr + tr td { border-top: 1px solid var(--border); }
table.compare .yes { color: var(--primary); font-weight: 800; font-size: 17px; }
table.compare .no { color: var(--danger); font-weight: 800; font-size: 17px; }
table.compare th.hp-col, table.compare td.hp-col { background: var(--primary-soft); }
table.compare thead th.hp-col { color: var(--primary); }
table.compare td .d { display: block; margin-top: 2px; font-weight: 400; font-size: 13.5px; color: var(--text-2); }
.compare-note { margin: 14px 0 0; color: var(--text-2); font-size: 13px; }

/* Shared blocks */

.eyebrow { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-2); }
.muted { color: var(--text-2); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.card h2 { margin: 0; font-size: 20px; font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.icon-tile { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; }
.phone { width: 236px; border-radius: 34px; background: #050807; border: 1px solid #26302C; padding: 9px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); }
.phone img { display: block; width: 100%; border-radius: 26px; }
.phone img, .hero-shot .desk, .lscreen img, .framed img { height: auto; }

/* Home */

.hero { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 96px; }
.hero-text { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.bismillah { margin: 0 0 18px; font-family: "Amiri", "Amiri Quran", "Noto Naskh Arabic", serif; color: var(--gold); font-size: 19px; text-align: left; }
.hero h1 { margin: 0; font-size: clamp(38px, 5vw, 60px); line-height: 1.06; font-weight: 600; }
.hero-shot { position: relative; min-width: 0; }
.hero-shot .desk { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--border); }
.hero-shot .phone { position: absolute; left: -30px; bottom: -56px; width: 172px; border-radius: 22px; padding: 7px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
.hero-shot .phone img { border-radius: 16px; }
.plats { margin: 0; color: var(--text-2); font-size: 14.5px; border-top: 1px solid var(--border); padding-top: 16px; }
.plats b { color: var(--text); font-weight: 600; }

.verse { background: var(--surface-high); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.verse .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.verse .ar { margin: 0; font-family: "Amiri", "Amiri Quran", "KFGQPC Uthmanic Script HAFS", "Scheherazade New", "Noto Naskh Arabic", serif; font-size: 36px; line-height: 1.8; }
.verse p { margin: 0; font-size: 15px; color: var(--text-2); }

.section { padding-top: 80px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 36px; }
.section h2 { margin: 0; font-size: clamp(30px, 3.5vw, 40px); line-height: 1.15; font-weight: 600; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.feature h3 { margin: 0; font-size: 20px; }
.feature p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }

.showcase { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.showcase.flip { flex-wrap: wrap-reverse; padding-top: 20px; padding-bottom: 80px; }
.showcase .text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.showcase .text h2 { margin: 0; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.16; font-weight: 600; }
.showcase .text p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--text-2); }
.showcase .shot { flex: 1 1 440px; min-width: 0; display: flex; justify-content: center; }
.showcase .phone { width: 280px; border-radius: 38px; padding: 10px; }
.showcase .phone img { border-radius: 29px; }
.showcase .duo .phone { width: 205px; border-radius: 30px; padding: 8px; }
.showcase .duo .phone img { border-radius: 23px; }

.feats { margin: 8px 0 0; padding: 0; list-style: none; }
.feats li { padding: 12px 0 12px 24px; position: relative; border-bottom: 1px solid var(--border); font-size: 15.5px; color: var(--text); }
.feats li:last-child { border-bottom: none; }
.feats li::before { content: "◆"; position: absolute; left: 2px; top: 15px; color: var(--primary); font-size: 9px; }
.feats b { font-weight: 600; }
.feats .d { display: block; margin-top: 2px; color: var(--text-2); font-size: 14px; }

.duo { display: flex; gap: 26px; align-items: flex-start; justify-content: center; flex-wrap: wrap; }
.duo > div { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.duo > div:last-child { margin-top: 44px; }
.cap { margin: 10px 0 0; color: var(--text-2); font-size: 13px; text-align: center; }

.devices { display: flex; gap: 44px; justify-content: center; align-items: flex-end; }
.laptop { flex: 1 1 auto; min-width: 0; }
.lscreen { border: 1px solid #26302C; border-bottom: none; border-radius: 14px 14px 0 0; padding: 10px 10px 8px; background: #050807; overflow: hidden; }
.lscreen img { width: 100%; display: block; border-radius: 6px 6px 0 0; }
.lbase { height: 16px; margin: 0 -38px; background: linear-gradient(#3A423F, #222826); border-radius: 3px 3px 16px 16px; position: relative; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5); }
.lbase::before { content: ""; position: absolute; left: 50%; transform: translateX(-50%); top: 0; width: 96px; height: 7px; background: #161B19; border-radius: 0 0 9px 9px; }
.devices .tab { flex: none; width: 200px; }
.framed { background: #050807; border: 1px solid #26302C; border-radius: 32px; padding: 13px 11px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.framed img { border-radius: 21px; display: block; width: 100%; }
.syncnote { margin: 40px 0 0; color: var(--text-2); font-size: 14.5px; }
.syncnote b { color: var(--text); font-weight: 600; }

.band { background: var(--dark); border-top: 1px solid var(--border); }
.band .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.band h2 { margin: 0; font-size: 38px; font-weight: 600; }
.band p { margin: 0; font-size: 17px; color: var(--text-2); }
.band a.tile { background: #101815; border: 1px solid #22312C; border-radius: var(--radius); padding: 24px; color: var(--text); text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.band a.tile:hover { border-color: var(--primary); color: var(--text); }
.band .tile strong { font-family: "EB Garamond", Georgia, serif; font-size: 21px; font-weight: 600; }
.band .tile span { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.band .tile .go { font-weight: 700; color: var(--primary); }
.band a { color: var(--primary); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

/* Plain pages */

.page { padding-top: 64px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 40px; }
.page-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.page-head h1 { margin: 0; font-size: clamp(34px, 4.5vw, 46px); line-height: 1.1; font-weight: 600; }

.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.platform { display: flex; flex-direction: column; gap: 14px; }
.platform h2 { font-size: 22px; }
.platform p, .platform ul { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.platform ul { padding-left: 20px; font-size: 14px; line-height: 1.8; }
.platform .spacer { flex: 1 1 auto; }
.placeholder-box { width: 112px; height: 112px; border: 2px dashed var(--border-strong); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-2); text-align: center; }

.soft { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.soft .text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.soft h2 { margin: 0; font-size: 24px; font-weight: 600; }
.soft p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }

.code { background: var(--dark); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; overflow-x: auto; }
.code span { font-size: 13px; font-weight: 700; color: var(--text-2); }
.code pre { margin: 0; font-size: 14px; line-height: 1.8; color: var(--text); }
.code .c { color: #6B8079; }

.credits { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.credits li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.credits strong { color: var(--text); }

/* Sign-up and sign-in */

.auth { padding-top: 56px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.auth.center { justify-content: center; padding-top: 72px; }
.auth-card { flex: 1 1 420px; min-width: 0; max-width: 520px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 36px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.auth.center .auth-card { max-width: 440px; }
.auth-card h1 { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 600; }
.auth-card form { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.why { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 22px; padding-top: 8px; }
.why h2 { margin: 0; font-size: 22px; font-weight: 600; }
.why ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.why li { display: flex; gap: 14px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.why li svg { flex: 0 0 auto; margin-top: 2px; }
.why strong { color: var(--text); }
.why .foot { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-2); border-top: 1px solid var(--border); padding-top: 18px; }

.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.6; }
.steps .n { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.server-box { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; background: var(--surface-high); border-radius: 14px; padding: 16px; }
.server-box code { font-size: 16px; font-weight: 700; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; word-break: break-all; }

/* Account and admin */

.console { padding-top: 40px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.side-nav { flex: 1 1 200px; max-width: 240px; display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: block; color: var(--nav); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 14px; border-radius: 10px; }
.side-nav a:hover { background: var(--surface-high); color: var(--primary); }
.side-nav .sep { margin-top: 12px; border-top: 1px solid var(--border); border-radius: 0; padding-top: 16px; }
.console-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.console-main h1 { margin: 0; font-size: 32px; font-weight: 600; }
.console-main section { scroll-margin-top: 16px; }
.table-box { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
table.list th { text-align: left; color: var(--text-2); font-size: 13px; font-weight: 700; padding: 8px 10px; }
table.list td { border-top: 1px solid #1B2521; padding: 12px 10px; }
table.list td.end { text-align: right; white-space: nowrap; }
table.list th.end { text-align: right; }
table.usage td { white-space: nowrap; }
table.usage td:first-child { white-space: normal; }
table.usage td.day { white-space: nowrap; }
table.list td form { display: inline; margin: 0; }
table.list .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.meter { height: 12px; border-radius: 999px; background: #1B2521; overflow: hidden; }
.meter div { height: 100%; background: var(--primary); border-radius: 999px; }
.danger-card { border-color: var(--danger-border); }
.choices { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; border: 0; padding: 0; margin: 0; min-width: 0; }
.choices legend { padding: 0; margin-bottom: 10px; }
.mb-row { gap: 8px; flex-wrap: nowrap; font-size: 14px; color: var(--nav); }
.field-mb { width: 110px; min-height: 40px; padding-top: 7px; padding-bottom: 7px; }
a.plain { color: inherit; text-decoration: none; }
a.plain:hover { color: var(--primary); text-decoration: underline; }
.dim { color: var(--text-2); opacity: 0.8; }
.danger-card h2 { color: var(--danger); }
.tiles-admin { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.stat .k { font-size: 13px; font-weight: 700; color: var(--text-2); }
.stat .v { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.stat .n { font-size: 13px; color: var(--text-2); }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; border: 0; padding: 0; margin: 0; min-width: 0; }
.mode { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--border-strong); border-radius: 14px; padding: 14px 16px; cursor: pointer; }
.mode input { accent-color: var(--primary); margin: 0; width: 18px; height: 18px; }
.mode:has(input:checked) { border: 2px solid var(--primary); background: var(--primary-soft); padding: 13px 15px; }
.mode.on:not(:has(input)) { border: 2px solid var(--primary); background: var(--primary-soft); }
.mode strong { font-size: 15px; }
.mode span { font-size: 13px; line-height: 1.5; color: var(--text-2); }

/* Phones */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 56px; padding-top: 48px; padding-bottom: 72px; }
  .hero-shot .phone { left: -12px; bottom: -40px; width: 150px; }
  .devices { flex-wrap: wrap; gap: 36px; }
  .lbase { margin: 0 -20px; }
}

@media (max-width: 600px) {
  .showcase .phone { width: 70%; }
  .duo > div { width: 46%; flex: none; }
  .duo .phone { width: 100%; }
  .duo > div:last-child { margin-top: 22px; }
  .auth-card { padding: 24px; }
  .card { padding: 20px; }
  .hero-shot .phone { width: 118px; border-radius: 16px; padding: 5px; }
  .hero-shot .phone img { border-radius: 12px; }
  table.compare { min-width: 0; font-size: 13.5px; }
  table.compare th, table.compare td { padding: 10px 8px; }
  table.compare thead th { font-size: 12px; white-space: nowrap; }
  table.compare thead th img { display: block; margin: 0 auto 4px; width: 26px; height: 26px; border-radius: 7px; }
  table.compare td:first-child { padding-right: 6px; }
  table.compare .yes, table.compare .no { font-size: 15px; }
}

/* Arabic pages: the layout mirrors, the headings read in Amiri, and
   code stays left-to-right. Flex and grid flip on their own; these are
   the places the stylesheet said left or right outright. */

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: "Amiri", "Noto Naskh Arabic", "Scheherazade New", serif; }
[dir="rtl"] .band .tile strong { font-family: "Amiri", "Noto Naskh Arabic", serif; }
[dir="rtl"] .bismillah { text-align: right; }
[dir="rtl"] .feats li { padding: 12px 24px 12px 0; }
[dir="rtl"] .feats li::before { left: auto; right: 2px; }
[dir="rtl"] .platform ul { padding-left: 0; padding-right: 20px; }
[dir="rtl"] table.compare td:first-child, [dir="rtl"] table.compare th:first-child { text-align: right; }
[dir="rtl"] table.compare thead th img { margin-right: 0; margin-left: 9px; }
[dir="rtl"] .hero-shot .phone { left: auto; right: -30px; }
[dir="rtl"] .code, [dir="rtl"] .server-box code { direction: ltr; text-align: left; }

@media (max-width: 900px) {
  [dir="rtl"] .hero-shot .phone { right: -12px; }
}

@media (max-width: 600px) {
  [dir="rtl"] table.compare thead th img { margin: 0 auto 4px; }
}
