/* VeriloQ website – layout and components on top of tokens.css */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-base); line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; hyphens: auto; overflow-wrap: break-word; margin: 0 0 .6em; }
h1 { font-size: var(--fs-3xl); font-weight: 700; }
h2 { font-size: var(--fs-2xl); font-weight: 700; max-width: 26ch; }
h3 { font-size: var(--fs-lg); font-weight: 650; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 760px; }
.eyebrow { font-size: var(--fs-xs); font-weight: 650; text-transform: uppercase; letter-spacing: .12em; color: var(--petrol); margin-bottom: .8em; }
.lead { font-size: var(--fs-lg); color: var(--muted); max-width: 58ch; }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg); padding: .5rem 1rem; z-index: 20; }
.skip:focus { left: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .8rem 1.3rem; border-radius: 999px;
  font-weight: 650; text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s; }
.btn-primary { background: var(--petrol); color: var(--on-petrol); }
.btn-primary:hover { background: var(--petrol-strong); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--petrol); }
.btn-sm { padding: .5rem 1rem; font-size: var(--fs-sm); }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.logo { color: var(--ink); display: inline-flex; }
.logo svg { height: 30px; width: auto; }
.logo.small svg { height: 24px; }
.nav { display: flex; gap: 1.4rem; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: var(--fs-sm); opacity: .8; }
.nav a:hover { opacity: 1; color: var(--petrol); }
.country { display: flex; gap: 2px; font-size: var(--fs-sm); border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.country a, .country span { padding: .15rem .55rem; border-radius: 999px; text-decoration: none; color: var(--muted); }
.country a:hover { color: var(--petrol); }
.country [aria-current] { background: var(--ink); color: var(--bg); font-weight: 600; }
.country-note a { color: inherit; }
.nav-cta, .menu-toggle { display: none; }
.menu-toggle { width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--line);
  border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; flex: none; }
.menu-toggle:hover { border-color: var(--petrol); color: var(--petrol); }
.menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-toggle .i-close, .menu-open .menu-toggle .i-open { display: none; }
.menu-open .menu-toggle .i-close { display: inline; }
/* small screens: country switch stays, the sections move into a menu below the header */
@media (max-width: 900px) {
  .header-row { gap: .75rem; }
  .header-row .country { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; margin: 0; flex-direction: column; gap: 0;
    padding: .5rem 20px 1.1rem; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .menu-open .nav { display: flex; }
  .nav a { font-size: 1.05rem; opacity: 1; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav a.nav-cta { display: block; margin-top: 1rem; padding: .75rem 1rem; border: 0; text-align: center; color: var(--on-petrol, #fff); }
}
@media (max-width: 520px) { .header-cta { display: none; } .logo svg { height: 26px; } }

/* hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  background: radial-gradient(60% 60% at 85% 20%, var(--tint) 0%, transparent 70%); }
.hero-grid { display: grid; gap: 3rem; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.6rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; color: var(--muted); font-size: var(--fs-sm); }
.checks li::before { content: "✓"; color: var(--signal); font-weight: 700; margin-right: .5rem; }
.hero-shot { position: relative; margin: 0; }
.frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); box-shadow: var(--shadow), 0 30px 60px -30px rgba(11, 34, 48, .35); }
.frame-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.float-chip { position: absolute; padding: .55rem .85rem; border-radius: 12px; font-size: var(--fs-sm); box-shadow: var(--shadow);
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); }
.chip-fail { left: 78%; top: 50%; color: var(--fail); white-space: nowrap; }
.chip-fail b { margin-right: .3rem; }
@media (max-width: 700px) { .chip-fail { left: auto !important; right: 8px; } } /* beats the inline position from build.py */

/* sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section.soft { background: var(--bg-soft); }
.section.ink { background: #0B2230; color: #E8F0F2; }
.section.ink .eyebrow { color: #5FD3A4; }
.section.ink .lead, .section.ink dd { color: #A9BCC5; }
.grid-3, .grid-4 { display: grid; gap: 1.2rem; margin-top: 2rem; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card, .mini { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card p, .mini p { color: var(--muted); margin: 0; }
.mini h3 { font-size: var(--fs-base); }

/* use cases and core functions */
.areas { display: grid; gap: 1.2rem; margin-top: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .areas { grid-template-columns: repeat(3, 1fr); } }
.area { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.area p { color: var(--muted); }
.ico { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px; background: var(--tint);
  color: var(--petrol); margin-bottom: 1rem; flex: none; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { font-size: var(--fs-xs); padding: .25rem .65rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); }
.core-grid { display: grid; gap: 1.6rem 2rem; margin-top: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .core-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .core-grid { grid-template-columns: repeat(3, 1fr); } }
.core { display: flex; gap: 1rem; align-items: flex-start; }
.core .ico { margin: 0; width: 2.75rem; height: 2.75rem; }
.core h3 { font-size: var(--fs-base); margin: .15rem 0 .3rem; }
.core p { color: var(--muted); margin: 0; font-size: var(--fs-sm); }

/* steps */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.2rem; counter-reset: none; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { position: relative; padding: 1.6rem; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.step-no { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--tint);
  color: var(--petrol); font-weight: 700; margin-bottom: 1rem; }
.steps p { color: var(--muted); margin: 0; }

/* features */
.feature { display: grid; gap: 2rem; align-items: center; margin-top: 3.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .feature { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 3.5rem; }
  .feature.reverse .feature-copy { order: 2; }
  .feature.reverse { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}
.shot { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.ticks li { padding-left: 1.7rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--ok-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--signal) 40%, transparent); }
.ticks li::after { content: ""; position: absolute; left: .33rem; top: .52em; width: .3rem; height: .52rem; border: solid var(--signal);
  border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ticks.big li { font-size: var(--fs-lg); }
.tag { display: inline-block; font-size: .72rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
  padding: .1rem .45rem; border-radius: 999px; background: var(--open-bg); color: var(--open); vertical-align: middle; }

/* traceability */
.trace-grid { display: grid; gap: 3rem; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .trace-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.section.ink h2 { color: #fff; }
.facts { display: grid; gap: 1.1rem; margin: 2rem 0 0; }
.facts div { padding-left: 1rem; border-left: 2px solid #1F4A57; }
.facts dt { font-weight: 650; color: #fff; }
.facts dd { margin: .2rem 0 0; }
.paper { margin: 0; max-width: 420px; justify-self: center; transform: rotate(1.5deg); border-radius: 6px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); }

/* audience */
.two-col { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }

/* pricing */
.pricing { display: grid; gap: 1.2rem; margin-top: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .pricing { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; background: var(--bg); }
.plan.featured { border: 2px solid var(--petrol); box-shadow: var(--shadow); }
.badge { position: absolute; top: -.8rem; left: 1.5rem; margin: 0; background: var(--petrol); color: var(--on-petrol); font-size: var(--fs-xs);
  font-weight: 650; padding: .2rem .7rem; border-radius: 999px; }
.price { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; font-variant-numeric: tabular-nums; margin: .2rem 0 1.2rem; }
.price span, .price small { font-family: var(--font); font-size: var(--fs-sm); font-weight: 400; color: var(--muted); }
.note { margin-top: 1.2rem; font-size: var(--fs-sm); color: var(--muted); }
.note-box { margin-top: 1.6rem; background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius);
            padding: 1.2rem 1.5rem; display: grid; gap: .6rem 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .note-box { grid-template-columns: auto 1fr; align-items: center; } }
.note-title { margin: 0; font-weight: 700; color: var(--petrol); font-size: var(--fs-lg); }
.note-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem 1.6rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .note-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.note-list li { position: relative; padding-left: 1.6rem; font-weight: 600; }
.note-list li::before { content: "✓"; position: absolute; left: 0; color: var(--signal); font-weight: 800; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--petrol); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: .7rem 0 0; max-width: 65ch; }

/* cta */
.cta-box { text-align: center; display: grid; justify-items: center; }
.cta-box h2 { max-width: 24ch; }
.cta-box .lead { margin-bottom: 1.6rem; }

/* contact form */
.contact { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.2rem;
           background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 4vw, 2rem);
           box-shadow: var(--shadow); text-align: left; }
.contact .wide { grid-column: 1 / -1; }
.contact label { display: grid; gap: .35rem; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.contact input, .contact select, .contact textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--bg);
           border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .65rem .75rem; width: 100%; box-sizing: border-box; }
.contact textarea { resize: vertical; min-height: 6rem; }
.contact input:focus, .contact select:focus, .contact textarea:focus { outline: 2px solid var(--petrol); outline-offset: 1px; border-color: var(--petrol); }
.contact [aria-invalid="true"] { border-color: var(--fail); }
.contact .err { color: var(--fail); font-weight: 500; min-height: 0; }
.contact .err:empty { display: none; }
.contact .termin { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); margin: 0;
           padding: .9rem 1rem 1rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem 1rem; }
.contact .termin[hidden] { display: none; }
.contact legend { font-size: var(--fs-sm); font-weight: 650; padding: 0 .3rem; }
.contact .consent { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; line-height: 1.5; }
.contact .consent input { width: auto; margin-top: .25rem; accent-color: var(--petrol); }
.contact .send-row { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; }
.contact .small { font-size: var(--fs-xs); }
.contact .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact .notice { border-radius: var(--radius-sm); padding: .9rem 1rem; line-height: 1.5; }
.contact .notice.ok { background: var(--ok-bg); color: var(--ink); border: 1px solid var(--ok); }
.contact .notice.warn { background: var(--open-bg); color: var(--ink); border: 1px solid var(--open); }
.contact .notice .btn { margin: .4rem .3rem 0 0; }
.contact button[disabled] { opacity: .7; cursor: progress; }
@media (max-width: 640px) {
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact .termin { grid-template-columns: minmax(0, 1fr); }
}

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; font-size: var(--fs-sm); }
.footer-row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: flex-end; }
.footer-row p { margin: .6rem 0 0; }
.footer-nav { display: flex; gap: 1.2rem; }
.footer-nav a { color: var(--muted); }

/* legal pages */
.legal { padding: 3rem 0 4rem; max-width: 72ch; }
.legal h1 { margin-bottom: .4rem; }
.legal h2 { font-size: 1.15rem; margin: 2rem 0 .5rem; }
.legal p { margin: 0 0 .9rem; }
.legal mark.todo { background: var(--open-bg); color: var(--ink); border-radius: 4px; padding: 0 .3em; }
.placeholder { background: var(--open-bg); color: var(--ink); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* drawn product cards (markup in index.html, card styles in cards.css from marketing/assets/mockups.py) */
.draw { margin: 0; background: var(--tint); border-radius: var(--radius); padding: clamp(1rem, 3vw, 1.8rem); }
.draw .mk { font-size: clamp(13px, 1.25vw, 15.5px); max-width: 560px; margin: 0 auto; }
.hero-shot.draw { background: linear-gradient(135deg, var(--tint), var(--bg-soft)); }
.mk .swap { position: relative; display: inline-flex; }
.mk .swap .violet { position: absolute; right: 0; top: 0; }
.a-type, .a-wipe { display: inline-block; }

/* animations: hidden until the card plays; without JavaScript or with reduced motion the end state shows */
.js .anim:not(.play) :is(.a-in, .a-pop, .a-type, .a-wipe, .a-bar, .a-grow) { opacity: 0; }
.a-out { display: none; }
.js .anim .a-out { display: inline-block; }
.js .anim .swap .violet { opacity: 0; }
.anim.play .a-in { animation: aIn .55s cubic-bezier(.2, .8, .2, 1) var(--d, 0s) both; }
.anim.play .a-pop, .js .anim.play .swap .violet { animation: aPop .45s cubic-bezier(.2, .8, .2, 1) var(--d, 0s) both; }
.anim.play .a-type { animation: aType .4s steps(4) var(--d, 0s) both; }
.anim.play .a-wipe { animation: aType 1.3s cubic-bezier(.4, 0, .4, 1) var(--d, 0s) both; }
.anim.play .a-bar { transform-origin: bottom; animation: aBar .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0s) both; }
.anim.play .a-grow { transform-origin: top; animation: aBar .4s ease var(--d, 0s) both; }
.anim.play .a-fail { animation: aFail .35s ease var(--d, 0s) both; }
.anim.play .a-fail-dot { animation: aFailDot .3s ease var(--d, 0s) both; }
.anim.play .a-out { animation: aOut .25s ease var(--d, 0s) forwards; }
.hero-shot .dot.a-fail-dot { background: #C23B3B; }
@keyframes aIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes aPop { 0% { opacity: 0; transform: scale(.5); } 70% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: none; } }
@keyframes aType { from { opacity: 1; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes aBar { from { opacity: 1; transform: scaleY(0); } to { opacity: 1; transform: none; } }
@keyframes aFail { from { border-color: #DCE5E8; background-color: #fff; color: #0B2230; } }
@keyframes aFailDot { from { background: #1DB57A; } }
@keyframes aOut { to { opacity: 0; } }

/* date fields: the browser's calendar icon is barely visible on the dark form - use our own, in petrol */
.contact input[type="date"] { min-height: 2.75rem; }
.contact input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer; opacity: 1; width: 1.25rem; height: 1.25rem; padding: .15rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F6B7A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3Cpath d='M8 14h2M14 14h2M8 17h2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.contact input[type="date"]::-webkit-calendar-picker-indicator:hover { filter: brightness(1.15); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .contact input[type="date"]::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233FB3C4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3Cpath d='M8 14h2M14 14h2M8 17h2'/%3E%3C/svg%3E");
  }
}
