/* Ayanur web: the app's sunset palette (DECISIONS D12): amber sky, cream page, emerald accents, warm ink. */
/* Self-hosted fonts. SIL OFL 1.1, see fonts/OFL-*.txt. No requests to third parties. */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/Jost-Regular.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/Jost-Medium.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("fonts/Jost-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Kaushan Script"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/KaushanScript-Regular.woff2") format("woff2"); }
@font-face { font-family: "Amiri"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/Amiri-Regular.woff2") format("woff2"); }
@font-face { font-family: "Amiri"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/Amiri-Bold.woff2") format("woff2"); }
:root {
  --amber: #EFA23B;
  --gold: #F6C443;
  --haze: #FBE6A8;
  --ember: #E0892A;
  --emerald-900: #173F3D;
  --emerald-800: #1C4F4D;
  --emerald-600: #2F6F6B;
  --cream: #FFF6E3;
  --ink: #2A1C0C;
  --bg: var(--cream);
  --surface: #FFFBF1;
  --line: #EED9A6;
  --text: var(--ink);
  --muted: #6A4E2A;
  --accent: var(--emerald-800);
  --accent-ink: var(--emerald-900);
  --focus: var(--emerald-600);
  --radius: 18px;
  --body: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --brush: "Kaushan Script", "Jost", cursive;
  --arabic: "Amiri", "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
.i18n-wait body { visibility: hidden; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font: 400 18px/1.6 var(--body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Arabic-script interface languages: the app's Arabic face, a little larger. */
:lang(ar) body, :lang(fa) body, :lang(ur) body { font-family: var(--arabic); font-size: 20px; line-height: 1.85; }
:lang(bn) body { line-height: 1.75; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
strong { color: var(--ink); font-weight: 600; }

.skip {
  position: absolute; inset-inline-start: 16px; top: -60px;
  background: var(--accent); color: var(--cream); padding: 10px 14px; border-radius: 8px;
  font-weight: 600; z-index: 10; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { background: var(--amber); border-bottom: 1px solid rgba(42,28,12,.12); }
.top .wrap { display: flex; align-items: center; gap: 10px 20px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-inline-end: auto; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand span { font: 400 30px/1 var(--brush); padding-top: 2px; }
.nav { display: flex; gap: 4px 16px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 6px 2px; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ink); }
.lang { display: inline-flex; align-items: center; gap: 8px; }
.lang label { font-size: 14px; color: var(--ink); }
select, input, textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid #DCC08A; border-radius: 12px;
}
.lang select { padding: 6px 10px; font-size: 15px; max-width: 190px; background: var(--cream); }

/* Content */
main { flex: 1; padding: 0 0 56px; }
main > .wrap:first-child { padding-top: 40px; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font: 400 clamp(38px, 8vw, 64px)/1.15 var(--brush); color: var(--ink); }
/* The brush face has Latin glyphs only. */
:lang(ar) h1, :lang(fa) h1, :lang(ur) h1 { font: 700 clamp(34px, 7vw, 52px)/1.4 var(--arabic); }
:lang(bn) h1, :lang(ru) h1 { font: 600 clamp(32px, 6.5vw, 50px)/1.3 var(--body); }
h2 { font-size: clamp(23px, 4vw, 28px); color: var(--emerald-900); margin-top: 2em; }
h3 { font-size: 20px; color: var(--emerald-800); }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.3em; }
li { margin-bottom: .45em; }
.muted { color: var(--muted); }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); opacity: .8; margin-bottom: 10px; }
:lang(ar) .kicker, :lang(fa) .kicker, :lang(ur) .kicker { letter-spacing: 0; font-size: 17px; text-transform: none; }
.lead { font-size: 19px; color: var(--muted); max-width: 62ch; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 10px 28px -20px rgba(42,28,12,.35); }
.short { border-inline-start: 5px solid var(--amber); margin: 28px 0; }
.short h2 { margin-top: 0; font-size: 21px; }
.short ul { margin: 0; }

/* Landing: the sky fades from amber to cream, as in the app's Today screen. */
.sky { background: linear-gradient(180deg, var(--amber) 0, #F5BE48 38%, #F9D567 64%, var(--haze) 84%, var(--cream) 100%); }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding-top: 44px; padding-bottom: 56px; }
.hero .lead { color: var(--ink); }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; padding-top: 28px; } }
.badge {
  display: inline-block; margin: 8px 0 0; padding: 12px 18px; border-radius: 999px;
  background: var(--emerald-800); color: var(--cream); font-weight: 600; font-size: 16px;
}
.mock { margin: 0; justify-self: center; width: 100%; max-width: 360px; }
.widget {
  border-radius: 26px; padding: 22px 22px 18px; color: var(--ink);
  background: linear-gradient(170deg, #EFA23B 0%, #F6C443 55%, #FBE08A 100%);
  box-shadow: 0 24px 48px -24px rgba(42,28,12,.55), inset 0 0 0 1px rgba(255,255,255,.35);
}
.widget p { margin: 0; }
.w-ar { font: 400 30px/1.7 var(--arabic); text-align: center; }
.w-t { font-size: 17px; line-height: 1.45; text-align: center; margin-top: 6px !important; }
:lang(ar) .w-t, :lang(fa) .w-t, :lang(ur) .w-t { font-size: 19px; }
.w-ref { font-size: 14px; text-align: center; margin-top: 12px !important; opacity: .8; font-weight: 500; }
.mock figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 12px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; margin: 8px 0 28px; padding: 0; list-style: none; }
.features li { margin: 0; }
.features h2 { font-size: 21px; margin: 0 0 6px; color: var(--emerald-800); }
.features p { margin: 0; }
.plans { border-top: 5px solid var(--emerald-600); }
.plans h2 { margin-top: 0; }
.plans p:last-child { margin-bottom: 0; }

/* Privacy */
.items h3 { margin-top: 1.4em; }
.procs { list-style: none; padding: 0; display: grid; gap: 12px; }
.procs li { margin: 0; }
.procs h3 { margin: 0 0 8px; }
.procs dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; }
.procs dt { color: var(--muted); font-size: 15px; font-weight: 500; }
.procs dd { margin: 0; }
@media (max-width: 560px) { .procs dl { grid-template-columns: 1fr; } .procs dd { margin-bottom: 6px; } }
.updated { color: var(--muted); }

/* Support */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; position: relative; padding-inline-end: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 20px; top: 12px; font: 500 26px/1 var(--body); color: var(--ember); }
.faq details[open] summary::after { content: "\2212"; }
.faq .ans { padding: 0 20px 14px; }
form .field { margin-bottom: 16px; }
form label { display: block; font-weight: 600; margin-bottom: 6px; }
input, textarea, form select { width: 100%; padding: 12px 14px; }
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
.hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
button {
  font: 600 18px/1 var(--body); letter-spacing: .02em;
  background: var(--emerald-800); color: var(--cream); border: 0; border-radius: 999px; padding: 16px 28px; cursor: pointer;
}
:lang(ar) button, :lang(fa) button, :lang(ur) button { font-family: var(--arabic); font-size: 20px; }
button:hover { background: var(--emerald-900); }
.formnote { font-size: 15px; color: var(--muted); margin-top: 14px; }
.sent { border-inline-start: 5px solid var(--emerald-600); margin-bottom: 24px; }
.sent h2 { margin: 0 0 6px; font-size: 22px; }
.sent p { margin: 0; }
[hidden] { display: none !important; }

/* Footer */
.foot { background: var(--emerald-900); color: #F3E6C8; padding: 24px 0 32px; font-size: 15px; }
.foot a { color: var(--gold); }
.foot p { margin: 0 0 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }

/* Blog (D63) */
.post { max-width: 760px; padding-top: 28px; }
.post h1 { font: 600 clamp(32px, 6vw, 46px)/1.15 var(--body); color: var(--emerald-900); margin-top: 8px; }
.crumbs { font-size: 15px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.meta { font-size: 15px; color: var(--muted); margin: 0 0 8px; }
.post .short { margin-top: 20px; }
.post .short p:last-child { margin-bottom: 0; }
.cover { display: block; width: 100%; height: auto; border-radius: var(--radius); margin: 24px 0 8px; }
.post .body h2, .post .long h2 { margin-top: 1.6em; }
.post .body img { max-width: 100%; height: auto; }
.post table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 16px; display: block; overflow-x: auto; }
.post th, .post td { border: 1px solid var(--line); padding: 8px 10px; text-align: start; vertical-align: top; }
.post th { background: var(--surface); }
.ayah { margin: 24px 0; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-inline-start: 5px solid var(--emerald-600); }
.ayah-ar { font: 400 28px/1.9 var(--arabic); text-align: right; margin: 0 0 8px; color: var(--ink); }
.ayah-en { margin: 0; font-size: 18px; }
.ayah-en p { margin: 0; }
.ayah-en sup { color: var(--muted); font-size: 12px; }
.ayah figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); font-weight: 500; }
.product { margin-top: 36px; border-top: 5px solid var(--amber); }
.product h2 { margin-top: 0; }
.cta { margin: 16px 0 0; }
.store {
  display: inline-block; background: var(--emerald-800); color: var(--cream); text-decoration: none;
  font-weight: 600; padding: 14px 22px; border-radius: 999px;
}
.store:hover { background: var(--emerald-900); }
.posts { list-style: none; padding: 0; display: grid; gap: 16px; margin: 24px 0; }
.posts li { margin: 0; }
.post-card { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; padding: 14px; }
.post-card img { width: 100%; height: auto; border-radius: 12px; display: block; }
.post-card h2 { font-size: 21px; margin: 0 0 6px; }
.post-card h2 a { color: var(--emerald-900); text-decoration: none; }
.post-card p { margin: 0 0 4px; font-size: 16px; }
@media (max-width: 560px) { .post-card { grid-template-columns: 1fr; } }
.hero .store { margin-top: 8px; }
.cta-inline { margin: 32px 0; border-top: 5px solid var(--amber); }
.cta-inline p { margin: 0; }
.cta-inline .cta { margin-top: 14px; }
