/* سكون (Stillwater) — Bespoke Warm Alabaster, Charcoal Stipple & Terracotta Editorial Design System (RTL Arabic) */
:root {
  --bg: #f2f0eb;
  --surface: #f7f5f0;
  --surface-hover: #ffffff;
  --ink: #2a2a2a;
  --muted: #6c6a65;
  --soft: #9a9791;
  --clay: #c98a6b;
  --line: rgba(42, 42, 42, 0.14);
  --line-strong: rgba(42, 42, 42, 0.28);
  --font-display: 'Amiri', 'Cormorant Garamond', Georgia, serif;
  --font-text: 'IBM Plex Sans Arabic', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: min(1240px, calc(100% - 48px));
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-padding-top: 84px;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
canvas, svg { display: block; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 6px; }

.wrap { width: var(--wrap); margin-inline: auto; }

/* ---- Fixed 3-Zone Transparent-to-Frosted Paper Header (68px) ---- */
.sw-header {
  position: fixed; top: 0; inset-inline: 0; z-index: 60;
  height: 68px; display: flex; align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
}
.sw-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.sw-header-in {
  width: var(--wrap); margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.sw-brand {
  justify-self: start; display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-text); font-weight: 500; font-size: 13px; letter-spacing: 0.22em;
  color: var(--ink);
}
.sw-breath-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--ink); flex: none;
  animation: swBreathDot 19s ease-in-out infinite;
}
@keyframes swBreathDot {
  0%, 100% { transform: scale(0.76); opacity: 0.72; }
  21% { transform: scale(1.25); opacity: 1; }
  58% { transform: scale(1.25); opacity: 1; }
}
.sw-nav {
  justify-self: center; display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px);
}
.sw-nav a {
  position: relative; font-size: 14px; font-weight: 400; color: var(--muted);
  padding-block: 6px; transition: color 0.22s;
}
.sw-nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform 0.28s var(--ease);
}
.sw-nav a:hover { color: var(--ink); }
.sw-nav a:hover::after { transform: scaleX(1); }

.sw-header-end {
  justify-self: end; display: inline-flex; align-items: center; gap: 10px;
}
.sw-dir-pill {
  font-size: 12px; color: var(--muted); padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.sw-dir-pill:hover { color: var(--ink); border-color: var(--ink); background: rgba(255, 255, 255, 0.5); }

/* Pill Buttons */
.sw-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 24px; border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 500; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.22s, color 0.22s, border-color 0.22s;
}
.sw-pill-sm { min-height: 38px; padding: 0 20px; font-size: 13.5px; }
.sw-pill-dark { background: var(--ink); color: var(--bg); }
.sw-pill-dark:hover { transform: translateY(-1.5px); background: #181818; }
.sw-pill-outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.sw-pill-outline:hover { transform: translateY(-1.5px); border-color: var(--ink); background: rgba(255, 255, 255, 0.55); }
.sw-pill-light { background: var(--bg); color: var(--ink); }
.sw-pill-light:hover { transform: translateY(-1.5px); background: #ffffff; }

@media (max-width: 860px) {
  .sw-header-in { grid-template-columns: auto 1fr; }
  .sw-nav { display: none; }
}

/* ---- 3-Beat Sticky Scroll-Scrubbed Stipple Particle Hero (340svh) ---- */
.hero-track {
  position: relative;
  height: 340svh;
  background: var(--bg);
}
.hero-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; width: 100%;
  overflow: hidden; isolation: isolate;
}
#sw-stage {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
  pointer-events: none;
}

.hero-beat {
  position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0;
  will-change: opacity, transform;
}
.hero-beat.beat-0 { opacity: 1; pointer-events: auto; }
.hero-beat.is-interactive { pointer-events: auto; }

.hero-copy-col {
  width: var(--wrap); margin-inline: auto;
  padding-top: clamp(104px, 19svh, 192px);
}
.hero-copy-box {
  max-width: 34rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
}

.sw-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 74%, #fff);
  font-size: 13px; color: var(--muted);
}
.sw-clay-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--clay); flex: none;
  box-shadow: 0 0 0 0 rgba(201, 138, 107, 0.5);
  animation: swClayPulse 4s ease-in-out infinite;
}
@keyframes swClayPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 138, 107, 0.45); transform: scale(1); }
  50% { box-shadow: 0 0 0 6px rgba(201, 138, 107, 0); transform: scale(1.15); }
}

.hero-h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.15rem, 6.2vw, 5.7rem); line-height: 1.16; letter-spacing: -0.012em;
  color: var(--ink);
}
.hero-h1 em {
  font-style: italic; color: var(--ink);
  font-weight: 400;
}
.hero-sub {
  font-size: clamp(15.5px, 1.2vw, 17.5px); line-height: 1.75; color: var(--muted);
  max-width: 40ch;
}
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.audio-btn.is-playing {
  background: color-mix(in srgb, var(--clay) 16%, var(--bg));
  border-color: var(--clay); color: var(--ink);
}

/* Editorial Beats 02 & 03 */
.beat-kicker {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--clay);
}
.beat-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.8rem, 5.4vw, 5.1rem); line-height: 1.08; color: var(--ink);
}
.beat-title em { font-style: italic; }
.beat-body {
  font-size: 17px; line-height: 1.8; color: var(--muted); max-width: 38ch;
}

/* Hero Bottom 3-Column Breathing Footer Bar */
.hero-foot {
  position: absolute; inset-inline: 0; bottom: 26px; z-index: 8; pointer-events: none;
}
.hero-foot-in {
  width: var(--wrap); margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px;
  font-size: 12.5px; color: var(--muted);
}
.hero-foot-start { justify-self: start; }
.hero-foot-end {
  justify-self: end; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--soft); transition: opacity 0.4s;
}
.hero-foot-end.is-hidden { opacity: 0; }

.breath-bar {
  justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.breath-phases {
  display: flex; align-items: center; gap: 18px;
  font-size: 11.5px; letter-spacing: 0.08em; color: var(--soft);
}
.breath-phases span { transition: color 0.35s, font-weight 0.35s; }
.breath-phases span.is-on { color: var(--ink); font-weight: 600; }
.breath-progress {
  width: 240px; height: 1px; background: var(--line); position: relative; overflow: hidden;
}
.breath-progress i {
  display: block; height: 100%; width: 0%; background: var(--ink);
  transition: width 0.12s linear;
}

@media (max-width: 820px) {
  .hero-copy-col { padding-top: 96px; }
  .hero-foot-in { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero-foot-start, .hero-foot-end { display: none; }
}

/* ---- Shared Section Typography ---- */
.sw-sec { padding-top: clamp(82px, 11vw, 152px); }
.sw-eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay); margin-bottom: 14px;
}
.sw-h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.2rem, 4.1vw, 3.6rem); line-height: 1.12; letter-spacing: -0.012em;
  color: var(--ink); max-width: 18ch;
}
.sw-h2 em { font-style: italic; }
.sw-lead { margin-top: 14px; font-size: 16px; color: var(--muted); max-width: 48ch; }

/* ---- Section 1: 4-Column Practice Cards with Live 1:1 Generative Canvases ---- */
.practice-grid {
  margin-top: clamp(32px, 4.5vw, 52px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
@media (max-width: 1020px) { .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .practice-grid { grid-template-columns: 1fr; } }

.p-card {
  border-radius: 22px; padding: 18px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 58%, #ffffff);
  display: flex; flex-direction: column; gap: 14px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.25s;
}
.p-card:hover { background: #ffffff; transform: translateY(-4px); border-color: var(--line-strong); }
.p-card-top {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--soft); letter-spacing: 0.08em;
}
.p-canvas-box {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden;
  background: rgba(42, 42, 42, 0.045); position: relative;
}
.p-canvas-box canvas { width: 100%; height: 100%; }
.p-card h3 {
  font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.15;
  color: var(--ink);
}
.p-card p { font-size: 14px; color: var(--muted); line-height: 1.72; }
.p-card-tag {
  margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--muted);
}
.p-card-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--clay);
}

/* Embedded #library Sub-Band (Asymmetric 0.9fr / 1.1fr Split + 14 Mood Pills) */
.library-band {
  margin-top: clamp(56px, 7vw, 88px);
  padding: 44px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; align-items: start;
}
@media (max-width: 860px) { .library-band { grid-template-columns: 1fr; } }
.library-band h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem); line-height: 1.22; color: var(--ink);
}
.library-note {
  margin-top: 14px; font-size: 14px; color: var(--clay); min-height: 24px;
}
.mood-pills { display: flex; flex-wrap: wrap; gap: 9px; }
.mood-pill {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font-size: 13.5px; cursor: pointer;
  transition: all 0.22s var(--ease);
}
.mood-pill:hover { border-color: var(--ink); color: var(--ink); background: rgba(255, 255, 255, 0.6); }
.mood-pill.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---- Section 2: #teachers — 3-Column Borderless Editorial Quotes + Halftone Avatars ---- */
.quotes-grid {
  margin-top: clamp(36px, 5vw, 60px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 48px);
}
@media (max-width: 860px) { .quotes-grid { grid-template-columns: 1fr; gap: 40px; } }
.q-item {
  border-top: 1px solid var(--ink); padding-top: 26px;
  display: flex; flex-direction: column; gap: 26px;
}
.q-item blockquote {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.45rem, 2.05vw, 1.9rem); line-height: 1.48; color: var(--ink);
}
.q-author {
  margin-top: auto; display: flex; align-items: center; gap: 14px;
}
.q-avatar {
  width: 62px; height: 62px; border-radius: 50%; flex: none; overflow: hidden;
  background: color-mix(in srgb, var(--clay) 18%, var(--bg));
  border: 1px solid rgba(201, 138, 107, 0.35);
  display: grid; place-items: center;
}
.q-author b { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.q-author small { display: block; font-size: 13px; color: var(--muted); }

/* ---- Section 3: #pricing — Sliding Segmented Toggle + 3 Cards (Center Dark Charcoal Featured) ---- */
.pricing-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.billing-toggle {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 4px; border-radius: 999px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 55%, #fff);
}
.billing-thumb {
  position: absolute; top: 4px; bottom: 4px; right: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: var(--ink);
  transition: transform 0.34s var(--ease); pointer-events: none;
}
.billing-toggle.is-yearly .billing-thumb { transform: translateX(-100%); }
.billing-toggle button {
  position: relative; z-index: 2; padding: 9px 20px; border: 0; background: transparent;
  cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--muted);
  transition: color 0.25s; white-space: nowrap;
}
.billing-toggle button.is-on { color: var(--bg); }

.plans-grid {
  margin-top: clamp(32px, 4.5vw, 48px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
@media (max-width: 900px) { .plans-grid { grid-template-columns: 1fr; } }

.plan-card {
  border-radius: 26px; padding: clamp(26px, 3vw, 34px);
  border: 1px solid var(--line); background: transparent;
  display: flex; flex-direction: column; gap: 20px;
}
.plan-card.is-featured {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
  box-shadow: 0 28px 60px -24px rgba(42, 42, 42, 0.38);
}
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan-name { font-family: var(--font-display); font-size: 30px; font-weight: 400; }
.plan-badge {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(242, 240, 235, 0.14); color: var(--bg);
}
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price b {
  font-family: var(--font-display); font-size: 52px; font-weight: 400; line-height: 1;
}
.plan-price span { font-size: 14px; color: var(--muted); }
.plan-card.is-featured .plan-price span,
.plan-card.is-featured .plan-desc { color: rgba(242, 240, 235, 0.72); }
.plan-desc { font-size: 14px; color: var(--muted); }
.plan-rule { height: 1px; background: var(--line); }
.plan-card.is-featured .plan-rule { background: rgba(242, 240, 235, 0.16); }

.plan-list { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.plan-list li { display: flex; align-items: center; gap: 10px; }
.plan-list li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--clay); flex: none;
}
.plan-cta { margin-top: auto; width: 100%; }
.pricing-note { margin-top: 20px; font-size: 13.5px; color: var(--soft); }

/* ---- Section 4: #begin — Framed Warm Clay-Tinted Sand Band (radius 34px) + Concentric Ripple Canvas ---- */
.begin-band {
  position: relative; overflow: hidden; border-radius: 34px; min-height: 440px;
  padding: clamp(36px, 5vw, 68px);
  background: color-mix(in srgb, var(--clay) 15%, var(--bg));
  border: 1px solid rgba(201, 138, 107, 0.28);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center;
}
@media (max-width: 860px) { .begin-band { grid-template-columns: 1fr; min-height: 360px; } }
.begin-copy {
  position: relative; z-index: 2; max-width: 34rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.begin-copy h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.5rem, 4.6vw, 4.1rem); line-height: 1.08; color: var(--ink);
}
.begin-copy p { font-size: 16px; color: var(--muted); max-width: 42ch; }

.pill-form {
  margin-top: 10px; width: min(100%, 440px);
  display: flex; align-items: center; padding: 5px;
  border-radius: 999px; background: var(--bg); border: 1px solid var(--line-strong);
}
.pill-form input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 16px;
  font-size: 14px; color: var(--ink);
}
.pill-form input:focus { outline: none; }
.pill-form-status {
  font-size: 13.5px; color: var(--ink); min-height: 22px; margin-top: 4px;
}

#sw-closing-canvas {
  position: absolute; top: 50%; inset-inline-end: -6%; transform: translateY(-50%);
  width: 600px; height: 600px; pointer-events: none; z-index: 1; opacity: 0.92;
}
@media (max-width: 860px) {
  #sw-closing-canvas { opacity: 0.28; width: 420px; height: 420px; inset-inline-end: -18%; }
}

/* ---- Minimal Serene Editorial Footer ---- */
.sw-footer {
  margin-top: clamp(72px, 9vw, 120px);
  border-top: 1px solid var(--line);
  padding: 44px 0 42px;
}
.sw-footer-top {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px;
}
.sw-footer-tag {
  margin-top: 8px; font-family: var(--font-display); font-style: italic;
  font-size: 20px; color: var(--muted);
}
.sw-footer-links {
  display: flex; flex-wrap: wrap; gap: 22px; font-size: 13.5px; color: var(--muted);
}
.sw-footer-links a:hover { color: var(--ink); }
.sw-footer-bottom {
  margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 12.5px; color: var(--soft);
}

@media (prefers-reduced-motion: reduce) {
  .sw-breath-dot, .sw-clay-dot { animation: none !important; }
}
