/* Tenifi marketing site. Three colours: navy, teal, white (plus tints of navy). */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #14263D;
  --teal: #12B8A6;
  --white: #FFFFFF;

  --navy-90: rgba(20, 38, 61, .9);
  --navy-70: rgba(20, 38, 61, .74);  /* body text on white: 8:1 */
  --navy-12: rgba(20, 38, 61, .12);
  --navy-06: rgba(20, 38, 61, .06);
  --navy-03: rgba(20, 38, 61, .03);
  --white-80: rgba(255, 255, 255, .82);
  --white-15: rgba(255, 255, 255, .15);
  --white-08: rgba(255, 255, 255, .08);
  --teal-15: rgba(18, 184, 166, .15);
  --teal-30: rgba(18, 184, 166, .32);

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 38, 61, .06), 0 12px 32px -12px rgba(20, 38, 61, .18);
  --shadow-lg: 0 30px 80px -24px rgba(5, 12, 22, .55);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; font-weight: 750; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
figure { margin: 0; }

.sprite { display: none; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Focus and skip link */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
/* On navy backgrounds the focus ring is teal (6:1); on white it is navy, as teal is only 2.5:1 there. */
.hero :focus-visible, .section-navy :focus-visible, .cta-copy :focus-visible, .site-footer :focus-visible, .dash :focus-visible { outline-color: var(--teal); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* Buttons. Teal buttons use navy text: 6.3:1 contrast. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--teal); color: var(--navy); box-shadow: 0 8px 24px -10px rgba(18, 184, 166, .8); }
.btn-primary:hover { background: #2fd0be; box-shadow: 0 12px 28px -10px rgba(18, 184, 166, .9); }
.btn-ghost { color: var(--white); border-color: var(--white-15); background: var(--white-08); }
.btn-ghost:hover { border-color: var(--teal); }
.btn-ghost .icon { transition: transform .2s ease; }
.btn-ghost:hover .icon { transform: translateX(3px); }
.btn-outline-light { color: var(--white); border-color: var(--teal); background: transparent; }
.btn-outline-light:hover { background: var(--teal); color: var(--navy); }
.btn-sm { min-height: 42px; padding: 0 1.15rem; font-size: .95rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--navy-06); box-shadow: 0 6px 24px -18px rgba(20, 38, 61, .35); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand img { width: 24px; height: 32px; }
.brand-name { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); }
.brand-light .brand-name { color: var(--white); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav ul a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--navy-70); transition: color .15s ease, background-color .15s ease; }
.site-nav ul a:hover { color: var(--navy); background: var(--navy-06); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--navy-12); background: var(--white); color: var(--navy); align-items: center; justify-content: center; cursor: pointer; }

/* Sections */
.section { padding: 112px 0; }
.section-tint { background: linear-gradient(180deg, var(--navy-03), var(--navy-03)); border-top: 1px solid var(--navy-06); border-bottom: 1px solid var(--navy-06); }
.section-navy { background: var(--navy); color: var(--white); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
.section-lead { margin-top: 18px; font-size: 1.125rem; color: var(--navy-70); }
.section-navy .section-lead, .cta .section-lead { color: var(--white-80); }

/* Eyebrows: navy text with a teal bar on white (teal text fails contrast on white). */
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 16px; font-size: .82rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.eyebrow::before { content: ''; width: 22px; height: 3px; border-radius: 3px; background: var(--teal); }
.eyebrow-light { color: var(--teal); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--white); background: var(--navy);
  padding: 96px 0 112px;
}
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 720px; height: 720px; right: -180px; top: -260px; background: radial-gradient(closest-side, rgba(18, 184, 166, .30), transparent); }
.hero::after { width: 520px; height: 520px; left: -220px; bottom: -300px; background: radial-gradient(closest-side, rgba(18, 184, 166, .16), transparent); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); letter-spacing: -0.035em; }
.hero .lead { margin-top: 22px; font-size: 1.17rem; color: var(--white-80); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-points { display: grid; gap: 10px; margin-top: 34px; color: var(--white-80); font-size: .98rem; }
.hero-points li { display: flex; align-items: center; gap: .6rem; }
.hero-points .icon { color: var(--teal); width: 1.15em; height: 1.15em; stroke-width: 2.6; }

/* Hero dashboard illustration */
.hero-visual { position: relative; }
.hero-visual figcaption { margin-top: 14px; text-align: right; font-size: .8rem; color: var(--white-80); }
.browser { background: var(--white); color: var(--navy); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1600px) rotateY(-5deg) rotateX(2deg); transition: transform .6s ease; }
.hero-visual:hover .browser { transform: perspective(1600px) rotateY(-2deg) rotateX(1deg); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; background: var(--navy-06); border-bottom: 1px solid var(--navy-06); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--navy-12); }
.browser-url { margin-left: 12px; flex: 1; max-width: 240px; height: 22px; border-radius: 999px; background: var(--white); font-size: .7rem; line-height: 22px; padding: 0 12px; color: var(--navy-70); }
.dash { display: grid; grid-template-columns: 116px 1fr; min-height: 330px; }
.dash-nav { display: flex; flex-direction: column; gap: 4px; padding: 16px 10px; background: var(--navy); }
.dash-nav span { padding: 7px 10px; border-radius: 8px; font-size: .74rem; font-weight: 600; color: var(--white-80); }
.dash-nav .is-active { background: var(--teal); color: var(--navy); }
.dash-main { padding: 16px 16px 44px; display: grid; gap: 14px; align-content: start; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dash-stats div { border: 1px solid var(--navy-12); border-radius: 12px; padding: 10px 12px; }
.dash-stats b { display: block; font-size: 1.35rem; line-height: 1.2; }
.dash-stats small { font-size: .68rem; color: var(--navy-70); font-weight: 600; }
.dash-stats .is-hot { background: var(--navy); color: var(--white); border-color: var(--navy); }
.dash-stats .is-hot small { color: var(--teal); }
.dash-list { display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--navy-06); background: var(--white); }
.row:first-child { border-color: var(--teal-30); box-shadow: 0 0 0 3px var(--teal-15); }
.who { min-width: 0; }
.who b { display: block; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { display: block; font-size: .7rem; color: var(--navy-70); }

.tag { display: inline-flex; align-items: center; white-space: nowrap; height: 22px; padding: 0 9px; border-radius: 999px; font-size: .68rem; font-weight: 700; }
.tag-src { background: var(--navy-06); color: var(--navy); }
.tag-ok { background: var(--teal-15); color: var(--navy); }
.tag-hot { background: var(--teal); color: var(--navy); }
.tag-muted { background: transparent; border: 1px solid var(--navy-12); color: var(--navy-70); }
.tag-warn { background: var(--navy); color: var(--white); }

.float-card {
  position: absolute; left: -28px; bottom: 6px; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 16px; background: var(--white); color: var(--navy); box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.float-card .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--teal); color: var(--navy); stroke-width: 2.4; }
.float-card b { display: block; font-size: .85rem; }
.float-card small { font-size: .74rem; color: var(--navy-70); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* What is Tenifi */
.what-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-col { padding: 28px; border-radius: var(--radius); border: 1px solid var(--navy-12); }
.compare-col h3 { font-size: 1.1rem; margin-bottom: 18px; }
.compare-col li { display: flex; gap: .65rem; align-items: flex-start; font-size: .98rem; color: var(--navy-70); }
.compare-col li + li { margin-top: 14px; }
.compare-col .icon { margin-top: .2em; width: 1.1em; height: 1.1em; stroke-width: 2.6; }
.list-x .icon { color: var(--navy-70); }
.compare-col-good { background: var(--navy); border-color: var(--navy); color: var(--white); box-shadow: var(--shadow); }
.compare-col-good li { color: var(--white-80); }
.compare-col-good .icon { color: var(--teal); }

/* Feature cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  padding: 30px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--navy-06); box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--teal-30); box-shadow: 0 1px 2px rgba(20, 38, 61, .06), 0 22px 44px -18px rgba(20, 38, 61, .28); }
.card h3 { font-size: 1.15rem; margin: 20px 0 10px; }
.card p { color: var(--navy-70); font-size: 1rem; }
.card-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--navy); color: var(--teal); }
.card-icon .icon { width: 24px; height: 24px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; position: relative; }
.steps::before { content: ''; position: absolute; top: 28px; left: 16.66%; right: 16.66%; height: 2px; background: repeating-linear-gradient(90deg, var(--teal) 0 8px, transparent 8px 16px); z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; padding: 0 12px; }
.step-num { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 24px; border-radius: 50%; background: var(--navy); color: var(--teal); font-weight: 800; font-size: 1.35rem; box-shadow: 0 0 0 8px var(--white); }
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { color: var(--navy-70); }

/* Benefits */
.benefits-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.benefits-grid .btn { margin-top: 32px; }
.benefit-list { display: grid; gap: 14px; }
.benefit { display: flex; gap: 18px; padding: 22px 24px; border-radius: var(--radius); background: var(--white-08); border: 1px solid var(--white-15); transition: border-color .25s ease, background-color .25s ease; }
.benefit:hover { border-color: var(--teal-30); background: rgba(255, 255, 255, .11); }
.benefit > .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--teal); color: var(--navy); }
.benefit h3 { font-size: 1.08rem; margin-bottom: 4px; }
.benefit p { color: var(--white-80); font-size: .98rem; }

/* Product preview */
.preview-grid { display: grid; grid-template-columns: .82fr 1fr 1fr; gap: 24px; align-items: start; }
.preview figcaption { margin-top: 18px; color: var(--navy-70); font-size: .95rem; }
.preview figcaption b { display: block; color: var(--navy); font-size: 1.02rem; margin-bottom: 2px; }

.phone { max-width: 290px; margin: 0 auto; padding: 10px; border-radius: 40px; background: var(--navy); box-shadow: var(--shadow-lg); }
.phone-screen { border-radius: 31px; overflow: hidden; background: var(--white); min-height: 470px; }
.phone-head { padding: 22px 18px 14px; background: var(--navy-06); display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.agency-dot { grid-row: span 2; width: 30px; height: 30px; border-radius: 10px; background: var(--teal); }
.phone-head b { font-size: .85rem; }
.phone-head small { font-size: .7rem; color: var(--navy-70); }
.chat { display: grid; gap: 8px; padding: 16px 14px 18px; }
.bubble { max-width: 86%; padding: 9px 12px; border-radius: 16px; font-size: .76rem; line-height: 1.45; }
.bubble.bot { background: var(--navy-06); border-bottom-left-radius: 5px; }
.bubble.me { justify-self: end; background: var(--navy); color: var(--white); border-bottom-right-radius: 5px; }
.chips { display: flex; gap: 8px; margin-top: 4px; }
.chips span { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--teal); font-size: .74rem; font-weight: 700; }
.chips span:first-child { background: var(--teal); }

.panel { padding: 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--navy-06); box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--navy-06); }
.panel-head b { display: block; font-size: 1rem; }
.panel-head small { font-size: .78rem; color: var(--navy-70); }
.panel-badges { display: flex; gap: 6px; margin: 14px 0; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.answers div { padding: 10px 12px; border-radius: 12px; background: var(--navy-03); border: 1px solid var(--navy-06); }
.answers dt { font-size: .68rem; color: var(--navy-70); font-weight: 600; }
.answers dd { margin: 0; font-size: .85rem; font-weight: 700; }
.verdict { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--navy); color: var(--white); font-size: .82rem; font-weight: 600; }
.verdict .icon { color: var(--teal); stroke-width: 2.8; width: 1.15em; height: 1.15em; margin-top: .1em; }
.inbound { display: grid; gap: 8px; margin-top: 14px; }
.inbound li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--navy-06); }
.in-text { font-size: .76rem; font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--white); border: 1px solid var(--navy-06); box-shadow: 0 1px 2px rgba(20, 38, 61, .05); transition: border-color .2s ease; }
.faq details[open] { border-color: var(--teal-30); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy) no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%2312B8A6' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--navy-70); }

/* CTA and form */
.cta { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.cta::before { content: ''; position: absolute; width: 800px; height: 800px; left: -300px; top: -380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(18, 184, 166, .22), transparent); pointer-events: none; }
.cta-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cta h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); }
.form-card { padding: 34px; border-radius: 24px; background: var(--white); color: var(--navy); box-shadow: var(--shadow-lg); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: .92rem; font-weight: 700; }
.optional { font-weight: 500; color: var(--navy-70); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--navy); padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid rgba(20, 38, 61, .28); background: var(--white); transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(20, 38, 61, .55); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px var(--teal-30); }
.field input[aria-invalid="true"] { border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-12); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 12px; text-align: center; font-size: .85rem; color: var(--navy-70); }
.form-error { margin-bottom: 14px; padding: 10px 14px; border-radius: 12px; background: var(--navy-06); border-left: 4px solid var(--navy); font-size: .92rem; font-weight: 600; }
.form-success { text-align: center; padding: 34px 8px; }
.form-success h3 { margin: 18px 0 8px; font-size: 1.35rem; }
.form-success p { color: var(--navy-70); }
.form-success:focus { outline: none; }

/* Footer */
.site-footer { background: #0e1b2c; color: var(--white-80); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--white-15); }
.footer-brand p { margin-top: 16px; max-width: 300px; }
.site-footer h2 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer-nav li + li { margin-top: 8px; }
.footer-nav a, .footer-base a { text-decoration: none; color: var(--white-80); transition: color .15s ease; }
.footer-nav a:hover, .footer-base a:hover { color: var(--teal); }
.footer-login p { margin-bottom: 16px; }
.footer-login .btn { min-height: 52px; padding: 0 1.6rem; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: .9rem; }

/* Scroll reveal: only hidden when JS has run, so content is never lost without it. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .card-grid .reveal:nth-child(3n+2), .js .steps .reveal:nth-child(2), .js .preview-grid .reveal:nth-child(2) { transition-delay: .08s; }
.js .card-grid .reveal:nth-child(3n), .js .steps .reveal:nth-child(3), .js .preview-grid .reveal:nth-child(3) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .browser, .hero-visual:hover .browser { transform: none; }
}

/* Tablet */
@media (max-width: 1060px) {
  .hero-grid, .what-grid, .benefits-grid, .cta-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 72px 0 88px; }
  .hero-copy { max-width: 680px; }
  .hero-visual { max-width: 640px; }
  .browser { transform: none; }
  .hero-visual:hover .browser { transform: none; }
  .float-card { left: auto; right: 16px; bottom: 8px; }
  .hero-visual figcaption { margin-top: 44px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-grid { grid-template-columns: 1fr 1fr; }
  .preview-grid .preview:first-child { grid-row: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Mobile navigation */
@media (max-width: 900px) {
  .js .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 12px;
    padding: 12px 24px 24px; background: var(--white); border-bottom: 1px solid var(--navy-06); box-shadow: 0 24px 40px -24px rgba(20, 38, 61, .35);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  /* Without JavaScript there is no menu button: keep the Book a Demo button in the header (the footer has every link). */
  html:not(.js) .site-nav { display: flex; position: static; padding: 0; border: 0; box-shadow: none; background: none; }
  html:not(.js) .site-nav ul { display: none; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav ul a { padding: 12px 8px; font-size: 1.05rem; border-radius: 10px; }
  .site-nav .btn { min-height: 50px; }
}

/* Phone */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; text-align: left; }
  .hero { padding: 56px 0 80px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .dash { grid-template-columns: 1fr; min-height: 0; }
  .dash-main { padding-bottom: 16px; }
  .dash-nav { flex-direction: row; overflow: hidden; padding: 10px; }
  .dash-nav span { flex: none; }
  .row { grid-template-columns: 1fr auto; }
  .row .tag-src { display: none; }
  .float-card { position: relative; right: auto; bottom: auto; margin: -18px 16px 0; }
  .hero-visual figcaption { text-align: left; }
  .compare { grid-template-columns: 1fr; }
  .card-grid, .preview-grid { grid-template-columns: 1fr; }
  .preview-grid .preview:first-child { grid-row: auto; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--teal) 0 8px, transparent 8px 16px); }
  .step { text-align: left; padding: 0 0 0 80px; }
  .step-num { position: absolute; left: 0; top: 0; margin: 0; }
  .benefit { padding: 20px; }
  .form-card { padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-login .btn { width: 100%; }
  .footer-base { flex-direction: column; }
}

/* Thank-you and 404 pages */
.simple-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--navy); }
.simple-card { max-width: 520px; width: 100%; padding: 48px 36px; border-radius: 24px; background: var(--white); text-align: center; box-shadow: var(--shadow-lg); }
.simple-card .brand { margin-bottom: 28px; }
.simple-card h1 { font-size: 1.9rem; }
.simple-card p { margin: 14px 0 28px; color: var(--navy-70); }

/* Partners ("who we work with") and reviews. Hidden in the HTML until there is real content. */
[hidden] { display: none !important; }
.section-slim { padding: 56px 0; border-bottom: 1px solid var(--navy-06); }
.partners-title { text-align: center; font-size: .85rem !important; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-70); margin-bottom: 28px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 56px; }
.logo-row img { height: 48px; width: auto; max-width: 180px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s ease, opacity .2s ease; }
.logo-row img:hover { filter: none; opacity: 1; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.review { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 30px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--navy-06); box-shadow: var(--shadow); }
.review blockquote { margin: 0; position: relative; padding-top: 34px; font-size: 1.05rem; }
.review blockquote::before { content: '\201C'; position: absolute; top: -10px; left: 0; font-size: 4rem; line-height: 1; font-weight: 800; color: var(--teal); }
.review-by b { display: block; }
.review-by span { color: var(--navy-70); font-size: .92rem; }

.footer-links { display: flex; gap: 24px; }
.form-note a { color: var(--navy); font-weight: 600; }

/* Privacy notice page */
.legal { padding: 72px 0 96px; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--navy-70); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin-top: 10px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--navy); font-weight: 600; }
.legal .updated { font-size: .95rem; }
.site-header-simple .header-inner { justify-content: space-between; }

/* Coming soon page */
.soon-badge { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 18px; padding: 7px 16px 7px 12px; border-radius: 999px; background: var(--white-08); border: 1px solid var(--teal-30); color: var(--teal); font-size: .85rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.soon-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.soon-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--teal); animation: soon-pulse 2s ease-out infinite; }
@keyframes soon-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.8); opacity: 0; } }
.soon-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.soon-chips li { display: inline-flex; align-items: center; gap: .55rem; padding: 10px 18px; border-radius: 999px; background: var(--navy-03); border: 1px solid var(--navy-06); font-weight: 650; font-size: .95rem; }
.soon-chips .icon { color: var(--navy); }
.soon .card-grid { grid-template-columns: repeat(3, 1fr); }
.site-footer-slim { padding: 28px 0; }
@media (max-width: 1060px) { .soon .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .soon .card-grid { grid-template-columns: 1fr; } .soon-chips { justify-content: flex-start; } }
