/* siraatweb.com. Brand: emerald #0E6B53, gold #D4A72C, pine #0B2B22, parchment #F7F3E8, mint #DDEFE7. */
@font-face { font-family: "Readex Pro"; src: url("fonts/readex-pro.woff2") format("woff2"); font-weight: 160 700; font-display: swap; }
@font-face { font-family: "Amiri Quran"; src: url("fonts/amiri-quran-tagline.woff2") format("woff2"); font-display: swap; }

:root {
  --emerald: #0E6B53; --emerald-2: #138063; --gold: #D4A72C; --pine: #0B2B22; --mint: #DDEFE7;
  --bg: #F7F3E8; --bg-2: #EFE9D9; --card: #FFFFFF; --fg: #13241E; --muted: #5B6A63; --line: #E2DCCB;
  --accent: #0E6B53; --shadow: 0 30px 80px -40px rgba(11, 43, 34, .45);
  --display: "Readex Pro", "Segoe UI", system-ui, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1140px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0F1D18; --bg-2: #13251F; --card: #172B24; --fg: #EAF1ED; --muted: #A2B3AB; --line: #24403A;
    --accent: #6FD1AE; --mint: #1C3A30; --shadow: 0 30px 80px -40px rgba(0, 0, 0, .7); color-scheme: dark; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; margin: 0; }
h1 { font-size: clamp(36px, 5.4vw, 62px); }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 20px; letter-spacing: -.005em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { font: 600 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--card); padding: 8px 14px; border-radius: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font: 600 22px var(--display); }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 26px; margin-inline-start: auto; align-items: center; }
.nav a { color: var(--fg); text-decoration: none; font-weight: 500; font-size: 15.5px; opacity: .85; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; color: var(--accent); }
.nav a.btn-primary { color: #fff; opacity: 1; }
.menu { display: none; margin-inline-start: auto; }
.menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 14px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: grid; }
.menu-panel { display: none; position: absolute; inset-inline: 16px; top: 64px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px; gap: 2px; box-shadow: var(--shadow); }
.menu-panel a { padding: 10px 12px; border-radius: 8px; color: var(--fg); text-decoration: none; font-weight: 500; }
.menu-panel a:hover { background: var(--bg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font: 600 16px var(--display);
  text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.btn-primary { background: var(--emerald); color: #fff; box-shadow: 0 10px 26px -12px rgba(14, 107, 83, .8); }
.btn-primary:hover { background: var(--emerald-2); transform: translateY(-1px); }
.btn-ghost { color: var(--fg); border-color: var(--line); background: color-mix(in srgb, var(--card) 70%, transparent); }
.btn-ghost:hover { border-color: var(--emerald); }
.btn-sm { padding: 9px 18px; font-size: 14.5px; }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 0; text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .06; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%230E6B53' stroke-width='1.2'%3E%3Crect x='16' y='16' width='24' height='24'/%3E%3Crect x='16' y='16' width='24' height='24' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(#000 40%, transparent 85%); mask-image: linear-gradient(#000 40%, transparent 85%); }
.hero .wrap { position: relative; display: grid; justify-items: center; gap: 22px; }
.tagline { font: 400 30px/1.9 "Amiri Quran", "Traditional Arabic", serif; color: var(--accent); margin-bottom: -8px; }
.hero h1 { max-width: 19ch; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 46em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.fine { font-size: 13.5px; color: var(--muted); }
.shot { margin-top: 36px; width: min(1100px, 100%); }

/* Browser frame around screenshots */
.frame { border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.frame-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; background: #D6E8E0; }
@media (prefers-color-scheme: dark) { .frame-bar { background: #1E3A31; } }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--emerald) 35%, #fff); }
.frame-url { flex: 1; height: 22px; border-radius: 999px; background: color-mix(in srgb, #fff 70%, transparent); max-width: 520px; margin-inline: auto;
  font: 12px/22px var(--body); color: #4c5f57; text-align: center; overflow: hidden; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .frame-url { background: rgba(255, 255, 255, .08); color: #a9bdb4; } }

/* Strip */
.strip { margin-top: -1px; padding: 26px 0; border-block: 1px solid var(--line); background: var(--bg-2); }
.strip ul { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 34px; justify-content: center; }
.strip li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--muted); }
.strip li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* Sections */
section.block { padding: 96px 0; }
.head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 44px; }
.head.center { text-align: center; margin-inline: auto; justify-items: center; }
.head p { color: var(--muted); font-size: 18.5px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; gap: 10px; align-content: start; }
.card p { color: var(--muted); font-size: 16px; }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--mint); color: var(--emerald); margin-bottom: 6px; }
@media (prefers-color-scheme: dark) { .icon { color: var(--accent); } }
.icon svg { width: 24px; height: 24px; }

.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 32px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.ticks b { font-weight: 600; }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trio figure { margin: 0; display: grid; gap: 10px; }
.trio figcaption { font-size: 14.5px; color: var(--muted); text-align: center; }
.trio img { border-radius: 12px; border: 1px solid var(--line); }

.band { background: linear-gradient(135deg, var(--pine), #0E4D3D 60%, var(--emerald)); color: #F2F7F4; border-radius: 28px; padding: 64px 48px; position: relative; overflow: hidden; }
.band h2 { color: #fff; }
.band p { color: #CFE3DA; }
.band .ticks li::before { background-color: var(--gold); }
.band .eyebrow { color: var(--gold); }
.band::after { content: ""; position: absolute; inset-inline-end: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 167, 44, .35), transparent 70%); }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.faq summary { cursor: pointer; font: 600 17.5px var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); }

.final { text-align: center; display: grid; justify-items: center; gap: 18px; }

/* Content pages */
.page-hero { padding: 64px 0 28px; }
.page-hero .wrap { display: grid; gap: 14px; max-width: 820px; }
.page-hero p { color: var(--muted); font-size: 19px; }
.prose { max-width: 780px; display: grid; gap: 16px; padding-bottom: 80px; }
.prose h2 { font-size: 26px; margin-top: 26px; }
.prose h3 { margin-top: 10px; }
.prose ul, .prose ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.prose th, .prose td { text-align: start; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }
.note { background: var(--mint); border-radius: 14px; padding: 16px 18px; font-size: 15.5px; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 14px !important; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 46px; }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--emerald); color: #fff; font: 600 15px/32px var(--display); text-align: center; }

.dl { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; padding-bottom: 40px; }
.dl-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.dl-meta { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 15px; }
.dl-meta dt { color: var(--muted); }
.dl-meta dd { margin: 0; font-weight: 600; }
code, .hash { font-family: ui-monospace, Consolas, monospace; font-size: 13px; word-break: break-all; background: var(--bg-2); padding: 2px 6px; border-radius: 6px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 44px 0 56px; margin-top: 40px; font-size: 15px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .grid3, .trio { grid-template-columns: 1fr 1fr; }
  .split, .cols2, .dl { grid-template-columns: 1fr; gap: 32px; }
  .split.flip > :first-child { order: 0; }
  .band { padding: 44px 26px; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .menu { display: block; }
  .grid3, .trio { grid-template-columns: 1fr; }
  section.block { padding: 64px 0; }
  .hero { padding-top: 48px; }
  .tagline { font-size: 24px; }
  .frame-bar { height: 28px; }
  .frame-url { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
