/* Inter (SIL OFL 1.1), self-hosted. Licence: assets/fonts/Inter-OFL-LICENSE.txt */
@font-face{font-family:"Inter";src:url("fonts/InterVariable.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
/* Trustem Partner Launch — shared styles */
:root {
  --blue: #2F73F5;
  --blue-press: #1f5fdc;
  --navy: #0B1633;
  --ink: #0B1633;
  --ink-soft: #3a4566;
  --ground: #ffffff;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-edge: rgba(255, 255, 255, 0.9);
  --err: #b42318;
  --ok: #15803d;
  --glow-blue: rgba(47, 115, 245, 0.28);
  --glow-teal: rgba(20, 196, 180, 0.22);
  --glow-pink: rgba(255, 110, 160, 0.18);
  --glow-amber: rgba(255, 186, 73, 0.2);
  --radius: 22px;
  --wrap: 1180px;
  --pad: clamp(18px, 4vw, 32px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(47, 115, 245, 0.2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

/* Soft colour glows behind the page */
.glows { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glows span { position: absolute; border-radius: 50%; filter: blur(80px); }
.glows .g1 { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: var(--glow-blue); }
.glows .g2 { width: 38vw; height: 38vw; right: -10vw; top: 18vh; background: var(--glow-teal); }
.glows .g3 { width: 34vw; height: 34vw; left: 30vw; bottom: -18vw; background: var(--glow-pink); }
.glows .g4 { width: 26vw; height: 26vw; right: 16vw; bottom: 10vh; background: var(--glow-amber); }

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

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 18px 50px -24px rgba(11, 22, 51, 0.25);
}

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; padding: 12px 0; }
.site-head .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 20px; border-radius: 999px; }
.brand { font-weight: 700; font-size: 1.05rem; color: var(--navy); text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; }
.brand b { color: var(--blue); font-weight: 700; }
.site-head nav { display: flex; align-items: center; gap: 22px; }
.site-head nav a:not(.btn) { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 160ms ease; }
.site-head nav a:not(.btn):hover { color: var(--navy); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--blue); color: #fff;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.btn:hover { background: var(--blue-press); }
.btn:active { transform: scale(0.97); }
.btn.ghost { background: rgba(11, 22, 51, 0.06); color: var(--navy); }
.btn.ghost:hover { background: rgba(11, 22, 51, 0.1); }
.btn.wa { background: #15803d; }
.btn.wa:hover { background: #116932; }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 0.92rem; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Sections */
section { padding: clamp(72px, 11vw, 150px) 0 0; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 58ch; margin-top: 20px; }
.h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); max-width: 18ch; }

/* Hero */
.hero { padding-top: clamp(40px, 7vw, 90px); }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 6.2rem); letter-spacing: -0.045em; line-height: 0.98; max-width: 13ch; }
.hero h1 span { color: var(--blue); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-media { margin-top: clamp(40px, 6vw, 72px); padding: 10px; }
.hero-media video { width: 100%; aspect-ratio: 16 / 9; border-radius: calc(var(--radius) - 8px); background: var(--navy); object-fit: cover; }
.hero-media figcaption { font-size: 0.92rem; color: var(--ink-soft); padding: 12px 8px 4px; }

/* Problem */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.pain { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.pain li { padding: 20px 22px; }
.pain strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.pain p { color: var(--ink-soft); }

/* Route (how it works) */
.route { list-style: none; padding: 0; margin: 48px 0 0; position: relative; display: grid; gap: 16px; }
.route::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 3px; border-radius: 3px; background: linear-gradient(var(--blue), #14c4b4); opacity: 0.5; }
.route li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.route .stop { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 6px rgba(47,115,245,0.12); color: var(--blue); }
.route .stop svg { width: 24px; height: 24px; }
.route .card { padding: 22px 24px; }
.route h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.02em; }
.route p { color: var(--ink-soft); margin-top: 6px; }

/* MACC */
.macc { padding: clamp(28px, 5vw, 64px); background: var(--navy); color: #fff; border-radius: calc(var(--radius) + 8px); position: relative; overflow: hidden; }
.macc::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: rgba(47,115,245,0.55); filter: blur(90px); pointer-events: none; }
.macc > * { position: relative; z-index: 1; }
.macc .h2 { color: #fff; max-width: 20ch; }
.macc-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); margin-top: 32px; align-items: start; }
.macc .big { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.35; letter-spacing: -0.01em; }
.macc .big strong { color: #8db4ff; }
.macc ul { margin: 0; padding-left: 1.1em; display: grid; gap: 12px; color: rgba(255,255,255,0.86); }
.macc .note { margin-top: 28px; font-size: 0.9rem; color: rgba(255,255,255,0.7); max-width: 75ch; }

/* What you get */
.get-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.get-grid .glass { padding: 26px; }
.get-grid .wide { grid-column: span 2; }
.get-grid h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
.get-grid p { color: var(--ink-soft); margin-top: 8px; }

/* FAQ */
.faq { display: grid; gap: 12px; margin-top: 40px; max-width: 860px; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--blue); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--ink-soft); max-width: 70ch; }

/* CTA */
.cta { text-align: left; padding: clamp(32px, 6vw, 72px); }
.cta .h2 { max-width: 16ch; }
.cta .hero-actions { margin-top: 28px; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(20px, 4vw, 48px); margin-top: 40px; align-items: start; }
.ways { display: grid; gap: 12px; }
.ways .glass { padding: 22px 24px; }
.ways h2 { font-size: 1.1rem; letter-spacing: -0.01em; }
.ways a.big { font-size: 1.25rem; font-weight: 600; text-decoration: none; color: var(--navy); display: inline-block; margin-top: 4px; word-break: break-word; }
.ways a.big:hover { color: var(--blue); }
.ways p { color: var(--ink-soft); margin-top: 4px; }
.ways .btn { margin-top: 14px; }
form.glass { padding: clamp(22px, 4vw, 36px); display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
label .opt { font-weight: 400; color: var(--ink-soft); }
input, textarea {
  font: 400 1rem/1.4 var(--font); color: var(--ink);
  padding: 13px 14px; border-radius: 12px; border: 1px solid rgba(11,22,51,0.16);
  background: rgba(255,255,255,0.85); width: 100%;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,115,245,0.18); }
input:user-invalid, textarea:user-invalid { border-color: var(--err); }
textarea { min-height: 140px; resize: vertical; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-weight: 400; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.privacy { font-size: 0.9rem; color: var(--ink-soft); }
.form-status { font-size: 0.95rem; color: var(--blue-press); min-height: 1.4em; }
.form-status[data-state="err"] { color: var(--err); }
.form-status[data-state="ok"] { color: var(--ok); font-weight: 600; }

/* Privacy notice */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.04em; }
.prose h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: -0.02em; margin: 2.2em 0 0.5em; }
.prose h1 + p { margin-top: 20px; }
.prose p { max-width: 68ch; }
.draft-note { display: inline-block; margin-bottom: 24px; padding: 8px 14px; border-radius: 12px; background: #fbefd6; font-size: 0.9rem; font-weight: 600; }

/* Footer */
.site-foot { margin-top: clamp(80px, 10vw, 140px); padding: 48px 0 110px; background: rgba(11,22,51,0.035); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: baseline; }
.foot-name { font-size: clamp(1.8rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.04em; color: var(--navy); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; padding-block: 10px; }
.foot-links a:hover { color: var(--blue); }
.disclaimer { margin-top: 28px; font-size: 0.85rem; color: var(--ink-soft); max-width: 80ch; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #1fa855; color: #fff;
  box-shadow: 0 12px 30px -8px rgba(31,168,85,0.6);
  transition: transform 180ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .wa-float:hover { transform: scale(1.06); } }
.wa-float:active { transform: scale(0.95); }
.wa-float svg { width: 30px; height: 30px; }

/* Entrance motion (content stays visible without JS) */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: var(--d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal.in { opacity: 1; transform: none; transition: opacity 200ms ease; }
  .btn, .wa-float, .faq summary::after { transition: none; }
}


/* Tablet */
@media (max-width: 900px) {
  .problem-grid, .macc-grid, .contact-grid { grid-template-columns: 1fr; }
  .get-grid { grid-template-columns: 1fr 1fr; }
  .get-grid .wide { grid-column: span 2; }
  .site-head nav a.hide-sm { display: none; }
}

/* Phone */
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .get-grid { grid-template-columns: 1fr; }
  .get-grid .wide { grid-column: auto; }
  .row { grid-template-columns: 1fr; }
  .site-head nav { gap: 12px; }
  .site-head nav a:not(.btn) { display: none; }
  .route::before { left: 21px; }
  .route li { grid-template-columns: 44px 1fr; gap: 12px; }
  .route .stop { width: 44px; height: 44px; }
  .route .stop svg { width: 20px; height: 20px; }
  .hero-actions .btn { flex: 1 1 100%; }
}
