/* INTE SYSTEMS: shared stylesheet for inte.systems and inte.support */

:root {
  --white: #FFFFFF;
  --black: #0A0A0A;
  --blue: #2B50FF;
  --blue-hover: #1F3FD9;
  --blue-light: #6F8BFF;
  --panel: #F3F3F0;
  --muted: #55554F;
  --muted-on-black: #C4C4BE;
  --faint-on-black: #A8A8A2;
  --card-on-black: #161615;
  --line-on-black: #2E2E2B;
  --line: #DCDCD6;
  --input-border: #8A8A84;
  --error: #B3261E;

  --font-head: 'Sora', sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;

  /* Radius rule: interactive = pill, inputs = 14, cards = 24, panels = 28, feature panels = 36 */
  --r-pill: 999px;
  --r-input: 14px;
  --r-card: 24px;
  --r-panel: 28px;
  --r-panel-lg: 36px;

  --max: 1240px;
  --gutter: 24px;
  --section-gap: 96px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--black);
  background: var(--white);
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p, ul, dl { margin: 0; }
img { display: block; max-width: 100%; }

a { color: var(--blue); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.on-dark :focus-visible, .on-blue:focus-visible { outline-color: var(--white); }

[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--black); color: var(--white);
  padding: 12px 20px; border-radius: var(--r-pill); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--white); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Layout */

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-top: var(--section-gap); }
.section--last { padding-bottom: var(--section-gap); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.row > * { min-width: 0; }
.row--tight { gap: 12px; }

/* Type */

.h1, .h2, .h3 { font-family: var(--font-head); font-weight: 600; }
.h1 { font-size: clamp(42px, 5vw, 66px); line-height: 0.98; letter-spacing: -0.045em; text-wrap: balance; }
.h1--support { max-width: 13em; }
.h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1; letter-spacing: -0.04em; }
.h2--md { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.02; text-wrap: balance; }
.h2--sm { font-size: clamp(26px, 3vw, 36px); line-height: 1.05; }
.h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.03em; }
.h3--lg { font-size: 30px; }
.lede { font-size: 20px; color: var(--muted-on-black); max-width: 32em; }
.lede--wide { max-width: 34em; }

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  min-height: 48px; padding: 11px 22px;
  border: 1.5px solid transparent; border-radius: var(--r-pill);
  transition: transform 160ms var(--ease-out), background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--lg { padding: 14px 28px; }
.btn--dark { background: var(--black); color: var(--white); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--outline { border-color: var(--black); color: var(--black); background: transparent; }
.btn--outline-light { border-color: #6B6B66; color: var(--white); background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn--dark:hover { background: var(--blue); color: var(--white); }
  .btn--blue:hover { background: var(--blue-hover); color: var(--white); }
  .btn--outline:hover { background: var(--black); color: var(--white); }
  .btn--outline-light:hover { border-color: var(--white); color: var(--white); }
}
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn--start { align-self: flex-start; }

/* Header */

.site-header {
  padding-block: 20px;
  display: flex; flex-wrap: wrap; gap: 16px 32px;
  align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--black); text-decoration: none; font-weight: 600; }
.brand img { height: 48px; width: auto; }
.brand__tag { background: var(--panel); border-radius: var(--r-pill); padding: 6px 14px; font-size: 15px; }
.nav-pill {
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
  font-weight: 500; font-size: 16px;
  background: var(--panel); border-radius: 28px; padding: 6px;
}
.nav-pill a {
  color: var(--black); text-decoration: none; padding: 10px 18px; border-radius: var(--r-pill);
  transition: background-color 150ms ease;
}
.header-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.header-link { color: var(--black); text-decoration: none; font-weight: 500; padding: 12px 16px; }
@media (hover: hover) and (pointer: fine) {
  .nav-pill a:hover { background: var(--white); color: var(--black); }
  .header-link:hover { color: var(--blue); }
}

/* Hero */

.hero-wrap { padding-top: 8px; }
.hero {
  background: var(--black); color: var(--white);
  border-radius: var(--r-panel-lg);
  padding: clamp(28px, 5vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center;
}
.hero__copy { gap: 28px; }
.hero--support { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: clamp(28px, 5vw, 64px); }
.hero__head { gap: 16px; }

.eyebrow {
  align-self: flex-start; display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500; color: #D6D6D0;
  border: 1px solid #3A3A36; border-radius: var(--r-pill); padding: 8px 16px;
}
.eyebrow::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-light); }

.ticket {
  gap: 18px;
  background: var(--card-on-black); border: 1px solid var(--line-on-black);
  border-radius: var(--r-panel); padding: 24px;
}
.ticket__bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--faint-on-black); }
.ticket__badge { background: #1F2A5C; color: #C9D3FF; border-radius: var(--r-pill); padding: 4px 12px; font-weight: 500; }
.ticket__msg { background: var(--white); color: var(--black); border-radius: 18px; padding: 20px; gap: 8px; }
.ticket__msg p { font-size: 16px; color: var(--muted); }
.ticket__steps { list-style: none; padding: 0; gap: 12px; font-size: 16px; }
.ticket__steps li { display: flex; gap: 12px; align-items: flex-start; }
.ticket__steps svg { flex: none; margin-top: 2px; }
.ticket__steps span { color: var(--muted-on-black); }

/* Route cards (support hero) */

.route {
  flex: 1 1 300px; gap: 6px;
  background: var(--card-on-black); border: 1px solid var(--line-on-black);
  border-radius: var(--r-card); padding: 28px;
  color: var(--white); text-decoration: none;
  container-type: inline-size;
  transition: transform 160ms var(--ease-out), border-color 150ms ease, background-color 150ms ease;
}
.route:active { transform: scale(0.98); }
.route__label { font-size: 15px; color: var(--faint-on-black); }
.route__value { font-family: var(--font-head); font-weight: 600; font-size: clamp(16px, 7.4cqi, 26px); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.route--primary { background: var(--blue); border-color: var(--blue); }
.route--primary .route__label { color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .route:hover { color: var(--white); border-color: var(--blue-light); }
  .route--primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
}

/* Section heads */

.section-head { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.section-head p { color: var(--muted); max-width: 26em; }

/* Service tiles */

.tile {
  flex: 1 1 300px; gap: 12px;
  background: var(--panel); border-radius: var(--r-panel); padding: 36px;
}
.tile p { color: var(--muted); }
.tile--wide { flex: 2 1 520px; }
.tile ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.tile--black ul { color: var(--muted-on-black); }
.tile .btn--start { margin-top: 8px; }
.tile--end { justify-content: flex-end; }
.tile--blue { background: var(--blue); color: var(--white); min-height: 220px; }
.tile--blue p { color: var(--white); max-width: 34em; }
.tile--black { background: var(--black); color: var(--white); }
.tile--black p { color: var(--muted-on-black); }
.tile--cta {
  background: transparent; border: 1.5px solid var(--black);
  flex-direction: row; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between;
}
.tile--cta > div { flex: 1 1 280px; min-width: 0; gap: 8px; }

/* Steps */

.step { flex: 1 1 300px; gap: 10px; border-top: 2px solid var(--black); padding-top: 20px; }
.step__num { font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--blue); }
.step p { color: var(--muted); }
.step p a { color: inherit; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .step p a:hover { color: var(--blue); }
}

/* Facts and contact details */

.facts { background: var(--panel); border-radius: var(--r-panel); padding: 32px 36px; gap: 20px 48px; margin-top: 40px; }
.fact { flex: 1 1 220px; }
.fact dt, .contact-list dt { font-size: 15px; color: var(--muted); }
.fact dd, .contact-list dd { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.contact-list { gap: 20px; }
.contact-list a, .fact a { color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .contact-list a:hover { color: var(--blue); }
}

/* About */

.about { flex: 2 1 520px; gap: 20px; background: var(--black); color: var(--white); border-radius: var(--r-panel-lg); padding: clamp(28px, 4vw, 56px); }
.about p { color: var(--muted-on-black); max-width: 36em; }
.sister { flex: 1 1 320px; gap: 14px; background: var(--panel); border-radius: var(--r-panel-lg); padding: clamp(28px, 4vw, 40px); }
.sister__kicker { font-size: 15px; font-weight: 500; color: var(--muted); }
.sister .h2 { font-size: 34px; }
.sister p { color: var(--muted); }
.sister .btn { align-self: flex-start; margin-top: auto; }

/* Contact and forms */

.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > * { min-width: 0; }
.split__copy { flex: 1 1 360px; gap: 20px; }
.split__copy--tight { flex-basis: 340px; gap: 16px; }
.split__copy > p { color: var(--muted); max-width: 28em; }
.split__copy--tight > p { max-width: none; }
.split__copy ul { padding-left: 20px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }

.form {
  flex: 1 1 440px; gap: 16px;
  background: var(--panel); border-radius: var(--r-panel); padding: clamp(24px, 3vw, 36px);
}
.form--wide { flex-basis: 480px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.row > .field { flex: 1 1 200px; }
.field label, .urgency legend { font-weight: 500; font-size: 15px; }
.field input, .field textarea {
  font: inherit; font-size: 17px; color: inherit; width: 100%;
  padding: 13px 16px; min-height: 48px;
  border: 1px solid var(--input-border); border-radius: var(--r-input);
  background: var(--white);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(43 80 255 / .28); }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgb(179 38 30 / .25); }
.field-error { font-size: 15px; color: var(--error); font-weight: 500; }
/* Honeypot: off-screen rather than display:none, so simple bots still fill it */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.urgency { border: 0; margin: 0; padding: 0; min-width: 0; }
.urgency legend { padding: 0; margin-bottom: 8px; }
.urgency__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.urgency label {
  display: inline-flex; align-items: center;
  font-weight: 500; min-height: 46px; padding: 10px 18px;
  border: 1px solid var(--input-border); border-radius: var(--r-pill);
  background: var(--white); color: var(--black); cursor: pointer; user-select: none;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.urgency label:active { transform: scale(0.97); }
.urgency input:checked + label { background: var(--black); color: var(--white); border-color: var(--black); }
.urgency input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .urgency input:not(:checked) + label:hover { border-color: var(--black); }
}

.form-status {
  border-radius: var(--r-input); padding: 14px 16px; font-size: 16px;
  background: var(--white); border: 1.5px solid var(--blue);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
@starting-style {
  .form-status { opacity: 0; transform: translateY(6px); }
}
.form-status--error { border-color: var(--error); }

/* Remote panel */

.remote {
  border: 1.5px solid var(--black); border-radius: var(--r-panel);
  padding: clamp(24px, 4vw, 48px);
  display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: center; justify-content: space-between;
}
.remote > div { flex: 1 1 420px; min-width: 0; gap: 12px; }
.remote p { color: var(--muted); max-width: 34em; }

/* Footer */

.site-footer { border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.footer-cols { padding-block: 48px 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px 48px; }
.footer-brand { gap: 14px; max-width: 24em; }
.footer-brand img { height: 40px; width: auto; align-self: flex-start; }
.site-footer h2 { font-size: 15px; font-weight: 600; color: var(--black); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.site-footer a { color: var(--muted); text-decoration: none; display: inline-block; padding-block: 4px; }
.footer-base { padding-top: 20px; padding-bottom: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
@media (hover: hover) and (pointer: fine) {
  .site-footer a:hover { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }
}

/* Inner pages */

.h1--page { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; max-width: 16em; }
.section--top { padding-top: 48px; }
.muted { color: var(--muted); }
.prose { max-width: 44em; gap: 16px; }
.prose .h3 { margin-top: 16px; }
.prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

.nav-pill a[aria-current="page"] { background: var(--white); }

.tile--link { color: var(--black); text-decoration: none; transition: transform 200ms var(--ease-out), background-color 150ms ease; }
.tile--link.tile--blue, .tile--link.tile--black { color: var(--white); }
.tile--link:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .tile--link:hover { background: #E9E9E4; color: var(--black); }
  .tile--link.tile--blue:hover { background: var(--blue-hover); color: var(--white); }
  .tile--link.tile--black:hover { background: #222220; color: var(--white); }
}

/* Plans */

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: var(--panel); border-radius: var(--r-panel); padding: 32px; gap: 16px; }
.plan__for { color: var(--muted); }
.plan__price { display: flex; flex-direction: column; gap: 2px; }
.plan__price strong { font-family: var(--font-head); font-weight: 600; font-size: 44px; line-height: 1.05; letter-spacing: -0.04em; }
.plan__price span { font-size: 15px; color: var(--muted); }
.plan__items { list-style: none; padding: 0; gap: 10px; margin-bottom: 8px; }
.plan__items li { display: flex; gap: 10px; align-items: flex-start; }
.plan__items svg { flex: none; margin-top: 3px; color: var(--blue); }
.plan__sla { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; }
.plan__sla span { font-size: 15px; color: var(--muted); }
.plan--featured .plan__sla { border-color: rgb(255 255 255 / .35); }
.plan--featured .plan__sla span { color: var(--white); }
.facts--rates { margin-top: 0; }
.facts--rates p { font-size: 15px; color: var(--muted); margin-top: 4px; }
.plan .btn { margin-top: auto; }
.plan--featured { background: var(--blue); color: var(--white); }
.plan--featured .plan__for, .plan--featured .plan__price span { color: var(--white); }
.plan--featured .plan__items svg { color: var(--white); }
.on-blue-panel :focus-visible { outline-color: var(--white); }
.btn--white { background: var(--white); color: var(--black); }
@media (hover: hover) and (pointer: fine) {
  .btn--white:hover { background: var(--black); color: var(--white); }
}

.calc { flex: 1 1 440px; }
.calc__out { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 16px; }
.calc__out span, .calc__out small, .form-note { font-size: 15px; color: var(--muted); }
.calc__out strong { font-family: var(--font-head); font-weight: 600; font-size: 40px; line-height: 1.1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }

/* AI feature list */

.split__wide { flex: 1.4 1 480px; }
.ai-list { list-style: none; padding: 0; margin: 0; }
.ai-item { border-top: 2px solid var(--black); padding: 20px 0 24px; display: flex; flex-direction: column; gap: 8px; }
.ai-item__head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.ai-item p { color: var(--muted); max-width: 40em; }
.badge { font-size: 14px; font-weight: 500; white-space: nowrap; border-radius: var(--r-pill); padding: 3px 12px; border: 1px solid var(--input-border); color: var(--muted); }
.badge--live { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* FAQ */

.faqs { flex: 1.4 1 480px; }
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; font-weight: 600; padding: 18px 0;
  display: flex; gap: 16px; align-items: flex-start; justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--font-head); font-size: 22px; line-height: 1.1; color: var(--blue); }
.faq summary::after { transition: transform 200ms var(--ease-out); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding-bottom: 20px; max-width: 40em; }

/* Themes
   "bright" is the default. Add data-theme="navy" or data-theme="mono" on <html> to switch.
   Every colour below is a token, so a theme is only this list. */

:root {
  --black: #0B1026;            /* ink: text and dark panels */
  --hero-bg: #2B50FF;
  --hero-shape-1: #2143E0;
  --hero-shape-2: rgb(255 255 255 / .10);
  --on-hero-muted: #E6EAFF;
  --hero-outline: rgb(255 255 255 / .55);
  --card-on-black: #0B1026;
  --line-on-black: rgb(255 255 255 / .14);
  --muted-on-black: #C9D0EA;
  --faint-on-black: #AEB7DA;
  --dark-hover: #161D3D;
  --panel: #EEF2FF;
  --panel-hover: #E1E7FB;
  --muted: #4A5169;
  --line: #D9DEEE;
  --input-border: #7C849E;
  --cta: #FFC73B;
  --cta-hover: #FFD564;
  --cta-ink: #0B1026;
  --dot: #FFC73B;
}
[data-theme="navy"] {
  --hero-bg: #0B1026;
  --hero-shape-1: #121A3F;
  --hero-shape-2: rgb(111 139 255 / .16);
  --on-hero-muted: #C9D0EA;
  --hero-outline: rgb(255 255 255 / .35);
  --card-on-black: #141B3C;
}
[data-theme="mono"] {
  --black: #0A0A0A;
  --hero-bg: #0A0A0A;
  --hero-shape-1: transparent;
  --hero-shape-2: transparent;
  --on-hero-muted: #C4C4BE;
  --hero-outline: #6B6B66;
  --card-on-black: #161615;
  --line-on-black: #2E2E2B;
  --muted-on-black: #C4C4BE;
  --faint-on-black: #A8A8A2;
  --dark-hover: #222220;
  --panel: #F3F3F0;
  --panel-hover: #E9E9E4;
  --muted: #55554F;
  --line: #DCDCD6;
  --input-border: #8A8A84;
  --cta: #2B50FF;
  --cta-hover: #1F3FD9;
  --cta-ink: #FFFFFF;
  --dot: #6F8BFF;
}

.hero { background: var(--hero-bg); position: relative; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.hero::before { width: 620px; height: 620px; right: -180px; bottom: -330px; background: var(--hero-shape-1); }
.hero::after { width: 300px; height: 300px; left: -120px; top: -150px; border: 40px solid var(--hero-shape-2); }
.lede { color: var(--on-hero-muted); }
.eyebrow { color: var(--white); border-color: var(--hero-outline); }
.eyebrow::before { background: var(--dot); }
.btn--outline-light { border-color: var(--hero-outline); }
.on-dark .btn--blue { background: var(--cta); color: var(--cta-ink); }
.hero .route--primary { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); }
.hero .route--primary .route__label { color: var(--cta-ink); }
.hero .route--primary:focus-visible { outline-color: var(--white); }
.ticket__steps svg path { stroke: var(--dot); }
@media (hover: hover) and (pointer: fine) {
  .on-dark .btn--blue:hover { background: var(--cta-hover); color: var(--cta-ink); }
  .hero .route--primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); color: var(--cta-ink); }
  .tile--link:hover { background: var(--panel-hover); transform: translateY(-3px); }
  .tile--link.tile--black:hover { background: var(--dark-hover); }
}

/* Hero visual: example ticket with status chips */

.hero__visual { position: relative; }
.chip {
  position: absolute; z-index: 1; display: flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--white); color: var(--black); font-size: 14px; font-weight: 600;
  padding: 8px 14px 8px 10px; border-radius: var(--r-pill);
  box-shadow: 0 12px 28px rgb(11 16 38 / .28);
  transition: opacity 400ms var(--ease-out);
}
.chip svg { flex: none; color: var(--blue); }
.chip.is-off { opacity: 0; }
.chip--1 { top: -20px; left: -24px; }
.chip--2 { bottom: -20px; right: -16px; }
.chip--3 { top: -20px; right: -14px; }

/* Card grids: three columns, two on tablets, one on phones. Wide cards span two. */

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid > .tile--wide { grid-column: span 2; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) {
  .grid, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid > .tile--wide { grid-column: 1 / -1; }
  .grid--steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chip--3 { display: none; }
}
@media (max-width: 760px) {
  .grid, .grid--2, .grid--4, .grid--steps { grid-template-columns: minmax(0, 1fr); }
  .chip--1 { left: 12px; }
  .chip--2 { right: 12px; }
  .hero::before { width: 380px; height: 380px; right: -160px; bottom: -200px; }
}

.clients { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.clients li { background: var(--panel); border-radius: var(--r-card); padding: 20px 28px; font-family: var(--font-head); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; display: flex; align-items: center; min-height: 72px; }
.clients img { height: 40px; width: auto; }

/* The INTE assistant character */

.assistant { margin: 0; color: var(--blue); width: clamp(150px, 20vw, 250px); justify-self: center; }
.on-dark .assistant { color: var(--white); }
.assistant svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero--bot { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.tile--bot { position: relative; }
.tile--bot .assistant { position: absolute; right: 28px; top: 22px; width: 72px; }
.tile--bot .h3 { padding-right: 96px; }
@media (max-width: 900px) {
  .hero--bot { grid-template-columns: minmax(0, 1fr); }
  .hero--bot .assistant { width: 130px; justify-self: start; order: -1; }
}

/* Worked billing examples */

.bill { flex: 1 1 440px; min-width: 0; background: var(--panel); border-radius: var(--r-panel); padding: clamp(24px, 3vw, 36px); gap: 12px; align-self: flex-start; }
.bill dl { margin: 0; }
.bill__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.bill__row dd { margin: 0; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bill__total { border-top: 2px solid var(--black); }
.bill__total dt, .bill__total dd { font-family: var(--font-head); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.split__copy .h3 { margin-top: 8px; }

/* Hero conversation */

.chat { gap: 14px; background: var(--card-on-black); border: 1px solid var(--line-on-black); border-radius: var(--r-panel); padding: 20px; }
.chat__live { display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-weight: 600; }
.chat__log { list-style: none; margin: 0; padding: 0; height: 460px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; transition: opacity 300ms ease; }
/* Older messages fade out at the top if a conversation runs long, as in a real chat window. */
.chat__log { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24px); mask-image: linear-gradient(to bottom, transparent 0, #000 24px); padding-top: 24px; }
.chat__log.is-clearing { opacity: 0; }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 88%; font-size: 15px; line-height: 1.45; }
.msg > div { border-radius: 18px; padding: 10px 14px; background: rgb(255 255 255 / .09); color: var(--white); }
.msg__who { display: block; font-size: 13px; font-weight: 600; color: var(--faint-on-black); margin-bottom: 2px; }
.msg__avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--cta); color: var(--cta-ink); background-size: cover; background-position: center; }
.msg--user { align-self: flex-end; }
.msg--user > div { background: var(--white); color: var(--black); border-bottom-right-radius: 6px; }
.msg--user .msg__who { color: var(--muted); }
.msg--ai > div, .msg--eng > div { border-bottom-left-radius: 6px; }
.msg--eng > div { background: var(--blue); }
.msg--eng .msg__who { color: var(--white); }
.msg--eng .msg__avatar { background-color: var(--white); color: var(--black); }
.msg--note { align-self: center; max-width: none; font-size: 13px; font-weight: 600; color: var(--card-on-black); background: #3DDC84; border-radius: var(--r-pill); padding: 4px 14px; }
.msg__dots { display: flex; gap: 4px; padding: 6px 2px; }
.msg__dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .35; }

.about .photo { order: -1; }
@media (max-width: 760px) {
  .chat__log { height: 580px; }
  .msg { max-width: 94%; }
}

/* Photos (rendered only when the file exists in assets/photos) */

.photo { margin: 0; border-radius: var(--r-panel); overflow: hidden; background: var(--panel); aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--wide { aspect-ratio: 21 / 9; margin-top: 16px; }
.about .photo { aspect-ratio: 1; width: 120px; border-radius: 50%; }
.photo--character { background: none; border-radius: 0; aspect-ratio: auto; max-width: 240px; }
.photo--character img { object-fit: contain; }

/* Motion
   Load: hero copy rises in once, then the example ticket plays through its states (explanation).
   Scroll: groups of cards rise in once with a short stagger (hierarchy).
   Everything is gated on .js so the page is complete without scripts, and on reduced motion. */

.ticket__status {
  font-size: 14px; font-weight: 500; border-radius: var(--r-pill); padding: 4px 12px;
  background: var(--white); color: var(--black);
  transition: background-color 200ms ease, color 200ms ease;
}
.ticket__bar-right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ticket[data-step="0"] .ticket__status { background: #2E2E2B; color: var(--muted-on-black); }
.ticket[data-step="1"] .ticket__status, .ticket[data-step="2"] .ticket__status { background: #1F2A5C; color: #C9D3FF; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
  .js .hero__copy > *, .js .hero__head > *, .js .hero--support > .row, .js .hero > .hero__visual, .js .hero > .photo {
    animation: rise 600ms var(--ease-out) both;
  }
  .js .hero__copy > :nth-child(2), .js .hero__head > :nth-child(2) { animation-delay: 70ms; }
  .js .hero__copy > :nth-child(3), .js .hero--support > .row { animation-delay: 140ms; }
  .js .hero__copy > :nth-child(4) { animation-delay: 210ms; }
  .js .hero > .hero__visual, .js .hero > .photo { animation-delay: 240ms; }

  /* Decorative, marketing hero only: slow drift on the background shapes, gentle float on the chips. */
  @keyframes drift { to { transform: translate(-28px, -20px); } }
  @keyframes bob { to { transform: translateY(-8px); } }
  .hero::before { animation: drift 16s ease-in-out infinite alternate; }
  .hero::after { animation: drift 22s ease-in-out infinite alternate-reverse; }
  .chip { animation: bob 5s ease-in-out infinite alternate; }
  /* The assistant floats gently and blinks now and then. */
  @keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
  @keyframes wave { 0%, 80%, 100% { transform: rotate(0); } 86% { transform: rotate(-14deg); } 92% { transform: rotate(8deg); } }
  .assistant__all { animation: bob 3.6s ease-in-out infinite alternate; }
  .assistant__eyes { transform-box: fill-box; transform-origin: center; animation: blink 5.5s ease-in-out infinite; }
  .assistant__arm { transform-box: fill-box; transform-origin: 0% 100%; animation: wave 7s ease-in-out infinite; }

  /* Conversation: each message rises in as it is "sent"; typing dots pulse while someone is replying. */
  @keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
  @keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
  .chat__log.is-live .msg { animation: msg-in 320ms var(--ease-out) both; transform-origin: left bottom; }
  .chat__log.is-live .msg--user { transform-origin: right bottom; }
  .msg__dots i { animation: dot 1.1s ease-in-out infinite; }
  .msg__dots i:nth-child(2) { animation-delay: .15s; }
  .msg__dots i:nth-child(3) { animation-delay: .3s; }
  .chip--2 { animation-duration: 6.5s; animation-delay: -2s; }
  .chip--3 { animation-duration: 5.8s; animation-delay: -4s; }

  .ticket[data-step] .ticket__steps li {
    opacity: .28; transform: translateY(6px);
    transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
  }
  .ticket[data-step] .ticket__steps li.is-done { opacity: 1; transform: none; }
  .ticket[data-step] .ticket__steps path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 450ms var(--ease-out) 120ms; }
  .ticket[data-step] .ticket__steps li.is-done path { stroke-dashoffset: 0; }

  .reveal { opacity: 0; transform: translateY(16px); }
  .reveal.is-in { opacity: 1; transform: none; transition: opacity 550ms var(--ease-out), transform 550ms var(--ease-out); }
}

/* Phones */

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --section-gap: 64px; }
  .site-header { gap: 14px; }
  .brand img { height: 40px; }
  .nav-pill { order: 3; width: 100%; flex-wrap: nowrap; font-size: 15px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .nav-pill::-webkit-scrollbar { display: none; }
  .nav-pill a { padding: 12px; white-space: nowrap; flex: none; }
  .header-link { display: none; }
  .header-actions .btn { padding-inline: 12px; font-size: 15px; }
  .h1 { font-size: 38px; text-wrap: pretty; }
  .btn { white-space: normal; text-align: center; }
  .route { padding: 24px; }
  .hero { gap: 32px; border-radius: var(--r-panel); }
  .lede { font-size: 18px; }
  .tile, .facts { padding: 28px 24px; }
  .section-head { margin-bottom: 28px; }
  .hero .btn, .form .btn, .remote .btn, .tile--cta .btn { width: 100%; }
  .footer-base { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .plan { padding: 28px 24px; }
  .h1--page { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .route, .tile--link, .urgency label, .form-status { transition-property: background-color, color, border-color, opacity; }
  .btn:active, .route:active, .tile--link:active, .urgency label:active { transform: none; }
  @starting-style { .form-status { transform: none; } }
}

/* Interaction polish (Emil Kowalski pass)
   Each rule below bridges a change that used to happen instantly. Nothing here is decoration. */

/* FAQ answers open and close smoothly instead of snapping (state indication). Browsers without
   ::details-content simply snap, as before. */
:root { interpolate-size: allow-keywords; }
.faq::details-content { block-size: 0; overflow: hidden; opacity: 0; transition: block-size 260ms var(--ease-out), opacity 200ms ease, content-visibility 260ms allow-discrete; }
.faq[open]::details-content { block-size: auto; opacity: 1; }
.faq summary { user-select: none; -webkit-user-select: none; transition: color 150ms ease; }
.faq summary:active { color: var(--blue); }

/* Field errors ease in so the form does not jump (preventing a jarring change). */
.field-error { transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
@starting-style { .field-error { opacity: 0; transform: translateY(-4px); } }

/* Success message: a tick draws itself once (feedback, at a rare and important moment). */
.form-status { display: flex; gap: 10px; align-items: flex-start; }
.form-status svg { flex: none; margin-top: 2px; color: var(--blue); }

/* The conversation softens while it clears, so two chats never visibly overlap. */
.chat__log { transition: opacity 300ms ease, filter 300ms ease; }
.chat__log.is-clearing { filter: blur(2px); }

/* Touch: no double-tap delay on controls, no text selection on long-press, press feedback on the menu. */
a, button, summary, label[for] { touch-action: manipulation; }
.btn, .nav-pill a, .route, .tile--link { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.nav-pill a:active { background: var(--white); }
html { -webkit-tap-highlight-color: transparent; }

/* Landscape phones: keep content clear of the notch. */
.wrap { padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }

/* Phone menu: fade at the right edge shows there is more to scroll to. */
@media (max-width: 640px) {
  .nav-pill { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); scroll-snap-type: x proximity; }
  .nav-pill a { scroll-snap-align: start; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
  .form-status svg path { stroke-dasharray: 24; animation: draw 420ms var(--ease-out) 120ms both; }
}
@media (prefers-reduced-motion: reduce) {
  .faq::details-content { transition: opacity 200ms ease; }
  .field-error { transition: opacity 200ms ease; }
  @starting-style { .field-error { transform: none; } }
  .chat__log.is-clearing { filter: none; }
}
