/* OPERVIA site — mobile first, system fonts (no third-party requests) */
:root {
  --navy: #101C2C; --teal: #159B85; --teal-dark: #0F7A69;
  --bg: #FFFFFF; --surface: #F5F7F9; --line: #E2E7ED; --text: #1F2A37; --muted: #5B6775;
  --radius: 10px; --max: 1080px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text); background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; font-size: 16px; background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
h1, h2, h3 { color: var(--navy); line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0 0 .5rem; }
h2 { font-size: 1.45rem; margin: 2.2rem 0 .8rem; }
h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 6px 10px; z-index: 10; }

/* header */
.site-header { background: var(--navy); color: #fff; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { color: #fff; font-weight: 800; letter-spacing: .08em; text-decoration: none; font-size: 1.15rem; }
.brand span { color: var(--teal); }
.nav { display: flex; gap: 4px 16px; flex-wrap: wrap; order: 3; width: 100%; }
.nav a { color: #D6DEE8; text-decoration: none; font-size: .95rem; padding: 4px 0; }
.nav a[aria-current="page"], .nav a:hover { color: #fff; box-shadow: inset 0 -2px 0 var(--teal); }
.lang { margin-left: auto; color: #fff; border: 1px solid #3A4A60; border-radius: 999px; padding: 3px 12px; font-size: .85rem; text-decoration: none; }
.lang:hover { border-color: var(--teal); }
@media (min-width: 760px) { .nav { order: 0; width: auto; } }

/* hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, #17304A 100%); color: #fff; padding: 48px 0 56px; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p { color: #D6DEE8; font-size: 1.1rem; max-width: 60ch; }
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 32px 0 24px; }
.page-head p { color: var(--muted); margin: 0; max-width: 70ch; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 2px solid var(--teal); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-ghost { color: var(--teal-dark); background: transparent; }
.hero .btn-ghost { color: #fff; }
.btn[aria-disabled="true"] { background: var(--surface); color: var(--muted); border-color: var(--line); cursor: not-allowed; }

/* grids and cards */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card.accent { border-top: 4px solid var(--teal); }
.card p { margin: .3rem 0 0; color: var(--muted); }
.product-card { display: grid; gap: 16px; }
@media (min-width: 820px) { .product-card { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.price { font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.code { font-size: .8rem; color: var(--muted); letter-spacing: .05em; }
.soon { list-style: none; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.soon li { background: var(--surface); border-radius: 8px; padding: 10px 14px; }
.soon small { color: var(--muted); display: block; }

/* content */
.section { padding-top: 8px; padding-bottom: 32px; }
.checks { padding-left: 0; list-style: none; }
.checks li { padding-left: 28px; position: relative; margin: 6px 0; }
.checks li::before { content: "✓"; position: absolute; left: 4px; color: var(--teal); font-weight: 800; }
figure { margin: 0; }
figure img { border: 1px solid var(--line); border-radius: var(--radius); }
figcaption { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 480px; background: #fff; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
thead th { background: var(--navy); color: #fff; }
details { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin: 8px 0; background: #fff; }
summary { font-weight: 600; cursor: pointer; color: var(--navy); }
.note { color: var(--muted); font-size: .9rem; }
.buybox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

/* footer */
.site-footer { background: var(--navy); color: #AAB6C4; margin-top: 48px; padding: 28px 0; font-size: .9rem; }
.site-footer a { color: #D6DEE8; margin-right: 16px; }
.site-footer .slogan { color: var(--teal); font-weight: 700; }

/* language chooser */
.chooser { min-height: 100vh; display: grid; place-items: center; background: var(--navy); color: #fff; text-align: center; padding: 16px; }
.chooser h1 { color: #fff; }
