/* SroWorks website. Colours follow the app: jade logo, Light and Dark. */

:root {
  color-scheme: light;
  --bg: #F5F9F8;
  --bg-alt: #EAF2EF;
  --surface: #FFFFFF;
  --surface-2: #F0F6F4;
  --line: #D3E2DD;
  --text: #0D1C18;
  --muted: #4A615A;
  --accent: #17806B;
  --accent-hover: #126B59;
  --accent-ink: #FFFFFF;
  --accent-text: #137360;
  --accent-soft: rgba(23, 128, 107, .10);
  --pro: #7A3B9C;
  --pro-soft: rgba(132, 67, 166, .12);
  --ult: #946A00;
  --ult-soft: rgba(224, 168, 0, .18);
  --basic: #1A8A4C;
  --free: #9A4A06;
  --free-soft: rgba(232, 134, 42, .14);
  --glow: rgba(95, 224, 194, .30);
  --shadow: 0 1px 2px rgba(13, 28, 24, .05), 0 10px 28px rgba(13, 28, 24, .08);
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", "Helvetica Neue", Arial,
          "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans Arabic", "Segoe UI Emoji", sans-serif;
  --mono: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0A1211;
    --bg-alt: #0E1816;
    --surface: #12201C;
    --surface-2: #172824;
    --line: #233933;
    --text: #E4F1ED;
    --muted: #98B0A8;
    --accent: #3CCBA9;
    --accent-hover: #5FE0C2;
    --accent-ink: #04211B;
    --accent-text: #5FE0C2;
    --accent-soft: rgba(95, 224, 194, .12);
    --pro: #CDA4E6;
    --pro-soft: rgba(155, 89, 182, .22);
    --ult: #F2CB4A;
    --ult-soft: rgba(241, 196, 15, .16);
    --basic: #6FE6A0;
    --free: #F4B866;
    --free-soft: rgba(232, 134, 42, .16);
    --glow: rgba(60, 203, 169, .22);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A1211;
  --bg-alt: #0E1816;
  --surface: #12201C;
  --surface-2: #172824;
  --line: #233933;
  --text: #E4F1ED;
  --muted: #98B0A8;
  --accent: #3CCBA9;
  --accent-hover: #5FE0C2;
  --accent-ink: #04211B;
  --accent-text: #5FE0C2;
  --accent-soft: rgba(95, 224, 194, .12);
  --pro: #CDA4E6;
  --pro-soft: rgba(155, 89, 182, .22);
  --ult: #F2CB4A;
  --ult-soft: rgba(241, 196, 15, .16);
  --basic: #6FE6A0;
  --free: #F4B866;
  --free-soft: rgba(232, 134, 42, .16);
  --glow: rgba(60, 203, 169, .22);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; overflow-wrap: break-word; hyphens: auto; }
p, li, figcaption, summary { overflow-wrap: break-word; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
b { font-weight: 650; }
svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.fill { fill: currentColor; stroke: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }
.narrow { max-width: 820px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

html[data-free="off"] .free-only { display: none !important; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 12px;
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-small { min-height: 38px; padding: 6px 14px; font-size: .95rem; border-radius: 10px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); }

/* ---------- header ---------- */

.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; flex: none; }
.nav { display: flex; gap: 4px; margin-inline-start: 12px; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--accent-soft); }
.top-tools { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.lang select {
  height: 40px; max-width: 130px; padding-inline: 10px 28px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 500 .95rem var(--font); cursor: pointer;
}
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
.menu-btn { display: none; }

@media (max-width: 1000px) {
  .menu-btn { display: inline-grid; }
  .nav {
    display: none; position: absolute; top: 100%; inset-inline: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 1.05rem; }
}
@media (max-width: 480px) {
  .top-row { gap: 8px; }
  .brand span { display: none; }
  .top .btn-small { display: none; }
  .lang select { max-width: 116px; }
}

/* ---------- hero ---------- */

.hero {
  position: relative; overflow: hidden;
  padding-block: 64px 56px;
  background:
    radial-gradient(60% 70% at 85% 20%, var(--glow), transparent 70%),
    radial-gradient(40% 50% at 5% 0%, var(--accent-soft), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent-text); font-weight: 650; letter-spacing: .02em; margin-bottom: .8em; }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.5rem); margin-bottom: .45em; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 36em; }
.free-badge {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: var(--free-soft); color: var(--free); border: 1px solid color-mix(in srgb, var(--free) 35%, transparent);
  padding: 8px 14px; border-radius: 12px; font-size: .98rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 8px 14px; }
.hero-note { color: var(--muted); font-size: .92rem; margin: 0; }

.demo-window {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden;
}
.demo-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .95rem; }
.demo-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.bubble { padding: 12px 16px; border-radius: 14px; max-width: 92%; }
.bubble p { margin: 0 0 10px; }
.bubble-me { margin-inline-start: auto; background: var(--accent); color: var(--accent-ink); font-weight: 600; border-end-end-radius: 4px; }
.bubble-sw { background: var(--surface-2); border: 1px solid var(--line); border-end-start-radius: 4px; }
.change {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 10px; padding: 10px 12px; font-size: .95rem;
}
.change-val { font-family: var(--mono); white-space: nowrap; }
.change-val s { color: var(--muted); }
.change-val b { color: var(--accent-text); }
.demo-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.demo-run { background: var(--accent); color: var(--accent-ink); font-weight: 650; padding: 7px 16px; border-radius: 9px; }
.demo-undo { color: var(--muted); font-size: .88rem; }

@media (max-width: 860px) {
  .hero { padding-block: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- strip ---------- */

.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-grid > div { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 8px; gap: 2px; }
.strip-grid b { font-size: 1.8rem; line-height: 1.1; color: var(--accent-text); font-weight: 700; }
.strip-grid span { color: var(--muted); font-size: .92rem; }
@media (max-width: 640px) { .strip-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- sections ---------- */

.section { padding-block: 72px; }
.section.alt { background: var(--bg-alt); }
.section-lead { color: var(--muted); max-width: 46em; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head .section-lead { margin-bottom: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.strong { font-weight: 650; font-size: 1.1rem; }
@media (max-width: 860px) {
  .section { padding-block: 52px; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
}

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 32px; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) center / 12px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%231F8F78' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.cards { display: grid; gap: 16px; }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- how it works ---------- */

.how-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 22px; }
.steps li { counter-increment: step; position: relative; padding-inline-start: 56px; }
.steps li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: -2px;
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
}
.steps h3 { margin-bottom: .3em; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; } }

/* ---------- screenshots ---------- */

.shot { margin: 0; }
.shot-open {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #111; cursor: zoom-in; box-shadow: var(--shadow);
}
.shot-open img { width: 100%; transition: transform .3s; }
.shot-open:hover img { transform: scale(1.02); }
.shot figcaption { color: var(--muted); font-size: .93rem; margin-top: 10px; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.shots .shot-open img { aspect-ratio: 4 / 3; object-fit: cover; object-position: top center; }

.viewer { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.viewer::backdrop { background: rgba(3, 8, 7, .82); }
.viewer img { max-width: 96vw; max-height: 90vh; width: auto; border-radius: 10px; }
.viewer-close { position: absolute; top: -48px; inset-inline-end: 0; }

/* ---------- features ---------- */

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  padding: 8px 16px; border-radius: 999px; font: 600 .95rem var(--font); cursor: pointer; min-height: 40px;
}
.chip:hover { border-color: var(--accent); }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.feat-grid { columns: 3 300px; column-gap: 18px; }
.feat { break-inside: avoid; display: inline-block; width: 100%; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 14px; }
.feat h3 { color: var(--accent-text); margin-bottom: .7em; }
.feat ul { list-style: none; margin: 0; padding: 0; }
.feat li { padding: 7px 0; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.feat li:first-child { border-top: 0; padding-top: 0; }
.feat li b { color: var(--text); }
.feat-grid[data-show="basic"] li[data-plan="pro"],
.feat-grid[data-show="basic"] li[data-plan="ultimate"],
.feat-grid[data-show="pro"] li[data-plan="ultimate"] { display: none; }

.tag {
  display: inline-block; vertical-align: 1px; padding: 1px 8px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.tag-pro { color: var(--pro); background: var(--pro-soft); }
.tag-ult { color: var(--ult); background: var(--ult-soft); }

/* ---------- videos ---------- */

.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.video {
  position: relative; display: flex; flex-direction: column; gap: 8px; color: var(--text); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding-bottom: 14px;
  transition: border-color .15s, transform .15s;
}
.video:hover { border-color: var(--accent); transform: translateY(-2px); }
.video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0b0f0e; }
.video::after {
  content: ""; position: absolute; top: 0; inset-inline: 0; aspect-ratio: 16 / 9;
  background: center / 46px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='22' fill='%23000' fill-opacity='.55'/%3E%3Cpath d='M19 15.5v17l14-8.5z' fill='%23fff'/%3E%3C/svg%3E");
  opacity: .85; transition: opacity .15s;
}
.video:hover::after { opacity: 1; }
.video-t { padding-inline: 14px; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.video .tag { margin-inline: 14px; align-self: flex-start; }

/* ---------- plans ---------- */

.plan { border-top: 4px solid var(--line); }
.plan-basic { border-top-color: var(--basic); }
.plan-pro { border-top-color: var(--pro); }
.plan-ult { border-top-color: var(--ult); }
.plan-name { font-size: 1.5rem; font-weight: 750; color: var(--text) !important; margin-bottom: .1em; }
.plan-basic .plan-name { color: var(--basic) !important; }
.plan-pro .plan-name { color: var(--pro) !important; }
.plan-ult .plan-name { color: var(--ult) !important; }
.plan-line { font-weight: 650; color: var(--text) !important; }
.plan-free { display: inline-block; color: var(--free) !important; background: var(--free-soft); padding: 4px 10px; border-radius: 8px; font-weight: 600; font-size: .92rem; }
.plan-notes { margin-top: 28px; max-width: 760px; }
.plans-prices { margin-top: 22px; color: var(--muted); }
.plans-prices a { font-weight: 600; }

/* ---------- get started ---------- */

.numbered { list-style: none; counter-reset: n; padding: 0; margin: 0 0 20px; display: grid; gap: 16px; }
.numbered li { counter-increment: n; position: relative; padding-inline-start: 44px; color: var(--muted); }
.numbered li b { color: var(--text); }
.numbered li::before {
  content: counter(n); position: absolute; inset-inline-start: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--accent); color: var(--accent-text); font-weight: 700; font-size: .9rem;
}
.side { display: grid; gap: 16px; }
.side .card h3 { margin-bottom: .8em; }

details.more { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
details.more summary { padding: 14px 0; cursor: pointer; font-weight: 600; }
details.more ul { margin: 0 0 12px; padding-inline-start: 20px; color: var(--muted); }
details.more p { color: var(--muted); }

/* ---------- faq ---------- */

.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text); font-size: 1.2rem; font-weight: 500;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ---------- call to action + footer ---------- */

.cta {
  padding-block: 56px;
  background:
    radial-gradient(70% 120% at 100% 0%, var(--glow), transparent 70%),
    var(--bg-alt);
  border-top: 1px solid var(--line);
}
.cta-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin-bottom: .3em; }
.cta p { color: var(--muted); margin: 0; }
.cta .actions { margin: 0; }

.foot { border-top: 1px solid var(--line); padding-block: 32px 24px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand p { margin: 0; color: var(--muted); font-size: .92rem; }
.foot-links { display: flex; gap: 18px; }
.foot-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--accent-text); }
.fine { color: var(--muted); font-size: .82rem; margin: 0; }

/* 404 page */
.lost { text-align: center; }
.lost img { margin: 0 auto 24px; }
.lost .section-lead { margin-inline: auto; }

/* Arabic and other right-to-left text: the layout mirrors through the logical properties above. */
[dir="rtl"] body { line-height: 1.75; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }
