/* ==========================================================================
   Study Time landing v2: live timer hero, story, bento, reviews wall, RTL.
   Loaded after landing.css.
   ========================================================================== */

:root {
  --ink: #0f1230;
  --violet: #7c3aed;
  --amber: #f59e0b;
  --emerald: #10b981;
  --sky: #0ea5e9;
  --font-ar: 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ---------- Arabic / RTL ---------- */
html[lang='ar'] body,
html[lang='ar'] .btn,
html[lang='ar'] input,
html[lang='ar'] textarea {
  font-family: var(--font-ar);
}

html[lang='ar'] h1,
html[lang='ar'] h2,
html[lang='ar'] h3,
html[lang='ar'] .brand,
html[lang='ar'] .eyebrow {
  letter-spacing: 0;
}

html[lang='ar'] h1 {
  line-height: 1.25;
}

html[dir='rtl'] .icon[data-icon='external'] {
  transform: scaleX(-1);
}

/* Numbers and times stay left-to-right inside Arabic text. */
.st-mono[dir='ltr'] {
  unicode-bidi: isolate;
}

/* ---------- Header tools / language switch ---------- */
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  order: 3;
}

.site-nav {
  order: 2;
  margin-inline-start: auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.lang-switch[lang='ar'] {
  font-family: var(--font-ar);
}

.lang-switch:hover {
  border-color: var(--primary);
  background: #eef2ff;
}

.lang-switch:active {
  transform: scale(0.97);
}

.lang-switch .icon {
  color: var(--primary);
}

@media (max-width: 1040px) {
  .site-nav {
    margin-inline-start: 0;
  }
}

.btn-lg {
  padding: 0.95rem 1.4rem;
  font-size: 1.02rem;
  border-radius: 0.9rem;
}

/* ---------- Reveal (never hides whole sections) ---------- */
html.js-ready [data-reveal-item] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

html.js-ready [data-reveal-item].is-inview {
  opacity: 1;
  transform: none;
}

/* ---------- Hero ---------- */
.hero2 {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  isolation: isolate;
}

.hero2-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #f3f0ff 0%, var(--bg) 70%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: orb-float 16s ease-in-out infinite;
}

.orb-a {
  width: 26rem;
  height: 26rem;
  background: #a5b4fc;
  top: -8rem;
  inset-inline-start: -6rem;
}

.orb-b {
  width: 20rem;
  height: 20rem;
  background: #fcd34d;
  top: 4rem;
  inset-inline-end: -5rem;
  opacity: 0.35;
  animation-delay: -5s;
}

.orb-c {
  width: 18rem;
  height: 18rem;
  background: #6ee7b7;
  bottom: -9rem;
  inset-inline-start: 40%;
  opacity: 0.3;
  animation-delay: -10s;
}

.hero2-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(79 70 229 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(79 70 229 / 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2rem, 1.5rem) scale(1.08); }
}

.hero2-layout {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero2-layout {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.75);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgb(16 185 129 / 0.6);
  animation: live-pulse 1.8s ease-out infinite;
  flex: none;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgb(16 185 129 / 0.55); }
  100% { box-shadow: 0 0 0 0.6rem rgb(16 185 129 / 0); }
}

.hero2-copy h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6.4vw, 4.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.grad-text {
  display: inline-block;
  background: linear-gradient(100deg, var(--primary) 10%, var(--violet) 55%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.08em;
}

.hero2-copy .lead {
  font-size: 1.12rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-trust .icon {
  color: var(--emerald);
}

/* ---------- Live demo timer ---------- */
.hero2-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 1.5rem 0.5rem;
}

.demo-card {
  --accent-c: #4f46e5;
  position: relative;
  width: min(100%, 24rem);
  padding: 1.25rem;
  border-radius: 1.75rem;
  background: rgb(255 255 255 / 0.85);
  border: 1px solid rgb(255 255 255 / 0.9);
  box-shadow:
    0 40px 80px -30px rgb(49 46 129 / 0.45),
    0 0 0 1px rgb(79 70 229 / 0.06);
  backdrop-filter: blur(16px);
}

.demo-head {
  display: flex;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.demo-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.demo-subjects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--chip);
}

.demo-chip[aria-checked='true'] {
  background: var(--chip);
  border-color: var(--chip);
  color: #fff;
  box-shadow: 0 8px 18px -8px var(--chip);
}

.demo-chip[aria-checked='true'] .chip-dot {
  background: #fff;
}

.demo-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
  margin: 0.85rem 0 0.25rem;
  padding: 0.25rem;
  border-radius: 0.8rem;
  background: #f1f0fb;
}

.demo-mode {
  padding: 0.45rem 0.3rem;
  border: 0;
  border-radius: 0.6rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-mode[aria-selected='true'] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 2px 8px -2px rgb(19 27 46 / 0.15);
}

.demo-ring {
  position: relative;
  width: min(15rem, 78%);
  margin: 0.75rem auto 0.5rem;
  aspect-ratio: 1;
}

.demo-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.demo-track {
  fill: none;
  stroke: #ecebfa;
  stroke-width: 12;
}

.demo-fill {
  fill: none;
  stroke: var(--accent-c);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 540.35;
  stroke-dashoffset: 540.35;
  transition: stroke-dashoffset 0.6s linear, stroke 0.4s ease;
  filter: drop-shadow(0 6px 10px rgb(79 70 229 / 0.25));
}

.demo-second {
  transform-origin: 100px 100px;
  fill: var(--accent-c);
  opacity: 0.35;
  transition: fill 0.4s ease;
}

.demo-card.is-running .demo-second {
  opacity: 1;
  animation: second-sweep 60s linear infinite;
}

@keyframes second-sweep {
  to { transform: rotate(360deg); }
}

.demo-clock {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.demo-clock strong {
  font-size: clamp(2.3rem, 7vw, 3rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.demo-clock span {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-c);
  transition: color 0.4s ease;
}

.demo-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.demo-start {
  position: relative;
  background: var(--accent-c);
  border-color: var(--accent-c);
  transition: background 0.4s ease, transform 0.15s ease;
}

.demo-start:hover {
  filter: brightness(1.08);
}

.demo-start .when-running,
.demo-card.is-running .demo-start .when-idle {
  display: none;
}

.demo-card.is-running .demo-start .when-running,
.demo-start .when-idle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.demo-card:not(.is-running):not(.has-time) .demo-start::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 0.95rem;
  border: 2px solid var(--accent-c);
  opacity: 0;
  animation: start-ping 2.2s ease-out infinite;
}

@keyframes start-ping {
  0% { opacity: 0.6; transform: scale(0.96); }
  100% { opacity: 0; transform: scale(1.08); }
}

.demo-reset {
  width: 3rem;
  padding: 0;
}

.demo-today {
  margin-top: 0.9rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.9rem;
  background: #f7f6ff;
}

.demo-today-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
}

.demo-bar {
  height: 0.5rem;
  margin: 0.45rem 0 0.35rem;
  border-radius: 999px;
  background: #e8e6fb;
  overflow: hidden;
}

.demo-bar span {
  display: block;
  height: 100%;
  width: 66%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-c), var(--amber));
  transition: width 0.6s ease;
}

.demo-today small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.demo-done {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  margin: 0.75rem 0 0;
  padding: 0.6rem 0.75rem;
  border-radius: 0.8rem;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.82rem;
  font-weight: 600;
  animation: pop-in 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}

.demo-done[hidden] {
  display: none;
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.9) translateY(6px); }
  to { opacity: 1; transform: none; }
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 14px 30px -14px rgb(49 46 129 / 0.4);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  animation: chip-bob 6s ease-in-out infinite;
  pointer-events: none;
}

.chip-streak { top: 0.25rem; inset-inline-start: -0.5rem; color: #c2410c; }
.chip-streak .icon { color: var(--amber); }
.chip-tasks { top: 38%; inset-inline-end: -1.5rem; animation-delay: -2s; color: #047857; }
.chip-offline { bottom: -0.25rem; inset-inline-start: 1rem; animation-delay: -4s; color: var(--primary-dark); }

@keyframes chip-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 600px) {
  .chip-tasks { display: none; }
  .chip-streak { inset-inline-start: 0; }
}

/* ---------- Stats band ---------- */
.stats-band {
  padding: 0 0 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--border);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

@media (min-width: 760px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  display: grid;
  gap: 0.2rem;
  padding: 1.4rem 1.25rem;
  background: var(--surface);
  text-align: center;
}

.stat strong {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.05;
  background: linear-gradient(120deg, var(--primary), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Story ---------- */
.story {
  padding: 5rem 0 3rem;
}

.story-layout {
  display: grid;
  gap: 2rem;
}

.story-phone {
  display: none;
}

.story-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.story-step {
  position: relative;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.story-time {
  display: inline-block;
  align-self: flex-start;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
}

html[lang='ar'] .story-time {
  font-family: var(--font-ar);
}

.story-step h3 {
  margin: 0.65rem 0 0.35rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.story-step p {
  margin: 0;
  color: var(--muted);
}

.story-step ul {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.story-step li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.story-step li .icon {
  color: var(--emerald);
}

.story-inline {
  margin-top: 1.25rem;
}

@media (min-width: 960px) {
  .story-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: start;
  }

  .story-phone {
    display: block;
    position: sticky;
    top: 6.5rem;
  }

  .story-steps {
    gap: 0;
  }

  .story-step {
    min-height: 62vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 2rem 2rem 2.5rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-inline-start: 3px solid var(--border);
    border-radius: 0;
    opacity: 0.45;
  }

  .story-step.is-current {
    opacity: 1;
    border-inline-start-color: var(--primary);
  }

  .story-step h3 {
    font-size: 1.8rem;
  }

  .story-inline {
    display: none;
  }
}

/* Phone frame */
.phone2 {
  position: relative;
  width: min(100%, 18rem);
  margin-inline: auto;
  padding: 0.65rem;
  border-radius: 2.4rem;
  background: linear-gradient(160deg, #1e1b4b, #0b0f19);
  box-shadow: 0 40px 80px -30px rgb(30 27 75 / 0.6), inset 0 0 0 2px rgb(255 255 255 / 0.06);
}

.phone2-sm {
  width: min(100%, 15rem);
  border-radius: 2rem;
}

.phone2-notch {
  position: absolute;
  top: 0.95rem;
  left: 50%;
  z-index: 2;
  width: 5rem;
  height: 1.2rem;
  border-radius: 999px;
  background: #0b0f19;
  transform: translateX(-50%);
}

.phone2-screens {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: 1.85rem;
  background: #f8f7ff;
  aspect-ratio: 9 / 17;
}

.phone2-sm .phone2-screens {
  aspect-ratio: auto;
  border-radius: 1.5rem;
}

.phone2-screen {
  grid-area: 1 / 1;
  min-width: 0;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.96) translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.phone2-screen.is-active {
  opacity: 1;
  transform: none;
}

/* Screen mocks */
.scr {
  min-width: 0;
  height: 100%;
  padding: 2.6rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.phone2-sm .scr {
  padding-top: 1.1rem;
}

.scr-dark {
  background: linear-gradient(170deg, #312e81, #1e1b4b 55%, #0f172a);
  color: #eef0ff;
  align-items: center;
  justify-content: center;
}

.scr-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 800;
  font-size: 0.95rem;
}

.scr-head b {
  color: var(--primary);
}

.scr-progress {
  height: 0.4rem;
  border-radius: 999px;
  background: #e6e4fb;
  overflow: hidden;
}

.scr-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--violet));
}

.scr-tasks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.scr-tasks li {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.65rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid #ecebfa;
  font-weight: 600;
}

.scr-tasks li span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scr-tasks i,
.scr-split i,
.scr-pill i {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--c);
  flex: none;
}

.scr-tasks li.is-done span {
  color: var(--muted);
  text-decoration: line-through;
}

.scr-tasks em {
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
}

.scr-reminder {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding: 0.6rem 0.7rem;
  border-radius: 0.75rem;
  background: #fff7ed;
  color: #c2410c;
  font-weight: 700;
}

.scr-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  font-weight: 700;
}

.scr-ring {
  position: relative;
  width: 70%;
  aspect-ratio: 1;
}

.scr-ring svg {
  width: 100%;
  transform: rotate(-90deg);
}

.scr-ring .t { fill: none; stroke: rgb(255 255 255 / 0.12); stroke-width: 9; }
.scr-ring .f { fill: none; stroke: #a5b4fc; stroke-width: 9; stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 99; }

.scr-ring > div {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.scr-ring strong {
  font-size: 1.7rem;
}

.scr-ring small {
  color: rgb(238 240 255 / 0.65);
  font-weight: 600;
}

.scr-btns {
  display: flex;
  gap: 0.4rem;
  width: 100%;
}

.scr-btns span {
  flex: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem;
  border-radius: 0.8rem;
  background: #4f46e5;
  font-weight: 700;
}

.scr-btns span:last-child {
  flex: 0.6;
  background: rgb(255 255 255 / 0.1);
}

.scr-today {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.35rem;
  align-items: baseline;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.8rem;
  background: rgb(255 255 255 / 0.06);
}

.scr-today small { color: rgb(238 240 255 / 0.6); }

.scr-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  height: 8rem;
  padding: 0.6rem;
  border-radius: 0.9rem;
  background: #fff;
  border: 1px solid #ecebfa;
}

.scr-bars div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 0.25rem;
}

.scr-bars span {
  width: 100%;
  height: var(--h);
  border-radius: 0.35rem;
  background: linear-gradient(180deg, #818cf8, var(--primary));
}

.scr-bars small {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.65rem;
}

.scr-split {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.scr-split li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.7rem;
  background: #fff;
  font-weight: 600;
}

.scr-split b {
  margin-inline-start: auto;
}

.scr-flame {
  display: grid;
  justify-items: center;
  padding: 1rem 0 0.5rem;
}

.scr-flame .icon {
  width: 3rem;
  height: 3rem;
  color: var(--amber);
  filter: drop-shadow(0 8px 14px rgb(245 158 11 / 0.45));
  animation: flame-flicker 2.4s ease-in-out infinite;
}

@keyframes flame-flicker {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  50% { transform: scale(1.08) rotate(2deg); }
}

.scr-flame strong {
  font-family: var(--mono);
  font-size: 2.2rem;
  line-height: 1;
}

.scr-flame span {
  color: var(--muted);
  font-weight: 700;
}

.scr-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
}

.scr-days span {
  aspect-ratio: 1;
  border-radius: 0.4rem;
  background: #ecebfa;
}

.scr-days span.on {
  background: linear-gradient(135deg, #fbbf24, #f97316);
}

.scr-days span.today {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--amber);
}

.scr-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.scr-badges span {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 0.55rem 0.2rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid #ecebfa;
}

.scr-badges .icon {
  width: 1.3rem;
  height: 1.3rem;
  color: var(--primary);
}

.scr-badges small {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

.scr-widget {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
  padding: 0.7rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
}

.scr-widget .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.scr-widget div {
  display: grid;
}

.scr-widget small {
  opacity: 0.85;
}

/* ---------- Bento ---------- */
.bento {
  display: grid;
  gap: 1rem;
}

@media (min-width: 680px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .bento {
    grid-template-columns: repeat(4, 1fr);
  }

  .bento-wide {
    grid-column: span 2;
  }
}

.bento-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border-radius: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: #c7d2fe;
  box-shadow: 0 24px 50px -24px rgb(79 70 229 / 0.35);
}

.bento-card h3 {
  margin: 0.9rem 0 0.35rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.bento-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.bento-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: #eef2ff;
  color: var(--primary);
}

.bento-icon .icon {
  width: 1.4rem;
  height: 1.4rem;
}

.bento-dark {
  background: radial-gradient(circle at 90% 0%, rgb(124 58 237 / 0.55), transparent 50%), linear-gradient(150deg, #1e1b4b, #0f172a);
  border-color: transparent;
  color: #eef0ff;
}

.bento-dark p {
  color: rgb(238 240 255 / 0.72);
}

.bento-dark .bento-icon {
  background: rgb(255 255 255 / 0.1);
  color: #c7d2fe;
}

.mode-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.1rem;
}

.mode-pills span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.12);
  font-weight: 700;
  font-size: 0.82rem;
}

.mode-pills span:nth-child(2) {
  background: #4f46e5;
  border-color: #4f46e5;
}

.new-badge {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), #f97316);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 4.5rem;
  margin-top: 1.1rem;
}

.mini-bars span {
  flex: 1;
  height: var(--h);
  border-radius: 0.4rem 0.4rem 0.15rem 0.15rem;
  background: linear-gradient(180deg, #a5b4fc, var(--primary));
  transform-origin: bottom;
  animation: bar-grow 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.mini-bars span:nth-child(2) { animation-delay: 0.08s; }
.mini-bars span:nth-child(3) { animation-delay: 0.16s; }
.mini-bars span:nth-child(4) { animation-delay: 0.24s; }
.mini-bars span:nth-child(5) { animation-delay: 0.32s; }
.mini-bars span:nth-child(6) { animation-delay: 0.4s; background: linear-gradient(180deg, #fcd34d, var(--amber)); }
.mini-bars span:nth-child(7) { animation-delay: 0.48s; }

@keyframes bar-grow {
  from { transform: scaleY(0.1); }
  to { transform: scaleY(1); }
}

/* ---------- Reviews wall ---------- */
.reviews-wall {
  overflow: hidden;
}

.marquee {
  position: relative;
  overflow: hidden;
  padding: 0.6rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 60s linear infinite;
}

.marquee-reverse .marquee-track {
  animation-direction: reverse;
  animation-duration: 70s;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to { transform: translateX(calc(-50% - 0.5rem)); }
}

.review-card {
  width: 20rem;
  margin: 0;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.review-stars {
  color: #e5e7eb;
  letter-spacing: 0.1em;
}

.review-stars .is-on {
  color: var(--amber);
}

.review-card blockquote {
  margin: 0;
  flex: 1;
  font-weight: 500;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.review-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.review-avatar {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #818cf8, var(--violet));
  color: #fff;
  font-size: 0.85rem;
  flex: none;
}

/* ---------- Download ---------- */
.download2-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 0% 0%, rgb(124 58 237 / 0.5), transparent 45%),
    radial-gradient(circle at 100% 100%, rgb(245 158 11 / 0.35), transparent 40%),
    linear-gradient(140deg, #1e1b4b, #312e81 60%, #1e1b4b);
  color: #fff;
  isolation: isolate;
}

@media (min-width: 860px) {
  .download2-card {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.download2-rings {
  position: absolute;
  inset-inline-end: -6rem;
  top: -6rem;
  z-index: -1;
  width: 22rem;
  height: 22rem;
}

.download2-rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgb(255 255 255 / 0.08);
  animation: ring-breathe 6s ease-in-out infinite;
}

.download2-rings span:nth-child(2) { inset: 3rem; animation-delay: -2s; }
.download2-rings span:nth-child(3) { inset: 6rem; border-color: rgb(245 158 11 / 0.3); animation-delay: -4s; }

@keyframes ring-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.download2-copy h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.download2-copy p {
  margin: 0.75rem 0 0;
  color: rgb(238 240 255 / 0.75);
  font-size: 1.05rem;
}

.eyebrow-light {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #fcd34d;
}

.download2-actions {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.download2-actions .store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .orb,
  .live-dot,
  .float-chip,
  .marquee-track,
  .scr-flame .icon,
  .download2-rings span,
  .mini-bars span,
  .demo-card.is-running .demo-second,
  .demo-start::after {
    animation: none !important;
  }

  .marquee {
    mask-image: none;
  }

  .marquee-track {
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    padding-inline: 1rem;
  }

  .marquee-track [aria-hidden='true'] {
    display: none;
  }

  html.js-ready [data-reveal-item] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
