/* =================================================================
   Shiftly — Editorial Dark Luxury design system
   Mobile-first · light/dark · accessible · animation-light
   ================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --maxw: 1180px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --gap: clamp(1rem, 3vw, 2rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.18s var(--ease);
  --t: 0.4s var(--ease);

  /* App-screen palette (always dark — this is the product UI) */
  --app-bg: #101016;
  --app-bezel: #050507;
  --app-body: #1f2027;
  --app-surface: #1b1b24;
  --app-surface-2: #23232f;
  --app-text: #ecedf4;
  --app-muted: #8a8a99;
  --app-line: rgba(255, 255, 255, 0.09);
  --sh-day: #e7b96b;
  --sh-night: #7e8cff;
  --sh-noon: #57d6a6;
  --sh-off: #50505f;
}

/* Dark (default) */
[data-theme="dark"] {
  --bg: #0b0b10;
  --bg-2: #0f0f16;
  --bg-grad: radial-gradient(1200px 600px at 80% -10%, rgba(231, 185, 107, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(126, 140, 255, 0.10), transparent 55%);
  --surface: #15151e;
  --surface-2: #1c1c27;
  --surface-3: #23232f;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f4f8;
  --text-soft: #c8c8d4;
  --muted: #8e8e9d;
  --accent: #e7b96b;
  --accent-2: #cf9d4f;
  --accent-text: #edc77f;
  --accent-ink: #1a1408;
  --ring: rgba(231, 185, 107, 0.45);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 8px 26px rgba(0, 0, 0, 0.4);
  --glow: rgba(231, 185, 107, 0.16);
  color-scheme: dark;
}

/* Light */
[data-theme="light"] {
  --bg: #faf8f4;
  --bg-2: #f2ede5;
  --bg-grad: radial-gradient(1200px 600px at 80% -10%, rgba(185, 133, 47, 0.14), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(95, 110, 220, 0.08), transparent 55%);
  --surface: #ffffff;
  --surface-2: #f7f2ea;
  --surface-3: #efe8dd;
  --border: rgba(26, 20, 8, 0.12);
  --border-strong: rgba(26, 20, 8, 0.22);
  --text: #1c1813;
  --text-soft: #4c473e;
  --muted: #726c61;
  --accent: #b9852f;
  --accent-2: #9a6c20;
  --accent-text: #8a5a14;
  --accent-ink: #fff7e9;
  --ring: rgba(185, 133, 47, 0.4);
  --shadow: 0 24px 60px rgba(60, 45, 20, 0.18);
  --shadow-sm: 0 10px 30px rgba(60, 45, 20, 0.12);
  --glow: rgba(185, 133, 47, 0.12);
  color-scheme: light;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background var(--t), color var(--t);
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* Accessibility helpers */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.6rem 1rem; border-radius: 10px; font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.2rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--glow); }

.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); text-align: center; }
.section-title { font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.85rem); margin: 0.7rem 0 0.6rem; }
.section-lead { color: var(--text-soft); font-size: clamp(1rem, 0.96rem + 0.4vw, 1.18rem); }
.text-accent { color: var(--accent-text); }
.section-cta { text-align: center; margin-top: clamp(2rem, 4vw, 3rem); }

section { padding-block: clamp(3.5rem, 8vw, 7rem); }

/* ---------- Buttons ---------- */
.btn {
  --btn-pad-y: 0.8rem; --btn-pad-x: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: 0.98rem; letter-spacing: -0.01em;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  will-change: transform; text-align: center;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-sm { --btn-pad-y: 0.55rem; --btn-pad-x: 1.05rem; font-size: 0.9rem; }
.btn-lg { --btn-pad-y: 0.95rem; --btn-pad-x: 1.7rem; font-size: 1.02rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.site-header.is-stuck { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 750; font-size: 1.18rem; letter-spacing: -0.02em; }
.brand-name { color: var(--text); white-space: nowrap; }
.brand-badge {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  background: #fff; border-radius: 11px; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.06); overflow: hidden;
}
.brand-icon { width: 30px; height: auto; }
.brand:hover .brand-badge { transform: translateY(-1px); }
.brand-badge { transition: transform var(--t-fast); }

/* Footer full-logo lockup */
.brand-footer { display: inline-flex; }
.footer-logo-badge {
  display: inline-grid; place-items: center; padding: 12px 16px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.footer-logo { width: auto; height: 64px; display: block; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 0.3rem; list-style: none; padding: 0; }
.primary-nav a {
  display: block; padding: 0.5rem 0.85rem; border-radius: 10px;
  color: var(--text-soft); font-weight: 550; font-size: 0.96rem;
  transition: color var(--t-fast), background var(--t-fast);
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; margin-left: 0.4rem; }
.theme-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-soft); transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.theme-toggle:hover { color: var(--accent-text); border-color: var(--accent); transform: rotate(15deg); }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); align-items: center; justify-content: center; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--t-fast), opacity var(--t-fast); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { border-top: 1px solid var(--border); background: var(--bg); }
.mobile-nav ul { list-style: none; padding: 1rem clamp(1.1rem, 4vw, 2rem) 1.4rem; display: grid; gap: 0.35rem; }
.mobile-nav a { display: block; padding: 0.75rem 0.5rem; border-radius: 12px; font-weight: 600; font-size: 1.05rem; }
.mobile-nav a:hover { background: var(--surface-2); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 6rem); overflow: clip; }
.hero-bg { position: absolute; inset: 0; background: var(--bg-grad); pointer-events: none; z-index: -1; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.hero-title { font-size: clamp(2.4rem, 1.4rem + 4.6vw, 4.5rem); margin: 1rem 0; letter-spacing: -0.035em; }
.hero-subtitle { font-size: clamp(1.05rem, 1rem + 0.5vw, 1.28rem); color: var(--text-soft); max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero-badges { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: 0.7rem 1.3rem; }
.hero-badges li { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; color: var(--muted); font-weight: 550; }
.hero-badges svg { color: var(--accent); }

/* Phone stage */
.hero-visual { display: grid; place-items: center; }
.phone-stage { position: relative; width: min(330px, 80vw); aspect-ratio: 320 / 650; }
.phone-stage-single { aspect-ratio: auto; }
.phone-front { position: relative; z-index: 2; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.45)); }
.phone-back { position: absolute; top: 7%; left: 30%; width: 72%; z-index: 1; opacity: 0.4; transform: rotate(6deg) scale(0.95); filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45)) blur(1.5px); pointer-events: none; }
.phone-float { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Phone SVG component ---------- */
/* Always render the device mock left-to-right, even on RTL pages, so the
   internal SVG layout (anchored text, grids) is never flipped off-canvas. */
.phone { width: 100%; height: auto; direction: ltr; }
.phone text { direction: ltr; }
[dir="rtl"] .phone text[data-rtl] { direction: rtl; }

/* Real marketing screenshots (self-framed App Store images) */
.shot { display: block; width: 100%; height: auto; border-radius: 24px; box-shadow: var(--shadow); }
.feature-mock .shot { border-radius: 18px; }
.ph-body { fill: var(--app-body); }
.ph-bezel { fill: var(--app-bezel); }
.ph-screen { fill: var(--app-bg); }
.ph-glow { fill: var(--sh-day); opacity: 0.08; }
.ph-notch { fill: #000; }
.ph-time { fill: var(--app-text); font-size: 13px; font-weight: 600; }
.ph-mut-fill { fill: var(--app-muted); }
.ph-line-stroke { stroke: var(--app-muted); }
.ph-h1 { fill: var(--app-text); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.ph-sub { fill: var(--app-muted); font-size: 11px; }
.ph-label { fill: var(--app-muted); font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; }
.ph-card-tx { fill: var(--app-text); font-size: 12px; font-weight: 600; }
.ph-card-sub { fill: var(--app-muted); font-size: 10px; }
.ph-strong { font-weight: 700; }
.ph-big { fill: var(--app-text); font-size: 17px; font-weight: 700; }
.ph-xl { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.ph-stat { font-size: 13px; font-weight: 700; }
.ph-score { fill: var(--app-text); font-size: 30px; font-weight: 800; }
.ph-score-sub { fill: var(--app-muted); font-size: 10px; }
.ph-mini { font-size: 9.5px; font-weight: 700; }
.ph-mini-sub { fill: var(--app-muted); font-size: 8.5px; font-weight: 600; }
.ph-seg { font-size: 11px; font-weight: 700; }
.ph-foot { fill: var(--app-muted); font-size: 10px; }
.ph-pill { fill: var(--app-surface-2); }
.ph-pill-tx { fill: var(--app-text); font-size: 10px; font-weight: 600; }
.ph-dow text { fill: var(--app-muted); font-size: 10px; font-weight: 600; }
.ph-legend text { fill: var(--app-muted); font-size: 10px; }
.ph-card { fill: var(--app-surface); }
.ph-card-active { fill: var(--app-surface-2); stroke: var(--sh-day); stroke-width: 1.4; }
.ph-card-hero { fill: var(--app-surface-2); }
.ph-card-tip { fill: var(--app-surface-2); stroke: var(--sh-noon); stroke-width: 1; stroke-opacity: 0.5; }
.ph-input { fill: var(--app-surface); stroke: var(--app-line); stroke-width: 1; }
.ph-divider { stroke: var(--app-line); stroke-width: 1; }
.ph-track { fill: var(--app-surface-2); }
.ph-bar { fill: var(--app-surface-2); }
.ph-check { stroke: var(--sh-day); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ph-cta { fill: var(--sh-day); }
.ph-cta-tx { fill: #1a1408; font-size: 13px; font-weight: 700; }
.ph-toggle-on { fill: var(--sh-day); }
.ph-toggle-off { fill: var(--app-surface-2); }
.ph-toggle-knob { fill: #fff; }
.ph-add { fill: var(--app-surface-2); stroke: var(--app-line); }
.ph-add-tx { fill: var(--app-text); font-size: 20px; font-weight: 400; }
.ph-tip-icon { font-size: 14px; }
.ph-tag-ok { fill: var(--sh-noon); font-size: 9.5px; font-weight: 700; }
.ph-tag-pending { fill: var(--sh-day); font-size: 9.5px; font-weight: 700; }
.ph-fab { fill: var(--sh-day); filter: drop-shadow(0 6px 14px rgba(231,185,107,0.4)); }
.ph-fab-tx { fill: #1a1408; font-size: 26px; font-weight: 400; }

/* shift colours */
.sh-day { fill: var(--sh-day); } .sh-day-tx { fill: var(--sh-day); } .sh-day-bg { fill: var(--sh-day); opacity: 0.16; } .sh-day-stroke { stroke: var(--sh-day); }
.sh-night { fill: var(--sh-night); } .sh-night-tx { fill: var(--sh-night); } .sh-night-bg { fill: var(--sh-night); opacity: 0.16; } .sh-night-stroke { stroke: var(--sh-night); }
.sh-noon { fill: var(--sh-noon); } .sh-noon-tx { fill: var(--sh-noon); } .sh-noon-bg { fill: var(--sh-noon); opacity: 0.16; } .sh-noon-stroke { stroke: var(--sh-noon); }
.sh-off { fill: var(--sh-off); } .sh-off-bg { fill: var(--app-surface); }
.cal-cell { fill: var(--app-surface); }
.cal-num { fill: var(--app-text); font-size: 12px; font-weight: 600; }
.cal-off { fill: var(--app-muted); }
.ring-track { stroke: var(--app-surface-2); stroke-width: 10; }
.ring-fill { stroke-width: 10; stroke-linecap: round; transition: stroke-dasharray 1s var(--ease); }

/* ---------- Stats band ---------- */
.stats-band { padding-block: clamp(2rem, 4vw, 3rem); background: var(--bg-2); border-block: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { text-align: center; padding: 0.6rem; border-left: 2px solid var(--border); }
.stat:first-child { border-left: 0; }
.stat-value { display: block; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem); font-weight: 800; color: var(--accent-text); letter-spacing: -0.02em; }
.stat-label { display: block; font-size: 0.84rem; color: var(--muted); margin-top: 0.2rem; }

/* ---------- Product tour / video ---------- */
.tour-frame {
  position: relative; margin-inline: auto; max-width: 920px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: var(--shadow); overflow: hidden; padding: clamp(2rem, 5vw, 3.5rem) 1rem;
}
.tour-video {
  display: none; width: min(300px, 72vw); margin-inline: auto;
  border-radius: 40px; border: 7px solid #050507; background: #000;
  box-shadow: var(--shadow); position: relative; z-index: 2;
}
.tour-video[data-ready="true"] { display: block; }
.tour-demo { position: relative; height: clamp(440px, 70vw, 600px); display: grid; place-items: center; }
.tour-glow { position: absolute; width: 60%; height: 60%; background: radial-gradient(circle, var(--glow), transparent 70%); filter: blur(20px); z-index: 0; }
.demo-screen {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; transform: translateY(18px) scale(0.97);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); z-index: 1;
}
.demo-screen .phone { width: min(280px, 62vw); }
.demo-screen.is-active { opacity: 1; transform: translateY(0) scale(1); z-index: 2; }
.tour-dots { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; padding: 1.4rem 0 0; margin: 0; position: relative; z-index: 3; }
.tour-dots button {
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.tour-dots button.is-active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.feature-grid-sm { margin-top: var(--gap); grid-template-columns: repeat(2, 1fr); }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 1.8rem); transition: transform var(--t), border-color var(--t), box-shadow var(--t);
  position: relative; overflow: hidden;
}
.feature-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--accent), var(--accent-2)); opacity: 0; transition: opacity var(--t); }
.feature-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.feature-card:hover::before { opacity: 1; }
.feature-card-lg { display: flex; flex-direction: column; }
.feature-mock { background: var(--bg-2); border-radius: var(--radius-sm); padding: 1.2rem 1.2rem 0; margin: -0.4rem -0.4rem 1.2rem; display: grid; place-items: center; overflow: hidden; }
.feature-mock .phone { width: 150px; }
.feature-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); font-size: 1.3rem; margin-bottom: 0.8rem; }
.feature-card h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-soft); font-size: 0.96rem; }
.tag-list { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-list li { font-size: 0.76rem; font-weight: 600; color: var(--text-soft); background: var(--surface-2); border: 1px solid var(--border); padding: 0.28rem 0.65rem; border-radius: 999px; }

/* ---------- Benefits ---------- */
.benefits { background: var(--bg-2); border-block: 1px solid var(--border); }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.benefit-card { padding: 1.6rem 0; position: relative; }
.benefit-num { font-size: 2.4rem; font-weight: 800; color: var(--accent-text); letter-spacing: -0.03em; opacity: 0.85; }
.benefit-card h3 { font-size: 1.12rem; margin: 0.4rem 0 0.5rem; }
.benefit-card p { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-p { color: var(--text-soft); margin-top: 1rem; }
.about .btn { margin-top: 1.6rem; }
.about-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.about-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem; text-align: center; transition: transform var(--t), border-color var(--t);
}
.about-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.about-glyph { font-size: 1.6rem; }
.about-value { display: block; font-size: 1.3rem; font-weight: 750; margin-top: 0.4rem; }
.about-label { display: block; color: var(--muted); font-size: 0.84rem; margin-top: 0.2rem; }

/* ---------- Pricing ---------- */
.pricing { text-align: center; }
.price-card {
  max-width: 560px; margin-inline: auto; text-align: left;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.price-card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.price-card-wide { max-width: 720px; }
.price-head { text-align: center; padding-bottom: 1.4rem; border-bottom: 1px solid var(--border); margin-bottom: 1.4rem; }
.price-crown { font-size: 1.6rem; }
.price-plan { display: block; font-weight: 600; color: var(--accent-text); letter-spacing: 0.04em; margin-top: 0.3rem; }
.price-amount { display: block; font-size: clamp(3rem, 2rem + 4vw, 4.2rem); font-weight: 850; letter-spacing: -0.04em; line-height: 1; margin: 0.3rem 0; }
.price-note { display: block; color: var(--muted); font-size: 0.9rem; }
.price-list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 0.7rem; }
.price-list-2col { grid-template-columns: repeat(2, 1fr); }
.price-list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.96rem; color: var(--text-soft); }
.price-list svg { flex: none; color: var(--accent); }
.price-foot { text-align: center; color: var(--muted); font-size: 0.84rem; margin-top: 1rem; }

.price-compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; max-width: 760px; margin: 2.5rem auto 0; }
.compare-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.compare-card-muted { opacity: 0.85; }
.compare-card h3 { font-size: 1rem; color: var(--muted); }
.compare-price { font-size: 2rem; font-weight: 800; margin: 0.4rem 0; letter-spacing: -0.02em; }
.compare-price span { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.compare-line { font-size: 0.9rem; color: var(--text-soft); }
.compare-good { color: var(--sh-noon); font-weight: 600; font-size: 0.88rem; margin-top: 0.4rem; }
.compare-bad { color: var(--muted); font-size: 0.88rem; margin-top: 0.4rem; }
.compare-vs { color: var(--muted); font-weight: 700; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg-2); border-block: 1px solid var(--border); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.7rem; display: flex; flex-direction: column; gap: 0.9rem; transition: transform var(--t), border-color var(--t); }
.review-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 0.95rem; }
.review-card blockquote { color: var(--text-soft); font-size: 0.98rem; line-height: 1.65; }
.review-card figcaption { display: flex; align-items: center; gap: 0.7rem; margin-top: auto; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font-weight: 750; font-size: 0.85rem; }
.rev-name { display: block; font-weight: 650; font-size: 0.95rem; }
.rev-role { display: block; color: var(--muted); font-size: 0.84rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin-inline: auto; display: grid; gap: 0.7rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color var(--t); }
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; font-weight: 650; font-size: 1.02rem; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { flex: none; position: relative; width: 18px; height: 18px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform var(--t-fast); }
.faq-icon::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-icon::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item[open] .faq-icon::after { transform: scaleY(0); }
.faq-answer { padding: 0 1.3rem 1.2rem; color: var(--text-soft); }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.9rem; }
.contact-points li { display: flex; align-items: center; gap: 0.7rem; color: var(--text-soft); }
.cp-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: var(--shadow-sm); display: grid; gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--text-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 0.95rem; border-radius: 12px;
  border: 1px solid var(--border-strong); background: var(--bg-2); color: var(--text);
  font: inherit; font-size: 0.98rem; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.field [aria-invalid="true"] { border-color: #e26d6d; }
.field-error { color: #e98686; font-size: 0.82rem; font-weight: 500; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.9rem; min-height: 1.2em; text-align: center; }
.form-status.ok { color: var(--sh-noon); }
.form-status.err { color: #e98686; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; background:
    radial-gradient(800px 360px at 50% 0%, var(--glow), transparent 70%), var(--bg-2);
  border-top: 1px solid var(--border); }
.final-inner h2 { font-size: clamp(1.8rem, 1.3rem + 2.4vw, 3rem); }
.final-inner p { color: var(--text-soft); margin: 0.6rem 0 0; font-size: 1.1rem; }
.final-inner .hero-cta { justify-content: center; }

/* ---------- Page hero (sub-pages) ---------- */
.page-hero { position: relative; padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); overflow: clip; }
.page-hero-center { text-align: center; }
.page-hero-center .hero-cta { justify-content: center; }
.page-title { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem); margin: 0.8rem 0 0.6rem; letter-spacing: -0.03em; }
.page-lead { color: var(--text-soft); font-size: clamp(1.05rem, 1rem + 0.5vw, 1.25rem); max-width: 60ch; }
.page-hero-center .page-lead { margin-inline: auto; }
.error-code { font-size: clamp(4rem, 3rem + 6vw, 7rem); font-weight: 850; color: var(--accent-text); letter-spacing: -0.04em; line-height: 1; }
.success-mark { display: grid; place-items: center; margin-bottom: 0.5rem; }
.sm-ring { fill: none; stroke: var(--accent); stroke-width: 3; opacity: 0.4; }
.sm-check { stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 0.8s var(--ease) 0.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Feature detail rows ---------- */
.feature-detail .container { display: grid; gap: clamp(3rem, 7vw, 5.5rem); }
.fd-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.fd-reverse { direction: rtl; }
.fd-reverse > * { direction: ltr; }
.fd-visual { display: grid; place-items: center; background: linear-gradient(160deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); }
.fd-visual .phone { width: min(260px, 64vw); filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.4)); }
.fd-copy h2 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.2rem); margin: 0.6rem 0 0.7rem; }
.fd-copy p { color: var(--text-soft); font-size: 1.05rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.gallery-item { background: linear-gradient(160deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1rem 1.2rem; text-align: center; transition: transform var(--t), border-color var(--t), box-shadow var(--t); }
.gallery-item:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow-sm); }
.gallery-phone { display: grid; place-items: center; margin-bottom: 1rem; }
.gallery-phone .phone { width: 150px; }
.gallery-title { display: block; font-weight: 650; }
.gallery-caption { display: block; color: var(--muted); font-size: 0.84rem; margin-top: 0.2rem; }

/* ---------- Privacy / legal page ---------- */
.privacy-updated { color: var(--muted); font-size: 0.95rem; margin-top: 0.6rem; }
.privacy { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.privacy-summary {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start;
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 4vw, 2.2rem); margin-bottom: clamp(2rem, 5vw, 3rem);
  position: relative; overflow: hidden;
}
.privacy-summary::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--sh-noon), var(--accent)); }
.ps-icon { font-size: 2rem; line-height: 1; }
.privacy-summary h2 { font-size: 1.2rem; margin-bottom: 0.8rem; }
.privacy-summary ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.45rem; }
.privacy-summary li { color: var(--text-soft); }

.privacy-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.privacy-toc { position: sticky; top: 84px; }
.toc-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.8rem; }
.privacy-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.15rem; counter-reset: toc; }
.privacy-toc a { display: block; padding: 0.4rem 0.7rem; border-radius: 8px; color: var(--text-soft); font-size: 0.9rem; border-left: 2px solid transparent; transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast); }
.privacy-toc a:hover { color: var(--accent-text); background: var(--surface-2); border-left-color: var(--accent); }

.privacy-body { max-width: 760px; }
.legal-section { padding-block: clamp(1.2rem, 3vw, 1.8rem); scroll-margin-top: 90px; }
.legal-section + .legal-section { border-top: 1px solid var(--border); }
.legal-section h2 { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); margin-bottom: 0.8rem; }
.legal-section h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.legal-section p { color: var(--text-soft); margin-bottom: 0.9rem; }
.legal-section ul { color: var(--text-soft); margin: 0 0 1rem; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.legal-section a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.legal-section a:hover { color: var(--accent); }
.legal-section strong { color: var(--text); }

.legal-callout { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--sh-noon); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; margin: 0.5rem 0 1rem; }
.legal-callout p { margin: 0; }
.lc-icon { font-size: 1.4rem; }

.data-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.2rem 0 0.5rem; }
.data-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; transition: transform var(--t), border-color var(--t); }
.data-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.dc-glyph { font-size: 1.5rem; }
.data-card h3 { margin: 0.5rem 0 0.4rem; }
.data-card p { font-size: 0.92rem; margin-bottom: 0.8rem; }
.dc-tag { display: inline-block; font-size: 0.74rem; font-weight: 650; padding: 0.28rem 0.7rem; border-radius: 999px; }
.dc-tag-local { color: var(--sh-noon); background: color-mix(in srgb, var(--sh-noon) 14%, transparent); }
.dc-tag-read { color: var(--sh-night); background: color-mix(in srgb, var(--sh-night) 16%, transparent); }
.dc-tag-never { color: var(--muted); background: var(--surface-2); }
.privacy .contact-points { margin-top: 0.4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-block: clamp(2.5rem, 5vw, 4rem) 1.8rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.footer-tagline { color: var(--text-soft); margin: 1rem 0 1.2rem; max-width: 32ch; font-size: 0.95rem; }
.footer-col h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a { color: var(--text-soft); font-size: 0.95rem; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--accent-text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { max-width: none; }
  .hero-cta, .hero-badges { justify-content: center; }
  .hero-visual { order: -1; }
  .about-inner, .contact-inner, .fd-row { grid-template-columns: 1fr; }
  .fd-reverse { direction: ltr; }
  .privacy-layout { grid-template-columns: 1fr; }
  .privacy-toc { position: static; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; background: var(--surface); }
  .privacy-toc ol { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .primary-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; }
  .stat { border-left: 0; border-right: 0; }
  .phone-back { display: none; }
  .phone-stage { width: min(300px, 78vw); }
  .phone-float { animation-duration: 8s; }
  .feature-grid, .feature-grid-sm, .review-grid, .gallery-grid, .benefit-grid { grid-template-columns: 1fr; }
  .price-list-2col { grid-template-columns: 1fr; }
  .price-compare { grid-template-columns: 1fr; }
  .compare-vs { display: none; }
  .about-cards { grid-template-columns: repeat(2, 1fr); }
  .data-grid { grid-template-columns: 1fr; }
  .privacy-toc ol { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .about-cards { grid-template-columns: 1fr; }
  .btn-lg { --btn-pad-x: 1.3rem; font-size: 0.96rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .phone-float { animation: none; }
}

@media print {
  .site-header, .nav-toggle, .theme-toggle, .final-cta, .tour { display: none; }
}

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-switch > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text-soft); font-weight: 600; font-size: 0.85rem;
  cursor: pointer; transition: color var(--t-fast), border-color var(--t-fast);
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary::marker { content: ''; }
.lang-switch > summary:hover { color: var(--accent-text); border-color: var(--accent); }
.lang-current { letter-spacing: 0.04em; }
.lang-caret { transition: transform var(--t-fast); }
.lang-switch[open] .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 200px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); padding: 0.4rem; list-style: none; z-index: 130; margin: 0;
}
.lang-menu li a {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.7rem;
  border-radius: 10px; color: var(--text-soft); font-size: 0.92rem; font-weight: 550;
  transition: background var(--t-fast), color var(--t-fast);
}
.lang-menu li a:hover { background: var(--surface-2); color: var(--text); }
.lang-menu li a[aria-current="true"] { background: var(--surface-2); color: var(--accent-text); }
.lang-flag { font-size: 1.1rem; line-height: 1; }
.lang-short { margin-inline-start: auto; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; color: var(--muted); }

/* ---------- Arabic typography ---------- */
html[lang="ar"] { --font: -apple-system, "Segoe UI", Tahoma, "Geeza Pro", "Noto Naskh Arabic", Arial, sans-serif; }
html[lang="ar"] body { line-height: 1.8; }
html[lang="ar"] .hero-title, html[lang="ar"] .section-title, html[lang="ar"] .page-title { letter-spacing: 0; }

/* ---------- RTL overrides ---------- */
[dir="rtl"] .skip-link { left: auto; right: 1rem; }
[dir="rtl"] .feature-card::before { left: auto; right: 0; }
[dir="rtl"] .price-card::after { right: 0; left: 0; }
[dir="rtl"] .stat { border-left: 0; border-right: 2px solid var(--border); }
[dir="rtl"] .stat:first-child { border-right: 0; }
[dir="rtl"] .legal-callout { border-left: 1px solid var(--border); border-right: 3px solid var(--sh-noon); }
[dir="rtl"] .privacy-toc a { border-left: 0; border-right: 2px solid transparent; }
[dir="rtl"] .privacy-toc a:hover { border-right-color: var(--accent); }
[dir="rtl"] .legal-section ul,
[dir="rtl"] .privacy-summary ul { padding-left: 0; padding-right: 1.2rem; }
[dir="rtl"] .lang-menu { inset-inline-end: 0; }
[dir="rtl"] .phone-back { left: auto; right: 30%; transform: rotate(-6deg) scale(0.95); }
[dir="rtl"] .benefit-num,
[dir="rtl"] .stat-value,
[dir="rtl"] .price-amount { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .tag-list { padding-right: 0; }
[dir="rtl"] .stats-grid .stat:first-child { border-right: 0; }
