/* ==========================================================================
   TafsirKurd 2.0 — links.html (link-in-bio). Only the look is new: the page's
   script (copied byte-for-byte at build time) builds .app-card, .link-row,
   .chooser-* and .empty-msg — all styled here. One centred column, phone first.
   ========================================================================== */
body.tkn { min-height: 100dvh; padding-bottom: 0; background:
  radial-gradient(120% 60% at 50% 0%, var(--surface) 0%, transparent 70%), var(--cream); }
.page { overflow-x: clip; width: 100%; max-width: 480px; margin: 0 auto; padding: var(--s7) var(--gutter) var(--s6); }

/* entrance: once, short, and never on the reduced-motion path */
html.tk-js [data-anim] { opacity: 0; transform: translateY(10px); animation: tknIn .5s var(--ease) forwards; }
@keyframes tknIn { to { opacity: 1; transform: none; } }

.hero { text-align: center; }
.logo-ring { width: 104px; height: 104px; margin: 0 auto var(--s4); padding: 4px; border-radius: 50%; background: var(--green); box-shadow: var(--shadow-1); }
.logo-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--cream); background: var(--cream); }
.hero-name { margin: 0; font: 800 var(--t-h2)/1.2 var(--f-ui); color: var(--green-ink); }
.hero-handle { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0; color: var(--muted); direction: ltr; font-size: var(--t-sm); }
.ig-badge { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--green); color: var(--on-green); font-size: 10px; }
.hero-tagline { margin: var(--s3) 0 0; color: var(--ink-2); line-height: 1.8; }

.section-label { margin: var(--s6) 0 var(--s3); font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em; color: var(--muted); text-align: center; direction: ltr; }

/* app downloads */
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s3); }
.app-card { position: relative; display: grid; justify-items: center; gap: 2px; padding: var(--s5) var(--s3) var(--s4); border-radius: var(--r-lg);
  background: var(--green); color: var(--on-green); text-align: center; transition: transform var(--d2) var(--ease), background-color var(--d1) var(--ease); }
.app-card:hover { transform: translateY(-2px); background: var(--green-deep); color: var(--on-green); }
.app-card:active { transform: scale(.98); }
.app-card-corner { position: absolute; top: 12px; left: 12px; font-size: 11px; opacity: .6; }
.app-card-icon { font-size: 1.9rem; margin-bottom: 6px; }
.app-card-store { font-weight: 700; direction: ltr; }
.app-card-name { font-size: var(--t-xs); opacity: .8; direction: ltr; }
.app-card-sub { margin-top: 6px; font-size: var(--t-xs); padding: 3px 10px; border-radius: 999px; background: rgba(244, 232, 204, .16); }

/* links */
.links-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.link-row { min-width: 0; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); transition: border-color var(--d1) var(--ease), transform var(--d2) var(--ease); }
.link-row:hover { border-color: var(--green); transform: translateY(-1px); }
.link-row:active { transform: scale(.99); }
.link-icon-box { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--wash); color: var(--green); font-size: 1.15rem; }
.link-body { flex: 1; min-width: 0; }
.link-title { font-weight: 700; line-height: 1.4; }
.link-sub { color: var(--muted); font-size: var(--t-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-arrow { color: var(--muted); font-size: .8rem; }
.empty-msg { grid-column: 1 / -1; margin: 0; padding: var(--s5); border-radius: var(--r-lg); background: var(--surface-2); color: var(--ink-2); text-align: center; line-height: 1.8; }

/* skeletons */
.sk { border-radius: var(--r-lg); background: var(--wash); }
.sk-app { height: 132px; } .sk-link { height: 64px; }

/* account chooser (Instagram has several accounts) */
.chooser-backdrop { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; background: rgba(8, 20, 14, .45);
  opacity: 0; transition: opacity var(--d3) var(--ease); }
.chooser-backdrop.show { opacity: 1; }
.chooser-card { width: 100%; max-width: 480px; max-height: 85dvh; overflow: auto; padding: var(--s5) var(--gutter) calc(var(--s5) + env(safe-area-inset-bottom));
  border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--surface); transform: translateY(24px); transition: transform var(--d3) var(--ease); }
.chooser-backdrop.show .chooser-card { transform: none; }
.chooser-title { margin: 0 0 var(--s3); font-weight: 700; font-size: var(--t-lg); text-align: center; }
.chooser-list { display: grid; gap: 8px; }
@media (min-width: 600px) { .chooser-backdrop { align-items: center; } .chooser-card { border-radius: var(--r-xl); } }

.page-footer { margin-top: var(--s7); text-align: center; color: var(--muted); font-size: var(--t-xs); }
.footer-logo { width: 28px; height: 28px; margin: 0 auto 6px; opacity: .8; }
.page-footer p { margin: 2px 0; }
.tkn-site { display: inline-flex; margin-top: var(--s3); color: var(--green); font-weight: 600; font-size: var(--t-sm); }
@media (prefers-reduced-motion: reduce) { html.tk-js [data-anim] { animation: none; opacity: 1; transform: none; } }

/* ==========================================================================
   Premium pass — an app landing page first (visitors come from Instagram bios
   to download the app), links second. Phone first, one column; static
   decoration only, the shared once-only entrance, a finite halo on the icon.
   ========================================================================== */
.page.lp { max-width: 520px; padding-top: var(--s4); }

/* hero: deep green card */
.lp-hero { position: relative; isolation: isolate; overflow: hidden; margin: 0 calc(var(--gutter) * -.25); padding: var(--s7) var(--s5) var(--s6); border-radius: 28px; text-align: center; color: #F4E8CC;
  background: radial-gradient(90% 60% at 50% 0%, rgba(216, 181, 106, .22) 0%, rgba(216, 181, 106, 0) 60%), radial-gradient(80% 60% at 50% 110%, rgba(140, 196, 164, .18) 0%, rgba(140, 196, 164, 0) 60%),
              linear-gradient(170deg, #1B4D33 0%, #0E1A14 88%);
  box-shadow: 0 30px 60px -34px rgba(8, 20, 14, .75); }
.lp-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .08; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23F4E8CC' stroke-width='1'%3E%3Cpath d='M32 8l7 17 17 7-17 7-7 17-7-17-17-7 17-7z'/%3E%3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 30%, #000, transparent); mask-image: radial-gradient(70% 55% at 50% 30%, #000, transparent); }
.lp-icon { position: relative; width: 112px; height: 112px; margin: 0 auto var(--s4); border-radius: 28px; padding: 3px;
  background: linear-gradient(145deg, #D8B56A, #8CC4A4 60%, #1f6b44); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .7); }
.lp-icon::after { content: ''; position: absolute; inset: -10px; border-radius: 36px; border: 1.5px solid rgba(216, 181, 106, .5); opacity: 0; }
html.tk-js .lp-icon::after { animation: lpHalo 2.4s var(--ease) .6s 3; }
@keyframes lpHalo { from { transform: scale(.92); opacity: .9; } to { transform: scale(1.18); opacity: 0; } }
.lp-icon .logo-img { width: 100%; height: 100%; border-radius: 25px; object-fit: cover; border: 0; background: #1f6b44; }
.lp-hero .hero-name { color: #FBF3DD; font-size: clamp(1.9rem, 6vw, 2.4rem); }
.lp-hero .hero-handle { color: #C9BFA6; }
.lp-hero .ig-badge { background: #D8B56A; color: #0E1A14; }
.lp-head { margin: var(--s4) auto 0; max-width: 24rem; font: 700 clamp(1.15rem, 4.2vw, 1.35rem)/1.75 var(--f-ui); color: #FBF3DD; text-wrap: balance; }
.lp-hero .hero-tagline { margin-top: 6px; color: #B9B09A; font-size: var(--t-sm); }

/* store buttons: light on the dark hero; the visitor's own store comes first and larger */
.tk-store { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 6px 12px; border-radius: 14px; background: #0d1510; color: #fff;
  transition: transform var(--d2) var(--ease), background-color var(--d2) var(--ease); }
.tk-store:hover { color: #fff; transform: translate3d(0, -2px, 0); }
.tk-store:active { transform: scale(.98); }
.tk-store svg { flex: none; width: 22px; height: 24px; }
.tk-store span { display: grid; line-height: 1.2; text-align: start; }
.tk-store small { font-size: 10px; opacity: .8; }
.tk-store b { font-size: 15px; font-weight: 700; }
.lp-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: var(--s5); }
.lp-store { background: #F4E8CC; color: #0d1510; min-height: 56px; box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .6); }
.lp-store:hover { background: #fff; color: #0d1510; }
.lp-cta.is-one .lp-store.is-mine { grid-column: 1 / -1; min-height: 64px; order: -1; }
.lp-cta.is-one .lp-store.is-mine b { font-size: 18px; }
.lp-cta.is-one .lp-store.is-mine svg { width: 26px; height: 28px; }
.lp-cta.is-one .lp-store:not(.is-mine) { grid-column: 1 / -1; min-height: 44px; background: transparent; color: #D7CDB4; box-shadow: none; border: 1px solid rgba(244, 232, 204, .22); }
.lp-cta.is-one .lp-store:not(.is-mine) svg { width: 16px; height: 18px; }
.lp-cta.is-one .lp-store:not(.is-mine) span { display: flex; gap: 6px; align-items: baseline; }
.lp-free { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin: var(--s4) 0 0; color: #C9BFA6; font-size: var(--t-xs); }
.lp-free span { display: inline-flex; align-items: center; gap: 5px; }
.lp-free .tk-icon { width: 14px; height: 14px; color: #8CC4A4; }

/* screens: a sideways swipe of real iPhone screenshots */
.lp-shots { margin: var(--s6) calc(var(--gutter) * -1) 0; }
.lp-shots__track { display: grid; grid-auto-flow: column; grid-auto-columns: 58%; gap: var(--s4); overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gutter) 14px;
  scrollbar-width: none; overscroll-behavior-x: contain; }
.lp-shots__track::-webkit-scrollbar { display: none; }
.lp-phone { margin: 0; scroll-snap-align: center; display: grid; gap: 10px; justify-items: center; }
.lp-phone__frame { display: block; width: 100%; aspect-ratio: 540 / 1174; padding: 6px; border-radius: 34px;
  background: linear-gradient(145deg, #5a605c 0%, #262a28 40%, #3a3f3c 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 26px 40px -24px rgba(0, 0, 0, .6); }
.lp-phone__frame img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 28px; background: #0E1A14; }
.lp-phone--promo { align-content: center; }
/* the app tour in the same iPhone as the screenshots (9:16 footage cover-cropped to the screen) + a drawn Dynamic Island */
.lp-promo { width: 100%; aspect-ratio: 540 / 1174; padding: 6px; border-radius: 34px;
  background: linear-gradient(145deg, #5a605c 0%, #262a28 40%, #3a3f3c 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 26px 40px -24px rgba(0, 0, 0, .6); }
.lp-promo img { height: 100%; border-radius: 28px; }
.lp-promo video { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); border-radius: 28px; }
.lp-promo::before { content: ""; position: absolute; z-index: 2; top: 13px; left: 50%; width: 30%; height: 17px; margin-left: -15%; border-radius: 999px; background: #000; pointer-events: none; }
.lp-promo .tk-promo__snd { z-index: 2; bottom: 18px; inset-inline-end: 16px; }
.lp-phone figcaption { font-weight: 700; font-size: var(--t-sm); color: var(--green-ink); }
.lp-swipe { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 2px 0 0; color: var(--muted); font-size: var(--t-xs); }
.lp-swipe .tk-icon { width: 14px; height: 14px; }

/* features */
.lp-feats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.lp-feats li { display: grid; align-content: start; gap: 4px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 12px 26px -24px rgba(15, 30, 20, .5); }
.lp-feats__ic { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 4px; border-radius: 12px; background: var(--wash-2); color: var(--green); }
.lp-feats__ic .tk-icon { width: 20px; height: 20px; }
.lp-feats b { font-size: var(--t-sm); line-height: 1.45; color: var(--green-ink); }
.lp-feats small { color: var(--ink-2); font-size: var(--t-xs); line-height: 1.6; }
.lp-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 10px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.lp-nums div { display: grid; gap: 2px; padding: 12px 6px; text-align: center; background: var(--surface-2); }
.lp-nums div + div { border-inline-start: 1px solid var(--line); }
.lp-nums b { font: 800 var(--t-lg)/1.2 var(--f-ui); color: var(--green); }
.lp-nums span { color: var(--muted); font-size: 11px; }

/* section labels: Kurdish now, not letter-spaced Latin */
.lp .section-label { direction: rtl; letter-spacing: 0; font-size: var(--t-md); font-weight: 800; color: var(--green-ink); text-align: center; }
.lp .section-label::after { content: ''; display: block; width: 40px; height: 2px; margin: 8px auto 0; border-radius: 2px; background: linear-gradient(90deg, transparent, #D8B56A, transparent); }

/* the final download cards, richer */
.lp-final .app-card { background: radial-gradient(90% 80% at 50% 0%, rgba(216, 181, 106, .18), rgba(216, 181, 106, 0) 60%), linear-gradient(170deg, #1B4D33, #0E1A14);
  box-shadow: 0 18px 34px -22px rgba(8, 20, 14, .7); }
.lp-final .app-card:hover { background: radial-gradient(90% 80% at 50% 0%, rgba(216, 181, 106, .26), rgba(216, 181, 106, 0) 60%), linear-gradient(170deg, #1f5a3b, #0E1A14); }
.lp-final .app-card-sub { background: #F4E8CC; color: #0F3A25; font-weight: 700; }

/* links: a touch more depth */
.lp .link-row { box-shadow: 0 10px 22px -22px rgba(15, 30, 20, .5); }
.lp .link-icon-box { background: linear-gradient(145deg, var(--wash-2), var(--wash)); }

/* sticky download bar (phones, after the hero scrolls away) */
.lp-sticky { position: fixed; z-index: 60; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; max-width: 496px; margin: 0 auto;
  padding: 8px 8px 8px 12px; border-radius: 20px; color: #F4E8CC; background: rgba(14, 26, 20, .96); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .55);
  transform: translate3d(0, 140%, 0); transition: transform var(--d3) var(--ease); }
.lp-sticky.is-in { transform: none; }
.lp-sticky:hover { color: #F4E8CC; }
.lp-sticky img { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; background: #1f6b44; }
.lp-sticky span { flex: 1; display: grid; line-height: 1.3; }
.lp-sticky b { font-size: var(--t-sm); } .lp-sticky small { font-size: 11px; color: #B9B09A; }
.lp-sticky em { font-style: normal; font-weight: 800; padding: 10px 18px; border-radius: 14px; background: #F4E8CC; color: #0F3A25; }
@media (min-width: 700px) { .lp-sticky { display: none; } }
@media (prefers-reduced-motion: reduce) { html.tk-js .lp-icon::after { animation: none; } .lp-sticky { transition: none; } }
.lp-hero .hero-tagline { display: none; }
@media (max-width: 699px) { .page.lp { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* dark: the bar and the hero card need an edge against the dark page */
:root[data-theme="sakina"] .lp-sticky { border: 1px solid rgba(244, 232, 204, .18); }
:root[data-theme="sakina"] .lp-hero { box-shadow: 0 0 0 1px rgba(244, 232, 204, .1), 0 30px 60px -34px rgba(0, 0, 0, .8); }
:root[data-theme="sakina"] .lp-final .app-card-name { color: #C9BFA6; opacity: 1; }
