/* StreamSafe site. Palette taken from the product itself: the navy of the cover cloth, the dusk pink and lagoon cyan of the logo. */
:root {
  --night: #120b2b;
  --night-2: #1a1140;
  --cover: #1e2a52;
  --dusk: #ff4fa3;
  --lagoon: #35d5e8;
  --sand: #f3e6d3;
  --sand-2: #eadac2;
  --ink: #1b1530;
  --text: #f4efff;
  --muted: #b8acd9;
  --line: rgb(255 255 255 / 0.12);
  --display: "Reem Kufi", "Readex Pro", system-ui, sans-serif;
  --body: "Readex Pro", system-ui, "Segoe UI", Tahoma, sans-serif;
  --radius-s: 6px;
  --radius-l: 18px;
  --wrap: 1140px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--night); color: var(--text); font: 400 17px/1.7 var(--body); }
img, video { display: block; max-inline-size: 100%; block-size: auto; }
a { color: var(--lagoon); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

/* language switch: both languages are in the page; lang.js sets <html lang> */
html[lang="en"] [data-l="ar"], html[lang="ar"] [data-l="en"] { display: none !important; }
html[lang="ar"] body { direction: rtl; }

.wrap { inline-size: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; inset-block-start: -60px; background: var(--dusk); color: #fff; padding: 8px 14px; border-radius: var(--radius-s); z-index: 20; }
.skip:focus { inset-block-start: 12px; }

/* header */
.top { position: sticky; inset-block-start: 0; z-index: 10; background: rgb(18 11 43 / 0.9); backdrop-filter: blur(10px); border-block-end: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-block-size: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 21px/1 var(--display); }
.brand img { inline-size: 42px; block-size: 42px; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }
.lang { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 6px 14px; font: 500 14px var(--body); cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font: 600 16px/1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-main { background: var(--dusk); color: #1a0716; }
.btn-main:hover { background: #ff6db3; }
.btn-line { border-color: var(--lagoon); color: var(--lagoon); }
.btn-line:hover { background: rgb(53 213 232 / 0.1); }
.top .btn { padding: 10px 18px; font-size: 14px; }

/* hero: the stream monitor */
.hero { padding-block: 64px 72px; overflow: clip; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 62px); letter-spacing: -0.01em; }
.hero .lead { color: var(--muted); font-size: 19px; margin-block: 20px 30px; max-inline-size: 34em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .fine { color: var(--muted); font-size: 14px; margin-block-start: 16px; }

.monitor { position: relative; border-radius: var(--radius-l); background: #000; box-shadow: 0 0 0 1px var(--line), 0 30px 80px -20px rgb(255 79 163 / 0.35), 0 10px 40px -10px rgb(53 213 232 / 0.25); overflow: hidden; }
.monitor .screen { position: relative; aspect-ratio: 16 / 9; }
.monitor .screen img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; opacity: 0; }
.monitor .screen img:first-child { opacity: 1; }
.live { position: absolute; inset-block-start: 14px; inset-inline-start: 14px; display: flex; gap: 8px; align-items: center; font: 600 13px/1 var(--body); }
.live b { background: #e5233f; color: #fff; padding: 5px 9px; border-radius: 4px; }
.live span { background: rgb(0 0 0 / 0.6); padding: 5px 9px; border-radius: 4px; }
.lane { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; background: var(--night-2); font-size: 13px; color: var(--muted); }
.lane .bar { position: relative; block-size: 8px; border-radius: 99px; background: rgb(255 255 255 / 0.08); overflow: hidden; }
.lane .bar i { position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: 100%; background: linear-gradient(90deg, var(--lagoon), var(--dusk)); transform-origin: left; transform: scaleX(1); }
@media (prefers-reduced-motion: no-preference) {
  .monitor .screen img { animation: slide 16s infinite; }
  .monitor .screen img:nth-child(2) { animation-delay: 4s; }
  .monitor .screen img:nth-child(3) { animation-delay: 8s; }
  .monitor .screen img:nth-child(4) { animation-delay: 12s; }
  .monitor .screen img:first-child { opacity: 0; }
  .lane .bar i { animation: buffer 4s linear infinite; }
}
@keyframes slide { 0% { opacity: 0; } 4%, 25% { opacity: 1; } 29%, 100% { opacity: 0; } }
html[lang="ar"] .lane .bar i { transform-origin: right; }
@keyframes buffer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.monitor figcaption { padding: 0 16px 14px; background: var(--night-2); color: var(--muted); font-size: 13px; }

/* sections */
.band { padding-block: 88px; }
.band-sand { background: var(--sand); color: var(--ink); color-scheme: light; }
.band-sand a { color: #8a1f57; }
.band-cover { background: var(--cover); }
.head { max-inline-size: 44em; margin-block-end: 44px; }
.head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.head p { margin-block-start: 14px; font-size: 18px; color: var(--muted); }
.band-sand .head p { color: #5c4e6e; }

/* real output */
.reel video { inline-size: 100%; border-radius: var(--radius-l); background: #000; aspect-ratio: 16 / 9; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-block-start: 18px; }
.shots figure { margin: 0; }
.shots img { border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; inline-size: 100%; }
.shots figcaption { font-size: 14px; color: var(--muted); margin-block-start: 8px; }
.source { font-size: 13px; color: var(--muted); margin-block-start: 18px; }

/* three ways to cover */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.way img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; inline-size: 100%; margin-block-end: 18px; }
.way h3 { font-size: 23px; margin-block-end: 8px; }
.way p { color: var(--muted); }
.rules { margin-block-start: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-block-start: 1px solid var(--line); }
.rules p { padding: 22px 0; padding-inline-end: 28px; color: var(--muted); font-size: 15px; }
.rules strong { display: block; color: var(--text); font-size: 17px; margin-block-end: 4px; }

/* signal path */
.path { direction: ltr; display: grid; grid-template-columns: 1fr auto 1.3fr auto 1fr; align-items: center; gap: 14px; margin-block-end: 52px; }
.node { border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-align: center; background: rgb(255 255 255 / 0.03); }
.node.me { border-color: var(--dusk); background: rgb(255 79 163 / 0.08); }
.node b { display: block; font: 600 19px var(--display); }
.node small { color: var(--muted); font-size: 13px; }
.arrow { color: var(--lagoon); font-size: 26px; }
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
ol.steps li { counter-increment: step; }
ol.steps li::before { content: counter(step); display: grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: 50%; border: 2px solid var(--dusk); color: var(--dusk); font: 600 18px var(--display); margin-block-end: 14px; }
ol.steps h3 { font-size: 20px; margin-block-end: 6px; }
ol.steps p { color: var(--muted); font-size: 15px; }

/* specs */
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.specs dl { margin: 0; }
.specs div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; padding-block: 16px; border-block-end: 1px solid rgb(27 21 48 / 0.14); }
.specs dt { font-weight: 600; }
.specs dd { margin: 0; color: #4a3d5c; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-inline-size: 900px; }
.plan { background: #fff; border-radius: var(--radius-l); padding: 32px; display: flex; flex-direction: column; box-shadow: 0 1px 0 rgb(27 21 48 / 0.08); }
.plan.pro { background: var(--ink); color: var(--text); }
.plan h3 { font-size: 26px; }
.plan .tag { font-size: 15px; color: #5c4e6e; margin-block-start: 4px; }
.plan.pro .tag { color: var(--muted); }
.price { font: 600 52px/1 var(--display); margin-block: 22px 4px; }
.price small { font: 400 17px var(--body); }
.per { font-size: 14px; color: #5c4e6e; }
.plan.pro .per { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; flex: 1; }
.plan li { padding-block: 7px; padding-inline-start: 28px; position: relative; }
.plan li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 15px; inline-size: 14px; block-size: 8px; border-left: 2.5px solid var(--dusk); border-bottom: 2.5px solid var(--dusk); transform: rotate(-45deg); }
.plan .btn { inline-size: 100%; }
.plan:not(.pro) .btn-main { background: var(--ink); color: #fff; }
.trial { margin-block-start: 28px; max-inline-size: 900px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; font-size: 15px; color: #4a3d5c; }
.trial strong { display: block; color: var(--ink); font-size: 16px; }

/* faq: native exclusive accordion */
.faq { max-inline-size: 820px; }
.faq details { border-block-end: 1px solid rgb(27 21 48 / 0.15); }
.faq summary { cursor: pointer; list-style: none; padding-block: 20px; padding-inline-end: 36px; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 4px; inset-block-start: 16px; font-size: 26px; font-weight: 400; color: #8a1f57; }
.faq details[open] summary::after { content: "−"; }
.faq details::details-content { interpolate-size: allow-keywords; overflow: clip; contain: layout; }
.faq details:not([open])::details-content { block-size: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq details::details-content { transition: block-size 0.3s ease-in-out, content-visibility 0.3s allow-discrete, display 0.3s allow-discrete; }
}
.faq .a { margin: 0; padding-block-end: 22px; color: #4a3d5c; max-inline-size: 42em; }

/* closing call */
.close { text-align: center; }
.close img { inline-size: 150px; margin-inline: auto; margin-block-end: 20px; }
.close h2 { font-size: clamp(30px, 4vw, 46px); }
.close p { color: var(--muted); margin-block: 12px 28px; }

/* legal pages */
.doc { max-inline-size: 760px; margin-inline: auto; padding: 56px 16px 80px; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); margin-block-end: 6px; }
.doc h2 { font-size: 23px; margin-block: 34px 10px; }
.doc p, .doc li { color: #ddd3f2; }
.doc p + p { margin-block-start: 12px; }
.doc ul { padding-inline-start: 22px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-block-end: 26px; }
.doc .box { background: var(--cover); border-radius: 12px; padding: 18px 22px; margin-block: 18px; }

/* footer */
.foot { border-block-start: 1px solid var(--line); padding-block: 40px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 48px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: flex-end; }
.foot a { color: var(--muted); }
.foot .legal { grid-column: 1 / -1; font-size: 13px; }

/* small screens */
@media (max-width: 900px) {
  .hero .wrap, .specs, .foot .wrap { grid-template-columns: 1fr; }
  .ways, .rules, ol.steps, .trial { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
  .foot .links { justify-content: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { display: none !important; }
  .top .btn { display: none; }
  .brand { margin-inline-end: auto; }
  .band { padding-block: 64px; }
  .ways, .rules, ol.steps, .trial, .plans { grid-template-columns: 1fr; }
  .path { grid-template-columns: 1fr; text-align: center; }
  .arrow { transform: rotate(90deg); justify-self: center; }
  .specs div { grid-template-columns: 1fr; gap: 2px; }
}
.plan > [data-l] { flex: 1; display: flex; flex-direction: column; }

/* hero video */
.monitor .screen video { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.pp { position: absolute; inset-block-end: 12px; inset-inline-end: 12px; background: rgb(0 0 0 / 0.6); color: #fff; border: 1px solid rgb(255 255 255 / 0.3); border-radius: 999px; padding: 6px 14px; font: 500 13px var(--body); cursor: pointer; }

/* monthly / yearly switch: pure CSS through :has() */
.period { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; margin-block-end: 24px; box-shadow: 0 1px 0 rgb(27 21 48 / 0.08); }
.period input { position: absolute; opacity: 0; pointer-events: none; }
.period label { padding: 9px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 15px; }
.period input:checked + label { background: var(--ink); color: #fff; }
.period input:focus-visible + label { outline: 3px solid var(--lagoon); outline-offset: 2px; }
#pricing .y { display: none; }
#pricing:has(#py:checked) .y { display: inline; }
#pricing:has(#py:checked) .m { display: none; }

/* yearly saving: make the 20% obvious */
.save { font-style: normal; display: inline-block; background: var(--dusk); color: #1a0716; font: 700 13px/1 var(--body); padding: 5px 9px; border-radius: 999px; vertical-align: middle; }
.period .save { margin-inline-start: 6px; }
.price s { font: 400 22px var(--body); opacity: 0.55; margin-inline-end: 6px; }
.price .save { font-size: 14px; margin-inline-start: 8px; }
/* plan buttons follow the monthly / yearly switch */
#pricing a.btn.y { display: none; }
#pricing:has(#py:checked) a.btn.y { display: inline-flex; }
#pricing:has(#py:checked) a.btn.m { display: none; }
/* launch period: a friendly support box under the plans */
.support { max-inline-size: 900px; margin-block-start: 28px; background: #fff; border-radius: var(--radius-l); padding: 24px 28px; display: grid; gap: 14px; color: var(--ink); }
.support .btn { justify-self: start; }
