/* ============================================================
   TenantSync UK — Landing page styles
   ============================================================ */

:root {
  /* Brand */
  --teal-50:  #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --emerald-500: #10b981;

  --navy-900: #0b1120;
  --navy-800: #101a2e;
  --navy-700: #17233d;

  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;

  --white: #ffffff;

  --gradient: linear-gradient(120deg, var(--teal-500), var(--emerald-500));
  --gradient-soft: linear-gradient(120deg, var(--teal-600), #0e7490);

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 12px 28px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 30px 60px -20px rgba(13, 148, 136, .32);

  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --maxw: 1140px;

  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-head); color: var(--slate-900); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }

p { margin: 0; }

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

img, svg { display: block; max-width: 100%; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--gradient);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(13, 148, 136, .55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -8px rgba(13, 148, 136, .6); }
.btn--primary:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

.btn--sm { padding: 10px 18px; font-size: .92rem; }

.btn__arrow { transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn[disabled] { opacity: .7; cursor: not-allowed; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.nav.is-scrolled { border-color: var(--slate-200); box-shadow: var(--shadow-sm); }

.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--slate-900); }
.brand__mark {
  display: block;
  width: 36px; height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 14px -6px rgba(13,148,136,.7);
}
.brand__uk { color: var(--teal-600); margin-left: 1px; }

.nav__links { display: flex; gap: 30px; }
.nav__links a { font-size: .95rem; font-weight: 500; color: var(--slate-600); position: relative; transition: color .18s ease; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--gradient); border-radius: 2px; transition: width .22s ease; }
.nav__links a:hover { color: var(--slate-900); }
.nav__links a:hover::after { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 72px; overflow: hidden; background: radial-gradient(120% 100% at 50% -10%, var(--teal-50), var(--white) 55%); }
.hero__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(45,212,191,.22), transparent 70%),
    radial-gradient(500px 300px at 10% 20%, rgba(16,185,129,.15), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  font-weight: 600; font-size: .86rem;
  padding: 8px 16px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.pill__flag { font-size: 1rem; }
.pill--light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: var(--white); box-shadow: none; }

.hero__title { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; margin-top: 26px; max-width: 16ch; }
.grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero__sub { margin-top: 22px; font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--slate-600); max-width: 62ch; }

.hero__ticks { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; margin-top: 30px; color: var(--slate-500); font-size: .92rem; font-weight: 500; }

/* ---------- Waitlist form ---------- */
.waitlist { margin-top: 34px; width: 100%; max-width: 520px; }
.waitlist--center { margin-inline: auto; }
.waitlist__field {
  display: flex; gap: 8px;
  background: var(--white);
  padding: 8px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.waitlist__field:focus-within { border-color: var(--teal-400); box-shadow: 0 0 0 4px rgba(45,212,191,.18), var(--shadow-md); }
.waitlist__field input {
  flex: 1; min-width: 0;
  border: 0; background: transparent; outline: none;
  padding: 8px 16px; font-size: 1rem; color: var(--slate-900); font-family: var(--font-body);
}
.waitlist__field input::placeholder { color: var(--slate-400); }
.waitlist__note { margin-top: 12px; font-size: .85rem; color: var(--slate-500); }
.waitlist__note.is-error { color: #dc2626; font-weight: 600; }
.waitlist__note.is-success { color: var(--teal-700); font-weight: 600; }

/* Success collapse */
.waitlist.is-done .waitlist__field { display: none; }

/* ---------- Stats ---------- */
.stats { padding: 8px 0 8px; margin-top: -34px; position: relative; z-index: 2; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-md);
}
.stat { text-align: center; }
.stat__num { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.5rem); background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.03em; }
.stat__label { display: block; margin-top: 6px; font-size: .88rem; color: var(--slate-500); line-height: 1.4; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section--tint { background: var(--slate-50); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; margin-top: 14px; }
.section__lead { margin-top: 16px; font-size: 1.1rem; color: var(--slate-500); }
.section__lead--light { color: rgba(255,255,255,.7); }

.eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600); }
.eyebrow--light { color: var(--teal-400); }

/* ---------- Problem cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-100); }
.card__icon { font-size: 1.8rem; margin-bottom: 14px; }
.card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.card p { font-size: .94rem; color: var(--slate-500); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  position: relative;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.feature::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--gradient); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature:hover::before { transform: scaleX(1); }
.feature__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--teal-50); font-size: 1.5rem; margin-bottom: 18px; }
.feature h3 { font-size: 1.18rem; margin-bottom: 12px; }
.feature p { font-size: .96rem; color: var(--slate-500); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li { font-size: .78rem; font-weight: 600; color: var(--teal-700); background: var(--teal-50); border: 1px solid var(--teal-100); padding: 5px 11px; border-radius: var(--radius-pill); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 30px 24px; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius); transition: transform .22s ease, box-shadow .22s ease; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gradient); color: var(--white); font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin-bottom: 18px; box-shadow: 0 8px 18px -8px rgba(13,148,136,.6); }
.step h3 { font-size: 1.08rem; margin-bottom: 10px; }
.step p { font-size: .94rem; color: var(--slate-500); }

/* ---------- Why (dark) ---------- */
.section--dark { background: var(--navy-900); position: relative; overflow: hidden; }
.section--dark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 340px at 85% -10%, rgba(20,184,166,.22), transparent 70%), radial-gradient(600px 340px at 5% 110%, rgba(16,185,129,.14), transparent 70%); pointer-events: none; }
.section--dark .section__head h2 { color: var(--white); }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.why__item { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 32px 28px; transition: transform .22s ease, background .22s ease, border-color .22s ease; }
.why__item:hover { transform: translateY(-4px); background: rgba(255,255,255,.07); border-color: rgba(45,212,191,.4); }
.why__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(20,184,166,.15); font-size: 1.5rem; margin-bottom: 18px; }
.why__item h3 { color: var(--white); font-size: 1.18rem; margin-bottom: 12px; }
.why__item p { color: rgba(255,255,255,.68); font-size: .96rem; }

/* ---------- CTA ---------- */
.cta { padding: 96px 0; background: var(--gradient-soft); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% 120%, rgba(255,255,255,.18), transparent 70%); pointer-events: none; }
.cta__inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta__title { color: var(--white); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; margin-top: 22px; max-width: 18ch; }
.cta__sub { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-top: 16px; max-width: 58ch; }
.cta .waitlist__field { border: 0; }
.cta .waitlist__note { color: rgba(255,255,255,.8); }
.cta .waitlist__note.is-error { color: #fee2e2; }
.cta .waitlist__note.is-success { color: var(--white); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 56px 0 40px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.brand--footer { color: var(--white); }
.footer__tag { margin-top: 16px; max-width: 46ch; font-size: .95rem; color: rgba(255,255,255,.6); }
.footer__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.footer__copy { font-size: .85rem; color: rgba(255,255,255,.5); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 140%);
  background: var(--slate-900); color: var(--white);
  font-weight: 600; font-size: .95rem;
  padding: 14px 22px; border-radius: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 200; opacity: 0; transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .3s ease; max-width: 90vw;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast--error { background: #b91c1c; }
.toast--success { background: var(--teal-600); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards, .features, .steps, .why, .stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav__links { display: none; }
  .section { padding: 68px 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .waitlist__field { flex-direction: column; padding: 12px; border-radius: var(--radius-lg); }
  .waitlist__field .btn { width: 100%; }
  .footer__inner { flex-direction: column; }
  .footer__meta { align-items: flex-start; }
}
@media (max-width: 520px) {
  .cards, .features, .steps, .why { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
