/*
  keruma.app: one stylesheet for the landing page and the legal pages.
  Design = the app's "Amber" theme (src/index.css): warm near-black, one amber accent, Newsreader headings + Outfit text.
  Fonts are self-hosted (SIL OFL, see /fonts/OFL-*.txt). No inline styles, no scripts: the CSP allows only 'self'.
*/
@font-face { font-family: 'Outfit Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/fonts/outfit-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/fonts/outfit-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader Variable'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('/fonts/newsreader-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader Variable'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('/fonts/newsreader-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Arabic page only: Latin text stays in Outfit/Newsreader; Arabic glyphs fall through to this face (loaded only when needed). */
@font-face { font-family: 'Noto Sans Arabic Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/fonts/noto-sans-arabic-arabic-wght-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  color-scheme: dark;
  --bg: #0e0b0a;
  --surface: #161210;
  --surface-2: #1e1812;
  --border: #2e2620;
  --text: #f5efe6;
  --muted: #a39a8e;
  --accent: #e8b567;
  --accent-contrast: #1b1407;
  --focus: #fff3dc;
  --success: #3ddc97;
  --hairline: rgba(255, 255, 255, 0.09);
  --accent-soft: rgba(232, 181, 103, 0.14);
  --accent-line: rgba(232, 181, 103, 0.55);
  --glow: rgba(232, 181, 103, 0.1);
  --scrim: rgba(14, 11, 10, 0.82);
  --font-sans: 'Outfit Variable', 'Noto Sans Arabic Variable', system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Newsreader Variable', 'Noto Sans Arabic Variable', Georgia, 'Times New Roman', serif;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--font-sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--focus); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; margin: 0; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); font-size: 0.92rem; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-contrast); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- shared bits ---------- */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }

.mark { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--accent-line); border-radius: 11px; background: var(--accent-soft); color: var(--accent); font: italic 500 1.7rem/1 var(--font-display); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 600; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 500 1.35rem/1.1 var(--font-display); }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px; font: 600 1rem/1 var(--font-sans); text-decoration: none; cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: #f3c987; color: var(--accent-contrast); transform: translateY(-1px); }
.btn-ghost { border-color: var(--border); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--accent-line); color: var(--text); background: var(--accent-soft); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.92rem; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1; }
.section h2 em, .hero h1 em { font-style: italic; color: var(--accent); }
.lead { margin: 18px 0 0; font-size: 1.15rem; color: var(--muted); }
.section-alt { background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0)); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- home: header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--scrim); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--hairline); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1140px; margin: 0 auto; padding: 12px 20px; }
@media (min-width: 720px) { .bar { padding: 12px 32px; } }
.bar nav { display: none; gap: 4px; }
.bar nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.bar nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
@media (min-width: 960px) { .bar nav { display: flex; } }
.bar-end { display: flex; align-items: center; gap: 14px; }
.lang { font-size: 0.92rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.lang:hover { color: var(--text); }

/* Language selector: a <details> dropdown (no script). The visible label is the current language's own name. */
.langmenu { position: relative; }
.langmenu summary { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255, 255, 255, 0.02); color: var(--text); font-size: 0.92rem; font-weight: 500; cursor: pointer; list-style: none; }
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary:hover, .langmenu[open] summary { border-color: var(--accent-line); background: var(--accent-soft); }
.langmenu summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.langmenu summary::after { content: ''; width: 7px; height: 7px; margin-inline-start: 2px; border: solid currentColor; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg) translateY(-2px); }
.langmenu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60; min-width: 170px; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-2); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9); }
.langmenu li { margin: 0; }
.langmenu a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 500; }
.langmenu a:hover { background: var(--accent-soft); color: var(--text); }
.langmenu a[aria-current] { color: var(--accent); }
.langmenu a[aria-current]::after { content: '\2713'; float: inline-end; }

/* ---------- home: hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 7vw, 88px); text-align: center; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto -10%; height: 90%; background: radial-gradient(ellipse at 50% 0%, rgba(232, 181, 103, 0.2), rgba(232, 181, 103, 0) 62%); pointer-events: none; }
.hero .container { position: relative; }
.pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 8px 18px; border: 1px solid var(--accent-line); border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 0.88rem; font-weight: 600; }
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { max-width: 13em; margin: 0 auto; font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.04; letter-spacing: -0.025em; }
h1, h2 { text-wrap: balance; }
.hero .lead { max-width: 640px; margin: 24px auto 0; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.ticks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.95rem; }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks li::before { content: ''; width: 16px; height: 16px; flex: none; background: var(--success); -webkit-mask: url('/img/check.svg') center / contain no-repeat; mask: url('/img/check.svg') center / contain no-repeat; }
.status { margin: 22px 0 0; font-size: 0.9rem; color: var(--muted); }
.tv.hero-tv { max-width: 1000px; margin: clamp(40px, 6vw, 64px) auto 0; }
.fineprint { margin: 18px 0 0; font-size: 0.86rem; color: var(--muted); }

/* TV frame around a screenshot */
.tv { margin: 0; }
.bezel { padding: clamp(6px, 1.1vw, 14px); border: 1px solid var(--border); border-radius: clamp(14px, 2vw, 26px); background: linear-gradient(180deg, #241d17, #14100d); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9), 0 0 140px -30px var(--glow), inset 0 0 0 1px rgba(255, 255, 255, 0.03); }
.bezel img { display: block; width: 100%; height: auto; border-radius: clamp(8px, 1.1vw, 14px); }
.stand { position: relative; width: 16%; height: 12px; margin: 0 auto; background: linear-gradient(#2a221c, #16120f); border-radius: 0 0 10px 10px; }
.stand::after { content: ''; position: absolute; top: 24px; left: 50%; width: 220%; height: 5px; transform: translateX(-50%); background: #1b1511; border-radius: 6px; opacity: 0.8; }

/* ---------- sources row ---------- */
.sources { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 14px; padding: 26px 20px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.sources .label { margin-inline-end: 6px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.chip { padding: 8px 18px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 0.95rem; font-weight: 500; }

/* ---------- feature grid ---------- */
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.feature h3 { margin: 0 0 8px; font-size: 1.35rem; }
.feature p { margin: 0; color: var(--muted); }

/* ---------- split (text + picture) ---------- */
.split { display: grid; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } }
.split h2 { margin-bottom: 8px; }
.split .lead + p { margin-top: 16px; color: var(--muted); }
.split + .gallery { margin-top: clamp(48px, 7vw, 80px); }
.links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-weight: 500; }

/* ---------- gallery ---------- */
.gallery { display: grid; gap: 40px 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.shot { margin: 0; }
.shot .bezel { padding: 6px; border-radius: 18px; }
.shot .bezel img { border-radius: 12px; }
.shot h3 { margin: 18px 0 4px; font-size: 1.4rem; }
.shot p { margin: 0; color: var(--muted); }
.thumbs { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.thumbs .shot h3 { margin-top: 10px; font-size: 1.1rem; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); counter-reset: step; }
.step { position: relative; }
.step .num { display: block; margin-bottom: 10px; font: italic 500 3.4rem/1 var(--font-display); color: var(--accent); }
.step h3 { margin: 0 0 8px; font-size: 1.45rem; }
.step p { margin: 0; color: var(--muted); }

/* ---------- platform ---------- */
.platform { display: grid; gap: 28px; align-items: center; padding: clamp(28px, 4vw, 44px); }
@media (min-width: 800px) { .platform { grid-template-columns: auto 1fr; gap: 44px; } }
.platform .logo { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 28px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); font: italic 500 4rem/1 var(--font-display); }
.platform h3 { margin: 0 0 8px; font-size: 1.7rem; }
.platform p { color: var(--muted); }
.platform .muted { margin: 18px 0 0; }
.versions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.versions li { padding: 6px 16px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); font-weight: 600; font-size: 0.92rem; }

/* ---------- pricing ---------- */
.price-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); max-width: 880px; margin: 0 auto; }
.price-card { display: flex; flex-direction: column; padding: 34px; }
.price-card.featured { border-color: var(--accent-line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: 0 0 0 1px var(--accent-line), 0 40px 90px -40px rgba(232, 181, 103, 0.35); }
.price-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 1.5rem; }
.badge { padding: 4px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-contrast); font: 600 0.74rem/1.4 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; }
.price { margin: 18px 0 2px; font: 500 4.2rem/1 var(--font-display); letter-spacing: -0.03em; }
.price small { font: 400 1.05rem var(--font-sans); color: var(--muted); letter-spacing: 0; margin-inline-start: 6px; }
.price-note { margin: 0 0 22px; color: var(--muted); }
.checks { margin: 0 0 26px; padding: 0; list-style: none; }
.checks li { position: relative; margin: 0 0 10px; padding-inline-start: 30px; }
.checks li::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.35em; width: 18px; height: 18px; background: var(--accent); -webkit-mask: url('/img/check.svg') center / contain no-repeat; mask: url('/img/check.svg') center / contain no-repeat; }
.price-card .btn { margin-top: auto; }
.buy-hint { display: flex; gap: 14px; align-items: flex-start; margin-top: auto; padding: 16px 18px; border: 1px dashed var(--accent-line); border-radius: 14px; background: var(--accent-soft); font-size: 0.95rem; }
.buy-hint svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.price-foot { max-width: 880px; margin: 28px auto 0; text-align: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font: 500 1.25rem/1.3 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; color: var(--accent); font: 300 1.9rem/1 var(--font-sans); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 0; padding: 0 0 24px; color: var(--muted); max-width: 70ch; }

/* ---------- closing call to action ---------- */
.final { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px) 20px; border: 1px solid var(--accent-line); border-radius: 28px; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(232, 181, 103, 0.18), rgba(232, 181, 103, 0) 70%), var(--surface); }
.final h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.final .lead { max-width: 560px; margin: 16px auto 0; }

/* ---------- home: footer ---------- */
.site-footer { margin-top: 0; padding: 56px 0 40px; border-top: 1px solid var(--hairline); background: var(--surface); }
.foot-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.foot-grid .about { grid-column: span 2; max-width: 380px; }
@media (max-width: 560px) { .foot-grid .about { grid-column: 1 / -1; } }
.foot-grid h4 { margin: 0 0 14px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.foot-grid ul { margin: 0; padding: 0; list-style: none; }
.foot-grid li { margin: 0 0 8px; }
.foot-grid a { color: var(--text); text-decoration: none; }
.foot-grid a:hover { color: var(--accent); }
.foot-grid .about p { margin: 16px 0 0; color: var(--muted); font-size: 0.95rem; }
.legal-line { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 0.85rem; }
.legal-line p { margin: 0 0 6px; }

/* ---------- Arabic (right to left) ---------- */
/* No faux italics, no letter-spacing and no upper-casing on Arabic: they break the joined letters. */
html[lang='ar'] body { line-height: 1.8; }
html[lang='ar'] .section h2 em, html[lang='ar'] .hero h1 em, html[lang='ar'] .step .num { font-style: normal; }
html[lang='ar'] h1, html[lang='ar'] h2, html[lang='ar'] h3 { letter-spacing: 0; }
html[lang='ar'] .hero h1 { line-height: 1.25; }
html[lang='ar'] .section h2 { line-height: 1.3; }
html[lang='ar'] .eyebrow, html[lang='ar'] .sources .label, html[lang='ar'] .foot-grid h4, html[lang='ar'] .badge { letter-spacing: 0; text-transform: none; font-size: 0.9rem; }
html[lang='ar'] .faq summary { font-family: var(--font-sans); font-weight: 600; }
html[lang='ar'] .price { letter-spacing: 0; }

/* ---------- legal pages (privacy, terms, rights holders, impressum) ---------- */
.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 24px 20px 56px; }
.wrap > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--hairline); }
.wrap > header .brand::before { content: 'K'; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--accent-line); border-radius: 11px; background: var(--accent-soft); color: var(--accent); font: italic 500 1.7rem/1 var(--font-display); }
.wrap > header .brand { font: 500 1.3rem/1.1 var(--font-display); }
.wrap > header nav { display: flex; flex-wrap: wrap; gap: 2px 6px; font-size: 0.95rem; }
.wrap > header nav a { padding: 6px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 500; }
.wrap > header nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.wrap > main { padding: clamp(24px, 4vw, 44px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.wrap > main h1 { margin: 0 0 10px; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; }
.wrap > main h2 { margin: 34px 0 6px; font-size: 1.4rem; }
.wrap > main p, .wrap > main ul { margin: 10px 0; }
.wrap > main li { margin: 5px 0; }
.wrap > footer { margin-top: 24px; color: var(--muted); font-size: 0.88rem; text-align: center; }
