/* ============================================================
   Lekec — medication-reminder landing
   Light & dark, calm clinical mint/teal, playful micro-motion.
   ============================================================ */

:root {
  --brand-1: #5dd680;
  --brand-2: #0fbe3f;;
  --brand-3: #f59e0b; /* alarm/warm accent */
  --brand-1-rgb: 78, 192, 113;

  --bg: #f2fbf5;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef8f2;

  --text: #072112;
  --text-muted: #2d6040;
  --text-dim: #4f7a60;

  --border: rgba(0, 40, 15, 0.08);
  --border-strong: rgba(0, 40, 15, 0.16);

  --shadow-sm: 0 1px 2px rgba(0, 40, 15, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(0, 40, 15, 0.18),
    0 2px 6px rgba(0, 40, 15, 0.05);
  --shadow-lg: 0 30px 80px -30px rgba(78, 192, 113, 0.45),
    0 16px 40px -20px rgba(7, 33, 15, 0.18);

  --nav-bg: rgba(255, 255, 255, 0.7);
  --nav-border: rgba(0, 40, 15, 0.06);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --brand-1: #5dd680;
  --brand-2: #7de89a;
  --brand-3: #fbbf24;
  --brand-1-rgb: 93, 214, 128;

  --bg: #061a0c;
  --bg-2: #040d07;
  --surface: #0c2218;
  --surface-2: #112c1e;

  --text: #e8fdf0;
  --text-muted: #8fc49e;
  --text-dim: #5d8a6a;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 90px -30px rgba(93, 214, 128, 0.35),
    0 16px 50px -20px rgba(0, 0, 0, 0.7);

  --nav-bg: rgba(6, 20, 10, 0.65);
  --nav-border: rgba(255, 255, 255, 0.06);
}

* {
  box-sizing: border-box;
}
html[data-theme-loading] body {
  visibility: hidden;
}
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.4s var(--ease), color 0.3s var(--ease);
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
p {
  margin: 0;
  color: var(--text-muted);
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}
ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
main,
.foot,
.nav {
  position: relative;
  z-index: 1;
}

/* ---------- Aurora background ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora .grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  opacity: 0.7;
}
.aurora .blob {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: drift 22s ease-in-out infinite;
  will-change: transform;
}
[data-theme="dark"] .aurora .blob {
  opacity: 0.32;
}
.blob-a {
  background: radial-gradient(circle, var(--brand-1), transparent 60%);
  top: -20vmax;
  left: -10vmax;
}
.blob-b {
  background: radial-gradient(circle, var(--brand-2), transparent 60%);
  top: 10vmax;
  right: -20vmax;
  animation-delay: -7s;
  animation-duration: 28s;
}
.blob-c {
  background: radial-gradient(circle, #a3f0b8, transparent 60%);
  top: 60vmax;
  left: 30vmax;
  animation-delay: -14s;
  animation-duration: 34s;
  opacity: 0.35;
}
[data-theme="dark"] .blob-c {
  background: radial-gradient(circle, var(--brand-1), transparent 60%);
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(4vmax, -3vmax, 0) scale(1.1);
  }
  66% {
    transform: translate3d(-3vmax, 4vmax, 0) scale(0.95);
  }
}

/* ---------- Common ---------- */
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .eyebrow {
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  margin-bottom: 14px;
}
.section-head p {
  font-size: 17px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-1);
  background: color-mix(in srgb, var(--brand-1) 12%, transparent);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
[data-theme="dark"] .eyebrow {
  background: color-mix(in srgb, var(--brand-1) 22%, transparent);
}
.eyebrow-light {
  color: #b4f0c4;
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 8px 22px -8px var(--brand-1),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -10px var(--brand-1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--brand-1);
  color: var(--brand-1);
  transform: translateY(-1px);
}

/* Google Play badge-style button */
.btn-play {
  background: #0a0a0a;
  color: #fff;
  padding: 10px 22px 10px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .btn-play {
  background: #f5f5f5;
  color: #0a0a0a;
  border-color: rgba(0, 0, 0, 0.1);
}
.btn-play:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.55);
}
.btn-play-lg {
  padding: 14px 28px 14px 22px;
}
.btn-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  text-align: left;
}
.btn-stack em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 500;
  opacity: 0.7;
}
.btn-stack strong {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.btn-play-lg .btn-stack strong {
  font-size: 17px;
}

.btn-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(
    180px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--brand-1) 35%, transparent),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  z-index: -1;
}
.btn:hover .btn-glow,
.btn:focus-visible .btn-glow {
  opacity: 1;
}

.btn:active {
  transform: translateY(0) scale(0.99);
}


/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px var(--gutter);
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--nav-border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
}
.nav-links {
  display: flex;
  gap: 6px;
  margin-left: 18px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Material Symbols */
.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
  line-height: 1;
  user-select: none;
  font-size: inherit;
}
.bento-icon .material-symbols-outlined {
  font-size: 26px;
  color: var(--brand-1);
}
.alarm-bell.material-symbols-outlined {
  font-size: 36px;
}
.alarm-pill.material-symbols-outlined {
  font-size: 38px;
  line-height: 1;
}
.notif-icon .material-symbols-outlined {
  font-size: 20px;
}

/* theme toggle */
.theme-toggle {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    background 0.3s var(--ease);
  overflow: hidden;
  color: var(--text);
}
.theme-toggle:hover {
  border-color: var(--brand-1);
  transform: rotate(15deg);
}
.theme-toggle svg {
  position: absolute;
  inset: 0;
  margin: auto;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}
[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}
[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}
[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
  fill: currentColor;
}

.theme-toggle-inline {
  display: none;
}

.hamburger {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.hamburger span {
  display: block;
  width: 16px;
  height: 1.6px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(40px, 8vh, 80px) var(--gutter) clamp(40px, 8vh, 80px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 22px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.pill-badge:hover {
  transform: translateY(-1px);
  border-color: var(--brand-1);
}
.pill-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-1);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-1) 25%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}
.pill-badge .arrow {
  font-size: 14px;
  color: var(--brand-1);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-1) 35%, transparent);
  }
  50% {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand-1) 0%, transparent);
  }
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}
.hero-title .grad {
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2) 60%, #a8f0be);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerText 6s ease-in-out infinite;
}
@keyframes shimmerText {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-sub {
  font-size: clamp(16px, 1.6vw, 18px);
  margin-bottom: 26px;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--text-dim);
}
.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.check-mini {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-1) 18%, transparent);
  color: var(--brand-1);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

/* ---------- Phone mockup ---------- */
.hero-phone {
  position: relative;
  perspective: 1600px;
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: min(320px, 80vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 38px;
  background: linear-gradient(160deg, #0c2218, #061a0c);
  padding: 10px;
  box-shadow: var(--shadow-lg),
    0 0 0 1.5px rgba(255, 255, 255, 0.08) inset,
    0 0 0 6px rgba(0, 0, 0, 0.7);
  transform: rotate(-3deg) rotateY(-6deg) rotateX(4deg);
  animation: floatPhone 9s ease-in-out infinite;
  transform-origin: center center;
}
[data-theme="light"] .phone {
  background: linear-gradient(160deg, #0d3a1c, #0c2218);
}
@keyframes floatPhone {
  0%,
  100% {
    transform: rotate(-3deg) rotateY(-6deg) rotateX(4deg) translateY(0);
  }
  50% {
    transform: rotate(-3deg) rotateY(-6deg) rotateX(4deg) translateY(-10px);
  }
}
.phone::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  border-radius: 999px;
  background: #000;
  z-index: 5;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #f7f6f2;
  color: #1c1c1c;
  display: flex;
  flex-direction: column;
  padding: 34px 14px 0;
  font-family: "Inter", system-ui, sans-serif;
}
[data-theme="dark"] .phone-screen {
  background: #0a0a0a;
  color: #ededed;
}
/* If a real <img> is dropped into the slot, frame it cleanly */
.phone-screen[data-screen-slot] img,
.step-art[data-screen-slot] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.phone-screen img {
  border-radius: 28px;
}

.ps-status {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  padding: 0 6px;
  margin-bottom: 10px;
  opacity: 0.7;
}
.ps-icons {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.ps-icons svg {
  fill: currentColor;
}

/* "Naslednje zdravilo" hero pill */
.ps-next {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 80px;
  padding: 14px 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  border: 1px solid rgba(48, 48, 48, 0.3);
}
[data-theme="dark"] .ps-next {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(147,147,147,0.8);
}
.ps-next strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.ps-next em {
  font-style: normal;
  font-size: 11px;
  opacity: 0.6;
}
.ps-next-name {
  font-weight: 600;
  opacity: 1;
}
.ps-next-bar {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-top: 6px;
}
[data-theme="dark"] .ps-next-bar {
  background: rgba(255, 255, 255, 0.08);
}
.ps-next-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  border-radius: 999px;
  animation: progGrow 2.2s var(--ease) both;
}
@keyframes progGrow {
  from {
    width: 0% !important;
  }
}

.ps-time-chip {
  align-self: flex-start;
  margin: 16px 0 8px 4px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
[data-theme="dark"] .ps-time-chip {
  background: rgba(255, 255, 255, 0.06);
}

.ps-list {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ps-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 12px;
}
[data-theme="dark"] .ps-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(147,147,147, 0.8);
}
.ps-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.ps-meta strong {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.ps-meta strong small {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.55;
}
.ps-stock {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-1);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.ps-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--brand-1);
}
.ps-check svg {
  width: 22px;
  height: 22px;
}
.ps-bell {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--brand-3);
  animation: bellShake 1.6s ease-in-out infinite;
}
@keyframes bellShake {
  0%, 60%, 100% { transform: rotate(0); }
  10% { transform: rotate(15deg); }
  20% { transform: rotate(-15deg); }
  30% { transform: rotate(10deg); }
  40% { transform: rotate(-10deg); }
}
.ps-now {
  outline: 1.5px solid color-mix(in srgb, var(--brand-1) 55%, transparent);
  outline-offset: -1.5px;
  outline-width: 2px;
}

/* FAB — rounded square, like the actual app */
.ps-fab {
  position: absolute;
  right: 14px;
  bottom: 78px;
  width: 46px;
  height: 46px;
  border-radius: 30px 10px 10px 30px;
  background: var(--brand-1);
  color: var(--bg);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px -10px rgba(var(--brand-1-rgb), 0.7);
}
.ps-fab .material-symbols-outlined {
  font-size: 22px;
  font-weight: 600;
}

/* Bottom tab bar */
.ps-tabbar {
  margin: 8px -14px 0;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
[data-theme="dark"] .ps-tabbar {
  border-top-color: rgba(255, 255, 255, 0.06);
}
.ps-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 2px;
  border-radius: 999px;
  color: color-mix(in srgb, currentColor 65%, transparent);
}
.ps-tab .material-symbols-outlined {
  font-size: 20px;
}
.ps-tab b {
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.ps-tab-active {
  color: var(--brand-1);
}
.ps-tab-active .material-symbols-outlined {
  background: color-mix(in srgb, var(--brand-1) 18%, transparent);
  border-radius: 999px;
  padding: 3px 14px;
  font-variation-settings: "FILL" 1;
}
.ps-tab-active b {
  font-weight: 600;
}

/* Hero slide-in notification */
.notif {
  position: absolute;
  top: 18%;
  right: -8%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  min-width: 220px;
  transform: translateX(140%);
  opacity: 0;
  animation: notifCycle 7s ease-in-out infinite;
  animation-delay: 1.2s;
  pointer-events: none;
}
.notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand-1) 18%, transparent);
  font-size: 18px;
}
.notif-body {
  display: flex;
  flex-direction: column;
}
.notif-body strong {
  font-weight: 600;
  font-size: 13px;
}
.notif-body em {
  font-style: normal;
  font-size: 12px;
  color: var(--text-dim);
}

@keyframes notifCycle {
  0% {
    transform: translateX(140%);
    opacity: 0;
  }
  10% {
    transform: translateX(0);
    opacity: 1;
  }
  60% {
    transform: translateX(0);
    opacity: 1;
  }
  75%,
  100% {
    transform: translateX(140%);
    opacity: 0;
  }
}

/* ---------- Wavy dividers ---------- */
.wave {
  display: block;
  width: 100%;
  height: 60px;
  margin-top: -1px;
}
.wave-flip {
  transform: scaleY(-1);
}

/* ---------- Features bento ---------- */
.features {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(60px, 10vh, 100px) var(--gutter);
  background: transparent;
  border-radius: 0;
}
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 18px;
}

.bento-card {
  position: relative;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--brand-1) 14%, transparent),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: -1;
}
.bento-card:hover::before {
  opacity: 1;
}
.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.bento-card h3 {
  font-size: 20px;
}
.bento-card p {
  font-size: 14px;
}
.bento-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--brand-1) 16%, transparent),
    color-mix(in srgb, var(--brand-2) 16%, transparent)
  );
}
.bento-feature {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--brand-1) 8%, var(--surface)),
    var(--surface)
  );
}

/* shared art base */
.bento-art {
  margin-top: auto;
  height: 110px;
  border-radius: var(--radius);
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}

/* OCR card art */
.ocr-art {
  display: grid;
  place-items: center;
}
.ocr-frame {
  position: relative;
  width: 70%;
  height: 70%;
  border: 2px dashed var(--brand-1);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ocr-line {
  display: block;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  width: 90%;
  opacity: 0.4;
  animation: ocrFill 3.4s ease-in-out infinite;
}
.ocr-line.w-60 {
  width: 60%;
  animation-delay: 0.4s;
}
.ocr-line.w-80 {
  width: 80%;
  animation-delay: 0.8s;
}
@keyframes ocrFill {
  0%,
  20% {
    opacity: 0.15;
    transform: translateX(-6px);
  }
  60%,
  100% {
    opacity: 0.85;
    transform: translateX(0);
  }
}
.ocr-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-1), transparent);
  top: 0;
  animation: ocrScan 2.6s ease-in-out infinite;
}
@keyframes ocrScan {
  0%,
  100% {
    top: 6%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  50% {
    top: 90%;
    opacity: 1;
  }
  80% {
    opacity: 0;
  }
}

/* alarm card art */
.alarm-art {
  display: grid;
  place-items: center;
}
.alarm-bell {
  font-size: 36px;
  position: relative;
  z-index: 1;
  animation: bellShake 1.8s ease-in-out infinite;
}
.alarm-ring {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid var(--brand-1);
  animation: ringOut 2.2s ease-out infinite;
}
.alarm-ring.r2 {
  animation-delay: 0.7s;
}
.alarm-ring.r3 {
  width: 130px;
  height: 130px;
  border-color: var(--brand-3);
  animation-duration: 2.6s;
}
@keyframes ringOut {
  0% {
    transform: scale(0.4);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* calendar card art */
.cal-art {
  --c: color-mix(in srgb, var(--brand-1) 25%, transparent);
  background: var(--surface-2)
    repeating-linear-gradient(0deg, var(--border) 0 1px, transparent 1px 22px),
    var(--surface-2);
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -1px -1px;
  position: relative;
}
.cal-art::before,
.cal-art::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  animation: calFill 3s ease-in-out infinite;
}
.cal-art::before {
  top: 12px;
  left: 30px;
}
.cal-art::after {
  top: 56px;
  left: 96px;
  animation-delay: 1s;
}
@keyframes calFill {
  0%,
  100% {
    transform: scale(0.6);
    opacity: 0;
  }
  35%,
  70% {
    transform: scale(1);
    opacity: 1;
  }
}

/* users avatars art */
.users-art {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  position: absolute;
  transition: transform 0.4s var(--ease);
}
.a1 {
  background: linear-gradient(135deg, #ff8e8e, #ef4444);
  transform: translateX(-30px);
  z-index: 1;
}
.a2 {
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  transform: translateX(-10px);
  z-index: 2;
}
.a3 {
  background: linear-gradient(135deg, #72d98e, #4EC071);
  transform: translateX(10px);
  z-index: 3;
}
.a4 {
  background: linear-gradient(135deg, #c7d2fe, #6366f1);
  transform: translateX(30px);
  z-index: 4;
}
.bento-card[data-anim="users"]:hover .a1 {
  transform: translateX(-50px);
}
.bento-card[data-anim="users"]:hover .a2 {
  transform: translateX(-20px);
}
.bento-card[data-anim="users"]:hover .a3 {
  transform: translateX(20px);
}
.bento-card[data-anim="users"]:hover .a4 {
  transform: translateX(50px);
}

/* history card art */
.hist-art {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}
.hist-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hc {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-1);
  color: white;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.5);
  animation: hcPop 4s ease-in-out infinite;
}
.hist-row:nth-child(1) .hc {
  animation-delay: 0.2s;
}
.hist-row:nth-child(2) .hc {
  animation-delay: 0.6s;
}
.hist-row:nth-child(3) .hc {
  animation-delay: 1s;
}
.hist-row:nth-child(4) .hc {
  animation-delay: 1.4s;
}
.hb {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  flex: 1;
  opacity: 0.45;
}
@keyframes hcPop {
  0%,
  10% {
    opacity: 0;
    transform: scale(0.5);
  }
  20%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* mood card art */
.mood-art {
  display: grid;
  place-items: center;
}
.mood {
  position: absolute;
  font-size: 38px;
  opacity: 0;
  animation: moodCycle 6s ease-in-out infinite;
}
.mood:nth-child(1) {
  animation-delay: 0s;
}
.mood:nth-child(2) {
  animation-delay: 2s;
}
.mood:nth-child(3) {
  animation-delay: 4s;
}
@keyframes moodCycle {
  0%,
  10% {
    opacity: 0;
    transform: translateY(8px) scale(0.9);
  }
  20%,
  30% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  40%,
  100% {
    opacity: 0;
    transform: translateY(-8px) scale(0.9);
  }
}

/* ---------- How it works (timeline) ---------- */
.how {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(60px, 10vh, 100px) var(--gutter);
  position: relative;
}
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.timeline-line {
  position: absolute;
  top: 38px;
  left: 0;
  right: 0;
  width: 100%;
  height: 8px;
  pointer-events: none;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: white;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 18px;
  box-shadow: 0 8px 22px -8px var(--brand-1),
    0 0 0 8px var(--bg);
  margin-bottom: 6px;
}
.step h4 {
  font-size: 17px;
}
.step p {
  font-size: 14px;
  max-width: 220px;
}
.step-art {
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 9 / 16;
  margin-top: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.step-photo {
  background: linear-gradient(180deg, #eefaf3, #c8f0d5);
  display: grid;
  place-items: center;
}
[data-theme="dark"] .step-photo {
  background: linear-gradient(180deg, #0c2218, #061a0c);
}
.frame {
  position: absolute;
  inset: 30px;
  border: 2px dashed var(--brand-1);
  border-radius: 14px;
}
.shutter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--brand-1);
  background: white;
}
[data-theme="dark"] .shutter {
  background: var(--surface);
}
.rx-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-3deg);
  background: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .rx-label {
  background: var(--surface-2);
}

.step-form {
  justify-content: center;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.form-row em {
  font-style: normal;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.form-row b {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.step-time {
  align-items: center;
  justify-content: center;
}
.clock {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--brand-1);
  display: grid;
  place-items: center;
}
.clock::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-1);
}
.clock .h,
.clock .m {
  position: absolute;
  background: var(--brand-1);
  border-radius: 4px;
  transform-origin: bottom center;
  bottom: 50%;
  left: calc(50% - 1.5px);
  width: 3px;
}
.clock .h {
  height: 22px;
  transform: rotate(-30deg);
}
.clock .m {
  height: 30px;
  transform: rotate(60deg);
  background: var(--brand-2);
}
.weekdays {
  display: flex;
  gap: 4px;
  margin-top: 12px;
}
.weekdays i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  display: grid;
  place-items: center;
  font-style: normal;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.weekdays i.on {
  background: var(--brand-1);
  color: white;
  border-color: transparent;
}

.step-alarm {
  background: radial-gradient(
    circle at 50% 30%,
    color-mix(in srgb, var(--brand-3) 20%, var(--surface)),
    var(--surface)
  );
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding-top: 26px;
}
.alarm-pill {
  font-size: 38px;
  z-index: 1;
}
.step-alarm strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 600;
  z-index: 1;
}
.step-alarm em {
  font-style: normal;
  font-size: 12px;
  color: var(--text-dim);
  z-index: 1;
}
.took-btn {
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  z-index: 1;
  box-shadow: 0 8px 22px -8px var(--brand-1);
}

/* ---------- Privacy strip ---------- */
.privacy {
  margin: clamp(60px, 10vh, 100px) var(--gutter);
}
.privacy-inner {
  max-width: var(--container);
  margin: 0 auto;
  background: linear-gradient(135deg, #072112, #0e3b1e);
  color: #e8fdf0;
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .privacy-inner {
  background: linear-gradient(135deg, #0c2218, #112c1e);
  border: 1px solid var(--border-strong);
}

/* ---------- Final CTA ---------- */
[data-theme="dark"] .cta-band {
  background: linear-gradient(135deg, #1c4734, #246e48) !important;
}
.privacy-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 20%,
      color-mix(in srgb, var(--brand-1) 35%, transparent),
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      color-mix(in srgb, var(--brand-2) 25%, transparent),
      transparent 50%
    );
  opacity: 0.5;
  pointer-events: none;
}
.privacy-head {
  position: relative;
  text-align: center;
  margin-bottom: 36px;
}
.privacy-head h2 {
  color: white;
  margin-top: 12px;
  font-size: clamp(28px, 3.6vw, 38px);
}
.privacy-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.privacy-grid li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.priv-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--brand-2);
  margin-bottom: 6px;
}
.priv-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.privacy-grid strong {
  font-weight: 600;
  font-size: 16px;
}
.privacy-grid em {
  font-style: normal;
  font-size: 14px;
  color: rgba(232, 253, 240, 0.75);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(60px, 10vh, 100px) var(--gutter);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.faq-item[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-chevron {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-1) 14%, transparent);
  color: var(--brand-1);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 18px;
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] .faq-chevron {
  transform: rotate(45deg);
}
.faq-body {
  padding: 0 22px 18px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Final CTA ---------- */
.cta-band {
  max-width: var(--container);
  margin: clamp(60px, 10vh, 100px) auto;
  padding: clamp(48px, 8vw, 80px) var(--gutter);
  text-align: center;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 50%);
  animation: drift 18s ease-in-out infinite;
}
.cta-band h2 {
  font-size: clamp(28px, 3.8vw, 40px);
  margin-bottom: 12px;
  position: relative;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  position: relative;
}
.cta-band .btn-play {
  background: white;
  color: #0a0a0a;
  position: relative;
  border-color: rgba(0, 0, 0, 0.06);
}
.cta-band .btn-play:hover {
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 36px var(--gutter);
}
.foot-top,
.foot-bottom {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.foot-top {
  margin-bottom: 18px;
}
.foot-tag {
  font-size: 14px;
  color: var(--text-muted);
}
.foot-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}
.foot-links {
  display: flex;
  gap: 18px;
}
.foot-links a {
  color: var(--text-dim);
  font-size: 13px;
}
.foot-links a:hover {
  color: var(--text);
}

/* ---------- Reveal animations ---------- */
.reveal,
.reveal-late {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-late {
  transform: translateY(40px) scale(0.98);
  transition-duration: 0.9s;
}
.reveal.is-in,
.reveal-late.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-late {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .blob,
  .phone,
  .notif,
  .ocr-line,
  .ocr-scan,
  .alarm-bell,
  .alarm-ring,
  .ps-bell,
  .hero-title .grad,
  .pill-badge .dot,
  .cta-band::before,
  .ps-next-bar span,
  .mood,
  .hc,
  .cal-art::before,
  .cal-art::after {
    animation: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text {
    align-items: center;
  }
  .hero-meta {
    justify-content: center;
  }
  .hero-phone {
    margin-top: 12px;
  }
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .timeline {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .timeline-line {
    display: none;
  }
  .privacy-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .theme-toggle {
    display: none;
  }
  .theme-toggle-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    width: 100%;
    border-top: 1px solid var(--border);
    margin-top: 4px;
    padding-top: 12px;
  }
  .theme-toggle-inline:hover {
    color: var(--text);
    background: var(--surface-2);
  }
  .theme-toggle-inline .material-symbols-outlined {
    font-size: 18px;
    color: var(--brand-1);
  }
  body.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 64px;
    left: var(--gutter);
    right: var(--gutter);
    background: var(--surface);
    flex-direction: column;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    margin-left: 0;
  }
  .notif {
    display: none;
  }
}

@media (max-width: 600px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .hero-cta {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
