/* ixya.ch marketing site. One stylesheet, no framework. */

@font-face {
  font-family: "Instrument Sans";
  src: url("/static/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Ixya palette (approved 4 Dec 2026): alpine ink, coral as the only accent, mist, white. */
  --bg: #ffffff;
  --surface: #ffffff;
  --tint: #eef3f8;
  --ink: #1b2b4b;
  --ink-2: #47556f;
  --ink-3: #66738b;
  --line: #dce4ee;
  --accent: #ff5a4e;        /* coral: marks, dots, checks, borders */
  --accent-text: #c7362b;   /* coral dark enough for small text on white */
  --primary: #1b2b4b;       /* main buttons */
  --primary-hover: #0f1c36;
  --on-primary: #ffffff;
  --logo-body: #1b2b4b;
  --logo-paper: #ffffff;
  --green: #1f8a4c;
  --dark: #1b2b4b;
  --dark-ink: #f4f7fb;
  --dark-ink-2: #c2cce0;
  --dark-line: #2e4166;
  --dark-accent: #ff8a80;
  --bubble-visitor: #1b2b4b;
  --bubble-visitor-ink: #ffffff;
  --bubble-bot: #eef3f8;
  --shadow: 0 1px 2px rgb(27 43 75 / 0.05), 0 14px 34px -14px rgb(27 43 75 / 0.22);
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e182b;
    --surface: #15223a;
    --tint: #122036;
    --ink: #eef3f8;
    --ink-2: #b8c3d6;
    --ink-3: #8f9bb1;
    --line: #26354f;
    --accent: #ff5a4e;
    --accent-text: #ff8a80;
    --primary: #ff5a4e;
    --primary-hover: #ff7469;
    --on-primary: #1b2b4b;
    --logo-body: #ffffff;
    --logo-paper: #0e182b;
    --green: #3fb873;
    --dark: #0a1222;
    --dark-line: #22314b;
    --bubble-visitor: #eef3f8;
    --bubble-visitor-ink: #1b2b4b;
    --bubble-bot: #1d2c47;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -16px rgb(0 0 0 / 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 650; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 620; }
h3 { font-size: 1.08rem; font-weight: 620; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 760px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-3); }
.note { color: var(--ink-3); font-size: 0.93rem; text-align: center; margin-top: 28px; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 560; color: var(--ink-2);
  margin-bottom: 20px;
}
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.kicker--light { color: var(--dark-accent); font-weight: 620; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  font: inherit; font-weight: 580; font-size: 0.98rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--ink-3); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 0.92rem; }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.actions--center { justify-content: center; }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { flex: none; }
.brand__logo { display: block; height: 34px; width: auto; }
.logo-body { fill: var(--logo-body); stroke: var(--logo-body); }
.logo-paper { fill: var(--logo-paper); stroke: var(--logo-paper); }
.logo-eyes { stroke: var(--logo-paper); }
.logo-word { stroke: var(--logo-body); }
.logo-accent { stroke: var(--accent); }
.logo-dot { fill: var(--accent); }
.brand__name { font-weight: 680; font-size: 1.25rem; letter-spacing: -0.02em; }
.mainnav { display: flex; gap: 22px; margin-left: 12px; }
.mainnav a { text-decoration: none; color: var(--ink-2); font-size: 0.95rem; font-weight: 520; }
.mainnav a:hover { color: var(--ink); }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.langs { display: flex; gap: 2px; }
.langs a {
  text-decoration: none; font-size: 0.82rem; font-weight: 600; color: var(--ink-3);
  padding: 6px 7px; border-radius: 6px; min-width: 32px; text-align: center;
}
.langs a:hover { color: var(--ink); }
.langs a[aria-current] { color: var(--ink); background: var(--tint); }

@media (max-width: 900px) { .mainnav { display: none; } }
@media (max-width: 420px) {
  .topbar__actions { gap: 6px; }
  .langs a { min-width: 28px; padding: 6px 4px; }
  .topbar .btn--sm { padding: 0 11px; }
}

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 40px; }
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero h1 { margin-bottom: 22px; }
@media (max-width: 900px) { .hero__inner { grid-template-columns: minmax(0, 1fr); } }

/* Chat mock */
.chat {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
  max-width: 440px; width: 100%; justify-self: end;
}
@media (max-width: 900px) { .chat { justify-self: start; } }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chat__head .brand__mark { width: 36px; height: 36px; padding: 3px; border-radius: 10px; background: var(--tint); }
.chat__name { font-weight: 620; font-size: 0.97rem; }
.chat__status { font-size: 0.8rem; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.online { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.chat__log { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 0.94rem; line-height: 1.45; }
.msg--visitor { align-self: flex-end; background: var(--bubble-visitor); color: var(--bubble-visitor-ink); border-bottom-right-radius: 5px; }
.msg--bot { align-self: flex-start; background: var(--bubble-bot); border-bottom-left-radius: 5px; }
.msg__source svg { color: var(--accent); }
.msg__source {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: 0.78rem; font-weight: 560; color: var(--ink-2);
  border-top: 1px solid var(--line); padding-top: 7px; width: 100%;
}
.chat__input {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 18px 18px; padding: 10px 10px 10px 16px; border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink-3); font-size: 0.9rem;
}
.chat__send { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); flex: none; position: relative; }
.chat__send::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 8px; height: 8px;
  border-top: 2px solid var(--on-primary); border-right: 2px solid var(--on-primary); transform: translate(-1px, 1px) rotate(45deg);
}

/* Trust strip */
.trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px;
  margin-top: clamp(48px, 7vw, 80px); padding: 22px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.trust li { display: inline-flex; align-items: center; gap: 8px; font-weight: 540; color: var(--ink-2); font-size: 0.96rem; }
.trust svg { color: var(--accent); flex: none; }
@media (max-width: 560px) {
  .trust { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: start; gap: 10px; }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tint { background: var(--tint); }
.section__head { text-align: center; margin: 0 auto clamp(36px, 5vw, 56px); max-width: 720px; }
.section__head .lead { margin: 16px auto 0; }
.section__head--left { text-align: left; margin-left: 0; }
.section__head--left .lead { margin-left: 0; }

/* Steps: three columns joined by a line, no numbers */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; position: relative; }
.step { position: relative; padding-top: 30px; }
.step::before {
  content: ""; position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.step::after {
  content: ""; position: absolute; top: 6px; left: 22px; right: -20px; height: 2px; background: var(--line);
}
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 8px; font-size: 1.2rem; }
.step p { color: var(--ink-2); }
@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step { padding: 0 0 28px 34px; }
  .step::after { top: 20px; left: 6px; right: auto; bottom: 0; width: 2px; height: auto; }
}

/* Product tour */
.tour { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
.feature dt { font-weight: 640; margin-bottom: 4px; }
.feature dd { color: var(--ink-2); font-size: 0.96rem; }
@media (max-width: 960px) { .tour { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }

.admin {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
  position: sticky; top: 96px;
}
@media (max-width: 960px) { .admin { position: static; } }
.admin__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.admin__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.admin__bar em { font-style: normal; font-size: 0.78rem; color: var(--ink-3); margin-left: 10px; }
.admin__body { display: grid; grid-template-columns: 180px minmax(0, 1fr); min-height: 360px; }
.admin__menu { border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.admin__menu li { padding: 8px 10px; border-radius: 8px; font-size: 0.88rem; color: var(--ink-2); }
.admin__menu li.is-active { background: var(--tint); color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.admin__main { padding: 18px 20px; }
.admin__agent { font-size: 0.78rem; color: var(--ink-3); margin-bottom: 4px; }
.admin__title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.admin__title p { font-weight: 640; font-size: 1.05rem; }
.admin__add { font-size: 0.8rem; font-weight: 600; color: var(--on-primary); background: var(--primary); padding: 5px 10px; border-radius: 999px; }
.admin__rows li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; font-size: 0.9rem;
}
.admin__rows small { color: var(--ink-3); font-size: 0.75rem; white-space: nowrap; }
.admin__note { font-size: 0.8rem; color: var(--ink-3); margin-top: 12px; }
@media (max-width: 520px) {
  .admin__body { grid-template-columns: minmax(0, 1fr); }
  .admin__menu { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .admin__menu li { white-space: nowrap; }
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 0.96rem; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* Split layouts */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split h2 { margin-bottom: 18px; }
.split .lead + .muted { margin-top: 18px; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

.section--dark { background: var(--dark); color: var(--dark-ink); }
.section--dark .lead { color: var(--dark-ink-2); }
.section--dark .muted { color: var(--dark-ink-2); }
.checklist { display: flex; flex-direction: column; gap: 2px; }
.checklist li {
  position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--dark-line);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 19px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent);
}
.checklist li::after {
  content: ""; position: absolute; left: 7px; top: 22px; width: 5px; height: 8px;
  border: solid var(--dark); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.facts dt { font-size: 0.8rem; color: var(--ink-3); font-weight: 560; margin-bottom: 4px; }
.facts dd { font-weight: 620; }
@media (max-width: 400px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px;
}
.plan--featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan__head h3 { font-size: 1.25rem; }
.badge { font-size: 0.75rem; font-weight: 620; color: var(--accent-text); background: color-mix(in srgb, var(--accent) 13%, transparent); padding: 4px 10px; border-radius: 999px; }
.plan__for { color: var(--ink-3); font-size: 0.94rem; margin-top: 4px; }
.plan__price { margin: 22px 0; display: flex; align-items: baseline; gap: 6px; }
.plan__price strong { font-size: 2.6rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1; }
.plan__cur, .plan__per { color: var(--ink-3); font-size: 0.95rem; }
.plan__items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; flex: 1; }
.plan__items li { position: relative; padding-left: 24px; font-size: 0.96rem; }
.plan__items li::before {
  content: ""; position: absolute; left: 3px; top: 6px; width: 5px; height: 9px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
@media (max-width: 860px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin: 0 auto; } }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative;
  font-weight: 600; font-size: 1.04rem;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; position: absolute; right: 6px; top: 24px; width: 9px; height: 9px;
  border: solid var(--ink-3); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.2s;
}
.faq__list details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq__list details p { padding: 0 0 20px; color: var(--ink-2); max-width: 62ch; }
@media (prefers-reduced-motion: reduce) { .faq__list summary::after { transition: none; } }

/* Final call to action */
.section--cta { padding-top: 24px; }
.cta {
  text-align: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: 28px; padding: clamp(40px, 7vw, 80px) var(--gutter);
}
.cta .lead { margin: 16px auto 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; justify-content: space-between; }
.footer__brand p { color: var(--ink-3); font-size: 0.92rem; margin-top: 8px; }
.footer__brand .footer__endorse { margin-top: 2px; font-weight: 560; color: var(--ink-2); }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer__links a { color: var(--ink-2); text-decoration: none; font-size: 0.94rem; }
.footer__links a:hover { color: var(--ink); text-decoration: underline; }
.footer__copy { width: 100%; color: var(--ink-3); font-size: 0.85rem; }

/* Legal page */
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.legal p { color: var(--ink-2); margin-bottom: 12px; }
.legal .btn { margin-top: 28px; }

/* 404 */
.notfound { min-height: 100vh; display: flex; align-items: center; padding: 48px 0; }
.notfound__code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 680; letter-spacing: -0.05em; color: var(--accent); line-height: 1; margin: 32px 0 24px; }
.notfound__lang { padding: 16px 0; border-top: 1px solid var(--line); }
.notfound__lang h1 { font-size: 1.3rem; margin-bottom: 4px; }
.notfound__lang p { color: var(--ink-2); }

.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;
}
