/* SoftVinz website. Colors come from the SoftVinz ERP brand (magenta spark).
   No inline styles anywhere: the Content-Security-Policy allows style sheets from this site only. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --paper: #FBF8FA;
  --surface: #FFFFFF;
  --surface-2: #F5EEF3;
  --ink: #1C1522;
  --ink-2: #5C5464;
  --muted: #8A8194;
  --line: #E8DFE7;
  --brand: #D81E7A;
  --brand-deep: #A2135C;
  --brand-soft: #FBE3EF;
  --bad: #CE3A3A;
  --good-ink: #0A6E3C;
  --gold: #B4831C;
  --good: #0F8F4E;
  --hero-a: #2A0E22;
  --hero-b: #7A1149;
  --hero-glow: rgb(216 30 122 / .45);
  --hero-ink: #FFD9EC;
  --on-brand: #FFFFFF;
  --brand-text: var(--brand-deep);
  --focus: var(--brand-deep);
  --field-border: var(--muted);
  --backdrop: rgb(28 21 34 / .55);
  --shadow-1: 0 1px 2px rgb(28 21 34 / .06), 0 8px 24px rgb(28 21 34 / .08);
  --shadow-2: 0 2px 4px rgb(28 21 34 / .08), 0 16px 36px rgb(28 21 34 / .14);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 4.25rem;
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #141019;
    --surface: #1E1726;
    --surface-2: #281F33;
    --ink: #F6EFF6;
    --ink-2: #C4B9CC;
    --muted: #8F84A0;
    --line: #352B41;
    --brand: #F1509B;
    --brand-deep: #FF83BB;
    --brand-soft: #2A1B29;
    --bad: #E5686A;
    --good-ink: #4CCB85;
    --gold: #E7B24E;
    --good: #2FB56E;
    --hero-a: #0E0713;
    --hero-b: #4A0B2C;
    --hero-glow: rgb(224 48 138 / .45);
    /* White on the light dark-mode brand pink is only 3.30:1, so buttons use dark text (5.69:1). */
    --on-brand: #141019;
    --focus: var(--brand);
    --backdrop: rgb(0 0 0 / .65);
    --shadow-1: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .35);
    --shadow-2: 0 2px 4px rgb(0 0 0 / .45), 0 16px 36px rgb(0 0 0 / .5);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-text); }
button, input, select, textarea { font: inherit; color: inherit; }
main:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.hero :focus-visible,
.contact :focus-visible { outline-color: #FFFFFF; }

.icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand-text);
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.eyebrow--on-dark { color: var(--hero-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn:disabled { opacity: .65; cursor: progress; }
.btn--sm { padding: .55rem 1rem; font-size: .95rem; }
.btn--lg { padding: .9rem 1.5rem; font-size: 1.05rem; }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover:not(:disabled) { background: var(--brand-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--field-border); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--light { background: #FFFFFF; color: #7A1149; }
.btn--light:hover { background: var(--hero-ink); }
.btn--outline-light { background: transparent; color: #FFFFFF; border-color: rgb(255 255 255 / .55); }
.btn--outline-light:hover { background: rgb(255 255 255 / .12); }

/* Without JavaScript the inquiry window cannot open, so its buttons are hidden. */
html:not(.js) [data-inquiry] { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(10px);
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
}
.brand__mark { width: 2rem; height: 2rem; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .5rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-weight: 600;
  cursor: pointer;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.25rem;
}
.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  padding: 0;
  list-style: none;
}
.site-nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.site-nav__links a:hover { color: var(--brand-text); }

@media (max-width: 59.99em) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
    padding: .75rem var(--gutter) 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-1);
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav__links { flex-direction: column; gap: 0; }
  .js .site-nav__links a { width: 100%; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero {
  color: #FFFFFF;
  background:
    radial-gradient(60% 80% at 85% 0%, var(--hero-glow), transparent 70%),
    linear-gradient(155deg, var(--hero-a), var(--hero-b) 55%, var(--hero-a));
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
.hero__inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.hero__art {
  width: 100%;
  max-width: 34rem;
  justify-self: center;
}
.hero__title {
  max-width: 22ch;
  font-size: clamp(2.1rem, 5.4vw, 3.75rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.hero__lead {
  max-width: 40rem;
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: rgb(255 255 255 / .86);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.facts {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding: 0;
  list-style: none;
}
.fact {
  display: grid;
  gap: .3rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgb(255 255 255 / .22);
}
.fact__value {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.fact__label { color: rgb(255 255 255 / .78); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--tint { background: var(--surface-2); }
.section__head { max-width: 46rem; margin-bottom: 2.25rem; }
.section__title {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.section__lead {
  margin-top: .85rem;
  font-size: 1.1rem;
  color: var(--ink-2);
}
.section__cta { margin-top: 2rem; }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.card--more {
  border-style: dashed;
  border-color: var(--field-border);
  background: transparent;
  box-shadow: none;
}
.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .35rem;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand-text);
}
/* Colored "app icon" tiles: each product and service has its own color. White icons on the
   darker gradient stop; the tiles are decorative (the card text names the product). */
.card__icon[class*="card__icon--"] {
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 14px;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--tile-a), var(--tile-b));
  box-shadow: 0 6px 16px -6px var(--tile-b), inset 0 1px 0 rgb(255 255 255 / .25);
}
.card__icon[class*="card__icon--"] .icon { width: 1.5rem; height: 1.5rem; stroke-width: 2; }
.card__icon--blue { --tile-a: #3B82F6; --tile-b: #1E40AF; }
.card__icon--orange { --tile-a: #EA580C; --tile-b: #9A3412; }
.card__icon--magenta { --tile-a: #D81E7A; --tile-b: #8A1050; }
.card__icon--green { --tile-a: #16A34A; --tile-b: #166534; }
.card__icon--violet { --tile-a: #8B5CF6; --tile-b: #5B21B6; }
.card__icon--amber { --tile-a: #D97706; --tile-b: #92400E; }
.card__icon--cyan { --tile-a: #0891B2; --tile-b: #155E75; }
.card__icon--teal { --tile-a: #0D9488; --tile-b: #115E59; }
.card__icon--indigo { --tile-a: #6366F1; --tile-b: #3730A3; }
.card__icon--sky { --tile-a: #0284C7; --tile-b: #075985; }
.card__icon--rose { --tile-a: #E11D48; --tile-b: #9F1239; }
.card__icon--emerald { --tile-a: #059669; --tile-b: #065F46; }
.card__icon--neutral { --tile-a: #8A8194; --tile-b: #5C5464; }

.card__label {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.card__title {
  font-size: 1.2rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.card--service .card__title { margin-top: .5rem; }
.card__tagline,
.card--service p { color: var(--ink-2); }
.card__meta {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--ink-2);
}
.card__action {
  display: inline-block;
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  padding: .5rem 0 0;
  border: 0;
  background: none;
  color: var(--brand-text);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
/* Inline arrow, so it stays next to the last word when the label wraps. */
.card__action .icon {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: .3rem;
  vertical-align: -.2em;
}
.card__action:hover { text-decoration: underline; text-underline-offset: 3px; }

.checklist {
  display: grid;
  gap: .4rem;
  margin: .35rem 0 .5rem;
  padding: 0;
  list-style: none;
}
.checklist li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink);
}
/* Check mark drawn with borders (no images, which the CSP would need data: for). */
.checklist li::before {
  content: "";
  position: absolute;
  left: .3rem;
  top: .35em;
  width: .4rem;
  height: .75rem;
  border-right: 2px solid var(--brand-text);
  border-bottom: 2px solid var(--brand-text);
  transform: rotate(45deg);
}

/* ---------- Illustrations (inline SVG, colored from the theme tokens) ---------- */
.art { display: block; width: 100%; height: auto; }
.art--card { filter: drop-shadow(0 18px 30px rgb(28 21 34 / .14)); }
.ill-card { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.ill-panel { fill: var(--surface-2); }
.ill-ink { fill: var(--ink); }
.ill-muted { fill: color-mix(in srgb, var(--muted) 55%, transparent); }
.ill-brand { fill: var(--brand); }
.ill-brand-text { fill: var(--brand-text); }
.ill-soft { fill: var(--brand-soft); }
.ill-gold { fill: var(--gold); }
.ill-good { fill: var(--good); }
.ill-quiet { fill: var(--muted); }
.ill-stop-brand { stop-color: var(--brand); }
.ill-grid { stroke: var(--line); stroke-width: 1.5; }
.ill-line-brand,
.ill-line-gold,
.ill-spark {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ill-line-brand, .ill-spark { stroke: var(--brand); }
.ill-line-gold { stroke: var(--gold); stroke-dasharray: 6 6; }
.ill-spark { stroke-width: 2.5; }
.ill-spark--gold { stroke: var(--gold); }
.ill-dot { fill: var(--surface); stroke: var(--brand); stroke-width: 3.5; }
.ill-ring { fill: none; stroke: var(--line); stroke-width: 16; }
.ill-seg { fill: none; stroke-width: 16; }
.ill-seg--1 { stroke: var(--brand); }
.ill-seg--2 { stroke: var(--gold); }
.ill-seg--3 { stroke: var(--good); }
.ill-seg--4 { stroke: var(--muted); }
.ill-link {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  opacity: .7;
}
.ill-text {
  fill: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
}

/* ---------- Split section (copy + illustration) ---------- */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.split .section__lead { margin-bottom: .5rem; }
.checklist--lg { gap: .65rem; margin: 1.25rem 0 1.75rem; }
.checklist--lg li { font-size: 1.05rem; }

/* ---------- Technology ---------- */
.tech-grid {
  display: grid;
  gap: 1rem;
}
.tech-group {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.tech-group__title {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 750;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0;
  list-style: none;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem .85rem .3rem .3rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: .92rem;
  font-weight: 600;
}
/* Logos sit on a white tile so dark logos (Apple, AWS) stay visible in dark mode. */
.chip__logo {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
  padding: .25rem;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px var(--line);
  object-fit: contain;
}
.chip__logo--icon {
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--brand-soft);
  color: var(--brand-text);
}
.chip__logo--icon .icon { width: 1rem; height: 1rem; }

/* ---------- About ---------- */
.about { display: grid; gap: 2rem; }
.about__head { margin-bottom: 0; }
.about__art { max-width: 30rem; margin-top: 2rem; }
.points {
  display: grid;
  gap: 1.5rem;
  padding: 0;
  list-style: none;
}
.point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.point__title {
  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1.35;
}
.point p { margin-top: .2rem; color: var(--ink-2); }

/* ---------- Contact band ---------- */
.contact {
  color: #FFFFFF;
  background:
    radial-gradient(70% 120% at 10% 100%, var(--hero-glow), transparent 60%),
    linear-gradient(155deg, var(--hero-a), var(--hero-b) 70%, var(--hero-a));
  padding-block: clamp(3rem, 7vw, 5rem);
}
.contact__inner {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
.contact__title {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.022em;
}
.contact__lead {
  max-width: 36rem;
  margin-top: .75rem;
  font-size: 1.1rem;
  color: rgb(255 255 255 / .86);
}
.noscript {
  max-width: 24rem;
  padding: .9rem 1rem;
  border: 1px solid rgb(255 255 255 / .4);
  border-radius: var(--radius-sm);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 2.5rem calc(2.5rem + 4rem);
  border-top: 1px solid var(--line);
}
.site-footer__inner {
  display: grid;
  gap: 1.5rem;
}
.site-footer__tag,
.site-footer__copy {
  font-size: .9rem;
  color: var(--ink-2);
}
.site-footer__tag { margin-top: .5rem; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  padding: 0;
  list-style: none;
}
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  text-decoration: none;
}
.site-footer__links a:hover { color: var(--brand-text); text-decoration: underline; }

/* ---------- Floating inquiry button ---------- */
.fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  box-shadow: var(--shadow-2);
  cursor: pointer;
}
.fab:hover { background: var(--brand-deep); }

/* ---------- Inquiry dialog ---------- */
.dialog {
  width: 100%;
  max-width: 100%;
  max-height: 100dvh;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
}
.dialog::backdrop { background: var(--backdrop); }
.dialog__panel {
  max-height: 100dvh;
  overflow-y: auto;
  padding: 1.25rem var(--gutter) max(1.25rem, env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .5rem;
}
.dialog__title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.dialog__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.dialog__close:hover { background: var(--surface-2); color: var(--ink); }

.form__intro,
.form__note {
  font-size: .95rem;
  color: var(--ink-2);
}
.form__grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
}
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field__req { color: var(--brand-text); }
.field__optional { font-weight: 400; color: var(--ink-2); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: .65rem .8rem;
  border: 1px solid var(--field-border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 1rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}
.field [aria-invalid="true"] { border-color: var(--bad); border-width: 2px; }
.field__error {
  font-size: .875rem;
  font-weight: 600;
  color: var(--bad);
}

/* Honeypot: off-screen for people, still in the form for bots. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__note { margin-top: 1rem; }
.form__status {
  min-height: 1.6em;
  margin-top: .5rem;
  font-weight: 600;
}
.form__status.is-error { color: var(--bad); }
.form__status.is-info { color: var(--ink-2); }
.form__actions {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  margin-top: .75rem;
}

.success {
  display: grid;
  justify-items: center;
  gap: .75rem;
  padding: 1.5rem 0 .5rem;
  text-align: center;
}
.success[hidden] { display: none; }
.success__title { font-size: 1.6rem; font-weight: 800; }
.success__title:focus { outline: none; }

/* ---------- Larger screens ---------- */
@media (min-width: 40em) {
  .grid--products,
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .form__grid { grid-template-columns: repeat(2, 1fr); }
  .field--wide { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }

  .dialog {
    max-width: 36rem;
    max-height: calc(100dvh - 2rem);
    margin: auto;
  }
  .dialog__panel {
    max-height: calc(100dvh - 2rem);
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius);
  }
}

@media (min-width: 60em) {
  .hero__inner { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; }
  .split { grid-template-columns: 1fr 1.15fr; gap: 4rem; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .grid--products { grid-template-columns: repeat(3, 1fr); }
  .grid--services { grid-template-columns: repeat(4, 1fr); }
  .about { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
  .contact__inner { grid-template-columns: 1fr auto; gap: 3rem; }
  .site-footer { padding-bottom: 2.5rem; }
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .site-footer__copy { grid-column: 1 / -1; }
}

@media (min-width: 75em) {
  .grid--products { grid-template-columns: repeat(4, 1fr); }
}

/* The "More solutions" card becomes a full-width strip when it would otherwise sit alone on a row
   (8 products + this card: 2 and 4 columns leave one card over; 3 columns fill exactly). */
@media (min-width: 40em) and (max-width: 59.99em), (min-width: 75em) {
  .card--more {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 1.25rem;
  }
  .card--more .card__top { margin: 0; }
  .card--more .card__label { display: none; }
  .card--more .card__action { margin: 0 0 0 auto; padding: 0; }
}

/* ---------- Motion (only when the visitor has not asked for less) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn, .fab, .card { transition: background-color .15s ease, box-shadow .2s ease, transform .2s ease; }
  .card--product:hover,
  .card--service:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
  .dialog[open] { animation: dialog-in .2s ease-out; }
  .ill-link { animation: link-flow 1.4s linear infinite; }
  .dialog[open]::backdrop { animation: backdrop-in .2s ease-out; }
}
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes link-flow {
  to { stroke-dashoffset: -24; }
}
@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Windows high contrast ---------- */
@media (forced-colors: active) {
  .btn, .fab, .card__action, .nav-toggle, .dialog__close,
  .field input, .field select, .field textarea { border: 1px solid ButtonText; }
  .card { border: 1px solid CanvasText; }
  :focus-visible { outline: 3px solid Highlight; }
}
