/* Samurai Player website (home + legal pages). Brand "Samurai": ink black + samurai red, gold = Premium only. Same as the TV app and /activate. */
:root {
  --bg: #0b0b0d; --panel: #16161a; --panel2: #222228; --line: #2a2a31;
  --text: #f5f5f7; --soft: #d2d2d8; --muted: #9c9ca6; --accent: #e5262f; --accent2: #ff3d47; --deep: #5a0a10; --gold: #e8b04b;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); line-height: 1.6;
  font-family: 'Sora', 'Noto Kufi Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  overflow-x: hidden;
}
a { color: var(--accent2); }
img { max-width: 100%; height: auto; display: block; } /* height:auto keeps the shape when the width shrinks */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Language: the page holds both; html[data-lang] shows one. */
html[data-lang="en"] [lang="ar"], html[data-lang="ar"] [lang="en"] { display: none !important; }
/* Store-dependent text: "coming soon" by default; site.js shows the "live" text once the store link is set. */
[data-when="live"] { display: none; }

header.top { position: sticky; top: 0; z-index: 5; background: rgba(11,11,13,.86); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; direction: ltr; text-decoration: none; color: var(--text); }
.mark { width: 36px; height: 36px; flex-shrink: 0; }
.word { margin-left: 10px; font-size: 18px; font-weight: 700; letter-spacing: 1.5px; line-height: 1; }
.word b { display: block; color: var(--accent); font-size: 9px; font-weight: 600; letter-spacing: 5.5px; margin-top: 4px; }
nav.links { display: flex; align-items: center; gap: 18px; font-size: 15px; }
nav.links a { color: var(--soft); text-decoration: none; }
nav.links a:hover { color: var(--text); }
.nav-cta { background: var(--accent); color: #fff !important; padding: 8px 16px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.nav-cta:hover { filter: brightness(1.1); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0 0 26px; }
.btn-main, .btn-ghost { display: inline-block; padding: 14px 26px; border-radius: 14px; font-weight: 600; text-decoration: none; font-size: 17px; }
.btn-main { background: var(--accent); color: #fff; box-shadow: 0 10px 30px rgba(229,38,47,.35); }
.btn-ghost { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.btn-main.off { background: var(--panel2); color: var(--muted); box-shadow: none; cursor: default; }
.devices { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0 0 18px; }
.device { display: flex; align-items: center; gap: 12px; text-align: start; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; color: var(--text); text-decoration: none; }
.device b { display: block; font-size: 15px; } .device small { display: block; font-size: 13px; color: var(--muted); }
.device.on { border-color: rgba(229,38,47,.55); } .device.on small { color: var(--accent2); }
.device.soon { opacity: .7; }
.dev-ico { width: 26px; height: 26px; color: var(--accent2); flex-shrink: 0; }
.device.soon .dev-ico { color: var(--muted); }
@media (max-width: 640px) { .nav-cta { padding: 7px 12px; font-size: 14px; } nav.links { gap: 10px; } }
/* Download page */
.dl { padding: 48px 0 24px; max-width: 900px; }
.dl h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: 0 0 10px; }
.dl .lead2 { color: var(--soft); margin: 0 0 28px; }
.dl-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin: 0 0 18px; scroll-margin-top: 80px; }
.dl-card h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 6px; font-size: 22px; line-height: 1.25; }
.dl-card .status { white-space: nowrap; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--panel2); color: var(--muted); }
.dl-card .status.on { background: rgba(229,38,47,.15); color: var(--accent2); }
.dl-card p, .dl-card li { color: var(--soft); }
.dl .muted { color: var(--muted); font-size: 15px; }
.dl-card ol { padding-inline-start: 22px; margin: 12px 0 18px; } .dl-card li { margin: 6px 0; }
.lang-btn { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; }
@media (max-width: 640px) { nav.links a.opt { display: none; } }

.hero { padding: 72px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(32px, 6vw, 56px); line-height: 1.15; margin: 0 0 18px; letter-spacing: -1px; }
.hero h1 b { color: var(--accent2); }
.hero p.lead { font-size: clamp(17px, 2.4vw, 20px); color: var(--soft); max-width: 680px; margin: 0 auto 28px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.badge { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--soft); }
.shot { margin: 48px auto 0; max-width: 900px; }
/* Screenshots sit inside a TV (bezel + stand) so they read as "the app on your TV". */
.tv { position: relative; padding: 0 0 26px; }
.tv-screen { background: #000; border: 10px solid #050506; border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 1px #2a2a31, 0 30px 70px rgba(0,0,0,.6), 0 0 90px rgba(229,38,47,.22); }
.tv-screen img { width: 100%; }
.tv:before { content: ''; position: absolute; left: 50%; bottom: 8px; width: 18%; height: 18px; transform: translateX(-50%);
  background: linear-gradient(#0e0e11, #1c1c22); border-radius: 0 0 6px 6px; }
.tv:after { content: ''; position: absolute; left: 50%; bottom: 0; width: 34%; height: 8px; transform: translateX(-50%);
  background: #1c1c22; border-radius: 6px; }
.cap { text-align: center; color: var(--muted); font-size: 15px; margin: 12px 0 0; }
@media (max-width: 640px) { .tv-screen { border-width: 6px; border-radius: 10px; } .tv { padding-bottom: 18px; } .tv:before { height: 12px; } }

section.block { padding: 56px 0; scroll-margin-top: 64px; } /* below the sticky header */
section.block h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 10px; letter-spacing: -.5px; }
section.block p.sub { color: var(--muted); margin: 0 0 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--soft); font-size: 15px; }
.gallery { display: grid; grid-template-columns: 1fr; gap: 40px; max-width: 900px; margin: 0 auto; } /* one per row: large enough to read */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; text-align: center; }
.plan.best { position: relative; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.plan .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #1f1400; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.gold { color: var(--gold); }
.plan .name { color: var(--muted); font-size: 15px; text-transform: uppercase; letter-spacing: 1px; }
.plan .price { font-size: 40px; font-weight: 700; margin: 8px 0 2px; direction: ltr; }
.plan .per { color: var(--muted); font-size: 14px; }
ul.ticks { list-style: none; padding: 0; margin: 0; columns: 2 260px; }
ul.ticks li { padding: 4px 0 4px 28px; position: relative; break-inside: avoid; }
ul.ticks li:before { content: '✓'; position: absolute; left: 4px; color: var(--gold); font-weight: 700; }
[dir="rtl"] ul.ticks li { padding: 4px 28px 4px 0; }
[dir="rtl"] ul.ticks li:before { left: auto; right: 4px; }
.note { background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; color: var(--soft); font-size: 15px; }

details.faq { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { color: var(--soft); margin: 10px 0 0; }

footer.bottom { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer.bottom .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer.bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer.bottom a { color: var(--soft); }

/* Legal pages */
.legal { padding: 48px 0 24px; max-width: 820px; }
.legal h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: 0 0 4px; }
.legal .date { color: var(--muted); margin: 0 0 28px; }
.legal h2 { font-size: 20px; margin: 30px 0 8px; }
.legal p, .legal li { color: var(--soft); }

/* Samurai home: two-column hero with a red glow, disclaimer strip, three steps, feature icons. */
.hero { position: relative; overflow: hidden; text-align: start; padding: 64px 0 56px; }
.hero:before { content: ''; position: absolute; right: -10%; top: -30%; width: 70%; height: 140%; background: radial-gradient(closest-side, rgba(229,38,47,.28), rgba(90,10,16,.12) 55%, transparent); pointer-events: none; }
.hero:after { content: ''; position: absolute; left: -5%; right: -5%; top: 62%; height: 2px; background: linear-gradient(90deg, transparent, rgba(229,38,47,.55), transparent); transform: rotate(-8deg); pointer-events: none; }
[dir="rtl"] .hero:before { right: auto; left: -10%; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.kicker { display: inline-block; color: var(--accent2); font-size: 13px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; margin: 0 0 14px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); }
.hero h1 b { color: var(--accent); }
.hero p.lead { margin: 0 0 26px; max-width: 520px; }
.hero-cta, .devices { justify-content: flex-start; }
.hero-shot .tv-screen { box-shadow: 0 0 0 1px #2a2a31, 0 40px 90px rgba(0,0,0,.7), 0 0 120px rgba(229,38,47,.3); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero { text-align: center; } .hero p.lead { margin: 0 auto 26px; } .hero-cta, .devices { justify-content: center; } }
.strip { background: linear-gradient(90deg, var(--deep), #2a0508 60%, var(--panel)); border-top: 1px solid rgba(229,38,47,.35); border-bottom: 1px solid rgba(229,38,47,.35); }
.strip p { margin: 0; padding: 16px 0; color: var(--soft); font-size: 15px; } .strip b { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 22px; }
.step { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 22px 76px; }
[dir="rtl"] .step { padding: 22px 76px 22px 22px; }
.step i { position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font-style: normal; font-weight: 700; display: flex; align-items: center; justify-content: center; }
[dir="rtl"] .step i { left: auto; right: 22px; }
.step h3 { margin: 0 0 4px; font-size: 18px; } .step p { margin: 0; color: var(--soft); font-size: 15px; }
.f-ico { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; background: rgba(229,38,47,.12); align-items: center; justify-content: center; margin-bottom: 12px; }
.f-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--accent2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gallery { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); max-width: none; margin-top: 32px; } .gallery figure { margin: 0; }
.foot-logo { display: block; color: var(--text); font-weight: 700; letter-spacing: 1.5px; margin-bottom: 6px; } .foot-logo b { color: var(--accent); font-size: 10px; letter-spacing: 4px; margin-left: 8px; }
#features .grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); }

/* Account button next to "Activate device" (icon only on phones) */
.nav-acc { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--panel); color: var(--text) !important; padding: 7px 14px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.nav-acc:hover { border-color: var(--accent); }
.nav-acc svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 640px) { .nav-acc { padding: 7px 9px; } .nav-acc .acc-lbl { display: none; } }
@media (max-width: 420px) {
  header.top .wrap { gap: 8px; } nav.links { gap: 6px; }
  .nav-cta { padding: 6px 10px; font-size: 13px; } .lang-btn { padding: 5px 9px; font-size: 13px; }
  .word { font-size: 15px; letter-spacing: 1px; } .word b { font-size: 8px; letter-spacing: 4px; } .mark { width: 30px; height: 30px; }
}

/* ---- Motion (off for people who ask their device for less motion) ---- */
@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance: text rises in step by step, the TV slides in, the blade line sweeps across */
  .hero-text > * { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
  .hero-text > :nth-child(2) { animation-delay: .08s; } .hero-text > :nth-child(3) { animation-delay: .16s; }
  .hero-text > :nth-child(4) { animation-delay: .24s; } .hero-text > :nth-child(5) { animation-delay: .32s; }
  .hero-text > :nth-child(6) { animation-delay: .4s; }
  .hero-shot { animation: slidein .9s .2s cubic-bezier(.2,.8,.2,1) both; }
  .hero-shot .tv { animation: float 7s 1.2s ease-in-out infinite; }
  .hero:after { transform-origin: 0 50%; animation: blade 1.1s .35s cubic-bezier(.7,0,.2,1) both; }
  [dir="rtl"] .hero:after { transform-origin: 100% 50%; }
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  @keyframes slidein { from { opacity: 0; transform: translateX(60px) scale(.96); } to { opacity: 1; transform: none; } }
  [dir="rtl"] .hero-shot { animation-name: slidein-rtl; }
  @keyframes slidein-rtl { from { opacity: 0; transform: translateX(-60px) scale(.96); } to { opacity: 1; transform: none; } }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
  @keyframes blade { from { opacity: 0; transform: rotate(-8deg) scaleX(0); } 30% { opacity: 1; } to { opacity: 1; transform: rotate(-8deg) scaleX(1); } }

  /* Scroll reveal (site.js adds .rv, then .in when the element comes into view) */
  html .rv { opacity: 0; transform: translateY(28px); transition: opacity .6s ease-out, transform .6s cubic-bezier(.2,.8,.2,1); }
  html .rv.in { opacity: 1; transform: none; }

  /* Buttons lift and glow; the Activate button pulses gently */
  .btn-main, .btn-ghost, .nav-cta, .nav-acc, .device, .card, .plan { transition: transform .2s ease-out, box-shadow .2s ease-out, border-color .2s ease-out, filter .2s; }
  .btn-main:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(229,38,47,.5); }
  .btn-ghost:hover, .device:hover { transform: translateY(-2px); border-color: rgba(229,38,47,.55); }
  .card:hover, .plan:hover { transform: translateY(-4px); border-color: rgba(229,38,47,.45); }
  .plan.best:hover { border-color: var(--gold); }
  .nav-cta { animation: pulse 2.6s ease-out infinite; }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229,38,47,.55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(229,38,47,0); } }
}
