/* ==========================================================================
   Vently Solutions — shared styles
   Tokens · base · header · buttons · accordion · footer · document pages
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour: navy from the logo, one functional pair (answered / missed) */
  --navy-950: #060d1e;
  --navy-900: #0b1730;
  --navy-800: #16294c;
  --blue-500: #1c6afa;
  --blue-600: #0f4fd1;
  --paper: #f2f3f8;
  --white: #ffffff;
  --ink: #0b1730;
  --muted: #585a78;
  --on-dark: #ebedf8;
  --on-dark-muted: #a6a9cf;
  --go: #25c26e;
  --go-strong: #3ad483;
  --go-ink: #0d7a43;
  --go-tint: #e1f5ea;
  --miss: #e5484d;
  --miss-ink: #b3261e;
  --miss-tint: #fdeaea;
  --line: rgba(11, 23, 48, 0.13);
  --line-dark: rgba(255, 255, 255, 0.14);

  /* Type */
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape and rhythm */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 136px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  letter-spacing: -0.028em;
  line-height: 1.05;
}
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--navy-900);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--blue-500);
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--go);
  color: #062616;
  font-weight: 600;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

.container {
  width: min(100% - 2 * var(--gutter), 1240px);
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.surface-paper { background: var(--paper); }
.surface-white { background: var(--white); }
.surface-dark { color: var(--on-dark); }
.hero, .surface-dark, .site-footer, .page-hero {
  background-color: var(--navy-900);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2256%22%20height%3D%22100%22%20viewBox%3D%220%200%2056%20100%22%3E%3Cpath%20d%3D%22M28%2066L0%2050L0%2016L28%200L56%2016L56%2050L28%2066L28%20100%22%20fill%3D%22none%22%20stroke%3D%22rgba%28140%2C170%2C255%2C0.07%29%22%20stroke-width%3D%221%22/%3E%3C/svg%3E");
  background-size: 56px 100px;
}
.site-footer, .page-hero { background-color: var(--navy-950); }


.h-display {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 650;
  max-width: 16ch;
}
.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 52ch;
}
.surface-dark .lede { color: var(--on-dark-muted); }
.lede-gap { margin-top: 20px; }
.section-doc { padding-top: clamp(48px, 7vw, 88px); }

/* ---------- Word-by-word heading reveal (added by JS) ---------- */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-block: 0.08em;
  margin-block: -0.08em;
}
.wi {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 0.85s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.is-visible .wi,
.is-visible.wi { transform: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 50px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-go { background: var(--go); color: #062616; }
.btn-go:hover { background: var(--go-strong); }
.btn-line-dark { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.btn-line-dark:hover { border-color: #fff; }
.btn-line { border-color: rgba(11, 23, 48, 0.28); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(11, 23, 48, 0.92);
  border-bottom-color: var(--line-dark);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.site-header.is-solid-open { background: var(--navy-900); border-bottom-color: var(--line-dark); }
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.brand img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 36px); }
.nav-links a {
  position: relative;
  text-decoration: none;
  font-size: 0.9688rem;
  color: var(--on-dark-muted);
  padding-block: 6px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--blue-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: #fff; }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  color: #fff;
}
.nav-toggle .bars { position: relative; width: 22px; height: 14px; }
.nav-toggle .bars i {
  position: absolute; left: 0; right: 0; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s, top 0.3s var(--ease);
}
.nav-toggle .bars i:nth-child(1) { top: 0; }
.nav-toggle .bars i:nth-child(2) { top: 6px; }
.nav-toggle .bars i:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px var(--gutter) 40px;
  background: var(--navy-900);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s 0.25s;
}
.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}
.mobile-menu a:not(.btn) {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: #fff;
}
.mobile-menu .btn { margin-top: 24px; }

@media (max-width: 960px) {
  .nav-links, .header-cta .btn-line-dark { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 480px) {
  .header-cta { gap: 8px; }
  .header-cta .btn-go.btn-sm { padding: 0 14px; font-size: 0.875rem; }
}
@media (max-width: 460px) {
  .brand span { display: none; }
  .brand img { height: 34px; }
}

/* ==========================================================================
   Accordion (FAQ)
   ========================================================================== */
.acc-item { border-top: 1px solid var(--line); }
.acc-item:last-child { border-bottom: 1px solid var(--line); }
.acc-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.1875rem, 1.8vw, 1.4375rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.acc-icon {
  position: relative;
  flex: none;
  width: 30px; height: 30px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  transition: background-color 0.25s, border-color 0.25s;
}
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 1.75px;
  background: var(--ink);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease), background-color 0.25s;
}
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-q:hover .acc-icon { border-color: var(--ink); }
.acc-q[aria-expanded="true"] .acc-icon { background: var(--go); border-color: var(--go); }
.acc-q[aria-expanded="true"] .acc-icon::before,
.acc-q[aria-expanded="true"] .acc-icon::after { background: #062616; }
.acc-q[aria-expanded="true"] .acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.acc-a > div { overflow: hidden; }
.acc-a p {
  padding: 0 54px 24px 0;
  color: var(--muted);
  max-width: 62ch;
}
.acc-a p + p { padding-top: 0; margin-top: -12px; }
.acc-item.is-open .acc-a { grid-template-rows: 1fr; }
.acc-a a { color: var(--ink); text-underline-offset: 3px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  color: var(--on-dark-muted);
  padding: clamp(56px, 8vw, 96px) 0 32px;
  font-size: 0.9688rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
}
.footer-brand img { width: 128px; margin-bottom: 20px; }
.footer-brand p { max-width: 34ch; }
.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.9688rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col li + li { margin-top: 10px; }
.footer-col a { text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 0.9062rem;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ==========================================================================
   Inner pages: FAQ, Privacy, Terms, 404
   ========================================================================== */
.page-hero {
  color: #fff;
  padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(48px, 7vw, 88px);
}
.page-hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  max-width: 16ch;
}
.page-hero .lede { margin-top: 24px; }
.page-hero .meta { margin-top: 20px; color: var(--on-dark-muted); font-size: 0.9375rem; }

.doc {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.doc-toc { position: sticky; top: calc(var(--header-h) + 32px); font-size: 0.9688rem; }
.doc-toc p { font-weight: 600; margin-bottom: 12px; }
.doc-toc li + li { margin-top: 2px; }
.doc-toc a {
  display: block;
  padding: 6px 0 6px 14px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.doc-toc a:hover { color: var(--ink); border-left-color: var(--ink); }
.doc-body { max-width: 68ch; }
.doc-body > p:first-child { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.doc-body section + section { margin-top: 44px; }
.doc-body h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 650;
  margin-bottom: 12px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.doc-body p, .doc-body li { color: #2a3a56; }
.doc-body p + p { margin-top: 14px; }
.doc-body ul { list-style: disc; padding-left: 22px; margin-top: 12px; }
.doc-body li + li { margin-top: 8px; }
.doc-body a { text-underline-offset: 3px; }
.doc-body strong { color: var(--ink); }
@media (max-width: 820px) {
  .doc { grid-template-columns: 1fr; }
  .doc-toc { display: none; }
}

.faq-groups { display: grid; gap: clamp(48px, 7vw, 80px); }
.faq-group { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(24px, 6vw, 96px); }
.faq-group > h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 650; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
@media (max-width: 820px) {
  .faq-group { grid-template-columns: 1fr; }
  .faq-group > h2 { position: static; }
}
.cta-band { padding-block: clamp(56px, 8vw, 96px); }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-band h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 650; max-width: 18ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

.notfound { min-height: 100svh; display: flex; align-items: center; padding-top: var(--header-h); }
.notfound h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 0.98; max-width: 12ch; }
.notfound p { margin-top: 20px; }
.notfound .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .wi { transform: none; }
}
