:root {
  --ink: #15324c;
  --navy: #1b4b73;
  --navy-2: #24608f;
  --paper: #f4f8fc;
  --cream: #eaf4fb;
  --card: #ffffff;
  --accent: #2f9adf;
  --accent-2: #f5a623;
  --hot: #f5a623;
  --sun: #ffc857;
  --mint: #2ecc71;
  --gold: #2f9adf;
  --gold-2: #7ec8f0;
  --gold-s: rgba(47, 154, 223, .16);
  --text: #16324d;
  --muted: #5d7388;
  --line: #d7e6f2;
  --line-d: #1b4b73;
  --err: #e11d48;
  --ok: #1fa85a;
  --shadow: 0 18px 40px rgba(21, 50, 76, .08);
  --radius: 22px;
  --serif: Rubik, Heebo, Arial, sans-serif;
  --sans: Rubik, Heebo, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
}
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { width: min(1220px, calc(100% - 32px)); margin-inline: auto; }

h1, h2, h3 { color: var(--ink); letter-spacing: -.03em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); line-height: 1.12; margin: 0 0 16px; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; margin: 0 0 10px; }
.grad-text {
  background: linear-gradient(90deg, #2f9adf, #2ecc71 45%, #f5a623);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
}
.brand-logo {
  display: block;
  height: 52px;
  width: auto;
}
.brand-logo-lg { height: auto; width: min(520px, 100%); }
.brand-logo-sm { height: 46px; width: auto; }
.logo-mark { display: flex; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.home .site-header.is-on { box-shadow: 0 8px 24px rgba(21, 50, 76, .06); }

.header-inner, .main-nav { display: flex; align-items: center; gap: 18px; }
.header-inner { justify-content: space-between; min-height: 78px; }
.main-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: .95rem;
  line-height: 1.2;
  transition: .2s ease;
}
.btn-primary {
  background: linear-gradient(90deg, #2f9adf, #1e7ec3);
  color: #fff;
  box-shadow: 0 10px 22px rgba(47, 154, 223, .28);
}
.btn-primary:hover { transform: translateY(-1px); color: #fff; filter: brightness(1.05); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-danger { background: #fff; color: var(--err); border-color: #fecdd3; }
.btn-lg { padding: 14px 24px; }
.btn-block { width: 100%; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 64px;
  background:
    radial-gradient(700px 320px at 90% 0%, rgba(245, 166, 35, .18), transparent 55%),
    radial-gradient(640px 340px at 0% 80%, rgba(46, 204, 113, .14), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #eef6fb 100%);
}
.aurora, .aurora-2, .noise { display: none; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 36px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 700;
  font-size: .82rem;
  padding: 7px 13px;
  border-radius: 999px;
  margin: 0 0 16px;
}
.lead { color: var(--muted); font-size: 1.12rem; max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 28px;
  margin-top: 34px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
}
.hero-stats span { display: block; color: var(--muted); font-weight: 500; font-size: .82rem; margin-top: 3px; }

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}
.hero-logo-wrap {
  width: min(540px, 100%);
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 24px 40px rgba(47, 154, 223, .18));
}
.phone-frame {
  width: min(340px, 100%);
  margin: 18px auto 0;
  padding: 10px;
  border-radius: 36px;
  background: #fff;
  box-shadow: var(--shadow);
}
.phone {
  background: #f7fbfe;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 16px 14px 18px;
}
.phone-bar {
  display: flex; justify-content: space-between;
  font-size: .75rem; color: var(--muted); padding: 0 8px 12px;
}
.sms-thread { display: grid; gap: 10px; }
.bubble {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px 18px 6px 18px;
  padding: 12px 14px;
  font-size: .9rem;
}
.bubble.me {
  background: linear-gradient(135deg, #2f9adf, #2ecc71);
  color: #fff;
  border: 0;
  justify-self: start;
  border-radius: 18px 18px 18px 6px;
}
.bubble strong { display: block; margin-bottom: 4px; color: var(--navy); }
.bubble.me strong { color: #fff; }
.sms-status { font-size: .75rem; color: var(--muted); margin-top: 6px; }
.bubble.me .sms-status { color: rgba(255,255,255,.85); }

.float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
  min-width: 170px;
}
.float-card.rsvp { top: 8px; inset-inline-start: 0; animation-delay: -1.5s; }
.float-card.ai { bottom: 8px; inset-inline-end: 0; animation-delay: -3s; }
.float-card strong { display: block; color: var(--ink); }
.float-card span { color: var(--muted); font-size: .82rem; }
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--mint);
  border-radius: 50%;
  margin-inline-end: 6px;
  box-shadow: 0 0 0 0 rgba(46,204,113,.6);
  animation: ping 1.6s infinite;
}

.marquee-wrap {
  overflow: hidden;
  background: #fff;
  border-block: 1px solid var(--line);
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: slide 28s linear infinite;
  direction: ltr;
}
.marquee-track span {
  display: inline-flex;
  color: var(--navy);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.section { padding: 80px 0; }
.kicker {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.section-lead { color: var(--muted); margin: 0 0 32px; max-width: 40rem; }
.section.alt { background: #fff; border-block: 1px solid var(--line); }

.grid-4, .grid-3, .pricing, .bento, .ai-grid { display: grid; gap: 16px; }
.card, .steps article, .feature, .price-card, .stat-card, .panel, .tpl-card, .ai-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.feature, .tpl-card, .ai-card, .price-card, .steps article { transition: .22s ease; }
.feature:hover, .tpl-card:hover, .ai-card:hover, .price-card:hover {
  transform: translateY(-5px);
  border-color: #b9dcf3;
}
.bento .feature.wide {
  background: linear-gradient(160deg, #e8f6ff, #fff);
  border-color: #c5e5f8;
}
.ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #2f9adf, #2ecc71);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}
.steps article span {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #f5a623, #2f9adf);
  color: #fff;
  font-weight: 800;
  border-radius: 14px;
  margin-bottom: 14px;
}
.steps h3, .feature h3, .price-card h3, .tpl-card h3, .ai-card h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.tpl-card .chip {
  display: inline-block;
  background: #fff4e0;
  color: #c47b08;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.tpl-preview {
  background: #f7fbfe;
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: .88rem;
  margin: 0;
}

.ai-card.main {
  background: linear-gradient(135deg, #2f9adf, #2ecc71 80%);
  border: 0;
  color: #fff;
}
.ai-card.main h3, .ai-card.main p { color: #fff; }

.price { font-size: 2.15rem; font-weight: 800; color: var(--ink); margin: 10px 0 16px; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.price-card { position: relative; padding-top: 28px; }
.price-card.featured {
  background: linear-gradient(180deg, #16324d, #1e5e8c);
  color: #fff;
  border: 0;
}
.price-card.featured h3, .price-card.featured .price { color: #fff; }
.price-card.featured .muted { color: #c5dceb; }
.price-card.featured .btn-primary { background: #f5a623; color: #16324d; box-shadow: none; }
.badge {
  position: absolute;
  top: 16px;
  inset-inline-start: 22px;
  background: #f5a623;
  color: #16324d;
  font-size: .72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.cta {
  background: linear-gradient(120deg, #2f9adf 0%, #2ecc71 55%, #f5a623 130%);
  color: #fff;
  border-radius: 28px;
  padding: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.cta h2 { color: #fff; margin: 0; }
.cta p { margin: 8px 0 0; color: rgba(255,255,255,.92); }
.cta .btn-primary { background: #fff; color: var(--ink); box-shadow: none; }

.site-footer {
  background: #fff;
  color: var(--muted);
  padding: 36px 0 24px;
  border-top: 1px solid var(--line);
}
.footer-inner { display: grid; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--navy); text-decoration: none; }
.copy { margin: 0; font-size: .88rem; }

.flash-wrap { padding-top: 16px; }
.flash { border-radius: 16px; padding: 12px 14px; margin-bottom: 14px; font-weight: 500; }
.flash-ok { background: #ecfdf5; color: var(--ok); }
.flash-err { background: #fff1f2; color: var(--err); }

.auth-page { min-height: 100vh; background: radial-gradient(800px 380px at 90% 0, #d7effc, var(--paper)); }
.auth-card {
  width: min(460px, calc(100% - 32px));
  margin: 40px auto 64px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 32px;
}
.auth-card h1 { font-size: 1.9rem; }

.form-row { margin-bottom: 14px; }
label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
label:has(input[type="checkbox"]) { display: flex; align-items: center; gap: 8px; font-weight: 500; }
input[type="checkbox"] { width: auto; }
.app-overlay { display: none; position: fixed; inset: 0; background: rgba(21, 50, 76, .4); z-index: 35; }
.app-overlay.open { display: block; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  color: var(--text);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--gold-s);
}
.help { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.muted { color: var(--muted); }
.center { text-align: center; }

.tpl-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tpl-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.tpl-chip:hover, .tpl-chip.is-on { border-color: var(--accent); color: var(--accent); background: #eaf6fd; }

.app-body { background: var(--paper); }
.app-shell { display: grid; min-height: 100vh; }
.app-sidebar {
  background: #fff;
  color: var(--text);
  padding: 18px 16px;
  border-inline-end: 1px solid var(--line);
}
.app-sidebar .logo { margin-bottom: 18px; }
.side-label {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 10px 8px;
  font-weight: 700;
}
.app-sidebar nav { display: grid; gap: 4px; }
.app-sidebar nav a {
  color: var(--navy);
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 14px;
  font-weight: 500;
}
.app-sidebar nav a.is-active,
.app-sidebar nav a:hover { background: #eaf6fd; color: var(--accent); }
.side-switch { display: block; margin-top: 18px; color: var(--accent); font-size: .9rem; text-decoration: none; padding: 0 12px; }
.app-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 14px 18px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.app-top-user { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.app-content { padding: 22px 18px 48px; width: min(1100px, 100%); }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.stats { display: grid; gap: 14px; margin-bottom: 18px; }
.stat-card strong { display: block; font-size: 1.8rem; color: var(--ink); }
.pill { background: #eaf6fd; color: var(--accent); font-weight: 800; font-size: .82rem; padding: 4px 10px; border-radius: 999px; }
.pill-ok { background: #ecfdf5; color: var(--ok); }
.pill-wait { background: #fff7ed; color: #c2410c; }
.pill-no { background: #fff1f2; color: var(--err); }
.pill-muted { background: #f1f5f9; color: var(--muted); }

.table-wrap { overflow: auto; }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; }
table.data th, table.data td { text-align: right; padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th { color: var(--muted); font-size: .82rem; font-weight: 700; }
.empty { color: var(--muted); padding: 24px; text-align: center; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.two-col { display: grid; gap: 16px; }

.reveal { opacity: 0; transform: translateY(22px); transition: .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes ping {
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 860px) {
  .brand-logo { height: 42px; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 78px;
    inset-inline: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav .btn { width: 100%; }
  .hero { padding: 24px 0 40px; }
  .float-card { position: static; margin: 10px auto 0; width: min(340px, 100%); animation: none; }
  .app-sidebar {
    display: none;
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    width: min(280px, 86vw);
    z-index: 40;
  }
  .app-sidebar.open { display: block; }
  .cta { padding: 28px 22px; }
}

@media (min-width: 861px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-3, .pricing, .stats, .ai-grid { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: 1.35fr 1fr; }
  .bento .wide { grid-row: span 2; }
  .stats.stats-4 { grid-template-columns: repeat(4, 1fr); }
  .app-shell { grid-template-columns: 248px 1fr; }
  .app-sidebar { min-height: 100vh; }
  .two-col { grid-template-columns: 1.3fr .7fr; }
  .footer-inner { grid-template-columns: 1.5fr 1fr auto; align-items: center; }
}
@media (min-width: 900px) {
  .tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
