/* Ixoro - shared styles */

/* fonts - self-hosted (SIL Open Font License), no requests to third parties */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  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: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
  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;
}


:root {
  --ink: #0B1220;
  --muted: #4A5468;
  --muted-dark: #B4BCCB;
  --line: #E2E5EB;
  --line-strong: #C9CED8;
  --surface: #F3F4F7;
  --white: #FFFFFF;
  --chip: #D5D9E2;

  /* group accent (blue) */
  --accent: #3346FF;
  --accent-text: #2B3BE0;
  --accent-hover: #1A27B0;
  --on-accent: #FFFFFF;

  /* company tones */
  --ops: #0F7C72;
  --ops-text: #0F7C72;
  --sales: #F2B705;
  --sales-text: #7A5600;
  --mind: #7537D6;
  --mind-text: #7537D6;
  --shield: #B4234A;
  --shield-text: #B4234A;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --radius-s: 10px;
  --radius-m: 12px;
  --radius-l: 18px;
  --radius-xl: 20px;
  --container: 1200px;
}

/* company themes - set on <body> */
.theme-ops    { --accent: var(--ops);    --accent-text: var(--ops-text);    --accent-hover: #0A5E56; --on-accent: #FFFFFF; }
.theme-sales  { --accent: var(--sales);  --accent-text: var(--sales-text);  --accent-hover: #5C4100; --on-accent: var(--ink); }
.theme-mind   { --accent: var(--mind);   --accent-text: var(--mind-text);   --accent-hover: #5A28A8; --on-accent: #FFFFFF; }
.theme-shield { --accent: var(--shield); --accent-text: var(--shield-text); --accent-hover: #8A1A38; --on-accent: #FFFFFF; }

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; margin: 0; }
p { margin: 0; }
.container { max-width: var(--container); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.brand-sub { font-weight: 500; color: var(--muted); }
.nav-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.nav-menu a { color: var(--ink); text-decoration: none; }
.nav-menu a:hover { color: var(--accent-text); }
.nav-menu .nav-back { color: var(--muted); }
.nav-menu .btn-dark, .nav-menu .btn-dark:hover { color: var(--white); }
.nav-menu [aria-current="page"] { font-weight: 600; color: var(--accent-text); }
.lang { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.lang a, .lang span { padding: 6px 8px; }
.lang a { color: var(--muted) !important; }
.lang .lang-active { font-weight: 600; color: var(--ink); }
.lang .sep { color: #8A93A6; padding: 0; }
.nav-toggle {
  display: none; font: inherit; font-weight: 600; font-size: 15px;
  background: var(--white); color: var(--ink); border: 1px solid var(--line-strong);
  border-radius: var(--radius-s); padding: 10px 14px; min-height: 44px; cursor: pointer;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 15px 24px; border-radius: var(--radius-m); font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--white); }
.theme-sales .btn-primary:hover { background: #D9A300; color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: var(--radius-s); font-size: 15px; }
.btn-dark:hover { background: #1E2840; color: var(--white); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost-dark { background: transparent; color: var(--white); border-color: var(--muted); }
.btn-ghost-dark:hover { border-color: var(--white); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* glyph (logo squares) */
.glyph rect { fill: var(--chip); }
.glyph-brand rect { fill: var(--ink); }
.glyph rect.on, .glyph-brand rect.on { fill: var(--accent); }
.glyph .on-ops { fill: var(--ops); }
.glyph .on-sales { fill: var(--sales); }
.glyph .on-mind { fill: var(--mind); }
.glyph .on-shield { fill: var(--shield); }

/* hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 88px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.hero h1 { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -0.03em; }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 600px; }

.demo { flex: 1 1 420px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.demo-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-head); font-weight: 600; }
.badge { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.demo-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.demo-item strong { display: block; font-size: 15px; }
.demo-item span { font-size: 14px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 7px; flex: none; }
.dot-wait { background: #E8A33D; }

.for-box { flex: 1 1 360px; min-width: 0; background: var(--ink); color: var(--white); border-radius: var(--radius-xl); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.for-box .label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-dark); }
.for-box .big { font-family: var(--font-head); font-weight: 600; font-size: 24px; line-height: 1.3; }
.for-box .small { font-size: 16px; line-height: 1.6; color: var(--muted-dark); }

/* sections */
.section { padding-top: 96px; padding-bottom: 96px; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--ink); color: var(--white); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 48px; }
.section-head h2, .h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.section-head p { font-size: 18px; line-height: 1.6; color: var(--muted); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-wide-gap { gap: 32px; }

/* company cards */
.company-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: var(--radius-l); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.company-card h3 { font-size: 24px; }
.company-card .what { font-size: 16px; font-weight: 500; }
.company-card ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.company-card .more { margin-top: auto; font-weight: 600; font-size: 15px; text-decoration: none; padding: 10px 0; color: var(--ct); }
.company-card .more:hover { text-decoration: underline; color: var(--ct); }
.card-ops    { --c: var(--ops);    --ct: var(--ops-text); }
.card-sales  { --c: var(--sales);  --ct: var(--sales-text); }
.card-mind   { --c: var(--mind);   --ct: var(--mind-text); }
.card-shield { --c: var(--shield); --ct: var(--shield-text); }

/* use-case cards */
.case { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.case h3 { font-size: 21px; }
.case p { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* steps */
.step { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--ink); padding-top: 20px; }
.step-no { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--accent-text); }
.step h3 { font-size: 22px; }
.step p { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* why (dark) */
.why h3 { font-size: 20px; margin-bottom: 10px; }
.why p { font-size: 16px; line-height: 1.6; color: var(--muted-dark); }

/* chips */
.chips-wrap { padding-bottom: 88px; display: flex; flex-direction: column; gap: 24px; }
.chips-wrap h2 { font-size: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { background: var(--white); border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 16px; font-size: 15px; font-weight: 500; }

/* contact */
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-copy p { font-size: 18px; line-height: 1.6; color: var(--muted); }
.contact-lines { display: flex; flex-direction: column; gap: 6px; font-size: 16px; margin-top: 8px; }
.contact-lines a { font-weight: 600; text-decoration: none; }
.contact-lines span { color: var(--muted); }
.form { flex: 1 1 420px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--white); color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B42318; }
.field-error { font-size: 14px; color: #B42318; min-height: 0; }
.form-status { font-size: 15px; font-weight: 500; }
.form-status.ok { color: #0F7C46; }
.form-status.err { color: #B42318; }

/* CTA band (subpages) */
.cta-band { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; align-items: flex-start; }
.cta-band-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.cta-band-copy p { font-size: 18px; line-height: 1.6; color: var(--muted-dark); }
.company-box { flex: 0 1 340px; min-width: 0; border: 1px solid #2A3348; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.6; color: var(--muted-dark); }
.company-box strong { color: var(--white); font-size: 16px; }

/* footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-companies { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; font-size: 14px; line-height: 1.6; color: var(--muted); padding-top: 56px; padding-bottom: 40px; }
.footer-companies div { display: flex; flex-direction: column; gap: 4px; }
.footer-companies a { font-weight: 600; color: var(--ink); text-decoration: none; }
.footer-companies a:hover { color: var(--accent-text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); padding-top: 24px; padding-bottom: 28px; border-top: 1px solid var(--line); }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a { color: var(--muted); }

/* mobile */
@media (max-width: 860px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-menu { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 0 4px; }
  .nav-menu.is-open { display: flex; }
  .nav-menu > a, .nav-menu > span { padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
  .nav-menu .btn-dark { width: 100%; margin-top: 8px; }
  .hero { padding-top: 56px; padding-bottom: 56px; gap: 40px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .form { padding: 24px; }
}

/* form note */
.form-note { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* footer extras */
.link-button { font: inherit; font-size: 14px; color: var(--muted); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--ink); }

/* legal pages */
.legal { padding-top: 72px; padding-bottom: 96px; max-width: 800px; }
.legal h1 { font-size: clamp(34px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 12px; }
.legal .updated { color: var(--muted); font-size: 15px; margin-bottom: 40px; }
.legal h2 { font-size: 24px; line-height: 1.25; margin: 48px 0 14px; }
.legal h3 { font-size: 18px; margin: 28px 0 10px; }
.legal p, .legal li { font-size: 17px; line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 12px 0; }
.legal li + li { margin-top: 6px; }
.legal .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px 24px; margin-top: 12px; }
.table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius-m); }
.legal table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 15px; line-height: 1.5; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--surface); font-weight: 600; }
.legal tr:last-child td { border-bottom: 0; }

/* cookie banner */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  max-width: 720px; margin: 0 auto; background: var(--white); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-l);
  box-shadow: 0 12px 40px rgba(11, 18, 32, 0.18); padding: 24px;
  display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 32px); overflow-y: auto;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 20px; }
.cookie-banner p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.cookie-options { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.cookie-options[hidden] { display: none; }
.cookie-option { display: flex; gap: 12px; align-items: flex-start; }
.cookie-option input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.cookie-option label { font-weight: 600; font-size: 15px; }
.cookie-option span { display: block; font-weight: 400; font-size: 14px; color: var(--muted); line-height: 1.5; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { padding: 12px 18px; font-size: 15px; }
@media (max-width: 560px) { .cookie-actions .btn { flex: 1 1 100%; } }

/* lists rendered from texts.js */
.demo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
