/* ============================================================
   Kayts — marketing site
   Design system: deep navy ink + cool paper backgrounds, built
   around the brand mark's two colors — electric blue as the
   primary accent, lime as a secondary pop reserved for dark
   sections. Manrope display type over Inter body copy.
   Deliberately avoids the generic purple-gradient / stock-
   illustration SaaS template look.
   ============================================================ */

:root {
  --ink: #0B0F1F;
  --ink-soft: #232A3D;
  --paper: #F5F7FB;
  --paper-dim: #E9EDF7;
  --paper-line: rgba(11, 15, 31, 0.10);
  --accent: #044EFB;
  --accent-dark: #0339C7;
  --accent-soft: #E3EAFF;
  --lime: #B5F34A;
  --lime-ink: #1F3A05;
  --muted: #5B6472;
  --muted-light: #8B93A3;
  --white: #FFFFFF;

  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(11, 15, 31, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 15, 31, 0.10);
  --shadow-lg: 0 24px 64px rgba(11, 15, 31, 0.18);

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
}

p { margin: 0; color: var(--muted); }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.container--narrow { max-width: 760px; }

/* Subtle film-grain texture over the whole page — reads as designed,
   not templated. Fixed + pointer-events:none so it never blocks clicks. */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn--solid {
  background: var(--ink);
  color: var(--paper);
}
.btn--solid:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--accent-dark); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--paper-line);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--text {
  padding: 12px 0;
  color: var(--ink);
  font-weight: 600;
}
.btn--text svg { transition: transform 0.18s ease; }
.btn--text:hover svg { transform: translateX(3px); }
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--block { width: 100%; justify-content: center; }

/* ── Nav ─────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}
.nav.is-scrolled {
  background: rgba(245, 247, 251, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--paper-line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark-img {
  width: 32px; height: 32px;
  object-fit: contain;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
/* On desktop, nav__panel is just a transparent wrapper so nav__links and
   nav__cta behave as direct flex children of nav__inner. On mobile it
   becomes the single dropdown panel (see media query below) — this way
   both pieces move as one solid block instead of two separately
   positioned floats with a see-through gap between them. */
.nav__panel { display: contents; }
.nav__links {
  display: flex;
  gap: 32px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav__links a { transition: color 0.15s ease; }
.nav__links a:hover { color: var(--accent-dark); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 26px;
}
.nav__burger span {
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ── Hero ────────────────────────────────────────────────── */

.hero { padding: 84px 0 60px; overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow--light { background: rgba(181, 243, 74, 0.18); color: var(--lime); }

.hero__copy h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.08;
}
.hl { color: var(--accent); }

.hero__lead {
  margin-top: 22px;
  font-size: 1.12rem;
  max-width: 520px;
  line-height: 1.6;
}
.hero__actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero__stats {
  margin-top: 56px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero__stats div { display: flex; flex-direction: column; gap: 4px; }
.hero__stats strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; }
.hero__stats span { font-size: 0.86rem; color: var(--muted-light); }

/* Hero visual — layered "app" cards, pure CSS, no stock imagery */
.hero__visual {
  position: relative;
  height: 520px;
}
.hero__glow {
  position: absolute;
  width: 420px; height: 420px;
  right: -80px; top: 40px;
  background: radial-gradient(circle, rgba(4,78,251,0.22) 0%, rgba(181,243,74,0.12) 55%, rgba(4,78,251,0) 75%);
  z-index: 0;
}
.stack-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  z-index: 1;
}
.stack-card--menu {
  width: 300px;
  top: 10px; left: 0;
  transform: rotate(-4deg);
}
.stack-card--loyalty {
  width: 260px;
  top: 250px; right: 10px;
  transform: rotate(3deg);
  background: linear-gradient(135deg, var(--ink) 0%, #123A8F 100%);
  color: var(--paper);
  padding: 22px;
}
.stack-card--booking {
  width: 280px;
  bottom: 10px; left: 40px;
  transform: rotate(2deg);
}
.sc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.sc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.sc-title { font-weight: 700; font-size: 0.92rem; }
.sc-row { display: flex; justify-content: space-between; font-size: 0.86rem; padding: 6px 0; color: var(--ink-soft); }
.sc-row b { font-weight: 700; }
.sc-row--muted { color: var(--muted-light); }
.sc-total { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--paper-line); font-weight: 700; }

.sc-loyalty-top { display: flex; justify-content: space-between; font-size: 0.8rem; opacity: 0.8; letter-spacing: 0.06em; }
.sc-loyalty-tier { color: var(--lime); font-weight: 700; }
.sc-loyalty-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-top: 28px; }
.sc-loyalty-row { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-size: 0.82rem; opacity: 0.85; }
.sc-qr {
  width: 34px; height: 34px;
  border-radius: 6px;
  background:
    repeating-linear-gradient(45deg, var(--paper) 0 3px, transparent 3px 6px),
    var(--white);
  opacity: 0.9;
}

.sc-booking-slot {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  color: var(--muted);
}
.sc-booking-slot--active {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
}

/* ── Vertical strip ──────────────────────────────────────── */

.strip { border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); padding: 26px 0; }
.strip__inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.strip__label { font-size: 0.82rem; color: var(--muted-light); font-weight: 600; white-space: nowrap; }
.strip__items { display: flex; gap: 28px; flex-wrap: wrap; font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; }

/* ── Sections (generic) ─────────────────────────────────── */

.section { padding: 108px 0; }
.section--muted { background: var(--paper-dim); }
.section--dark { background: var(--ink); }
.text-light { color: var(--paper); }
.text-light-muted { color: rgba(245, 247, 251, 0.6); }

.section__head { max-width: 620px; margin-bottom: 56px; }
.section__head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.15; }
.section__lead { margin-top: 16px; font-size: 1.05rem; }

/* ── Bento feature grid ─────────────────────────────────── */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bento__card {
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bento__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bento__card--wide { grid-column: span 2; }
.bento__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.bento__card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.bento__card p { font-size: 0.95rem; line-height: 1.55; }

/* ── Audience tabs ───────────────────────────────────────── */

.tabs__nav { display: inline-flex; gap: 6px; background: rgba(255,255,255,0.06); padding: 6px; border-radius: 999px; margin-bottom: 40px; }
.tabs__btn {
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: rgba(245, 247, 251,0.6);
  transition: background 0.2s ease, color 0.2s ease;
}
.tabs__btn.is-active { background: var(--lime); color: var(--lime-ink); }
.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; animation: fadeUp 0.4s ease; }
.tabs__panel-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }

.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 16px;
  color: rgba(245, 247, 251,0.86);
  font-size: 1rem;
  line-height: 1.5;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--lime);
}
.check-list li::after {
  content: '';
  position: absolute;
  left: 5px; top: 9px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}
.tabs__quote {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.tabs__quote p {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  font-style: normal;
}

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

/* ── Steps ───────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.steps__item { padding-top: 8px; border-top: 2px solid var(--ink); }
.steps__num { font-family: var(--font-display); font-size: 0.85rem; font-weight: 800; color: var(--accent-dark); }
.steps__item h3 { margin-top: 14px; font-size: 1.2rem; }
.steps__item p { margin-top: 10px; font-size: 0.96rem; line-height: 1.55; }

/* ── Pricing ─────────────────────────────────────────────── */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
}
.price-card--featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}
.price-card--featured h3,
.price-card--featured .price-card__amount { color: var(--paper); }
.price-card--featured p.price-card__desc { color: rgba(245, 247, 251,0.65); }
.price-card__badge {
  position: absolute;
  top: -13px; left: 30px;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
}
.price-card h3 { font-size: 1.3rem; }
.price-card__desc { margin-top: 8px; font-size: 0.92rem; min-height: 42px; }
.price-card__amount { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; margin: 22px 0 26px; }
.price-card__amount span { font-size: 0.95rem; font-weight: 500; color: var(--muted-light); }
.price-card ul { flex: 1; margin-bottom: 28px; }
.price-card li {
  font-size: 0.92rem;
  padding: 9px 0;
  border-top: 1px solid var(--paper-line);
  color: var(--ink-soft);
}
.price-card--featured li {
  color: rgba(245, 247, 251,0.86);
  border-top-color: rgba(255,255,255,0.12);
}
.price-card li:first-child { border-top: none; }

/* ── FAQ ─────────────────────────────────────────────────── */

.faq__item {
  border-bottom: 1px solid var(--paper-line);
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
}
.faq__icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--paper-line);
  position: relative;
}
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute;
  background: var(--ink);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.faq__icon::before { width: 10px; height: 1.5px; }
.faq__icon::after { width: 1.5px; height: 10px; }
.faq__item.is-open .faq__icon::after { opacity: 0; transform: translate(-50%,-50%) rotate(90deg); }

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}
.faq__a p { padding-bottom: 24px; font-size: 0.97rem; line-height: 1.6; max-width: 640px; }
.faq__item.is-open .faq__a { max-height: 240px; }

/* ── CTA band ────────────────────────────────────────────── */

.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 100px 0;
}
.cta-band__inner { text-align: center; max-width: 620px; margin: 0 auto; }
.cta-band h2 { color: var(--paper); font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.cta-band p { margin-top: 16px; color: rgba(245, 247, 251,0.7); font-size: 1.05rem; }

.cta-form {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-form input {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: var(--paper);
  font-size: 0.95rem;
  font-family: inherit;
}
.cta-form input::placeholder { color: rgba(245, 247, 251,0.45); }
.cta-form input:focus { outline: none; border-color: var(--accent); }
.cta-form__note { margin-top: 16px; font-size: 0.85rem; color: rgba(245, 247, 251,0.45); }

/* ── Footer ──────────────────────────────────────────────── */

.footer { padding: 72px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer__brand p { margin-top: 14px; font-size: 0.92rem; max-width: 240px; }
.footer__col h4 { font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-light); margin-bottom: 16px; }
.footer__col a { display: block; font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 12px; transition: color 0.15s ease; }
.footer__col a:hover { color: var(--accent-dark); }
.footer__legal {
  border-top: 1px solid var(--paper-line);
  padding: 22px 28px;
  font-size: 0.82rem;
  color: var(--muted-light);
}

/* ── Scroll reveal ───────────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { height: 460px; margin-top: 20px; }
  .bento__card--wide { grid-column: span 3; }
  .pricing { grid-template-columns: 1fr; }
  .price-card--featured { transform: none; order: -1; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav__panel { display: none; }
  .nav__burger { display: flex; }
  .nav.is-open .nav__panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    padding: 24px 28px 32px;
    box-shadow: var(--shadow-md);
  }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .nav.is-open .nav__cta {
    display: flex;
    flex-direction: column;
  }
  .nav.is-open .nav__cta .btn { justify-content: center; width: 100%; }
  .bento { grid-template-columns: 1fr; }
  .bento__card--wide { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .tabs__panel-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero__stats { gap: 28px; }
}
