@font-face { font-family: 'Noto Sans Arabic'; src: url('fonts/noto-sans-arabic.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
/* Paint popup options as well as the closed select. Windows may give the popup a separate system background. */
:root { --preview-select-surface: #fff; --preview-select-text: #17262f; }
:root.dark { --preview-select-surface: #18252e; --preview-select-text: #f0f6fb; }
select :is(option, optgroup) { background-color: var(--preview-select-surface); color: var(--preview-select-text); }
.preview-password-labels { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
#preview-default-password { color: var(--foreground); font-size: .8rem; }
#preview-default-password bdi { color: var(--primary); font-weight: 700; }
body:has(nav) > header { flex-wrap: wrap; }
#preview-demo-warning { margin-inline-end: auto; padding: .35rem .65rem; border-radius: .5rem;
  color: var(--warning); background: var(--warning-surface); font-size: .8rem; line-height: 1.6; }
@media (max-width: 1050px) { #preview-demo-warning { flex-basis: 100%; order: 10; } }
.demo-landing { margin: 0; background: #f1f7f5; color: #102d2b; font-family: 'Noto Sans Arabic', sans-serif; min-height: 100vh; }
.demo-site-header { max-width: 1050px; padding: 22px clamp(20px,5vw,54px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.demo-site-header img { width: min(168px,38vw); height: auto; }
.demo-site-header a { color: #16443a; }
.demo-intro { max-width: 660px; margin: clamp(12px,7vw,85px) auto 40px; padding: clamp(22px,6vw,56px); background: #fff; box-shadow: 0 20px 60px #193c3120; border: 1px solid #d2e4dc; border-radius: 24px; }
.demo-intro h1 { margin: 0; font-size: clamp(28px,5vw,46px); line-height: 1.45; }
.demo-intro h1 span { font-size: .7em; color: #036e51; }
.demo-intro p { line-height: 1.75; margin-block: 20px; }
#demo-start { display: grid; max-width: 420px; gap: 8px; }
#demo-start label { font-weight: 700; }
#demo-start select, #demo-start button { font: inherit; min-height: 48px; border-radius: 10px; padding-inline: 14px; }
#demo-start select { border: 1px solid #aecbc0; background: #fff; color: inherit; }
#demo-start button { background: #006d4d; border: 1px solid #006d4d; color: #fff; cursor: pointer; font-weight: 700; }
.demo-note { font-size: .925rem; color: #425c54; }
.demo-preview-stat { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 14px 24px; overflow: hidden; margin-block-start: 27px; padding: 21px 22px;
  border: 1px solid #c9e2d8; border-radius: 15px; background: linear-gradient(105deg,#dff2e9,#eff8f3 66%); }
.demo-preview-stat::before { content: ''; position: absolute; z-index: -1; inset-inline-end: -52px; inset-block-start: -56px;
  width: 146px; height: 154px; border: 1px solid #7db5a133; border-radius: 42px 32px 43px 22px; transform: rotate(-26deg); }
.demo-preview-stat h2 { margin: 0; color: #124b44; font-size: .98rem; font-weight: 740; line-height: 1.7; }
.demo-preview-stat p { margin: 3px 0 0; color: #42665c; font-size: .8rem; line-height: 1.65; }
#preview-visit-count { color: #075a4e; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800;
  font-variant-numeric: tabular-nums; line-height: 1; }
@media (max-width: 440px) {
  .demo-preview-stat { grid-template-columns: 1fr; padding: 16px; }
  #preview-visit-count { grid-row: 1; justify-self: start; }
}
.demo-landing.preview-mobile { background: #f5f9f6; color: #083d3b; }
.preview-mobile .demo-site-header { max-width: 560px; padding: 15px 0; margin-inline: auto;
  width: calc(100% - 40px); border-block-end: 1px solid #d7e5dd; }
.preview-mobile .demo-site-header img { width: min(148px, 44vw); }
.preview-mobile .demo-site-header a { padding: 7px 0; font-size: .82rem; font-weight: 650;
  text-underline-offset: 4px; color: #245854; }
.demo-device-notice { width: calc(100% - 40px); max-width: 560px; margin: 19px auto 32px; }
.demo-device-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(20px, 6vw, 37px);
  background: linear-gradient(150deg, #08514d, #053734 78%); border-radius: 22px; color: #fff; }
.demo-device-hero::before, .demo-device-hero::after { content: ''; position: absolute; z-index: -1; pointer-events: none; }
.demo-device-hero::before { inset-block-start: -71px; inset-inline-end: -63px; width: 185px; height: 224px;
  background: linear-gradient(155deg, #77b7a7 0%, #1b615e 90%); border-radius: 62px 48px 63px 18px;
  transform: rotate(-28deg); opacity: .32; }
.demo-device-hero::after { inset-block-start: 29px; inset-inline-end: 30px; width: 26px; height: 34px;
  border: 1px solid #e7a4718c; border-radius: 10px 3px 10px 7px; transform: rotate(-24deg); }
.demo-phone-icon { display: grid; place-items: center; width: 41px; height: 41px; border: 1px solid #a4d2c568;
  border-radius: 12px; color: #b8e5d6; background: #9ac7b31c; }
.demo-phone-icon span { position: relative; width: 12px; height: 20px; border: 2px solid; border-radius: 4px; }
.demo-phone-icon span::after { content: ''; position: absolute; bottom: 2px; inset-inline: 3px; border-block-end: 1px solid; }
.demo-device-hero h1 { margin: 13px 0 0; font-size: clamp(1.85rem, 8vw, 3rem); font-weight: 790; line-height: 1.4; }
.demo-device-hero h1 span { display: block; color: #a2d9c8; }
.demo-device-hero p { margin: 8px 0 19px; color: #e1f2eb; font-size: .95rem; line-height: 1.75; }
.demo-device-link { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 48px; padding: 4px 15px; border-radius: 11px;
  background: #aee0cf; color: #073d3b; font-weight: 750; text-decoration: none; }
.demo-device-link:hover { background: #c3eadd; }
.demo-device-link span { position: relative; width: 19px; border-block-end: 2px solid; }
.demo-device-link span::after { content: ''; position: absolute; top: -4px; left: 0;
  width: 7px; height: 7px; border: solid; border-width: 0 0 2px 2px; transform: rotate(45deg); }
.demo-device-link:focus-visible { outline: 2px solid #f9e1cd; outline-offset: 3px; }
.demo-device-warning { display: flex; align-items: flex-start; gap: 12px; margin-block-start: 14px;
  padding: 15px 14px; background: #fff; border: 1px solid #d7e5dd; border-radius: 15px; }
.demo-device-warning h2 { margin: 0; font-size: 1rem; font-weight: 730; line-height: 1.5; }
.demo-device-warning p { margin: 5px 0 0; color: #395650; font-size: .85rem; line-height: 1.8; }
.demo-device-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px;
  background: #f8e9d8; color: #724620; border-radius: 10px; }
.demo-device-icon span { position: relative; width: 17px; height: 11px; border: 2px solid; border-radius: 3px; transform: translateY(-2px); }
.demo-device-icon span::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 9px; height: 5px;
  border-bottom: 2px solid; background: linear-gradient(currentColor,currentColor) center / 2px 100% no-repeat; transform: translateX(-50%); }
.demo-bar { z-index: 32; position: fixed; inset-inline-end: 12px; inset-block-end: 12px; border: 1px solid #bdd2c9; background: #fff; color: #183830; border-radius: 12px; width: min(330px,calc(100vw - 24px)); box-shadow: 0 5px 24px #1c392725; }
.demo-bar summary { padding: 8px 13px; cursor: pointer; font-weight: 650; }
.demo-bar-content { padding: 2px 13px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-bar-content label, .demo-bar-content p { grid-column: 1 / -1; margin: 0; }
.demo-bar-content label { display: grid; gap: 4px; }
.demo-bar-content select, .demo-bar-content button { min-height: 38px; }
.demo-bar a { color: #00684d; align-self: center; }
.demo-clock { margin-inline-start: 10px; font-variant-numeric: tabular-nums; }
html.dark .demo-bar { background: #162a28; color: #edf8f1; border-color: #48625c; }
html.dark .demo-bar a { color: #8ce6c1; }
@media (max-width: 730px) { .demo-intro { margin-inline: 14px; } }
@media print { .demo-bar, #preview-demo-warning { display: none !important; } }
