/* ==========================================================================
   TafsirKurd 2.0 — design system (public website; the app is untouched)
   Brief: redesign/BRIEF.md

   Voice: a Kurdish Islamic platform. Kurdish type is the headline voice, Hafs is
   the Quran, IBM Plex carries all Kurdish. Cream is the canvas, green is identity,
   sand is structure. The hero sky follows the real prayer day.

   Performance floor (Samsung A25): no infinite animations; no box-shadow/filter
   keyframes; no backdrop-filter on anything that scrolls; motion = transform +
   opacity only; content is visible without JavaScript.
   ========================================================================== */

/* ── tokens ─────────────────────────────────────────────────────────────── */
:root {
  --green: #1A5C3A; --green-deep: #134630; --green-ink: #0F3A25; --green-soft: #2E7550;
  --cream: #F4E8CC; --paper: #FBF5E6; --sand: #D5C4A2; --sand-deep: #B9A57C;
  --ink: #1F2A22; --ink-2: #3A463C; --muted: #5E6655;
  --line: rgba(150, 128, 88, .30); --line-strong: rgba(150, 128, 88, .55);
  --wash: rgba(26, 92, 58, .07); --wash-2: rgba(26, 92, 58, .12);
  --surface: #FBF5E6; --surface-2: #F7EDD5;
  --on-green: #F4E8CC;
  --focus: #1A5C3A; --error: #9B3B2E;

  --f-ui: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --f-read: 'IBM Plex Sans Arabic', system-ui, sans-serif;   /* Kurdish reading text: one font site-wide */
  --f-ar: 'Scheherazade New', 'IBM Plex Sans Arabic', serif;  /* Arabic (non-Quran) titles */
  --f-quran: 'KFGQPC Hafs', 'Scheherazade New', serif;
  --f-surah: 'SurahName';

  --t-xs: .75rem; --t-sm: .875rem; --t-md: 1rem; --t-lg: 1.125rem;
  --t-xl: clamp(1.25rem, .5vw + 1.1rem, 1.5rem);
  --t-h3: clamp(1.25rem, .8vw + 1.05rem, 1.75rem);
  --t-h2: clamp(1.75rem, 2vw + 1.1rem, 3rem);
  --t-display: clamp(2.5rem, 4.6vw + 1rem, 5.5rem);        /* Kurdish hero statement */
  --t-quran: clamp(1.625rem, 1.2vw + 1.3rem, 2.5rem);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --gutter: clamp(16px, 4vw, 48px);
  --page: 1240px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-xl: 28px;
  --shadow-1: 0 1px 2px rgba(15, 58, 37, .06), 0 8px 24px -12px rgba(15, 58, 37, .18);
  --shadow-2: 0 2px 4px rgba(15, 58, 37, .06), 0 24px 48px -20px rgba(15, 58, 37, .30);
  --shadow-device: 0 40px 80px -30px rgba(8, 24, 16, .55);

  --ease: cubic-bezier(.22, .8, .26, 1); --ease-in: cubic-bezier(.45, 0, .85, .4);
  --d1: 160ms; --d2: 240ms; --d3: 360ms; --d4: 640ms; --d5: 1000ms;
  --nav-h: 68px; --tab-h: 64px;
  color-scheme: light;
}
:root[data-theme="sakina"] {
  --green: #6FB08C; --green-deep: #8CC4A4; --green-ink: #B7DCC6; --green-soft: #8CC4A4;
  --cream: #0E1A14; --paper: #13221A; --sand: #3A4A3E; --sand-deep: #53654F;
  --ink: #ECE2CA; --ink-2: #D7CDB4; --muted: #A7A08A;
  --line: rgba(213, 196, 162, .14); --line-strong: rgba(213, 196, 162, .26);
  --wash: rgba(111, 176, 140, .09); --wash-2: rgba(111, 176, 140, .16);
  --surface: #13221A; --surface-2: #182A20; --on-green: #0B1510; --focus: #8CC4A4; --error: #E08A7A;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -20px rgba(0, 0, 0, .65);
  color-scheme: dark;
}

/* the sky: five palettes, keyed to the real prayer phase */
:root { --sky-1: #F7EDD4; --sky-2: #F4E8CC; --sky-3: #EADBB8; --r1: #D5C4A2; --r2: #BFA97F; --r3: #1A5C3A; --orb: #FFF6DC;
  --orb-x: 22%; --orb-y: 30%; --hero-ink: #0F3A25; --hero-ink-2: #3A463C; --hero-glow: rgba(255, 240, 200, .8); }
[data-phase="fajr"]    { --sky-1: #DCE3D6; --sky-2: #EFE3C9; --sky-3: #F2D9B8; --r1: #C7B79A; --r2: #9C8F76; --r3: #2B4A38; --orb: #FFE9C2; --orb-x: 14%; --orb-y: 66%; --hero-glow: rgba(255, 226, 180, .7); }
[data-phase="day"]     { --sky-1: #F9F1DE; --sky-2: #F4E8CC; --sky-3: #EBDCBB; --r1: #D5C4A2; --r2: #BCA67C; --r3: #1A5C3A; --orb: #FFF8E4; --orb-x: 30%; --orb-y: 14%; }
[data-phase="asr"]     { --sky-1: #F6E6C5; --sky-2: #F0D9AE; --sky-3: #E6C48E; --r1: #CDB287; --r2: #A98C5E; --r3: #1D4E35; --orb: #FFE0A8; --orb-x: 10%; --orb-y: 34%; --hero-glow: rgba(255, 214, 150, .7); }
[data-phase="maghrib"] { --sky-1: #1A3326; --sky-2: #3B4A36; --sky-3: #B98A5A; --r1: #4A5A45; --r2: #2A3B2F; --r3: #0E1A14; --orb: #F2B77A; --orb-x: 8%; --orb-y: 70%;
  --hero-ink: #F4E8CC; --hero-ink-2: #E6D8B8; --hero-glow: rgba(242, 183, 122, .45); }
[data-phase="night"]   { --sky-1: #0B1510; --sky-2: #0E1A14; --sky-3: #16301F; --r1: #1B3325; --r2: #13261B; --r3: #0A140F; --orb: #EFE6CF; --orb-x: 34%; --orb-y: 14%;
  --hero-ink: #F4E8CC; --hero-ink-2: #D7CDB4; --hero-glow: rgba(239, 230, 207, .25); }

@media (max-width: 900px) { :root { --nav-h: 60px; } }

/* ── base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--cream); scroll-padding-top: calc(var(--nav-h) + 12px); }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 var(--t-md)/1.75 var(--f-ui);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--d4) var(--ease), color var(--d4) var(--ease); }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--green); text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--wash-2); }
[hidden] { display: none !important; }
.tk-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tk-skip { position: absolute; inset-inline-start: 16px; top: -120px; z-index: 200; background: var(--green); color: var(--on-green); padding: 8px 16px; border-radius: 8px; }
.tk-skip:focus { top: 12px; }
.tk-latin { direction: ltr; unicode-bidi: isolate; letter-spacing: .02em; }
.tk-num { font-variant-numeric: tabular-nums; }
.tk-wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }
.tk-icon { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tk-logo { display: block; height: 40px; aspect-ratio: 352 / 224; background: var(--green);
  -webkit-mask: url('/assets/images/tk2-logo-mask.png') center / contain no-repeat; mask: url('/assets/images/tk2-logo-mask.png') center / contain no-repeat; }

/* ── scrollbars: one quiet style everywhere (page, lists, rails) ─────────
   Firefox + Chrome/Edge 121+ use scrollbar-width/-color; Safari uses the
   ::-webkit-scrollbar rules. Rails that hide their bar keep scrollbar-width:none. */
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--sand-deep) 75%, transparent) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track, *::-webkit-scrollbar-corner { background: transparent; }
*::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--sand-deep) 75%, transparent); border: 3px solid transparent; border-radius: 999px; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background-color: var(--green-soft); }

/* ── buttons ────────────────────────────────────────────────────────────── */
.tk-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5);
  border-radius: var(--r-sm); font-weight: 600; font-size: var(--t-sm); line-height: 1; white-space: nowrap;
  transition: background-color var(--d1) var(--ease), color var(--d1) var(--ease), transform var(--d1) var(--ease), border-color var(--d1) var(--ease); }
.tk-btn:active { transform: scale(.98); }
.tk-btn--primary { background: var(--green); color: var(--on-green); }
.tk-btn--primary:hover { background: var(--green-deep); color: var(--on-green); }
.tk-btn--ghost { border: 1px solid var(--line-strong); color: var(--green-ink); }
.tk-btn--ghost:hover { border-color: var(--green); color: var(--green); }
.tk-btn--sm { min-height: 40px; padding: 0 var(--s4); }
.tk-link { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; font-size: var(--t-sm); }
.tk-link .tk-icon { transition: transform var(--d2) var(--ease); }
.tk-link:hover .tk-icon { transform: translateX(-4px); }
.tk-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink-2); font-size: var(--t-sm); background: var(--surface); transition: all var(--d1) var(--ease); white-space: nowrap; }
.tk-chip:hover { border-color: var(--green); color: var(--green); }
/* touch screens: every tappable control reaches 44px (WCAG 2.5.5); mouse layouts keep their density */
@media (pointer: coarse) {
  .tk-chip, .tk-btn--sm, .tk-nav__top { min-height: 44px; }
}
.tk-chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--on-green); }

/* ── open-in-app bar (mobile only, dismissible) ─────────────────────────── */
.tk-appbar { display: none; }
@media (max-width: 900px) {
  .tk-appbar { display: flex; align-items: center; gap: var(--s3); padding: 8px var(--gutter); background: var(--surface-2); border-bottom: 1px solid var(--line);
    font-size: var(--t-sm); }
  .tk-appbar__icon { width: 36px; height: 36px; border-radius: 9px; background: var(--green); flex: none; display: grid; place-items: center; }
  .tk-appbar__icon .tk-logo { height: 18px; background: var(--on-green); }
  .tk-appbar__text { flex: 1; line-height: 1.35; } .tk-appbar__text small { display: block; color: var(--muted); font-size: var(--t-xs); }
}
/* shown from the first paint (html.tk-appbar-on is set in <head>), so the page never jumps down when it appears */
@media (max-width: 900px) { html.tk-appbar-on .tk-appbar[hidden] { display: flex; } }

/* ── masthead + dropdown panels ─────────────────────────────────────────── */
.tk-nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: var(--cream);
  transition: box-shadow var(--d2) var(--ease), background-color var(--d4) var(--ease); }
.tk-nav.is-stuck { box-shadow: 0 1px 0 var(--line); }
.tk-nav__in { height: 100%; display: flex; align-items: center; gap: var(--s5); }
.tk-nav__brand { flex: none; }
.tk-nav__menu { display: flex; align-items: center; gap: 2px; margin-inline-start: var(--s4); }
.tk-nav__item { position: relative; }
.tk-nav__top { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border-radius: var(--r-sm); color: var(--ink-2);
  font-weight: 500; font-size: var(--t-sm); transition: background-color var(--d1) var(--ease), color var(--d1) var(--ease); }
.tk-nav__top:hover, .tk-nav__item.is-open .tk-nav__top { background: var(--wash); color: var(--green-ink); }
.tk-nav__top[aria-current="page"] { color: var(--green); }
.tk-nav__top .tk-icon { width: 14px; height: 14px; transition: transform var(--d2) var(--ease); }
.tk-nav__item.is-open .tk-nav__top .tk-icon { transform: rotate(180deg); }
.tk-panel { position: absolute; top: calc(100% + 10px); inset-inline-start: -12px; width: min(560px, 90vw); padding: var(--s4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden;
  transition: opacity var(--d2) var(--ease), transform var(--d2) var(--ease), visibility 0s linear var(--d2); }
.tk-nav__item.is-open .tk-panel { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.tk-panel a { display: grid; grid-template-columns: 36px 1fr; gap: 2px 12px; align-items: start; padding: 10px 12px; border-radius: var(--r-md); color: var(--ink); }
.tk-panel a:hover { background: var(--wash); }
.tk-panel a > .tk-icon { grid-row: span 2; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--wash); color: var(--green); }
.tk-panel b { font-weight: 600; font-size: var(--t-sm); } .tk-panel small { color: var(--muted); font-size: var(--t-xs); line-height: 1.5; }
.tk-panel__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding: 12px 12px 4px;
  border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--muted); }
.tk-nav__tools { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.tk-iconbtn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--r-sm); color: var(--ink-2);
  transition: background-color var(--d1) var(--ease), color var(--d1) var(--ease); }
.tk-iconbtn:hover { background: var(--wash); color: var(--green); }
.tk-searchbtn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; min-width: 220px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); font-size: var(--t-sm); transition: border-color var(--d1) var(--ease); }
.tk-searchbtn:hover { border-color: var(--green); color: var(--green-ink); }
.tk-searchbtn kbd { margin-inline-start: auto; font: 500 11px/1 var(--f-ui); border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; color: var(--muted); }
@media (max-width: 1100px) { .tk-searchbtn { min-width: 0; } .tk-searchbtn span, .tk-searchbtn kbd { display: none; } .tk-searchbtn { width: 44px; padding: 0; justify-content: center; border: 0; } }
@media (max-width: 900px) { .tk-nav__menu, .tk-nav__desk { display: none; } .tk-nav .tk-logo { height: 34px; } }

/* ── account (header button + menu, phone "More" card) ─────────────────── */
.tk-acct { position: relative; }
.tk-acct__btn { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; transition: background-color var(--d1) var(--ease); }
.tk-acct__btn:hover, .tk-acct__btn[aria-expanded="true"] { background: var(--wash); }
.tk-acct__av { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center; flex: none; background: var(--green); color: var(--on-green);
  font: 700 var(--t-sm)/1 var(--f-ui); }
.tk-acct__av img { width: 100%; height: 100%; object-fit: cover; }
.tk-acct__av .tk-icon { width: 20px; height: 20px; }
.tk-acct__av--lg { width: 46px; height: 46px; font-size: var(--t-lg); }
.tk-acct__pop { width: 270px; padding: var(--s3); }
.tk-acct__who { display: flex; align-items: center; gap: 12px; padding: 6px 6px var(--s3); margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.tk-acct__who > span:last-child { display: grid; min-width: 0; line-height: 1.35; }
.tk-acct__who b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-acct__who small { color: var(--muted); font-size: var(--t-xs); direction: ltr; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-acct__menu { display: grid; gap: 2px; }
.tk-acct__menu a, .tk-acct__menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 10px; border-radius: var(--r-sm); color: var(--ink);
  font-size: var(--t-sm); text-align: start; transition: background-color var(--d1) var(--ease); }
.tk-acct__menu a:hover, .tk-acct__menu button:hover { background: var(--wash); }
.tk-acct__menu .tk-icon { color: var(--green); }
.tk-acct__menu [data-signout] { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-sm) var(--r-sm); color: var(--error); }
.tk-acct__menu [data-signout] .tk-icon { color: var(--error); }
.tk-sheet__acct { display: flex; align-items: center; gap: 12px; padding: var(--s3) var(--s4); margin-bottom: var(--s4); border-radius: var(--r-lg); background: var(--wash); }
.tk-sheet__acct > span:nth-child(2) { flex: 1; min-width: 0; display: grid; line-height: 1.4; }
.tk-sheet__acct b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-sheet__acct small { color: var(--muted); font-size: var(--t-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-sheet__grid button { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: var(--r-md); background: var(--wash); color: var(--ink); font-size: var(--t-xs); font-weight: 500; text-align: center; }
.tk-sheet__grid button .tk-icon { width: 26px; height: 26px; color: var(--error); }
@media (max-width: 1100px) { .tk-acct__login span { display: none; } .tk-acct__login { width: 44px; padding: 0; border: 0; } }

/* ── mobile tab bar ─────────────────────────────────────────────────────── */
.tk-tabs { display: none; }
@media (max-width: 900px) {
  body { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  .tk-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; z-index: 55; inset-inline: 0; bottom: 0;
    height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--surface); border-top: 1px solid var(--line); }
  .tk-tabs a, .tk-tabs button { display: grid; justify-items: center; align-content: center; gap: 2px; color: var(--muted); font-size: 11px; font-weight: 500;
    transition: color var(--d1) var(--ease); }
  .tk-tabs .tk-icon { width: 24px; height: 24px; }
  .tk-tabs [aria-current="page"] { color: var(--green); }
  .tk-tabs [aria-current="page"] .tk-icon { stroke-width: 2; }
}

/* ── sheets ─────────────────────────────────────────────────────────────── */
.tk-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(8, 20, 14, .42); opacity: 0; transition: opacity var(--d3) var(--ease); }
.tk-scrim.is-open { opacity: 1; }
.tk-sheet { position: fixed; z-index: 81; inset-inline: 0; bottom: 0; max-height: 90dvh; overflow: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-2);
  padding: 10px var(--gutter) calc(24px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform var(--d3) var(--ease); }
.tk-sheet.is-open { transform: none; }
.tk-sheet.is-closing { transition-duration: var(--d2); transition-timing-function: var(--ease-in); }
.tk-sheet__grip { width: 40px; height: 5px; border-radius: 3px; background: var(--sand); margin: 0 auto 14px; }
.tk-sheet__title { font-weight: 700; font-size: var(--t-sm); color: var(--muted); margin: var(--s5) 0 var(--s2); }
.tk-sheet__title:first-of-type { margin-top: var(--s3); }
/* quiet last row: settings, about, sign out — rows, not tiles */
.tk-sheet__links { display: grid; margin-top: var(--s5); border-top: 1px solid var(--line); }
.tk-sheet__links a, .tk-sheet__links button { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 var(--s2); color: var(--ink-2); font-size: var(--t-sm); text-align: start; width: 100%; }
.tk-sheet__links .tk-icon { width: 20px; height: 20px; color: var(--muted); }
.tk-sheet__links button { color: var(--error); } .tk-sheet__links button .tk-icon { color: var(--error); }
.tk-sheet__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tk-sheet__grid a { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: var(--r-md); background: var(--wash); color: var(--ink);
  font-size: var(--t-xs); font-weight: 500; text-align: center; }
.tk-sheet__grid .tk-icon { width: 26px; height: 26px; color: var(--green); }
.tk-sheet__sec { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); }
.tk-sheet__label { display: block; color: var(--muted); font-size: var(--t-xs); margin-bottom: 8px; }
@media (min-width: 901px) {
  .tk-sheet--search { inset: calc(var(--nav-h) + 8px) 0 auto; margin-inline: auto; width: min(760px, calc(100% - 2 * var(--gutter)));
    border-radius: var(--r-lg); transform: translateY(-10px); opacity: 0; max-height: 76vh; transition: transform var(--d2) var(--ease), opacity var(--d2) var(--ease); }
  .tk-sheet--search.is-open { transform: none; opacity: 1; }
  .tk-sheet--search .tk-sheet__grip { display: none; }
}

/* theme options (segmented, 4 choices) */
.tk-themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tk-themes button { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: var(--r-md); border: 1px solid var(--line);
  font-size: var(--t-xs); color: var(--ink-2); transition: all var(--d1) var(--ease); }
.tk-themes button[aria-pressed="true"] { border-color: var(--green); background: var(--wash); color: var(--green); font-weight: 600; }
.tk-popover { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; width: 300px; padding: var(--s4); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); z-index: 60; }

/* ── universal search ───────────────────────────────────────────────────── */
.tk-search { position: relative; }
.tk-search__field { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 18px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-1); transition: border-color var(--d1) var(--ease), box-shadow var(--d2) var(--ease); }
.tk-search__field:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px var(--wash-2), var(--shadow-1); }
.tk-search__field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: var(--t-lg); }
.tk-search__field input::placeholder { color: var(--muted); }
.tk-search__field .tk-icon { color: var(--green); }
.tk-scopes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tk-scopes .tk-chip { min-height: 32px; font-size: var(--t-xs); }
.tk-results { margin-top: var(--s4); display: grid; gap: var(--s4); }
.tk-results__group h4 { margin: 0 0 6px; font-size: var(--t-xs); color: var(--muted); font-weight: 600; }
.tk-results__group a { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-md); color: var(--ink); }
.tk-results__group a:hover, .tk-results__group a[aria-selected="true"] { background: var(--wash); }
.tk-results__thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--wash); display: grid; place-items: center; color: var(--green); font-family: var(--f-quran); }
.tk-results__t { font-weight: 500; line-height: 1.4; } .tk-results__t small { display: block; color: var(--muted); font-size: var(--t-xs); font-weight: 400; }
.tk-results mark { background: none; color: var(--green); font-weight: 700; }
.tk-results__empty { color: var(--muted); font-size: var(--t-sm); padding: 8px 10px; }

/* ── HERO: the platform, under the real sky ─────────────────────────────── */
.tk-hero { position: relative; overflow: hidden; isolation: isolate; color: var(--hero-ink);
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 52%, var(--sky-3) 100%); }
.tk-hero__orb { position: absolute; z-index: -1; left: var(--orb-x); top: var(--orb-y); width: 140px; height: 140px; border-radius: 50%;
  background: var(--orb); box-shadow: 0 0 120px 60px var(--hero-glow); transform: translate(-50%, -50%); transition: left var(--d5) var(--ease), top var(--d5) var(--ease), background-color var(--d5) var(--ease); }
.tk-hero__ridges { position: absolute; z-index: -1; inset-inline: 0; bottom: 0; width: 100%; height: 30%; min-height: 170px; }
.tk-hero__ridges path { transition: fill var(--d5) var(--ease); }
.tk-hero__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: var(--s8); align-items: center;
  min-height: min(860px, calc(100svh - var(--nav-h))); padding-block: var(--s8) var(--s10); }
.tk-hero__status { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: var(--t-sm); color: var(--hero-ink-2); font-weight: 500; }
.tk-hero__status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orb); box-shadow: 0 0 0 4px rgba(255, 255, 255, .18); }
.tk-hero__status select { appearance: none; border: 0; background: transparent; color: inherit; font-weight: 600; text-decoration: underline;
  text-decoration-color: currentColor; text-underline-offset: 4px; cursor: pointer; padding: 0; }
.tk-hero__status select option { color: #1F2A22; }
.tk-hero h1 { font: 700 var(--t-display)/1.12 var(--f-ui); margin: var(--s4) 0 var(--s4); color: var(--hero-ink); text-wrap: balance; }
.tk-hero h1 em { font-style: normal; color: var(--green); }
[data-phase="maghrib"] .tk-hero h1 em, [data-phase="night"] .tk-hero h1 em { color: #8CC4A4; }
.tk-hero__lede { font-size: var(--t-xl); line-height: 1.7; color: var(--hero-ink-2); max-width: 36rem; margin: 0 0 var(--s6); }
.tk-hero .tk-search { max-width: 40rem; }
.tk-hero__cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
[data-phase="maghrib"] .tk-hero .tk-btn--ghost, [data-phase="night"] .tk-hero .tk-btn--ghost { color: #F4E8CC; border-color: rgba(244, 232, 204, .35); }
/* the Quran, beside the statement */
.tk-hero__quran { justify-self: center; width: min(420px, 100%); padding: var(--s6) var(--s6) var(--s5); border-radius: var(--r-xl);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-device); border: 1px solid var(--line); text-align: center; position: relative; }
.tk-hero__quran::before { content: ''; position: absolute; inset: 10px; border: 1px solid var(--line); border-radius: calc(var(--r-xl) - 8px); pointer-events: none; }
.tk-hero__quran .tk-kick { font-size: var(--t-xs); color: var(--muted); font-weight: 600; }
.tk-hero__ayah { font: 400 clamp(1.6rem, 1vw + 1.35rem, 2.1rem)/2 var(--f-quran); margin: var(--s3) 0 var(--s2); color: var(--ink); }
.tk-hero__ref { color: var(--green); font-size: var(--t-sm); font-weight: 600; }
.tk-hero__meaning { font: 400 1.125rem/1.9 var(--f-read); color: var(--ink-2); margin: var(--s3) 0 var(--s4); display: -webkit-box; -webkit-line-clamp: 4;
  -webkit-box-orient: vertical; overflow: hidden; }
.tk-end { color: var(--green); font-size: .8em; white-space: nowrap; }
@media (max-width: 900px) {
  .tk-hero__in { grid-template-columns: 1fr; gap: var(--s6); min-height: 0; padding-block: var(--s6) 180px; }
  .tk-hero__orb { width: 70px; height: 70px; left: 14%; top: 5%; }
  .tk-hero__lede { margin-bottom: var(--s5); }
  .tk-hero__cta .tk-btn { flex: 1 1 10rem; }
  .tk-hero__ridges { height: 220px; min-height: 0; }
}

/* ── stats strip: real, live numbers ────────────────────────────────────── */
.tk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-block: 1px solid var(--line); }   /* live cells that fail stay hidden — no empty columns */
.tk-stats div { padding: var(--s5) var(--s4); border-inline-start: 1px solid var(--line); }
.tk-stats div:first-child { border: 0; }
.tk-stats b { display: block; font: 700 clamp(1.5rem, 1.6vw + 1rem, 2.5rem)/1.1 var(--f-ui); color: var(--green-ink); font-variant-numeric: tabular-nums; }
.tk-stats span { color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 900px) { .tk-stats { grid-template-columns: repeat(2, 1fr); } .tk-stats div:nth-child(odd) { border-inline-start: 0; }
  .tk-stats div { border-top: 1px solid var(--line); } .tk-stats div:nth-child(-n+2) { border-top: 0; } .tk-stats div:last-child { grid-column: 1 / -1; border-inline-start: 0; } }

/* ── sections ───────────────────────────────────────────────────────────── */
.tk-sec { padding-block: var(--s10) 0; }
.tk-sec:last-of-type { padding-bottom: var(--s10); }
.tk-sec__head { display: flex; align-items: end; justify-content: space-between; gap: var(--s5); margin-bottom: var(--s7); flex-wrap: wrap; }
.tk-sec__kick { display: flex; align-items: center; gap: 10px; color: var(--green); font-weight: 700; font-size: var(--t-sm); }
.tk-sec__kick i { font-style: normal; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--wash); }
.tk-sec__kick i .tk-icon { width: 16px; height: 16px; }   /* each section's own sign — numbers broke when an empty section hid itself */
.tk-sec h2 { font: 700 var(--t-h2)/1.25 var(--f-ui); color: var(--green-ink); margin: var(--s3) 0 0; max-width: 20ch; text-wrap: balance; }
.tk-sec__lede { color: var(--ink-2); font-size: var(--t-lg); max-width: 38rem; margin: var(--s3) 0 0; }
@media (max-width: 900px) { .tk-sec { padding-top: var(--s8); } .tk-sec__head { margin-bottom: var(--s5); } }

/* ── 1 · Quran ──────────────────────────────────────────────────────────── */
.tk-quran { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s8); align-items: start; }
.tk-continue { display: flex; align-items: center; gap: var(--s4); padding: var(--s4) var(--s5); border-radius: var(--r-lg); background: var(--green); color: var(--on-green);
  margin-bottom: var(--s5); transition: transform var(--d2) var(--ease); }
.tk-continue:hover { transform: translateY(-2px); color: var(--on-green); }
.tk-continue__surah { font: 2.4rem/1 var(--f-surah); }
.tk-continue__txt { flex: 1; line-height: 1.4; } .tk-continue__txt small { display: block; opacity: .8; font-size: var(--t-xs); }
.tk-picker__search { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); }
.tk-picker__search input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; }
.tk-picker__search:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px var(--wash-2); }   /* the input drops its outline; the field shows focus */
.tk-picker__list { list-style: none; margin: var(--s3) 0 0; padding: 0; max-height: 420px; overflow: auto; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--surface); scrollbar-width: thin; }
.tk-picker__list a { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; color: var(--ink); border-bottom: 1px solid var(--line); }
.tk-picker__list li:last-child a { border-bottom: 0; }
.tk-picker__list a:hover { background: var(--wash); }
.tk-picker__n { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 4px; border-radius: 9px; background: var(--wash);
  font: 600 var(--t-xs)/1 var(--f-ui); color: var(--ink-2); font-variant-numeric: tabular-nums; direction: ltr; }
.tk-picker__ar { font: 1.8rem/1.1 var(--f-surah); }
.tk-picker__meta { color: var(--muted); font-size: var(--t-xs); }
.tk-picker__popular { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s4); }
.tk-picker__foot { display: flex; justify-content: space-between; align-items: center; margin-top: var(--s4); gap: var(--s3); flex-wrap: wrap; }
/* the cinematic moment: ayah → Kurdish meaning, told on scroll */
.tk-story { position: relative; }
.tk-story__stage { position: sticky; top: calc(var(--nav-h) + 24px); padding: var(--s7) var(--s6); border-radius: var(--r-xl); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-2); text-align: center; overflow: hidden; }
.tk-story__bar { position: absolute; inset: 0 0 auto; height: 3px; background: var(--line); }
.tk-story__bar i { display: block; height: 100%; width: 0; background: var(--green); transition: width var(--d4) var(--ease); }
.tk-story[data-step="1"] .tk-story__bar i { width: 34%; } .tk-story[data-step="2"] .tk-story__bar i { width: 67%; } .tk-story[data-step="3"] .tk-story__bar i { width: 100%; }
.tk-story__label { font-size: var(--t-xs); font-weight: 700; color: var(--green); letter-spacing: 0; }
.tk-story__ayah { font: 400 var(--t-quran)/2.05 var(--f-quran); margin: var(--s4) 0; color: var(--ink); }
.tk-story__ayah .w { transition: color var(--d4) var(--ease), background-color var(--d4) var(--ease); border-radius: 6px; }
.tk-story[data-step="1"] .tk-story__ayah .w, .tk-story[data-step="2"] .tk-story__ayah .w, .tk-story[data-step="3"] .tk-story__ayah .w { color: var(--green-ink); }
.tk-story__tafsir { font: 400 1.25rem/1.95 var(--f-read); color: var(--ink-2); max-width: 34rem; margin: 0 auto;
  clip-path: inset(0 0 100% 0); opacity: 0; transition: clip-path var(--d5) var(--ease), opacity var(--d4) var(--ease); }
.tk-story[data-step="2"] .tk-story__tafsir, .tk-story[data-step="3"] .tk-story__tafsir { clip-path: inset(0 0 0 0); opacity: 1; }
.tk-story__tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: var(--s5); opacity: 0; transform: translateY(8px); transition: opacity var(--d3) var(--ease), transform var(--d3) var(--ease); }
.tk-story[data-step="3"] .tk-story__tools { opacity: 1; transform: none; }
.tk-story__tools span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--wash); color: var(--green); font-size: var(--t-xs); font-weight: 600; }
.tk-story__steps { position: absolute; inset: 0; pointer-events: none; }
.tk-story__steps i { position: absolute; left: 0; width: 1px; height: 1px; }
@media (min-width: 901px) { .tk-story { height: 170vh; } .tk-quran > div:first-child { position: sticky; top: calc(var(--nav-h) + 24px); } }
@media (max-width: 900px) { .tk-quran { grid-template-columns: 1fr; gap: var(--s6); } .tk-story__stage { position: relative; top: 0; padding: var(--s6) var(--s4); } }

/* ── 2 · IslamVoice: featured + rows ────────────────────────────────────── */
.tk-feature { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); border-radius: var(--r-xl); overflow: hidden;
  background: #0E1A14; color: #F4E8CC; min-height: 380px; }
.tk-feature__media { position: relative; overflow: hidden; }
.tk-feature__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease); }
.tk-feature:hover .tk-feature__media img { transform: scale(1.06); }
.tk-feature__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(14, 26, 20, 0) 40%, #0E1A14 100%); }
.tk-feature__body { padding: var(--s7) var(--s6); display: flex; flex-direction: column; justify-content: center; gap: var(--s3); }
.tk-feature__tag { color: #8CC4A4; font-weight: 700; font-size: var(--t-xs); }
.tk-feature__title { font: 700 clamp(1.5rem, 1.4vw + 1.1rem, 2.4rem)/1.3 var(--f-ui); margin: 0; }
.tk-feature__by { color: #D7CDB4; } .tk-feature .tk-btn--primary { background: #F4E8CC; color: #0F3A25; align-self: flex-start; margin-top: var(--s3); }
.tk-play { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(244, 232, 204, .92); color: #0F3A25;
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; transition: transform var(--d2) var(--ease); }
.tk-feature:hover .tk-play { transform: translate(-50%, -50%) scale(1.08); }
/* 9:16 promo card: poster, then the video plays muted (looping) as the card scrolls in; tap = sound on/off */
.tk-promo { position: relative; display: block; overflow: hidden; padding: 0; border: 0; background: #0E1A14; color: inherit; cursor: pointer; text-align: center; }
.tk-promo img, .tk-promo video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tk-promo video { position: absolute; inset: 0; opacity: 0; transition: opacity var(--d3) var(--ease); }
.tk-promo.is-on video { opacity: 1; }
.tk-promo__snd { position: absolute; bottom: 12px; inset-inline-end: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(8, 20, 14, .72); color: #F4E8CC; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .6); transition: transform var(--d2) var(--ease); }
.tk-promo:hover .tk-promo__snd { transform: scale(1.08); }
.tk-promo .snd-on, .tk-promo.is-sound .snd-off { display: none; }
.tk-promo.is-sound .snd-on { display: block; }
.tk-row { margin-top: var(--s7); }
.tk-row__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s4); }
.tk-row__head h3 { margin: 0; font-size: var(--t-xl); font-weight: 700; color: var(--green-ink); }
.tk-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: var(--s4); overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; padding-bottom: var(--s3); scrollbar-width: thin; }
@media (min-width: 1100px) { .tk-rail { grid-auto-columns: calc((100% - 3 * var(--s4)) / 4); } }
.tk-media { display: block; min-width: 0; scroll-snap-align: start; color: var(--ink); }
.tk-media__img { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--wash); }
.tk-media__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--d3) var(--ease); }
.tk-media:hover .tk-media__img img { transform: scale(1.05); }
.tk-media__dur { position: absolute; bottom: 8px; inset-inline-end: 8px; background: rgba(8, 20, 14, .82); color: #F4E8CC; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; }
.tk-media__t { display: block; margin-top: 10px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-media__by { display: block; color: var(--muted); font-size: var(--t-xs); margin-top: 2px; }
.tk-speakers { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: var(--s4); overflow-x: auto; padding-bottom: var(--s3); scrollbar-width: thin; }
.tk-speaker { text-align: center; color: var(--ink); font-size: var(--t-sm); font-weight: 500; line-height: 1.4; }
.tk-speaker img, .tk-speaker .ph { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; background: var(--wash); border: 3px solid var(--surface); box-shadow: var(--shadow-1); }
@media (max-width: 900px) { .tk-feature { grid-template-columns: 1fr; } .tk-feature__media { aspect-ratio: 16 / 9; } .tk-feature__media::after { background: linear-gradient(0deg, #0E1A14 0, rgba(14,26,20,0) 60%); }
  .tk-feature__body { padding: var(--s5); } }

/* ── 3 · Library: a shelf, not a grid ───────────────────────────────────── */
.tk-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: var(--s5); scrollbar-width: none; }
.tk-shelf { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: var(--s5); overflow-x: auto; padding: var(--s3) 2px var(--s5);
  scroll-snap-type: x proximity; scrollbar-width: thin; position: relative; }
.tk-shelf::after { content: ''; position: sticky; inset-inline-start: 0; }
.tk-book { scroll-snap-align: start; color: var(--ink); }
.tk-book__cover { aspect-ratio: 3 / 4.3; border-radius: 4px 10px 10px 4px; overflow: hidden; background: var(--wash); box-shadow: var(--shadow-2);
  transform-origin: right center; transition: transform var(--d3) var(--ease), box-shadow var(--d3) var(--ease); position: relative; }
.tk-book__cover::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 8px; background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,0)); z-index: 1; }
.tk-book__cover img { width: 100%; height: 100%; object-fit: cover; }
.tk-book:hover .tk-book__cover { transform: translateY(-6px) rotate(-1deg); }
.tk-book__t { display: block; margin-top: 12px; font-weight: 600; line-height: 1.45; font-size: var(--t-sm); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-book__a { display: block; color: var(--muted); font-size: var(--t-xs); margin-top: 2px; }
.tk-shelf__plank { height: 10px; margin-top: -22px; border-radius: 4px; background: linear-gradient(180deg, var(--sand), var(--sand-deep)); opacity: .55; }

/* ── 4 · Hadith · Du'a · 99 Names ───────────────────────────────────────── */
.tk-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.tk-leaf { padding: var(--s6); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--s3); }
.tk-leaf__k { display: flex; justify-content: space-between; align-items: center; color: var(--green); font-weight: 700; font-size: var(--t-sm); }
a.tk-leaf { color: inherit; transition: border-color var(--d2) var(--ease), transform var(--d2) var(--ease); }
a.tk-leaf:hover { border-color: color-mix(in srgb, var(--green) 40%, var(--line)); color: inherit; }
a.tk-leaf:active { transform: scale(.99); }
a.tk-leaf:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.tk-leaf__ar { font: 400 1.35rem/2 var(--f-quran); color: var(--ink); margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tk-leaf__ku { font: 400 1.1rem/1.9 var(--f-read); color: var(--ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.tk-leaf__src { color: var(--muted); font-size: var(--t-xs); margin-top: auto; padding-top: var(--s3); border-top: 1px solid var(--line); white-space: pre-line; }
.tk-leaf__name { font: 400 3.4rem/1.3 var(--f-quran); color: var(--green-ink); text-align: center; margin: var(--s2) 0; }
.tk-leaf--name { background: var(--green); color: var(--on-green); border-color: var(--green); }
.tk-leaf--name .tk-leaf__k, .tk-leaf--name .tk-leaf__name, .tk-leaf--name .tk-leaf__ku { color: var(--on-green); }
.tk-leaf--name .tk-leaf__src { color: var(--on-green); opacity: .8; border-color: rgba(244, 232, 204, .25); }
@media (max-width: 1000px) { .tk-trio { grid-template-columns: 1fr; } }

/* ── 5 · Daily tools ────────────────────────────────────────────────────── */
.tk-daily { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s5); }
.tk-tool { padding: var(--s6); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.tk-tool h3 { margin: 0 0 var(--s4); font-size: var(--t-lg); color: var(--green-ink); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tk-tool h3 small { color: var(--muted); font-weight: 400; font-size: var(--t-xs); }
.tk-times { list-style: none; margin: 0; padding: 0; }
.tk-times li { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: var(--r-md); font-size: var(--t-lg); }
.tk-times li + li { margin-top: 2px; }
.tk-times li b { font-variant-numeric: tabular-nums; font-weight: 600; }
.tk-times li.is-next { background: var(--green); color: var(--on-green); }
.tk-times li.is-next small { display: block; font-size: var(--t-xs); opacity: .85; }
.tk-times li.is-past { color: var(--muted); }
.tk-next { display: flex; align-items: baseline; gap: 10px; margin-bottom: var(--s4); }
.tk-next b { font: 700 2.4rem/1 var(--f-ui); color: var(--green-ink); font-variant-numeric: tabular-nums; }
.tk-daily__side { display: grid; gap: var(--s5); }
.tk-qibla { display: grid; grid-template-columns: 120px 1fr; gap: var(--s4); align-items: center; }
.tk-compass { width: 120px; height: 120px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; background: radial-gradient(circle, var(--surface-2) 0 60%, var(--surface) 61%); }
.tk-compass span { position: absolute; font-size: 10px; color: var(--muted); font-weight: 700; }
.tk-compass .n { top: 4px; left: 50%; transform: translateX(-50%); }
.tk-compass__needle { position: absolute; inset: 14px; transition: transform var(--d5) var(--ease); }
.tk-compass__needle::before { content: ''; position: absolute; left: 50%; top: 10px; width: 3px; height: calc(50% - 10px); margin-left: -1.5px; border-radius: 2px; background: var(--green); }
.tk-compass__needle::after { content: ''; position: absolute; left: 50%; top: 0; transform: translateX(-50%); border: 7px solid transparent; border-bottom: 13px solid var(--green); border-top: 0; }
.tk-compass::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--green); }
.tk-tasbih { display: grid; grid-template-columns: auto 1fr; gap: var(--s4); align-items: center; }
.tk-tasbih__btn { width: 96px; height: 96px; border-radius: 50%; background: var(--green); color: var(--on-green); font: 700 1.9rem/1 var(--f-ui);
  box-shadow: 0 10px 24px -10px rgba(26, 92, 58, .7), inset 0 -4px 0 rgba(0, 0, 0, .15); transition: transform 90ms var(--ease); font-variant-numeric: tabular-nums; }
.tk-tasbih__btn:active { transform: scale(.94); }
.tk-tasbih__phrase { font: 400 1.5rem/1.8 var(--f-quran); }
.tk-athan { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 1000px) { .tk-daily { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .tk-next { flex-direction: column; gap: 4px; } .tk-next b { font-size: 1.9rem; } .tk-tool { padding: var(--s5); } }

/* ── 6 · App: the product across devices ────────────────────────────────── */
.tk-app { position: relative; border-radius: var(--r-xl); background: linear-gradient(160deg, #13301F 0%, #0E1A14 70%); color: #F4E8CC; overflow: hidden; overflow: clip;   /* clip, not hidden: hidden made the card the phones' scroll timeline, so they never moved */
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s6); padding: var(--s8) var(--s7) 0; }
.tk-app h2 { color: #F4E8CC; } .tk-app .tk-sec__kick { color: #8CC4A4; } .tk-app .tk-sec__kick i { background: rgba(140, 196, 164, .14); }
.tk-app__list { list-style: none; padding: 0; margin: var(--s5) 0 var(--s6); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; color: #D7CDB4; }
.tk-app__list li { display: flex; align-items: center; gap: 10px; } .tk-app__list .tk-icon { color: #8CC4A4; }
.tk-app__stores { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: var(--s8); }
.tk-app__stores .tk-btn--primary { background: #F4E8CC; color: #0F3A25; }
.tk-app__stores .tk-btn--ghost { color: #F4E8CC; border-color: rgba(244, 232, 204, .3); }
.tk-phones { position: relative; min-height: 460px; align-self: end; }
.tk-phone { position: absolute; bottom: -40px; width: 220px; aspect-ratio: 360 / 780; border-radius: 34px; padding: 8px; background: #0A0F0C;
  box-shadow: var(--shadow-device); transition: transform var(--d5) var(--ease); }
.tk-phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; }
.tk-phone:nth-child(1) { left: 50%; transform: translateX(-50%) translateY(40px); z-index: 3; }
.tk-phone:nth-child(2) { left: 50%; transform: translateX(-50%) translateY(80px) rotate(0); z-index: 2; opacity: .96; }
.tk-phone:nth-child(3) { left: 50%; transform: translateX(-50%) translateY(80px) rotate(0); z-index: 1; opacity: .9; }
.tk-phones.is-in .tk-phone:nth-child(1) { transform: translateX(-50%) translateY(0); }
.tk-phones.is-in .tk-phone:nth-child(2) { transform: translateX(-118%) translateY(40px) rotate(-6deg); }
.tk-phones.is-in .tk-phone:nth-child(3) { transform: translateX(18%) translateY(40px) rotate(6deg); }
@media (max-width: 900px) { .tk-app { grid-template-columns: 1fr; padding: var(--s6) var(--s5) 0; } .tk-app__stores { padding-bottom: var(--s5); }
  .tk-phones { min-height: 360px; } .tk-phone { width: 170px; border-radius: 28px; } .tk-phone img { border-radius: 21px; } }

/* ── 7 · About ──────────────────────────────────────────────────────────── */
.tk-about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s8); align-items: center; }
.tk-about__quote { font: 400 clamp(1.4rem, 1vw + 1.1rem, 2rem)/1.8 var(--f-read); color: var(--ink); margin: 0; }
.tk-founder { display: flex; align-items: center; gap: var(--s4); padding: var(--s5); border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); }
.tk-founder__mark { width: 64px; height: 64px; border-radius: 50%; background: var(--green); display: grid; place-items: center; flex: none; }
.tk-founder__mark .tk-logo { height: 26px; background: var(--on-green); }
.tk-founder b { display: block; font-size: var(--t-lg); } .tk-founder small { color: var(--muted); }
@media (max-width: 900px) { .tk-about { grid-template-columns: 1fr; gap: var(--s6); } }

/* ── footer ─────────────────────────────────────────────────────────────── */
.tk-foot { margin-top: var(--s10); padding-block: var(--s8) var(--s6); border-top: 1px solid var(--line); background: var(--surface-2); font-size: var(--t-sm); }
.tk-foot__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--s6); }
.tk-foot__brand p { color: var(--muted); max-width: 22rem; margin: var(--s4) 0; }
.tk-foot h4 { margin: 0 0 var(--s3); font-size: var(--t-sm); color: var(--green-ink); }
.tk-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tk-foot ul a { color: var(--ink-2); } .tk-foot ul a:hover { color: var(--green); }
.tk-foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s3); margin-top: var(--s7); padding-top: var(--s4);
  border-top: 1px solid var(--line); color: var(--muted); font-size: var(--t-xs); }
.tk-foot__social { display: flex; gap: 4px; }
@media (max-width: 900px) { .tk-foot { margin-top: var(--s8); } .tk-foot__grid { grid-template-columns: 1fr 1fr; } .tk-foot__brand { grid-column: 1 / -1; } }

/* ── skeletons ──────────────────────────────────────────────────────────── */
.tk-sk { display: block; border-radius: 6px; background: var(--wash); }

/* ── motion (enhancement only: no JS / reduce motion → everything visible) ─ */
html.tk-js [data-rv] { opacity: 0; transform: translateY(18px); transition: opacity var(--d4) var(--ease), transform var(--d4) var(--ease); }
html.tk-js [data-rv].is-in { opacity: 1; transform: none; }
html.tk-js [data-rv="2"] { transition-delay: 90ms; } html.tk-js [data-rv="3"] { transition-delay: 180ms; } html.tk-js [data-rv="4"] { transition-delay: 270ms; }
/* hero entrance: the statement arrives line by line */
html.tk-js .tk-hero h1 .ln { display: inline-block; opacity: 0; transform: translateY(.4em); transition: opacity var(--d4) var(--ease), transform var(--d4) var(--ease); }
html.tk-js .tk-hero.is-in h1 .ln { opacity: 1; transform: none; }
html.tk-js .tk-hero.is-in h1 .ln:nth-child(2) { transition-delay: 110ms; } html.tk-js .tk-hero.is-in h1 .ln:nth-child(3) { transition-delay: 220ms; }
html.tk-js .tk-hero__quran { opacity: 0; transform: translateY(24px) scale(.98); transition: opacity var(--d5) var(--ease) .25s, transform var(--d5) var(--ease) .25s; }
html.tk-js .tk-hero.is-in .tk-hero__quran { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; transition-delay: 0s !important; animation: none !important; scroll-behavior: auto !important; }
  html.tk-js [data-rv], html.tk-js .tk-hero h1 .ln, html.tk-js .tk-hero__quran { opacity: 1; transform: none; }
  .tk-story { height: auto !important; } .tk-story__stage { position: relative; top: 0; }
  .tk-story__tafsir, .tk-story__tools { clip-path: none; opacity: 1; transform: none; }
}
/* slower devices: the cinematic parts become simple reveals */
html.tk-lite .tk-story { height: auto; } html.tk-lite .tk-story__stage { position: relative; top: 0; }
html.tk-lite .tk-story__tafsir, html.tk-lite .tk-story__tools { clip-path: none; opacity: 1; transform: none; }
html.tk-lite .tk-phones .tk-phone { transition: none; }

/* inline (hero) search: results float as a dropdown, the layout never jumps */
.tk-search[data-inline] .tk-results { position: absolute; z-index: 30; top: calc(100% + 8px); inset-inline: 0; margin: 0; padding: var(--s3);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2);
  max-height: min(60vh, 520px); overflow: auto; overscroll-behavior: contain; color: var(--ink); }
.tk-popover .tk-themes { grid-template-columns: 1fr 1fr; }
.tk-popover .tk-themes button { grid-template-columns: auto 1fr; justify-items: start; align-items: center; text-align: start; padding: 10px 12px; }
