/* VeilPoint Corp. website styles.
   Shared chrome (header, footer, buttons), forms, surveys and legal pages
   live here. The marketing pages in src/pages carry their layout inline,
   exactly as approved in the design screens. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #F8FAFB;
  --surface: #FFFFFF;
  --ink: #0F1E3D;
  --text: #343D45;
  --muted: #55657D;
  --line: #E3E9EF;
  --field: #7C8CA0;
  --accent: #0B7285;
  --navy: #071C33;
  --sky: #EAF3FB;
  --soft: #F1F5FA;
  --danger: #A12727;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid #1677E5; outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; color: var(--ink); font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 46px; height: 34px; object-fit: contain; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(16px, 2.4vw, 30px); }
.site-nav a { padding: 12px 0; font-size: 15px; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav a[aria-current="page"] { font-weight: 800; color: var(--accent); border-bottom-color: var(--accent); }

/* Phone and small tablet: the links move into a Menu button */
.menu { display: none; }
.menu summary { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; user-select: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu__icon { position: relative; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.menu__icon::before, .menu__icon::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .15s; }
.menu__icon::before { top: -6px; } .menu__icon::after { top: 6px; }
.menu[open] .menu__icon { background: transparent; }
.menu[open] .menu__icon::before { transform: translateY(6px) rotate(45deg); }
.menu[open] .menu__icon::after { transform: translateY(-6px) rotate(-45deg); }
.menu[open] summary { background: var(--ink); color: #fff; }
.menu__panel { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; display: flex; flex-direction: column; padding: 8px var(--gutter) 24px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(7, 28, 51, .35); }
.menu__panel a:not(.btn) { display: flex; align-items: center; min-height: 54px; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 700; text-decoration: none; }
.menu__panel a[aria-current="page"] { color: var(--accent); }
.menu__panel .btn { margin-top: 20px; }
@media (max-width: 1100px) {
  .site-header { position: sticky; top: 0; z-index: 30; }
  .site-header .wrap { flex-wrap: nowrap; padding-top: 10px; padding-bottom: 10px; }
  .site-header .site-nav, .site-header .header-cta { display: none; }
  .site-header .wrap { gap: 12px; }
  .menu { display: block; }
  .brand { font-size: 19px; }
  .brand img { width: 40px; height: 30px; }
}
@media (max-width: 380px) {
  .brand { font-size: 17px; gap: 9px; }
  .brand img { width: 34px; height: 26px; }
  .menu summary { padding: 0 14px; gap: 8px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .site-footer .wrap { padding-top: 40px; gap: 28px; }
  main a[style*="min-height: 52px"] { flex: 1 1 auto; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn:hover { background: #1B3566; border-color: #1B3566; color: #fff; }
.btn--sm { min-height: 46px; padding: 0 22px; font-size: 15px; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: default; }
/* buttons authored inline in the page partials */
main a[style*="border-radius: 999px"] { transition: filter .15s, background-color .15s; }
main a[style*="border-radius: 999px"]:hover { filter: brightness(1.25); }
main a[style*="border: 1.5px solid"]:hover { filter: none; background: rgba(15, 30, 61, .08); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: var(--ink); }
.footer-brand img { width: 40px; height: 30px; object-fit: contain; }
.footer-col { display: flex; flex-direction: column; gap: 4px; }
.footer-col h2 { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.footer-col a { padding: 6px 0; font-size: 15px; font-weight: 600; text-decoration: none; }
.footer-note { margin: 0; color: var(--muted); font-size: 15px; }
.footer-legal { margin: 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: var(--muted); }

/* Shared type */
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.h1 { margin: 0; font-size: clamp(38px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; color: var(--ink); }
.h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; color: var(--ink); }
.lead { margin: 0; font-size: 19px; max-width: 720px; }
.page-head { display: flex; flex-direction: column; gap: 22px; padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(36px, 5vw, 56px); }
.section { padding-bottom: clamp(64px, 9vw, 112px); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 44px); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.rule-card { border-top: 3px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 6px; }
.rule-card h3 { margin: 0; font-size: 20px; font-weight: 800; color: var(--ink); }
.rule-card p { margin: 0; font-size: 16px; }
.text-link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 700; }

/* Forms */
.form-card { display: flex; flex-direction: column; gap: 24px; }
.form-card__head { display: flex; align-items: center; gap: 16px; }
.form-card__head img { width: 56px; height: 56px; border-radius: 13px; }
.form-card__head span { display: block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.form-card__head h2 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; color: var(--ink); }
.form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend, fieldset.field > legend { padding: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.field .opt { font-weight: 500; color: var(--muted); }
fieldset.field { margin: 0; padding: 0; border: 0; }
fieldset.field > legend { margin-bottom: 8px; }
.input { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--field); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
textarea.input { padding: 12px 14px; min-height: 120px; resize: vertical; }
.input:focus-visible { outline-offset: 1px; border-radius: 12px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; font-weight: 500; color: var(--text); }
.choice input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.form .btn { align-self: flex-start; }
.fine { margin: 0; font-size: 14px; color: var(--muted); }
.form-error { margin: 0; padding: 12px 16px; border-radius: 12px; background: #FDECEC; color: var(--danger); font-size: 15px; font-weight: 600; }
.form-done { padding: 24px; border-radius: 16px; background: var(--sky); }
.form-done strong { display: block; font-size: 19px; font-weight: 800; color: var(--ink); }
.form-done p { margin: 6px 0 0; font-size: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Surveys */
.survey-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.survey-card { display: flex; flex-direction: column; gap: 12px; border-radius: 24px; padding: clamp(24px, 3.5vw, 36px); }
.survey-card .who { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.survey-card h2 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; color: var(--ink); }
.survey-card h2 small { display: block; margin-top: 4px; font-size: 17px; font-weight: 600; letter-spacing: 0; color: var(--text); }
.survey-card p { margin: 0; font-size: 16px; }
.survey-card .btn { margin-top: auto; align-self: flex-start; }
.survey-facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0; padding: 0; list-style: none; }
.survey-facts li { display: flex; align-items: baseline; gap: 8px; font-size: 15px; color: var(--muted); }
.survey-facts strong { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.survey { display: flex; flex-direction: column; gap: 24px; min-height: 420px; }
.survey__help { margin: -8px 0 0; font-size: 16px; }
.survey__nav { margin-top: auto; }
.survey-page { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 28px; align-items: start; padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(64px, 9vw, 112px); }
.survey-info { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3.4vw, 40px); border-radius: 28px; background: var(--navy); color: #fff; }
.survey-info__back { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; color: #C9D6E5; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.survey-info__back::before { content: "\2190"; margin-right: 8px; }
.survey-info__back:hover { color: #fff; }
.survey-info__tag { margin: 8px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5BBBF2; }
.survey-info h1 { margin: 0; font-size: clamp(36px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; }
.survey-info__title { margin: 0; font-size: 18px; font-weight: 700; }
.survey-info__desc { margin: 0; font-size: 16px; color: #C9D6E5; }
.survey-info__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 8px 0; padding: 0; list-style: none; }
.survey-info__facts li { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid #1F3D5E; border-radius: 14px; font-size: 12px; line-height: 1.3; color: #C9D6E5; }
.survey-info__facts strong { font-size: 24px; font-weight: 800; color: #fff; }
.survey-info__note { margin: 0; padding-top: 14px; border-top: 1px solid #1F3D5E; font-size: 13px; line-height: 1.5; color: #A9BCD3; }
.survey-info__note + .survey-info__note { padding-top: 0; border-top: 0; }
@media (max-width: 860px) {
  .survey-page { grid-template-columns: 1fr; }
  .survey-info { position: static; }
}
.survey__progress { display: flex; flex-direction: column; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.survey__bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.survey__bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--ink); transition: width .25s; }
.survey__q { margin: 0; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; letter-spacing: -0.02em; font-weight: 800; color: var(--ink); }
.survey__answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.answer { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 76px; padding: 16px 20px; border: 1.5px solid var(--field); border-radius: 16px; background: #fff; color: var(--ink); font: inherit; font-size: 20px; font-weight: 800; text-align: left; cursor: pointer; }
.answer small { font-size: 14px; font-weight: 500; color: var(--muted); }
.answer:hover { border-color: var(--ink); }
.answer[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.answer[aria-pressed="true"] small { color: #C9D6E5; }
.survey__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Legal and support pages */
.prose { max-width: 760px; }
.prose h2 { margin: 44px 0 12px; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 800; color: var(--ink); }
.prose h3 { margin: 28px 0 8px; font-size: 19px; font-weight: 800; color: var(--ink); }
.prose p, .prose li { font-size: 17px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose a { font-weight: 700; }
.updated { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.callout { margin: 0 0 8px; padding: 22px 24px; border-radius: 16px; background: var(--sky); }
.callout strong { display: block; font-size: 19px; font-weight: 800; color: var(--ink); }
.callout p { margin: 6px 0 0; font-size: 16px; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; gap: 14px !important; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; align-items: start; }
.steps li::before { content: counter(step); grid-row: span 2; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 16px; font-weight: 800; }
.steps strong { font-weight: 800; color: var(--ink); }
.steps span { grid-column: 2; font-size: 16px; }
