/* Vie Line. Colours come from the logo: deep navy, the icon's blue-to-indigo gradient and the lilac pixel blocks. */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --navy: #01184b;
  --navy-deep: #000e2e;
  --indigo: #0a054e;
  --blue: #0060e5;
  --violet: #5402c1;
  --violet-bright: #7c08e6;
  --lilac: #c494fc;
  --lilac-soft: #e9dcfe;
  --wash: #f3effc;
  --paper: #fbfaff;
  --white: #ffffff;
  --ink: #01184b;
  --ink-soft: #3b4672;
  --line: #ddd5f1;
  --error: #b3261e;

  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --radius: 18px;
  --radius-small: 10px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(60px, 8vw, 108px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.6rem); }
h3 { font-size: 1.25rem; line-height: 1.2; }

p { margin: 0 0 1em; }
a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--lilac); }

.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap--text { width: min(760px, 100% - 2 * var(--gutter)); }

.section-lead { max-width: 62ch; color: var(--ink-soft); font-size: 1.125rem; margin-top: 16px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--radius-small);
}
.skip-link:focus { top: 12px; color: var(--white); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px;
  font: 600 1.0625rem/1 var(--body);
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent; border-radius: 12px;
  transition: background-color .15s, border-color .15s, color .15s;
}
.button--primary { background: var(--violet); color: var(--white); }
.button--primary:hover { background: var(--navy); color: var(--white); }
.button--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.button--ghost:hover { background: var(--navy); color: var(--white); }
.on-dark .button--primary, .cta-band .button--primary { background: var(--lilac); color: var(--navy-deep); }
.on-dark .button--primary:hover, .cta-band .button--primary:hover { background: var(--white); color: var(--navy-deep); }
.on-dark .button--ghost { color: var(--white); border-color: rgba(255,255,255,.55); }
.on-dark .button--ghost:hover { background: var(--white); color: var(--navy-deep); border-color: var(--white); }
.button--small { min-height: 42px; padding: 0 18px; font-size: .975rem; }
.button--wide { width: 100%; }
.button[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.site-header__logo img { width: 148px; height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 28px); }
.site-nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .98rem; }
.site-nav a:hover { color: var(--violet); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--violet-bright); }
.site-nav .button { color: var(--white); text-decoration: none; }
.site-nav .button:hover { color: var(--white); }
.nav-toggle {
  display: none; min-height: 42px; padding: 0 16px;
  font: 600 .98rem/1 var(--body); color: var(--navy);
  background: transparent; border: 2px solid var(--navy); border-radius: 10px; cursor: pointer;
}

/* Hero: dark navy, the pixel blocks dissolve into the page below */
.hero {
  position: relative;
  background:
    radial-gradient(900px 520px at 6% -12%, rgba(0,96,229,.55), transparent 65%),
    radial-gradient(700px 480px at 100% 20%, rgba(84,2,193,.35), transparent 70%),
    var(--navy);
  color: var(--white);
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
}
.hero::after, .cta-band::before {
  content: ""; position: absolute; left: 0; right: 0; height: 96px; pointer-events: none;
  background: url("../img/pixel-edge.svg") center top / 1440px 96px repeat-x;
}
.hero::after { bottom: -95px; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { max-width: 14ch; }
.hero__lead { margin-top: 22px; max-width: 54ch; font-size: 1.2rem; color: #ddd6f5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__note { margin: 22px 0 0; color: #bdb4e0; font-size: .98rem; }

/* Call-flow diagram: the thing the product does, drawn */
.flow {
  margin: 0; padding: clamp(20px, 3vw, 30px);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(196,148,252,.35);
  border-radius: var(--radius);
}
.flow figcaption { font-weight: 600; color: var(--lilac); font-size: .95rem; margin-bottom: 18px; }
.flow__steps { list-style: none; margin: 0; padding: 0; }
.flow__node {
  position: relative; display: grid; grid-template-columns: 14px 1fr; gap: 14px;
  padding: 12px 16px; border-radius: 12px;
  background: rgba(255,255,255,.08);
}
.flow__node::before { content: ""; width: 14px; height: 14px; margin-top: 6px; border-radius: 4px; background: var(--lilac); transform: skewX(-8deg); }
.flow__node strong { display: block; font: 600 1.05rem/1.3 var(--display); }
.flow__node span { display: block; font-size: .95rem; color: #cfc6ee; }
.flow__node + .flow__node { margin-top: 22px; }
.flow__node + .flow__node::after {
  content: ""; position: absolute; left: 23px; top: -22px; width: 2px; height: 22px;
  background: repeating-linear-gradient(var(--lilac) 0 4px, transparent 4px 8px);
}
.flow__node--end::before { background: var(--white); }

/* One orchestrated moment: the route lights up once, step by step */
@media (prefers-reduced-motion: no-preference) {
  .flow__node { animation: light 700ms ease-out both; animation-delay: calc(var(--i) * 420ms + 300ms); }
  @keyframes light {
    from { opacity: .25; background: rgba(196,148,252,.45); }
    to { opacity: 1; background: rgba(255,255,255,.08); }
  }
}

/* Page sections */
.section { padding: var(--section) 0; }
.section--wash { background: var(--wash); }
.section--first { padding-top: calc(var(--section) + 24px); }
.section__head { margin-bottom: 40px; }

.two-ways { display: grid; gap: 24px; margin-top: 36px; }
.way { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); border: 2px solid var(--navy); background: var(--white); }
.way--managed { background: var(--navy); color: var(--white); border-color: var(--navy); }
.way--managed h3 { color: var(--white); }
.way--managed p { color: #ddd6f5; }
.way--managed a { color: var(--lilac); }
.way h3 { font-size: 1.5rem; margin-bottom: 12px; }
.way p:last-child { margin-bottom: 0; }

/* Feature lists: square markers echo the logo's blocks */
.feature-grid { display: grid; gap: 0 48px; margin: 0; padding: 0; list-style: none; }
.feature-grid li { padding: 20px 0 20px 30px; border-top: 1px solid var(--line); position: relative; }
.feature-grid li::before {
  content: ""; position: absolute; left: 0; top: 29px; width: 12px; height: 12px; border-radius: 3px;
  background: linear-gradient(135deg, var(--violet-bright), var(--lilac)); transform: skewX(-8deg);
}
.feature-grid h3, .feature-grid strong { display: block; font: 600 1.15rem/1.3 var(--display); margin-bottom: 4px; }
.feature-grid p { margin: 0; color: var(--ink-soft); }
.feature-group + .feature-group { margin-top: 64px; }
.feature-group > p { max-width: 62ch; color: var(--ink-soft); margin-top: 12px; }
.feature-group .feature-grid { margin-top: 24px; }

/* Steps: a real sequence, so it is numbered */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 44px; height: 44px; display: grid; place-items: center;
  font: 600 1.25rem/1 var(--display); color: var(--white);
  background: linear-gradient(135deg, var(--violet), var(--violet-bright)); border-radius: 12px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-soft); margin: 0; }

/* Contract band */
.contract { display: grid; gap: 24px; align-items: center; }
.contract p { max-width: 60ch; }

/* Comparison table */
.table-wrap { overflow-x: auto; margin: 28px 0; }
table { border-collapse: collapse; width: 100%; min-width: 560px; background: var(--white); }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--navy); color: var(--white); font: 600 1rem/1.3 var(--display); }
tbody th { font-weight: 600; width: 28%; background: var(--wash); }

/* Questions and answers */
.faq { margin-top: 32px; max-width: 800px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font: 600 1.15rem/1.35 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 2.5px solid var(--violet); border-bottom: 2.5px solid var(--violet); transform: rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 22px; color: var(--ink-soft); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Enquiry form */
.enquiry { background: var(--navy); color: var(--white); padding: var(--section) 0; }
.enquiry__grid { display: grid; gap: 40px; }
.enquiry__intro p { color: #ddd6f5; max-width: 46ch; }
.enquiry__points { list-style: none; margin: 24px 0; padding: 0; }
.enquiry__points li { padding-left: 28px; position: relative; margin-bottom: 10px; color: #ddd6f5; }
.enquiry__points li::before { content: ""; position: absolute; left: 0; top: 9px; width: 11px; height: 11px; border-radius: 3px; background: var(--lilac); transform: skewX(-8deg); }
.enquiry a { color: var(--lilac); }
.enquiry a:hover { color: var(--white); }
.enquiry__panel { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 40px); }
.enquiry__panel a { color: var(--violet); }

.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.field__optional { font-weight: 400; color: var(--ink-soft); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: 400 1rem/1.4 var(--body); color: var(--ink);
  background: var(--white); border: 2px solid #8d85ad; border-radius: var(--radius-small);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__hint { margin: 6px 0 0; font-size: .92rem; color: var(--ink-soft); }
.field__error { margin: 6px 0 0; font-size: .95rem; font-weight: 600; color: var(--error); }
.field fieldset, fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice__options { display: grid; gap: 10px; }
.choice__option {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; cursor: pointer;
  border: 2px solid var(--line); border-radius: var(--radius-small); font-weight: 400 !important; margin: 0 !important;
}
.choice__option:has(input:checked) { border-color: var(--violet); background: var(--wash); }
.choice__option input { margin-top: 5px; accent-color: var(--violet); width: 18px; height: 18px; flex: none; }
.choice__option:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.field--check label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.field--check input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--violet); flex: none; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { padding: 14px 16px; border-radius: var(--radius-small); background: #fdeceb; color: #6e1410; font-weight: 600; }
.form__done h3 { font-size: 1.6rem; margin-bottom: 12px; }
.form__done:focus { outline: none; }

/* Page heroes (inner pages) */
.page-hero { background: var(--wash); padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 20ch; font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.page-hero__lead { max-width: 62ch; margin: 18px 0 0; font-size: 1.15rem; color: var(--ink-soft); }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; font-size: .92rem; color: var(--ink-soft); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--ink-soft); }
.breadcrumb a { color: var(--ink-soft); }

/* Call to action band at the end of inner pages */
.cta-band { position: relative; background: radial-gradient(700px 360px at 100% 0, rgba(84,2,193,.4), transparent 70%), var(--navy); color: var(--white); padding: calc(var(--section) * .7 + 24px) 0 calc(var(--section) * .7); margin-top: 96px; }
.cta-band::before { top: -95px; transform: scaleY(-1); }
.cta-band__inner { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-band p { margin: 10px 0 0; color: #ddd6f5; max-width: 54ch; }

/* Long text pages: About, privacy, articles */
.prose, .prose-body { max-width: 760px; }
.prose h2, .prose-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 2em 0 .5em; }
.prose h3, .prose-body h3 { margin: 1.6em 0 .4em; }
.prose ul, .prose ol, .prose-body ul, .prose-body ol { padding-left: 1.3em; }
.prose li, .prose-body li { margin-bottom: .5em; }
.prose address { font-style: normal; line-height: 1.7; }
.prose .updated { color: var(--ink-soft); }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.callout { margin: 1.6em 0; padding: 18px 22px; background: var(--wash); border-left: 5px solid var(--violet-bright); border-radius: 0 var(--radius-small) var(--radius-small) 0; }
.callout p:last-child { margin: 0; }
.prose-body blockquote { margin: 1.4em 0; padding-left: 20px; border-left: 4px solid var(--lilac); color: var(--ink-soft); }
.prose-body pre, .prose-body code { font-family: Consolas, "Courier New", monospace; font-size: .95em; }
.prose-body pre { overflow-x: auto; padding: 16px; background: var(--wash); border-radius: var(--radius-small); }
.prose-body img { border-radius: var(--radius-small); }

/* Blog */
.band { padding: var(--section) 0; }
.band--white { background: var(--white); }
.post-list { display: grid; gap: 28px; }
.post-card { padding-top: 20px; border-top: 2px solid var(--navy); }
.post-card h2, .post-card h3 { font-size: 1.4rem; margin: 6px 0 8px; }
.post-card h2 a, .post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--violet); text-decoration: underline; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: .92rem; color: var(--ink-soft); }
.post__header { background: var(--wash); padding: clamp(36px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.post__header h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: 24ch; margin-bottom: 16px; }
.post-empty { max-width: 56ch; }
.post-empty h2 { margin-bottom: 12px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #cfc8ea; padding: 56px 0 32px; }
.site-footer a { color: #e9dcfe; }
.site-footer a:hover { color: var(--white); }
.site-footer__grid { display: grid; gap: 32px; }
.site-footer__grid img { width: 150px; height: auto; margin-bottom: 14px; }
.site-footer nav { display: grid; gap: 8px; align-content: start; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer__legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); font-size: .9rem; color: #b6add6; }
.site-footer__legal p { margin: 0 0 .5em; max-width: 90ch; }

/* Plain result pages (form without JavaScript, 404) */
.plain-page { background: var(--paper); }
.plain-page__main { width: min(640px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: 56px 0; }
.plain-page__main img { width: 180px; margin-bottom: 36px; }
.plain-page__main h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 16px; }
.plain-page__main .button { margin-top: 12px; }

/* Wider screens */
@media (min-width: 700px) {
  .form__row--two { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .two-ways { grid-template-columns: 1fr 1fr; }
  .post-list { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .enquiry__grid { grid-template-columns: .8fr 1.2fr; gap: 64px; }
  .feature-grid--three { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
}

/* Compact menu below 900px: the links no longer fit on one line. */
@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .button { margin-top: 16px; border-bottom: 2px solid transparent; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
