/* Ordicura - Main Stylesheet
   Mobile-first. Every colour is a token, redefined for dark mode below.

   The look follows the large business-software sites: a light page, a
   product explorer, plain cards and one dark band per page. The brand is
   navy #1b2a41, bronze #b0793b and parchment #f6f3ee; bronze is darkened to
   #8c5a22 wherever it carries text, so it clears 4.5:1.

   The content security policy allows nothing inline and nothing from another
   host, so the typeface is served from assets/fonts/ and every bit of spacing
   that would otherwise be a style attribute is a class. */

/* Noto Sans Arabic (OFL, assets/fonts/OFL.txt), the Arabic range only, so
   only an Arabic page ever downloads it. */
@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/noto-sans-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../assets/fonts/plus-jakarta-sans-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: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../assets/fonts/plus-jakarta-sans-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 {
  /* Surfaces and text */
  --color-bg: #ffffff;
  --color-bg-soft: #faf8f5;
  --color-surface: #f5f3f0;
  --color-card: #ffffff;
  --color-border: #e8e4de;
  --color-text: #1b2a41;
  --color-text-muted: #4f5b6d;

  /* Accents */
  --color-accent: #b0793b;
  --color-accent-text: #8c5a22;
  --color-tag-bg: #f6ead9;
  --color-tag-text: #7a4e1d;
  --color-primary: #1b2a41;
  --color-primary-hover: #2c3f5c;
  --color-primary-contrast: #ffffff;
  --color-warm: #8c5a22;

  /* The dark band: dark in both themes, so it stays a band */
  --color-band: #1b2a41;
  --color-band-raised: #22344f;
  --color-band-border: #33465f;
  --color-on-band: #ffffff;
  --color-on-band-muted: #c3cad4;
  --color-on-band-accent: #e8c999;

  /* The two soft lights behind the hero */
  --color-glow-warm: #e8c999;
  --color-glow-cool: #9db4d6;
  --glow-opacity: 0.7;

  /* Typography */
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

  /* Layout */
  --max-width: 1280px;
  --gutter: clamp(1rem, 3vw, 2rem);
  --radius: 8px;
  --radius-lg: 14px;
  --radius-sm: 4px;
  --shadow: 0 2px 4px rgb(27 42 65 / 6%), 0 14px 32px rgb(27 42 65 / 12%);
  --shadow-lift: 0 4px 8px rgb(27 42 65 / 8%), 0 24px 48px rgb(27 42 65 / 16%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --color-bg: #0f1724;
    --color-bg-soft: #121c2b;
    --color-surface: #162133;
    --color-card: #1a273d;
    --color-border: #2a3a54;
    --color-text: #f1ede6;
    --color-text-muted: #a9b2bf;
    --color-accent: #d4a066;
    --color-accent-text: #d9a566;
    --color-tag-bg: #2e2619;
    --color-tag-text: #e8c999;
    --color-primary: #e8c999;
    --color-primary-hover: #f2dbb8;
    --color-primary-contrast: #1b2a41;
    --color-warm: #e8c999;
    --color-band: #0a111c;
    --color-band-raised: #121c2c;
    --color-band-border: #22314a;
    --color-glow-warm: #8c5a22;
    --color-glow-cool: #3b587f;
    --glow-opacity: 0.45;
    --shadow: 0 2px 4px rgb(0 0 0 / 35%), 0 14px 32px rgb(0 0 0 / 45%);
    --shadow-lift: 0 4px 8px rgb(0 0 0 / 40%), 0 24px 48px rgb(0 0 0 / 55%);
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --color-bg: #0f1724;
  --color-bg-soft: #121c2b;
  --color-surface: #162133;
  --color-card: #1a273d;
  --color-border: #2a3a54;
  --color-text: #f1ede6;
  --color-text-muted: #a9b2bf;
  --color-accent: #d4a066;
  --color-accent-text: #d9a566;
  --color-tag-bg: #2e2619;
  --color-tag-text: #e8c999;
  --color-primary: #e8c999;
  --color-primary-hover: #f2dbb8;
  --color-primary-contrast: #1b2a41;
  --color-warm: #e8c999;
  --color-band: #0a111c;
  --color-band-raised: #121c2c;
  --color-band-border: #22314a;
  --color-glow-warm: #8c5a22;
  --color-glow-cool: #3b587f;
  --glow-opacity: 0.45;
  --shadow: 0 2px 4px rgb(0 0 0 / 35%), 0 14px 32px rgb(0 0 0 / 45%);
  --shadow-lift: 0 4px 8px rgb(0 0 0 / 40%), 0 24px 48px rgb(0 0 0 / 55%);
  color-scheme: dark;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-underline-offset: 0.18em; }
a:hover { color: var(--color-accent-text); }

h1, h2, h3, h4 {
  line-height: 1.12;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; }
h2 { font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.625rem); font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; }

p, li { text-wrap: pretty; }

/* Chinese and Japanese. Plus Jakarta Sans has no CJK glyphs, so the system's
   own CJK font follows it in the stack (the Latin letters keep the brand
   face). Tight negative tracking and short line heights are made for Latin
   capitals and crowd ideographs; strict line breaking keeps closing
   punctuation off the start of a line, and Japanese breaks between phrases
   where the browser can. */
:root:lang(zh) {
  --font-body: 'Plus Jakarta Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
    'Noto Sans CJK SC', 'Noto Sans SC', 'Source Han Sans SC', system-ui, sans-serif;
}
:root:lang(ja) {
  --font-body: 'Plus Jakarta Sans', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI',
    'Meiryo', 'Noto Sans CJK JP', 'Noto Sans JP', system-ui, sans-serif;
}
:lang(zh) body, :lang(ja) body { line-height: 1.75; line-break: strict; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) p, :lang(ja) li { word-break: auto-phrase; }
:root:lang(zh) :is(h1, h2, h3, h4), :root:lang(ja) :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.3; }

/* Arabic. Its letters join, and any letter-spacing pulls the joins apart, so
   tracking is off everywhere on the page; the script also wants more room
   between lines than Latin does. Layout mirrors through dir="rtl" and the
   logical properties (inline-start, inline-end) used throughout. */
:root:lang(ar) {
  --font-body: 'Plus Jakarta Sans', 'Noto Sans Arabic', 'Segoe UI', Tahoma, system-ui, sans-serif;
}
:root:lang(ar) * { letter-spacing: 0 !important; }
:lang(ar) body { line-height: 1.8; }
:root:lang(ar) :is(h1, h2, h3, h4) { line-height: 1.4; }

ul[class], ol[class] { list-style: none; }

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background-color: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: 0.1em 0.35em;
}

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

/* A class-based display beats the UA's [hidden] rule, so restate it. Without
   this the chat's Stop button never hides. */
[hidden] { display: none !important; }

/* Utilities */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--gutter);
  top: -4rem;
  z-index: 100;
  background-color: var(--color-primary);
  color: var(--color-primary-contrast);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus { top: 1rem; color: var(--color-primary-contrast); }

.eyebrow {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent-text);
}

.tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-tag-text);
  background-color: var(--color-tag-bg);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
}

/* Scroll reveal. Only ever hidden when JS is running, so a failed script or a
   reader without one still gets the whole page. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background-color: var(--color-primary); color: var(--color-primary-contrast); }
.btn-primary:hover { background-color: var(--color-primary-hover); color: var(--color-primary-contrast); }

.btn-outline { background-color: var(--color-bg); color: var(--color-text); border-color: var(--color-text); }
.btn-outline:hover { background-color: var(--color-surface); color: var(--color-text); }

.btn-light { background-color: #ffffff; color: #1b2a41; }
.btn-light:hover { background-color: #f6ead9; color: #1b2a41; }

.btn-small { font-size: 0.9375rem; padding: 0.55rem 1rem; }

.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.link-arrow {
  font-weight: 600;
  text-decoration: none;
}

.link-arrow:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  position: relative;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: 4rem;
  display: flex;
  align-items: center;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}

.nav__logo { display: flex; margin-inline-end: auto; }

.brand-logo { height: 28px; width: auto; }
.brand-logo--dark { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .brand-logo--light { display: none; }
  :root:not([data-theme='light']) .brand-logo--dark { display: block; }
}

:root[data-theme='dark'] .brand-logo--light { display: none; }
:root[data-theme='dark'] .brand-logo--dark { display: block; }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: var(--color-text);
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav__toggle:hover { background-color: var(--color-surface); }

.nav__toggle-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Three lines while shut, a cross while open */
.nav__toggle-close { display: none; }
.nav__toggle[aria-expanded='true'] .nav__toggle-open { display: none; }
.nav__toggle[aria-expanded='true'] .nav__toggle-close { display: inline; }

/* On a phone the links open as a small panel under the menu button, only as
   wide as the longest link, floating over the page rather than pushing it down */
.nav__links {
  display: none;
  position: absolute;
  top: calc(100% - 0.25rem);
  inset-inline-end: var(--gutter);
  width: max-content;
  flex-direction: column;
  margin: 0;
  padding: 0.4rem 0;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.nav__links.is-open { display: flex; }

.nav__links a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.9375rem;
  text-decoration: none;
}

.nav__links a[aria-current] { color: var(--color-accent-text); font-weight: 600; }

/* Shown from the tablet width up. On a phone it would hold nothing but the
   theme toggle, which is hidden while dark mode is switched off, and its empty
   box would push the menu button in from the edge. */
.nav__actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.nav__contact { display: none; }

.theme-toggle {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
}

.theme-toggle:hover { background-color: var(--color-surface); }

/* The language picker. A <details>, so it opens without script; it sits
   beside the menu button on a phone and after the links from the tablet up. */
.lang { position: relative; }

.lang__button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.5rem;
  padding: 0 0.7rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  list-style: none;
}

.lang__button::-webkit-details-marker { display: none; }
.lang__button:hover,
.lang[open] .lang__button { background-color: var(--color-surface); }

.lang__button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.lang__menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  inset-inline-end: 0;
  z-index: 60;
  min-width: 11rem;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lang__menu a {
  display: block;
  padding: 0.5rem 1.1rem;
  font-size: 0.9375rem;
  color: var(--color-text);
  text-decoration: none;
}

.lang__menu a:hover { background-color: var(--color-surface); }
.lang__menu a[aria-current] { color: var(--color-accent-text); font-weight: 600; }

/* One line on an English page, offering the visitor's own language */
.lang-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  padding: 0.6rem var(--gutter);
  font-size: 0.9375rem;
  color: var(--color-on-band);
  background-color: var(--color-band);
}

.lang-offer__text { margin: 0; }
.lang-offer__text a { color: var(--color-on-band-accent); font-weight: 600; }

.lang-offer__close {
  font: inherit;
  font-size: 0.875rem;
  color: var(--color-on-band-muted);
  background: none;
  border: 1px solid var(--color-band-border);
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  cursor: pointer;
}

.lang-offer__close:hover { color: var(--color-on-band); }

/* The bar under the header on an application page */
.subnav {
  position: sticky;
  top: 4rem;
  z-index: 40;
  background-color: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
}

.subnav__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.75rem;
  overflow-x: auto;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.subnav__name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  padding-block: 0.75rem;
}

.subnav__name img { width: 24px; height: 24px; border-radius: 6px; }

.subnav a {
  text-decoration: none;
  padding-block: 0.75rem;
  border-bottom: 2px solid transparent;
}

.subnav a:hover { border-bottom-color: var(--color-border); color: var(--color-text); }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--color-bg-soft), var(--color-bg));
  overflow: hidden;
}

.hero__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) clamp(3.5rem, 7vw, 5.5rem);
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero__text {
  display: grid;
  gap: 1.4rem;
  justify-items: start;
  min-width: 0;
}

.hero__lead {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 36ch;
}

.hero__art {
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: 1.5rem;
}

.glow {
  position: absolute;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: var(--glow-opacity);
  pointer-events: none;
}

.glow--warm { width: 62%; left: 6%; top: 2%; background-color: var(--color-glow-warm); }
.glow--cool { width: 52%; right: 4%; bottom: 0; background-color: var(--color-glow-cool); }

/* The six app icons on the home page */
.app-tiles {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.1rem);
  width: min(26rem, 100%);
}

.app-tiles__tile {
  display: flex;
  justify-content: center;
  background-color: var(--color-card);
  border-radius: 16px;
  padding: clamp(0.75rem, 2vw, 1.1rem);
  box-shadow: var(--shadow);
}

.app-tiles__tile:nth-child(3n + 2) { transform: translateY(-1.1rem); }

.app-tiles__tile img { width: 100%; max-width: 84px; height: auto; border-radius: 18px; }

/* How an application connects, on its own page */
.connect {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.connect__row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.connect__chip {
  background-color: var(--color-card);
  border-radius: var(--radius);
  padding: 0.75rem 1.1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: var(--shadow);
}

.connect__line {
  position: relative;
  width: 2px;
  height: 2.25rem;
  background-color: var(--color-text);
  opacity: 0.35;
}

.connect__line--out { background-color: var(--color-accent); opacity: 1; }

.connect__app {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: start;
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-lift);
}

.connect__app img { width: 56px; height: 56px; border-radius: 14px; }

.connect__app-name { display: block; font-weight: 700; font-size: 1.25rem; }
.connect__app-what { display: block; color: var(--color-text-muted); font-size: 0.9375rem; }

.connect__out {
  position: relative;
  background-color: var(--color-band);
  color: var(--color-on-band);
  border-radius: var(--radius);
  padding: 0.8rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: var(--shadow);
}

/* Sections */
.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }

.section--soft {
  background-color: var(--color-bg-soft);
  border-block: 1px solid var(--color-border);
}

.section--surface { background-color: var(--color-surface); }

.section__head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 2rem;
  max-width: 48rem;
}

.section__head p { font-size: 1.125rem; color: var(--color-text-muted); }

/* The product explorer: a list on the left, one app on the right. Without
   JavaScript the list is not needed and every panel shows in turn. */
.explorer {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.explorer__list {
  display: none;
  gap: 0.25rem;
}

.js .explorer__list { display: grid; }

.explorer__tab {
  font: inherit;
  text-align: start;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 0;
  border-inline-start: 3px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
}

.explorer__tab:hover { background-color: var(--color-surface); }

.explorer__tab[aria-selected='true'] {
  background-color: var(--color-card);
  border-inline-start-color: var(--color-accent);
  box-shadow: 0 2px 8px rgb(27 42 65 / 10%);
}

.explorer__tab img { width: 40px; height: 40px; border-radius: 10px; flex: none; }

.explorer__tab-name { display: block; font-weight: 700; }
.explorer__tab-area { display: block; font-size: 0.875rem; color: var(--color-text-muted); }

.explorer__panels { display: grid; gap: 1.5rem; min-width: 0; }

.explorer__panel {
  background-color: var(--color-surface);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3rem);
  display: grid;
  gap: 1.1rem;
  align-content: start;
}

.js .explorer__panel { min-height: 27rem; }
.explorer__panel[hidden] { display: none; }

.explorer__panel-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.explorer__panel-head img { width: 56px; height: 56px; border-radius: 14px; }

.explorer__panel h3 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); font-weight: 800; letter-spacing: -0.025em; }

.explorer__line { font-size: 1.25rem; color: var(--color-text-muted); }

.ticks { display: grid; gap: 0.7rem; }

.ticks li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.ticks svg { width: 20px; height: 20px; flex: none; margin-top: 0.2rem; color: var(--color-accent-text); }

.works {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.works li {
  font-size: 0.875rem;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.explorer__panel .actions { margin-top: 0.5rem; }

/* Cards */
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}

.cards--wide { grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); }

.card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: grid;
  gap: 0.35rem;
  align-content: start;
  transition: box-shadow 0.2s ease;
}

.section--surface .card { border-color: transparent; }

a.card { text-decoration: none; }
a.card:hover { box-shadow: var(--shadow); color: inherit; }

.card__title { font-weight: 700; font-size: 1.0625rem; }
.card__text { color: var(--color-text-muted); font-size: 0.9375rem; }

/* Three short benefits, each with a drawn icon */
.benefits {
  display: grid;
  gap: 2.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}

.benefit { display: grid; gap: 0.6rem; align-content: start; }
.benefit svg { width: 34px; height: 34px; color: var(--color-accent-text); }
.benefit h2, .benefit h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.015em; }
.benefit p { color: var(--color-text-muted); }

/* The dark callout */
.callout {
  position: relative;
  overflow: hidden;
  background-color: var(--color-band);
  color: var(--color-on-band);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.callout::before {
  content: '';
  position: absolute;
  right: -4rem;
  top: -5rem;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background-color: #b0793b;
  filter: blur(80px);
  opacity: 0.45;
}

.callout > * { position: relative; }

.callout__text { display: grid; gap: 0.6rem; max-width: 36rem; }
.callout .eyebrow { color: var(--color-on-band-accent); }
.callout p { color: var(--color-on-band-muted); }

/* Screenshots */
.shots {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr));
}

.shot { display: grid; gap: 0.6rem; }

.shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  background-color: var(--color-card);
}

.shot figcaption { font-size: 0.9375rem; color: var(--color-text-muted); }

/* Questions, as native details elements: they open without any script */
.faq {
  max-width: 56rem;
  border-top: 1px solid var(--color-border);
}

.faq details { border-bottom: 1px solid var(--color-border); }

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; color: var(--color-accent-text); }
.faq details[open] summary::after { content: '\2212'; }
.faq summary:hover { background-color: var(--color-bg-soft); }

.faq p { padding: 0 0.5rem 1.25rem; color: var(--color-text-muted); max-width: 64ch; }

/* The dark band at the foot of a page: the trial, or a way to get in touch */
.band {
  background-color: var(--color-band);
  color: var(--color-on-band);
}

.band__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  justify-content: space-between;
}

.band__text { display: grid; gap: 0.6rem; flex: 1 1 22rem; min-width: 0; color: var(--color-on-band); }
.band__text p { color: var(--color-on-band-muted); font-size: 1.125rem; }

/* The chat panel */
.chat {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 56rem;
}

.chat.is-retired { opacity: 0.72; }

.chat__log {
  padding: 1rem;
  display: grid;
  gap: 0.5rem;
  min-height: 14rem;
  max-height: 26rem;
  overflow-y: auto;
  align-content: start;
}

.chat__hint { color: var(--color-text-muted); font-size: 0.9375rem; margin-bottom: 1rem; }

.chat__msg {
  max-width: 44ch;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  white-space: pre-wrap;
}

.chat__msg--you {
  justify-self: end;
  background-color: var(--color-primary);
  color: var(--color-primary-contrast);
  border-bottom-right-radius: var(--radius-sm);
}

.chat__msg--them {
  justify-self: start;
  background-color: var(--color-surface);
  border-bottom-left-radius: var(--radius-sm);
}

.chat__msg--them.is-waiting { color: var(--color-text-muted); font-style: italic; }

.chat__note {
  font-size: 0.875rem;
  color: var(--color-warm);
  padding-inline: 0.2rem;
}

.chat__form {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg-soft);
}

.chat__input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
}

.chat__input::placeholder { color: var(--color-text-muted); }
.chat__input:disabled { cursor: not-allowed; }

.chat__send:disabled { opacity: 0.55; cursor: not-allowed; }

.chat__foot {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  padding: 0.5rem 1rem 1rem;
  background-color: var(--color-bg-soft);
}

.chat__leave {
  font: inherit;
  color: var(--color-accent-text);
  background: none;
  border: 0;
  padding: 0;
  margin-inline-start: 0.5rem;
  text-decoration: underline;
  cursor: pointer;
}

/* Leaving a message, inside the conversation */
.chat__message {
  display: grid;
  gap: 0.5rem;
  max-width: 32rem;
  padding: 1rem;
  background-color: var(--color-surface);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.chat__message-title { font-weight: 600; }

.chat__message label { display: grid; gap: 0.25rem; }

.chat__message input:not([type="checkbox"]),
.chat__message textarea {
  font: inherit;
  color: var(--color-text);
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  resize: vertical;
}

.chat__message .chat__message-check { display: flex; align-items: center; gap: 0.5rem; }

.chat__message-fine { font-size: 0.8125rem; color: var(--color-text-muted); }

.chat__message-status { font-size: 0.875rem; color: var(--color-warm); }
.chat__message-status:empty { display: none; }

.chat__message-actions { display: flex; gap: 0.5rem; }

/* Footer */
.site-footer {
  background-color: var(--color-surface);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 3rem var(--gutter) 1.75rem;
  display: grid;
  gap: 2.25rem;
}

.site-footer__cols {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr));
}

.site-footer__col { display: grid; gap: 0.5rem; align-content: start; }

.site-footer__col h2 { font-size: 0.9375rem; font-weight: 700; letter-spacing: 0; color: var(--color-text); }

.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--color-text); text-decoration: underline; }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
}

.site-footer__base .brand-logo { height: 20px; }

/* Tablet */
@media (min-width: 768px) {
  .nav { flex-wrap: nowrap; gap: 2rem; }
  .nav__logo { margin-inline-end: 0; }
  .nav__toggle { display: none; }
  .nav__links {
    display: flex;
    position: static;
    width: auto;
    flex-direction: row;
    gap: 1.75rem;
    padding: 0;
    margin-inline-end: auto;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .nav__links a { padding: 0; }
  .nav__actions { display: flex; order: 3; }
  .nav__contact { display: inline-flex; }
  .nav__links { order: 1; }
  .lang { order: 2; }
}

/* Desktop */
@media (min-width: 980px) {
  .hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .explorer { grid-template-columns: minmax(16rem, 1fr) minmax(0, 2fr); }
}
