/* Smart Loyalty — own-brand campaign. Custom CSS, not a theme kit. */
:root {
  --teal: #2dbdc5;
  --teal-soft: #4cc7c0;
  --teal-deep: #1b8a92;
  --teal-ink: #16757c;
  --teal-wash: #e7f7f8;
  --navy: #353f4f;
  --slate: #3e586c;
  --ink: #2a3340;
  --muted: #5b6b7a;
  --paper: #f6f8f9;
  --white: #ffffff;
  --line: #d5dee4;
  --line-strong: #c3ced6;
  --ok: #1b7a64;
  --ok-wash: #e6f5f0;
  --err: #b42318;
  --err-wash: #fdecea;
  --shadow: 0 18px 40px -24px rgba(53, 63, 79, 0.35);
  --shadow-form: 0 24px 50px -20px rgba(53, 63, 79, 0.28);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --font-display: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;
  --max: 1120px;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/source-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/source-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/source-sans-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/source-sans-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); }
a:hover { color: var(--teal-ink); }
button, input, select, textarea { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 5vw + 0.4rem, 3.35rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw + 0.6rem, 2.35rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 0.85rem;
}
.eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.thin { font-weight: 400; color: var(--slate); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(53, 63, 79, 0.45);
}
.header-inner {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  height: 40px;
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav a {
  color: var(--navy);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--teal-deep); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  color: var(--navy);
}
.nav-toggle svg { display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: 10px;
  padding: 0.75rem 1.15rem;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:focus-visible, .nav a:focus-visible, .logo:focus-visible, input:focus-visible, button:focus-visible {
  outline: 3px solid var(--teal-soft);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--teal-deep);
  color: #fff;
}
.btn-primary:hover { background: var(--teal-ink); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); }
.btn-full { width: 100%; padding: 0.9rem 1.15rem; }
.btn-lg { padding: 0.9rem 1.35rem; font-size: 1rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2.2rem 0 3.5rem;
  background:
    radial-gradient(ellipse 70% 60% at 8% -10%, rgba(45, 189, 197, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 50% at 100% 20%, rgba(76, 199, 192, 0.12), transparent 50%),
    var(--white);
}
.hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  top: -6rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  border: 18px solid rgba(45, 189, 197, 0.09);
  pointer-events: none;
}
.hero-grid {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
  display: grid;
  gap: 2.4rem;
  align-items: start;
}
.hero-copy h1 { margin-bottom: 0.85rem; }
.lead {
  font-size: 1.18rem;
  color: var(--slate);
  max-width: 38rem;
  margin-bottom: 1.25rem;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.55rem;
}
.ticks li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--navy);
  font-weight: 500;
}
.ticks svg { flex-shrink: 0; margin-top: 0.2rem; }

.glance {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.6rem;
  align-items: stretch;
  margin: 1.4rem 0 1.5rem;
  max-width: 34rem;
}
.glance article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
}
.glance article.win {
  background: var(--teal-wash);
  border-color: #b7e4e6;
}
.glance h3 {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
  color: var(--muted);
}
.glance .win h3 { color: var(--teal-ink); }
.glance p { font-size: 0.95rem; color: var(--navy); font-weight: 600; line-height: 1.35; }
.glance-vs {
  align-self: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

/* Form card — loyalty-card motif */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-form);
  overflow: hidden;
  position: relative;
}
.form-card-head {
  background: linear-gradient(180deg, #f3fbfb 0%, var(--white) 100%);
  padding: 1.15rem 1.35rem 0.85rem;
  border-bottom: 1px dashed var(--line);
  position: relative;
}
.form-card-head::before,
.form-card-head::after {
  content: "";
  position: absolute;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: var(--paper);
  border-radius: 50%;
  border: 1px solid var(--line);
}
.hero .form-card-head::before { left: -8px; background: var(--white); }
.hero .form-card-head::after { right: -8px; background: var(--white); }
.form-card-head h2 {
  font-size: 1.35rem;
  margin: 0 0 0.25rem;
}
.form-card-head p { color: var(--muted); font-size: 0.95rem; }
.stamps {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
}
.stamps span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  background: transparent;
}
.stamps span.on { background: var(--teal); }

.form-card form,
.form-success { padding: 1.25rem 1.35rem 1.4rem; }
.field { margin-bottom: 0.9rem; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.field input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  background: var(--white);
  color: var(--ink);
}
.field input:hover { border-color: #9fb1bd; }
.field input.is-invalid {
  border-color: var(--err);
  background: var(--err-wash);
}
.field .error {
  display: none;
  color: var(--err);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}
.field.is-invalid .error { display: block; }
.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.7rem 0 0;
  text-align: center;
}
.form-success {
  text-align: center;
  padding: 2rem 1.4rem;
}
.form-success .check {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--ok-wash);
  color: var(--ok);
  display: grid;
  place-items: center;
}
.form-success h2 { font-size: 1.4rem; }
.form-success p { color: var(--slate); }

/* Why */
.section { padding: 4rem 0; }
.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}
.section-head p { color: var(--slate); font-size: 1.12rem; }

.why-grid {
  display: grid;
  gap: 1rem;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.45rem;
}
.why-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal-wash);
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  color: var(--teal-deep);
}
.why-card p { color: var(--slate); }

.compare {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}
.compare-col {
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
  border: 1px solid var(--line);
  background: var(--white);
}
.compare-col.them { background: #f3f5f7; }
.compare-col.us {
  background: var(--navy);
  color: #e8f4f5;
  border-color: var(--navy);
}
.compare-col.us h3,
.compare-col.us li { color: #fff; }
.compare-col h3 { font-size: 1.15rem; margin-bottom: 0.9rem; }
.compare-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.compare-col li {
  display: grid;
  grid-template-columns: 1.3rem 1fr;
  gap: 0.55rem;
  align-items: start;
  color: var(--slate);
}
.compare-col.us li { color: #d5e9eb; }
.compare-col .mark { font-weight: 700; line-height: 1.4; }
.them .mark { color: #9aa7b2; }
.us .mark { color: var(--teal-soft); }

/* How */
.how { background: var(--white); }
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.25rem 1.4rem;
  background: var(--paper);
  position: relative;
}
.step img.step-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
}
.step h3 { margin-bottom: 0.35rem; }
.step p { color: var(--slate); }
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 0.35rem;
}

.pack-banner {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.2rem;
  align-items: center;
  background: var(--teal-wash);
  border: 1px solid #c5e9eb;
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.pack-banner h3 { margin-bottom: 0.3rem; }
.pack-banner p { color: var(--slate); }
.pack-visual { justify-self: center; }

/* Pricing */
.pricing { background: var(--paper); }
.bill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.bill-toggle {
  display: inline-flex;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem;
}
.bill-toggle button {
  border: 0;
  background: transparent;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--slate);
  cursor: pointer;
}
.bill-toggle button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}
.bill-toggle .save {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal-deep);
  margin-left: 0.25rem;
}
.bill-toggle button[aria-pressed="true"] .save { color: var(--teal-soft); }

.setup-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}
.setup-card .price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
}
.setup-card .price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}
.setup-list {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--slate);
}
.setup-list li { display: flex; gap: 0.5rem; }

.plan-grid { display: grid; gap: 1rem; }
.plan {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 189, 197, 0.18);
  position: relative;
}
.plan .badge {
  align-self: flex-start;
  background: var(--teal-deep);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}
.plan .name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--slate);
  margin: 0 0 0.35rem;
}
.plan .amount {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.plan .amount .per {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}
.plan .alt { color: var(--muted); font-size: 0.9rem; min-height: 1.4em; margin-bottom: 0.9rem; }
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: grid;
  gap: 0.45rem;
  color: var(--slate);
  flex: 1;
}
.plan ul li { display: flex; gap: 0.5rem; }
.price-note {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Trust */
.trust {
  background: var(--navy);
  color: #d7e6ea;
  padding: 4rem 0;
}
.trust h2 { color: #fff; }
.trust .section-head p { color: #c5d6dc; }
.trust-grid {
  display: grid;
  gap: 1rem;
}
.trust-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.3rem 1.35rem;
}
.trust-card h3 { color: #fff; }
.trust-card p { color: #c5d6dc; }

/* Final CTA */
.final {
  background: var(--white);
  padding: 4rem 0 4.5rem;
}
.final-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}
.final .form-card { max-width: 28rem; }

/* Footer */
.site-footer {
  background: #2a3340;
  color: #b7c4cd;
  padding: 1.6rem 0 2rem;
  font-size: 0.92rem;
}
.footer-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  align-items: baseline;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--teal-soft); }
.legal {
  width: 100%;
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: #8b9aa6;
}

/* Mobile CTA bar */
.mob-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px -16px rgba(53, 63, 79, 0.4);
}
.mob-cta.is-hidden { display: none !important; }

/* Helpers */
.check-svg { color: var(--teal-deep); flex-shrink: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

section[id], #demo-top {
  scroll-margin-top: calc(var(--header-h) + 0.6rem);
}

@media (max-width: 420px) {
  .glance { grid-template-columns: 1fr; }
  .glance-vs { justify-self: center; }
}

@media (min-width: 700px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .plan-grid { grid-template-columns: 1fr 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr 1fr; }
  .setup-card {
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 2rem;
  }
  .pack-banner { grid-template-columns: auto 1fr; }
  .compare { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .hero { padding: 3rem 0 4.2rem; }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
  }
  .final-grid {
    grid-template-columns: 1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
  }
  .steps { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 799px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1rem 1rem;
    display: none;
    gap: 0.2rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.55rem 0.2rem; }
  .nav .btn { margin-top: 0.4rem; }
  .nav-toggle { display: inline-flex; }
  .mob-cta { display: block; }
  body { padding-bottom: 4.6rem; }
}

@media (min-width: 800px) {
  .header-cta { display: inline-flex; }
}
