/* tarjumo.com: design A "Papier", the same colours and type as the app (replica/design/tokens.json). Fonts are
   served from this site, not from Google, so no visitor data goes to third parties. */
@font-face { font-family: 'Newsreader'; src: url('/assets/fonts/Newsreader_500Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/assets/fonts/Newsreader_500Medium_Italic.ttf') format('truetype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/assets/fonts/Newsreader_600SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url('/assets/fonts/PublicSans_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url('/assets/fonts/PublicSans_500Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url('/assets/fonts/PublicSans_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Noto Naskh Arabic'; src: url('/assets/fonts/NotoNaskhArabic_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }

:root {
  --bg: #f5efe3; --surface: #fbf8f1; --sunken: #ede5d5; --line: #e2d8c5; --line-strong: #d3c6ad;
  --ink: #2b2218; --secondary: #4a3f33; --muted: #6e604b;
  --accent: #5a3e1b; --accent-hover: #47300f; --on-accent: #ffffff; --accent-subtle: #efe3cc; --tile: #e8dcc4; --live: #a8322a; --bezel: #2b2218;
  --serif: 'Newsreader', Georgia, serif; --sans: 'Public Sans', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1611; --surface: #231e17; --sunken: #2c261d; --line: #3a3226; --line-strong: #4a4032;
    --ink: #efe6d6; --secondary: #d6cbb8; --muted: #b0a38c;
    --accent: #d8be92; --accent-hover: #c9ad7e; --on-accent: #2b2218; --accent-subtle: #3a2f20; --tile: #2c261d; --live: #c2453a; --bezel: #0d0b08;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(40px, 7vw, 68px); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.25; font-weight: 600; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand svg { width: 34px; height: auto; color: var(--accent); }
.brand b { font: 600 24px/1 var(--serif); }
.brand span { font: 400 15px/1 'Noto Naskh Arabic', serif; color: var(--muted); padding-top: 4px; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.nav a { color: var(--secondary); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav .lang { border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; font-weight: 500; }
@media (max-width: 640px) { .nav a:not(.lang) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { background: var(--sunken); color: var(--ink); }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding-block: 40px 72px; }
.overline { font: 600 13px/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.lead { font-size: 20px; line-height: 1.55; color: var(--secondary); margin-top: 22px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 16px; }
/* the live screen, drawn in HTML (build.py mock()): same colours and type as the app */
.mock { justify-self: center; width: 300px; max-width: 100%; padding: 9px; border-radius: 46px; background: var(--bezel); box-shadow: 0 0 0 1px var(--line-strong), 0 34px 60px -34px rgba(43, 34, 24, 0.45); }
.m-screen { border-radius: 38px; overflow: hidden; background: var(--bg); color: var(--ink); display: flex; flex-direction: column; }
.m-status { display: flex; align-items: center; justify-content: space-between; padding: 12px 22px 6px 26px; font: 600 13px/1 var(--sans); }
.m-island { width: 84px; height: 24px; border-radius: 12px; background: #000; }
.m-batt { width: 22px; height: 11px; border: 1.5px solid currentColor; border-radius: 3.5px; padding: 1.5px; opacity: .85; }
.m-batt i { display: block; height: 100%; width: 70%; background: currentColor; border-radius: 1px; }
.m-bar { display: flex; align-items: center; gap: 8px; padding: 8px 16px 10px; border-bottom: 1px solid var(--line); font: 500 12px/1 var(--sans); color: var(--muted); }
.m-back { font-size: 22px; line-height: 14px; color: var(--ink); margin-right: 2px; }
.m-live { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; background: var(--live); color: #fff; font: 700 11px/1 var(--sans); letter-spacing: .06em; }
.m-live i { width: 6px; height: 6px; border-radius: 3px; background: #fff; animation: m-blink 1.6s ease-in-out infinite; }
.m-bar b { font: 600 14px/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.m-pair { margin-left: auto; }
.m-body { padding: 4px 16px 6px; }
.m-line { padding: 12px 0; border-bottom: 1px solid var(--line); }
.m-ar { font: 400 17px/1.7 'Noto Naskh Arabic', serif; text-align: right; color: var(--secondary); }
.m-tr { font: 500 17px/1.38 var(--serif); margin-top: 4px; }
.m-verse { margin: 12px 0; padding: 12px 13px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); }
.m-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: var(--accent-subtle); color: var(--accent); font: 600 11px/1.2 var(--sans); }
.m-chip svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.m-verse .m-ar { margin-top: 6px; color: var(--ink); }
.m-meaning { font: italic 500 14px/1.4 var(--serif); color: var(--secondary); margin-top: 4px; }
.m-now { border-bottom: 0; }
.m-listen { font: 700 10px/1 var(--sans); letter-spacing: .12em; color: var(--muted); }
.m-now u { text-decoration: underline dashed var(--line-strong); text-underline-offset: 7px; }
.m-foot { display: flex; gap: 10px; padding: 10px 14px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.m-aa { flex: none; width: 46px; height: 46px; border-radius: 23px; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; gap: 1px; font: 600 15px/1 var(--sans); white-space: nowrap; }
.m-aa small { font-size: 11px; }
.m-stop { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 23px; background: var(--ink); color: var(--bg); font: 600 15px/1 var(--sans); }
.m-stop i { width: 11px; height: 11px; border-radius: 2px; background: currentColor; }
@keyframes m-blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .m-live i { animation: none; } }
@media (max-width: 860px) { .mock { width: 280px; } }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 16px; } }

/* sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head p { color: var(--secondary); margin-top: 14px; font-size: 18px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { counter-increment: step; }
.step::before { content: counter(step); display: inline-flex; width: 40px; height: 40px; border-radius: 20px; align-items: center; justify-content: center; background: var(--accent-subtle); color: var(--accent); font: 600 18px/1 var(--serif); margin-bottom: 14px; }
.step p, .feature p { color: var(--secondary); margin-top: 8px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.feature svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 14px; }
.pro-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--accent-subtle); color: var(--accent); font: 600 12px/1.5 var(--sans); vertical-align: 3px; }
@media (max-width: 860px) { .steps, .features { grid-template-columns: 1fr; } }


/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 900px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.plan.pro { border: 1.5px solid var(--accent); }
.price { font: 500 44px/1 var(--serif); margin: 14px 0 4px; }
.price small { font: 400 16px/1 var(--sans); color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; }
.plan li { padding: 9px 0 9px 28px; border-top: 1px solid var(--line); position: relative; color: var(--secondary); }
.plan li::before { content: ''; position: absolute; left: 2px; top: 16px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.mosques { margin-top: 18px; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* faq */
details { border-top: 1px solid var(--line); padding: 18px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font: 600 18px/1.4 var(--sans); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: '+'; color: var(--accent); font-size: 24px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { color: var(--secondary); margin-top: 10px; max-width: 46em; }

.cta { text-align: center; }
.cta .actions { justify-content: center; }

/* legal pages */
.doc { padding-block: 24px 72px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.doc h2 { font-size: 26px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--secondary); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc .stamp { color: var(--muted); font-size: 15px; }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .row { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--secondary); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer .credits { margin-top: 18px; max-width: 60em; line-height: 1.6; }
