:root {
  --ink: #16131F;
  --ink-soft: #5B5570;
  --bg: #FDFCFF;
  --bg-tint: #F4F1FC;
  --card: #FFFFFF;
  --border: #E7E2F5;
  --accent: #7C3AED;
  --accent-light: #F1EBFE;
  --green: #2FBE79;
  --amber: #F5A524;
  --danger: #E14F4F;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Work Sans', -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-family: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
  margin: 0;
}

p { margin: 0; }
ul { margin: 0; padding: 0; }
svg { flex-shrink: 0; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.75; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.btn--dark {
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
}

.btn--accent {
  padding: 16px 26px;
  border-radius: 12px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
}

.btn--outline {
  padding: 16px 24px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.btn--outline-block,
.btn--accent-block {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
}

.btn--outline-block {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

.btn--accent-block {
  background: var(--accent);
  color: #FFFFFF;
}

/* ---------- Nav ---------- */

.nav { border-bottom: 1px solid var(--border); }

.nav__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 5vw, 96px);
  height: 88px;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand__mark--sm { width: 30px; height: 30px; border-radius: 9px; }

.brand__name {
  font-family: 'Manrope', sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav__links { display: flex; align-items: center; gap: 40px; }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.nav__links a:hover { color: var(--ink); opacity: 1; }

/* ---------- Hero ---------- */

.hero { padding: 56px clamp(20px, 5vw, 96px) 96px; }

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 64px;
}

.hero__content {
  flex: 0 1 600px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

h1 {
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 600px;
  color: var(--ink);
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 520px;
}

.hero__ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.badges { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #FFFFFF;
}

.badge__text { display: flex; flex-direction: column; line-height: 1.15; font-size: 13px; font-weight: 700; }
.badge__text small { font-size: 8.5px; font-weight: 500; opacity: 0.8; }

.hero__visual {
  position: relative;
  flex: 0 0 auto;
  width: 420px;
  max-width: 100%;
  height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__glow {
  position: absolute;
  width: 360px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-light) 0%, rgba(244, 241, 252, 0) 70%);
}

/* ---------- Phone mockups (shared) ---------- */

.phone {
  position: relative;
  flex: 0 0 auto;
  border-radius: 38px;
  background: #16131F;
  padding: 9px;
  box-shadow: 0 40px 80px -20px rgba(91, 33, 182, 0.35);
}

.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: #FFFFFF;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--ink);
}

.phone__screen--pad { padding: 16px 13px; }

.phone--hero {
  width: 240px;
  height: 516px;
  position: relative;
  z-index: 3;
  transform: rotate(0deg);
  box-shadow: 0 40px 70px -24px rgba(91, 33, 182, 0.4), 0 10px 20px rgba(22, 19, 31, 0.1);
  animation: phone-hero-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

@keyframes phone-hero-in {
  0% { transform: rotate(0deg) scale(0.92); opacity: 0; }
  35% { transform: rotate(-9deg) scale(1); opacity: 1; }
  50% { transform: rotate(6deg); }
  65% { transform: rotate(-4deg); }
  80% { transform: rotate(2deg); }
  92% { transform: rotate(-1deg); }
  100% { transform: rotate(0deg); }
}

.phone--bg {
  position: absolute;
  z-index: 1;
  width: 196px;
  height: 422px;
  border-radius: 32px;
  opacity: 0.9;
  filter: saturate(0.85) brightness(1.02);
  pointer-events: none;
  box-shadow: 16px 28px 44px -20px rgba(22, 19, 31, 0.25);
}

.phone--bg .phone__screen { border-radius: 24px; }

.phone--bg-left {
  left: 2px;
  top: 44px;
  transform: rotate(-17deg);
  animation: phone-bg-left-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.phone--bg-right {
  right: -6px;
  top: 158px;
  z-index: 2;
  transform: rotate(15deg);
  animation: phone-bg-right-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

@keyframes phone-bg-left-in {
  0% { opacity: 0; transform: rotate(-17deg) translate(-16px, 10px) scale(0.92); }
  100% { opacity: 0.9; transform: rotate(-17deg) translate(0, 0) scale(1); }
}

@keyframes phone-bg-right-in {
  0% { opacity: 0; transform: rotate(15deg) translate(16px, 10px) scale(0.92); }
  100% { opacity: 0.9; transform: rotate(15deg) translate(0, 0) scale(1); }
}

@media (max-width: 720px) {
  .phone--bg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .phone--hero, .phone--bg-left, .phone--bg-right { animation: none; }
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 10px;
  color: var(--ink);
}

.app-header--compact { justify-content: flex-start; gap: 8px; padding: 0 0 12px; }
.app-header__title { font-size: 12.5px; font-weight: 700; }

.avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.day-pills { display: flex; gap: 6px; padding: 8px 14px 12px; flex-wrap: wrap; }

.day-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 7px 9px;
  border-radius: 12px 12px 6px 6px;
  border: 1px solid var(--border);
  min-width: 34px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}

.day-pill span { font-size: 7px; font-weight: 700; letter-spacing: 0.04em; }
.day-pill--selected { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.day-pill--selected span { color: #FFFFFF; }

.notice {
  margin: 0 14px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #F4F3F7;
  color: var(--ink-soft);
}

.notice span { font-size: 10px; font-weight: 600; line-height: 1.3; }

.spot-list { display: flex; flex-direction: column; gap: 7px; padding: 0 14px; flex: 1; overflow: hidden; }

.spot-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid var(--border);
  color: #C7C2D6;
}

.spot-card--selected { border: 1.5px solid var(--accent); background: var(--accent-light); color: var(--accent); }
.spot-card__label { display: flex; flex-direction: column; line-height: 1.3; }
.spot-card__label strong { font-size: 11px; font-weight: 700; color: var(--ink); }
.spot-card__label span { font-size: 8px; font-weight: 600; color: inherit; }
.text-green { color: var(--green) !important; }

.phone__footer { padding: 12px 14px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; }

.lock-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: var(--accent);
}

.lock-btn span { font-size: 11px; font-weight: 700; color: #FFFFFF; }
.phone__hint { font-size: 7.5px; color: var(--accent); font-weight: 600; text-align: center; }

/* ---------- Features ---------- */

.features {
  background: var(--bg-tint);
  padding: 96px clamp(20px, 5vw, 96px);
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.section-head {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.section-head h2 { font-size: clamp(28px, 3.5vw, 38px); font-weight: 800; letter-spacing: -0.02em; max-width: 640px; }
.section-head p { font-size: 16px; color: var(--ink-soft); max-width: 560px; line-height: 1.6; }

.feature-grid {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card h3 { font-size: 19px; font-weight: 700; }
.feature-card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }

.feature-wide {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 40px 44px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
}

.feature-wide__text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.feature-wide__text h3 { font-size: 20px; font-weight: 700; }
.feature-wide__text p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); max-width: 400px; }

.mini-heatmap {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  width: 380px;
  max-width: 100%;
}

.cell { height: 34px; border-radius: 9px 9px 5px 5px; }
.cell--free { background: var(--green); }
.cell--busy { background: var(--amber); }
.cell--split { background: linear-gradient(135deg, var(--green) 50%, var(--amber) 50%); }
.cell--today { border: 2px solid var(--accent); }

/* ---------- App showcase ---------- */

.showcase {
  padding: 96px clamp(20px, 5vw, 96px);
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.phones {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.phone--sm {
  width: 236px;
  height: 508px;
  margin-bottom: 36px;
  border-radius: 34px;
  box-shadow: 0 30px 60px -18px rgba(22, 19, 31, 0.28);
}

.phone--lg {
  width: 252px;
  height: 560px;
  border-radius: 36px;
  box-shadow: 0 36px 72px -18px rgba(22, 19, 31, 0.32);
  z-index: 2;
}

.field-label {
  display: block;
  font-size: 8px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.phone--lg .field-label { font-size: 8.5px; }

.field-box {
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ink);
}

.field-box--muted { color: var(--ink-soft); font-style: italic; font-weight: 400; }
.field-box--readonly { background: #F4F3F7; border: none; color: var(--ink-soft); font-weight: 400; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  font-weight: 600;
}

.toggle-row--last { margin-bottom: 12px; }

.toggle {
  display: inline-flex;
  width: 26px;
  height: 15px;
  border-radius: 100px;
  background: #E4E1EC;
  position: relative;
}

.toggle__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #FFFFFF;
}

.toggle--on { background: var(--accent); width: 24px; height: 14px; }
.toggle--on .toggle__knob { left: auto; right: 2px; width: 10px; height: 10px; }

.list-title { display: block; font-size: 11px; font-weight: 700; margin-bottom: 8px; }

.create-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px;
  border-radius: 10px;
  background: var(--accent);
  margin-bottom: 10px;
}

.create-btn span { font-size: 10px; font-weight: 700; color: #FFFFFF; }

.admin-spot-list { display: flex; flex-direction: column; gap: 6px; }

.admin-spot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid var(--border);
}

.admin-spot-row div { display: flex; flex-direction: column; line-height: 1.3; }
.admin-spot-row strong { font-size: 10px; font-weight: 700; }
.admin-spot-row span { font-size: 7.5px; color: var(--ink-soft); }

.danger-zone {
  margin-top: auto;
  padding: 10px;
  border-radius: 12px;
  border: 1.5px solid #F3C6C6;
  background: #FDF4F4;
}

.danger-zone__title { font-size: 9px; font-weight: 800; color: var(--danger); letter-spacing: 0.03em; }
.danger-zone .toggle-row { border: none; padding: 0; margin-top: 6px; font-size: 9.5px; }

.day-chip-row { display: flex; gap: 5px; margin-bottom: 14px; flex-wrap: wrap; }

.day-chip {
  padding: 6px 9px;
  border-radius: 9px;
  border: 1px solid var(--border);
  font-size: 8.5px;
  font-weight: 700;
  color: var(--ink-soft);
}

.day-chip--selected { border: 1.5px solid var(--accent); background: var(--accent-light); color: var(--accent); }

.dropdown-row { display: flex; gap: 6px; }

.dropdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 9px;
  border-radius: 9px;
  border: 1px solid var(--border);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink);
}

.dropdown--wide { flex: 1.4; }
.dropdown-row .dropdown:last-child { flex: 0.7; }
.dropdown--full { padding: 8px 10px; font-size: 10.5px; font-weight: 700; margin-bottom: 12px; }
.accent-text { color: var(--accent); }

.month-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 10px; }
.month-nav span { font-size: 11px; font-weight: 800; color: var(--accent); }

.mini-heatmap--phone { gap: 4px; width: 100%; }
.mini-heatmap--phone .cell { height: 22px; border-radius: 7px 7px 4px 4px; }

.day-popup {
  margin-top: auto;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px -8px rgba(22, 19, 31, 0.15);
}

.day-popup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 9px;
  font-weight: 700;
}

.day-popup__counts { display: flex; gap: 4px; }

.pill { font-size: 7.5px; font-weight: 700; padding: 2px 6px; border-radius: 100px; }
.pill--amber { background: #FDF1DD; color: var(--amber); }
.pill--green { background: #E5F8ED; color: var(--green); }

.day-popup__row { display: flex; align-items: center; justify-content: space-between; font-size: 8.5px; font-weight: 600; }
.day-popup__row span:last-child { color: var(--ink-soft); font-weight: 700; }

/* ---------- Pricing ---------- */

.pricing {
  background: var(--bg-tint);
  padding: 96px clamp(20px, 5vw, 96px);
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.price-grid {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--border);
}

.price-card--featured {
  background: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: 0 30px 60px -20px rgba(22, 19, 31, 0.4);
}

.price-card__badge {
  position: absolute;
  top: -14px;
  left: 40px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
}

.price-card__head { display: flex; flex-direction: column; gap: 8px; }
.price-card__name { font-size: 15px; font-weight: 700; }
.price-card--featured .price-card__name { color: #FFFFFF; }
.price-card__desc { font-size: 13px; color: var(--ink-soft); }
.price-card--featured .price-card__desc { color: #B8B3C9; }

.price-card__amount { display: flex; align-items: baseline; gap: 4px; }
.price-card__amount span { font-size: 42px; font-weight: 800; }
.price-card__amount small { font-size: 14px; color: var(--ink-soft); }
.price-card--featured .price-card__amount span { color: #FFFFFF; }
.price-card--featured .price-card__amount small { color: #B8B3C9; }

.price-list {
  list-style: none;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink); }
.price-card--featured .price-list { border-top: 1px solid #322D42; }
.price-card--featured .price-list li { color: #FFFFFF; }

.pricing__footnote {
  max-width: 1440px;
  width: 100%;
  margin: -24px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- CTA ---------- */

.cta {
  max-width: 1440px;
  margin: 0 auto;
  padding: 104px clamp(20px, 5vw, 96px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.cta h2 { font-size: clamp(28px, 3.5vw, 36px); font-weight: 800; letter-spacing: -0.02em; max-width: 600px; }
.cta p { font-size: 16px; color: var(--ink-soft); max-width: 460px; line-height: 1.6; }

/* ---------- Footer ---------- */

.footer {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 48px clamp(20px, 5vw, 96px);
  border-top: 1px solid var(--border);
}

.footer__links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }

.footer__heading {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer__col a { font-size: 13.5px; color: var(--ink); }
.footer__copy { font-size: 13px; color: var(--ink-soft); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .nav__links { display: none; }

  .hero__inner { flex-direction: column; align-items: center; }
  .hero__content { align-items: center; text-align: center; }
  h1, .lead { max-width: 640px; }
  .hero__ctas, .badges { justify-content: center; }

  .feature-wide { flex-direction: column; }
  .mini-heatmap { width: 100%; }

  .price-grid { grid-template-columns: 1fr; max-width: 480px; }
}

@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
  .phones { gap: 24px; }
  .footer { flex-direction: column; }
}
