/* Ovysion Technologies — site stylesheet */

@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-400-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-700.woff") format("woff"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-400.woff") format("woff"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-700.woff") format("woff"); font-weight: 600 700; font-style: normal; font-display: swap; }

:root {
  --ink: #0F1A2A;
  --text: #3E4A5C;
  --muted: #4A5568;
  --quiet: #5A6578;
  --line: #D5DAE1;
  --ground: #F6F7F9;
  --white: #FFFFFF;
  --accent: #B8430F;
  --accent-dark: #943509;
  --blue: #133A6B;
  --peach: #FFB48A;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 2000; background: var(--ink); color: var(--white); padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--white); }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.stack { display: flex; flex-direction: column; }

/* Type */
.eyebrow { font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
.h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.h3 { font-size: 24px; font-weight: 700; }
.lead { font-size: 19px; color: var(--text); max-width: 580px; }
.intro { font-size: 18px; color: var(--text); }
.muted { color: var(--text); }
.small { font-size: 15px; color: var(--muted); }
.mono { font-family: var(--mono); }
.tag { font-family: var(--mono); font-size: 13px; color: var(--quiet); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 13px 22px; font-family: var(--sans); font-size: 16px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #24344D; color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: #E6EAF0; color: var(--ink); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--ground); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { display: inline-block; width: 28px; height: 28px; border: 2px solid var(--accent); }
.brand-name { font-family: var(--mono); font-weight: 500; font-size: 17px; letter-spacing: 0.02em; color: var(--ink); }
.main-nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; }
.main-nav a { text-decoration: none; padding: 6px 0; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle { display: inline-flex; border: 1.5px solid var(--ink); }
.lang-toggle a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px; padding: 0 10px; font-family: var(--mono); font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink); }
.lang-toggle a[aria-current="true"] { background: var(--ink); color: var(--white); }
.lang-toggle a:not([aria-current="true"]):hover { background: #E6EAF0; color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 64px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.bp { background-color: var(--blue); background-image: linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px); background-size: 32px 32px; color: var(--white); }
.bp-card { padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.bp-card-top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 13px; color: #C9D6EA; }
.bp-card-title { font-size: 24px; font-weight: 600; line-height: 1.25; }
.bp-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,0.3); }
.bp-list li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.3); }
.bp-list .num { font-family: var(--mono); color: var(--peach); }
.bp-note { font-size: 15px; color: #C9D6EA; }

/* Bands */
.band { padding-top: 96px; padding-bottom: 96px; }
.band-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-inner { display: flex; flex-direction: column; gap: 48px; }

/* Grids */
.grid { display: grid; gap: 32px; }
.g-240 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.g-260 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.g-270 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 24px; }
.g-320 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 64px; }
.tight { gap: 20px; }

.topline { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--ink); padding-top: 20px; }
.topline h3 { font-size: 20px; }

.card { background: var(--white); border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 22px; }
.card-price { font-family: var(--mono); font-size: 15px; font-weight: 500; margin-top: auto; padding-top: 6px; }

.panel { background: var(--ground); border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.panel h4 { font-size: 17px; margin-bottom: 6px; }

/* Process (blue band) */
.process-step { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid rgba(255,255,255,0.4); padding-top: 22px; }
.process-step .num { font-family: var(--mono); font-size: 32px; color: var(--peach); }
.process-step h3 { font-size: 21px; }
.process-step p { color: #DCE5F2; }
.bp .eyebrow { color: var(--peach); }

.why h3 { font-size: 18px; margin-bottom: 8px; }

/* Pricing */
.price-step { border: 1px solid var(--line); background: var(--white); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.price-step.is-first, .care-card.is-featured { border: 2px solid var(--accent); }
.price-step h3 { font-size: 20px; }
.price-big { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.price-big .per { font-size: 16px; font-weight: 500; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table.data { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 16px; }
table.data th { text-align: left; padding: 14px 16px; font-size: 14px; font-weight: 600; border-bottom: 2px solid var(--ink); white-space: nowrap; }
table.data td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data td.num { font-family: var(--mono); white-space: nowrap; }
table.data .desc { display: block; color: var(--muted); font-size: 14px; }
.care-card { border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.care-card h4 { font-size: 18px; }
.care-meta { font-family: var(--mono); font-size: 14px; color: var(--text); }
.price-foot { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 28px; }
.price-foot p { max-width: 760px; }

/* Founding */
.founding { background: var(--ink); color: var(--white); padding: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; align-items: center; }
.founding .eyebrow { color: var(--peach); text-transform: none; letter-spacing: 0.04em; }
.founding h2 { font-size: clamp(26px, 3vw, 34px); }
.founding p { color: #C9D3E0; }
.founding-wrap { padding-top: 88px; }

/* About */
.about-text { display: flex; flex-direction: column; gap: 18px; color: var(--text); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 48px 56px; align-items: start; }
.faq-group h3 { font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--quiet); padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.faq-group details { border-bottom: 1px solid var(--line); }
.faq-group summary { cursor: pointer; padding: 18px 28px 18px 0; font-weight: 600; font-size: 17px; list-style: none; position: relative; min-height: 44px; }
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--mono); font-size: 20px; color: var(--accent); }
.faq-group details[open] summary::after { content: "−"; }
.faq-group details p { padding: 0 0 20px; color: var(--text); max-width: 760px; }

/* Contact form */
.contact-form { background: var(--white); border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field textarea { font: inherit; font-size: 16px; padding: 12px; border: 1px solid #8A96A8; background: var(--white); color: var(--ink); min-height: 44px; }
.field textarea { resize: vertical; min-height: 120px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 14px 16px; border: 1px solid; font-size: 15px; }
.form-msg.is-error { border-color: #B42318; background: #FEF3F2; color: #7A1A12; }
.form-note { font-size: 14px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.site-footer a { color: var(--muted); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* Legal & simple pages */
.legal-main { max-width: 860px; margin: 0 auto; padding: 72px 24px 96px; display: flex; flex-direction: column; gap: 40px; line-height: 1.6; }
.toc { background: var(--white); border: 1px solid var(--line); padding: 24px 28px; }
.toc-title { font-weight: 600; margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 8px 32px; }
.legal-section { display: flex; flex-direction: column; gap: 16px; padding-top: 40px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.legal-section h2 { font-size: clamp(26px, 3vw, 34px); }
.legal-section h3 { font-size: 19px; margin-top: 8px; }
.legal-section p, .legal-section li { color: #2E3A4C; }
.legal-section ul, .legal-section ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-section .num-label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--accent); }
.legal-section table.data { min-width: 0; font-size: 15px; }
.legal-section table.data:has(th:nth-child(3)) { min-width: 600px; }
.simple-main { max-width: 760px; margin: 0 auto; padding: 120px 24px; display: flex; flex-direction: column; gap: 24px; }

/* Chat assistant */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 1000; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-launcher { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; background: var(--ink); color: var(--white); border: 0; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 18px rgba(15,26,42,0.25); }
.chat-launcher:hover { background: #24344D; }
.chat-launcher svg { flex-shrink: 0; }
.chat-panel { width: min(380px, calc(100vw - 40px)); height: min(560px, calc(100vh - 120px)); background: var(--white); border: 1px solid #C3CAD4; box-shadow: 0 12px 32px rgba(15,26,42,0.18); display: flex; flex-direction: column; }
.chat-panel[hidden] { display: none; }
.chat-head { background: var(--ink); color: var(--white); padding: 14px 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.chat-title { font-weight: 600; font-size: 16px; }
.chat-sub { display: block; font-family: var(--mono); font-size: 12px; color: #C9D3E0; margin-top: 2px; }
.chat-close { background: transparent; border: 1px solid rgba(255,255,255,0.4); color: var(--white); width: 44px; height: 44px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-log { flex-grow: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--ground); }
.msg { max-width: 88%; padding: 10px 14px; font-size: 15px; line-height: 1.45; white-space: pre-line; }
.msg-bot { align-self: flex-start; background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.msg-user { align-self: flex-end; background: var(--ink); color: var(--white); }
.chat-chips { padding: 10px 12px 0; display: flex; gap: 8px; overflow-x: auto; border-top: 1px solid var(--line); }
.chat-chip { flex-shrink: 0; font: inherit; font-size: 13px; background: var(--white); border: 1px solid #8A96A8; color: var(--ink); padding: 8px 12px; min-height: 36px; cursor: pointer; white-space: nowrap; }
.chat-chip:hover { border-color: var(--ink); }
.chat-form { padding: 12px; display: flex; gap: 8px; align-items: center; }
.chat-form input { flex-grow: 1; min-width: 0; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #8A96A8; min-height: 44px; }
.chat-form button { font: inherit; font-weight: 600; background: var(--accent); color: var(--white); border: 0; padding: 0 16px; min-height: 44px; cursor: pointer; }
.chat-form button:hover { background: var(--accent-dark); }

/* Small screens */
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 84px; }
  .site-header .wrap { gap: 12px; }
  .main-nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 20px; padding-bottom: 4px; }
  .main-nav a { white-space: nowrap; }
  .header-cta { display: none; }
  .hero { padding-top: 56px; padding-bottom: 56px; gap: 40px; }
  .band { padding-top: 64px; padding-bottom: 64px; }
  .bp-card, .card, .contact-form, .panel { padding: 24px; }
  .founding { padding: 28px; }
  .chat { right: 12px; bottom: 12px; }
  .chat-panel { width: calc(100vw - 24px); height: min(560px, calc(100vh - 96px)); }
  .legal-main { padding-top: 48px; }
}

/* Additions */
.plain-list { list-style: none; margin: 0; padding: 0; }
table.data tbody th { text-align: left; font-weight: 400; font-size: 16px; white-space: normal; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.chat-head, .chat-chips, .chat-form { flex-shrink: 0; }
.chat-chips { padding-bottom: 2px; }
.chat-log { min-height: 0; }

/* Manifesto */
.text-link { font-weight: 600; color: var(--accent); text-underline-offset: 3px; }
.text-link:hover { color: var(--accent-dark); }
.manifesto-main { max-width: 860px; margin: 0 auto; padding: 88px 24px 104px; display: flex; flex-direction: column; gap: 56px; }
.manifesto-head { gap: 18px; }
.manifesto-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.thesis { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; row-gap: 10px; padding: 32px 0; border-top: 1px solid var(--line); }
.thesis:last-child { border-bottom: 1px solid var(--line); }
.thesis .num-label { grid-row: span 2; font-family: var(--mono); font-size: 15px; letter-spacing: 0.08em; color: var(--accent); padding-top: 6px; }
.thesis h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.01em; }
.thesis p { color: var(--text); font-size: 18px; max-width: 640px; }
.manifesto-close { background: var(--ink); color: var(--white); padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.manifesto-close .intro { color: #D5DAE1; }
.manifesto-close .btn-outline { color: var(--white); border-color: var(--white); }
.manifesto-close .btn-outline:hover { background: var(--white); color: var(--ink); }
.contact-form button[disabled] { opacity: 0.7; cursor: wait; }
@media (max-width: 760px) {
  .manifesto-main { padding-top: 48px; gap: 40px; }
  .thesis { grid-template-columns: 1fr; }
  .thesis .num-label { grid-row: auto; padding-top: 0; }
  .manifesto-close { padding: 28px; }
}

/* Contact page */
.contact-page { padding-top: 88px; }
.next-title { margin-top: 12px; }
.next-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 16px; }
.next-steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; }
.next-steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font-family: var(--mono); font-size: 14px; color: var(--accent); padding-top: 2px; }
.next-steps strong { color: var(--ink); }
.next-steps span { color: var(--text); }
@media (max-width: 760px) { .contact-page { padding-top: 48px; } }
