/* tQlendar app landing — scoped styles */
:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --paper: #f4f7fb;
  --sky: #1d4ed8;
  --sky-bright: #38bdf8;
  --mint: #14b8a6;
  --coral: #f97316;
  --frame: #0b1220;
  --screen: #f8fafc;
  --white: #ffffff;
  --glow: rgba(56, 189, 248, 0.35);
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 60% at 15% 10%, rgba(56, 189, 248, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(20, 184, 166, 0.22), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(249, 115, 22, 0.12), transparent 45%),
    linear-gradient(165deg, #e8f1ff 0%, #f4f7fb 42%, #eef7f5 100%);
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 24px var(--glow);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.top-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.top-link:hover {
  color: var(--sky);
}

/* Hero */
.hero {
  flex: 1;
  display: grid;
  align-items: center;
  gap: 2.5rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
  width: 100%;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    padding-top: 1.5rem;
    padding-bottom: 4rem;
  }
}

.hero-copy {
  animation: rise 0.8s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: 1rem;
  background: linear-gradient(120deg, var(--ink) 20%, var(--sky) 70%, var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  color: var(--ink);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 28rem;
  margin-bottom: 1.75rem;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.7rem 1.1rem;
  border-radius: 0.85rem;
  min-width: 10.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}

.store-btn:hover {
  transform: translateY(-2px);
  background: #1e293b;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.24);
}

.store-btn svg {
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.store-btn-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.store-btn-name {
  font-size: 1rem;
  font-weight: 600;
}

.tagline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.tagline-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tagline-row span::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--mint);
}

/* Phone slider */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  animation: rise 0.9s 0.12s ease both;
}

.phone-stage {
  position: relative;
  width: min(100%, 280px);
  filter: drop-shadow(0 28px 50px rgba(15, 23, 42, 0.28));
}

.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.2;
  background: var(--frame);
  border-radius: 2.4rem;
  padding: 0.55rem;
  border: 2px solid #1e293b;
}

.phone-notch {
  position: absolute;
  top: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 1.05rem;
  background: #000;
  border-radius: 999px;
  z-index: 5;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 1.9rem;
  overflow: hidden;
  background: var(--screen);
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(18px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
  padding: 2.1rem 0.85rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.slide-status {
  display: flex;
  justify-content: space-between;
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0 0.2rem;
}

.slide-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.slide-caption {
  font-size: 0.68rem;
  color: var(--ink-soft);
  margin-top: -0.25rem;
}

.mock-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 0.7rem 0.75rem;
}

.mock-card-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.mock-dot {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.55rem;
  display: grid;
  place-items: center;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.mock-dot.blue { background: linear-gradient(145deg, #2563eb, #38bdf8); }
.mock-dot.teal { background: linear-gradient(145deg, #0d9488, #2dd4bf); }
.mock-dot.orange { background: linear-gradient(145deg, #ea580c, #fb923c); }

.mock-card h4 {
  font-size: 0.78rem;
  font-weight: 650;
}

.mock-card p {
  font-size: 0.62rem;
  color: var(--ink-soft);
}

.mock-pill {
  margin-left: auto;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
}

.mock-pill.warn {
  background: #fff7ed;
  color: #c2410c;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.28rem;
}

.cal-cell {
  aspect-ratio: 1;
  border-radius: 0.4rem;
  background: #eef2ff;
  display: grid;
  place-items: center;
  font-size: 0.52rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.cal-cell.on {
  background: linear-gradient(145deg, #2563eb, #0ea5e9);
  color: white;
}

.cal-cell.mid {
  background: #ccfbf1;
  color: #0f766e;
}

.cal-cell.off {
  background: #fee2e2;
  color: #b91c1c;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 5.5rem;
  padding: 0.4rem 0.2rem 0;
}

.bar-chart span {
  flex: 1;
  border-radius: 0.35rem 0.35rem 0.15rem 0.15rem;
  background: linear-gradient(180deg, var(--sky-bright), var(--sky));
  min-height: 18%;
}

.bar-chart span:nth-child(2) { height: 55%; }
.bar-chart span:nth-child(3) { height: 80%; }
.bar-chart span:nth-child(4) { height: 42%; }
.bar-chart span:nth-child(5) { height: 95%; }
.bar-chart span:nth-child(6) { height: 68%; }
.bar-chart span:nth-child(7) { height: 50%; background: linear-gradient(180deg, #5eead4, #0d9488); }

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.entry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  padding: 0.55rem 0.65rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.7rem;
}

.entry-row strong {
  font-weight: 650;
}

.welcome-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 1rem;
  overflow: hidden;
  margin: 1.2rem auto 0.4rem;
  box-shadow: 0 12px 28px var(--glow);
}

.welcome-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.welcome-center {
  text-align: center;
  margin-top: 0.4rem;
}

.welcome-center h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.welcome-center p {
  font-size: 0.68rem;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

.mock-btn {
  margin-top: auto;
  background: var(--sky);
  color: white;
  text-align: center;
  padding: 0.65rem;
  border-radius: 0.7rem;
  font-size: 0.72rem;
  font-weight: 650;
}

.mock-btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid #cbd5e1;
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.slider-btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.slider-btn:hover {
  background: white;
  border-color: var(--sky);
  transform: scale(1.05);
}

.slider-btn svg {
  width: 1rem;
  height: 1rem;
}

.dots {
  display: flex;
  gap: 0.4rem;
}

.dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  border: none;
  background: #94a3b8;
  cursor: pointer;
  padding: 0;
  transition: width 0.25s ease, background 0.25s ease;
}

.dot.is-active {
  width: 1.35rem;
  background: var(--sky);
}

.slide-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  min-height: 1.2em;
  text-align: center;
}

/* Feature graphics slider */
.features {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  width: 100%;
}

.features-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  letter-spacing: -0.04em;
  text-align: center;
  margin-bottom: 0.5rem;
}

.features-sub {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

.feature-slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
}

.feature-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
  background: #1d4ed8;
  aspect-ratio: 16 / 9;
}

.feature-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.feature-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateX(24px) scale(0.985);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.feature-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.feature-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Footer */
.page-footer {
  text-align: center;
  padding: 1rem 1.5rem 1.75rem;
  font-size: 0.8rem;
  color: #64748b;
}

.page-footer a {
  color: var(--sky);
  font-weight: 600;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.15rem;
  margin-bottom: 0.65rem;
}

.footer-nav a {
  color: var(--ink-soft);
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--sky);
}

@media (max-width: 899px) {
  .hero {
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .store-row {
    justify-content: center;
  }

  .tagline-row {
    justify-content: center;
  }

  .phone-stage {
    width: min(100%, 250px);
  }
}
