/* PromptBio website. Colours, type and radii follow the platform (platform.promptbio.ai). */

@font-face { font-family: 'IBM Plex Sans'; src: url('/fonts/ibm-plex/sans/IBMPlexSans-Regular.woff2') format('woff2'); font-weight: 100 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('/fonts/ibm-plex/sans/IBMPlexSans-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('/fonts/ibm-plex/sans/IBMPlexSans-SemiBold.woff2') format('woff2'); font-weight: 600 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/ibm-plex/mono/IBMPlexMono-Regular.woff2') format('woff2'); font-weight: 100 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/ibm-plex/mono/IBMPlexMono-Medium.woff2') format('woff2'); font-weight: 500 900; font-style: normal; font-display: swap; }

:root {
  --purple: #844ca8;
  --purple-hover: #6f3c8f;
  --purple-deep: #552b7c;
  --ink: #2a123f;
  --text: #374151;
  --muted: #4b5563;
  --ground: #f7f3fb;
  --tint: #f9f4fc;
  --lilac: #f0e6f5;
  --line: #e4d8f2;
  --line-soft: #ece6f3;
  --outline: #c9b3dd;
  --field: #9477b0;
  --on-dark: #efe6f7;
  --on-dark-soft: #e3d3f1;
  --error: #b42318;
  --success: #1a7f4b;
  --hero: linear-gradient(105deg, #33164f 0%, #4a2374 55%, #5f3190 100%);
  --band: linear-gradient(105deg, #5a2c86 0%, #844ca8 100%);
  --tile: linear-gradient(135deg, #4a2374, #844ca8);
  --rule: linear-gradient(90deg, #4a2374, #b58ad6);
  --radius: 10px;
  --radius-card: 16px;
  --radius-hero: 24px;
  --section: clamp(48px, 6vw, 80px);
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --tracking: 0.14em;
  --tight: -0.012em;
}
/* Chinese text reads better without the Latin letter-spacing. */
:lang(zh) { --tracking: 0.06em; --tight: 0; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--ground); }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--purple-hover); }
a:hover { color: var(--purple-deep); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 4px; }
.hero :focus-visible, .band :focus-visible, .site-footer :focus-visible { outline-color: #ffffff; }
[hidden] { display: none !important; }
.icon { flex: none; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--radius); background: var(--ink); color: #ffffff; }
.skip-link:focus { top: 12px; color: #ffffff; }

/* Layout */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.section-top { padding-top: clamp(28px, 4vw, 44px); }
.section-bottom { padding-bottom: var(--section); }
.section-gap { height: var(--section); }
.surface { background: #ffffff; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.stack-xs, .stack-sm, .stack-md, .stack-lg { display: flex; flex-direction: column; }
.stack-xs { gap: 10px; }
.stack-sm { gap: 20px; }
.stack-md { gap: 30px; }
.stack-lg { gap: 36px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; }
.split > .heading { flex: 1 1 420px; }
.split-art { flex: 1 1 320px; min-width: 0; max-width: 460px; }
.heading-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Type */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: var(--tracking); text-transform: uppercase; color: var(--purple-hover); }
.eyebrow.on-dark { color: var(--on-dark-soft); }
.heading { display: flex; flex-direction: column; gap: 14px; }
.rule { display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--rule); }
.h-section { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; font-weight: 600; letter-spacing: var(--tight); color: var(--ink); }
.h-card { font-size: 18px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.heading .lede { max-width: 58ch; font-size: 17px; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; font-size: 15px; font-weight: 600; color: var(--purple-hover); text-decoration: none; cursor: pointer; }
.text-link:hover { color: var(--purple-deep); text-decoration: underline; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--radius); font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.btn-block { display: flex; width: 100%; min-height: 46px; }
.btn-primary { background: var(--purple); color: #ffffff; }
.btn-primary:hover { background: var(--purple-hover); color: #ffffff; }
.btn-white { background: #ffffff; color: var(--purple-deep); }
.btn-white:hover { background: var(--lilac); color: var(--purple-deep); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: #ffffff; font-weight: 500; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #ffffff; }
.btn-outline { border-color: var(--outline); color: var(--purple-hover); font-weight: 500; }
.btn-outline:hover { background: var(--tint); color: var(--purple-deep); border-color: var(--field); }
.btn-strong { border-color: var(--field); color: var(--purple-deep); font-weight: 600; }
.btn-on-tint { align-self: flex-start; min-height: 46px; background: #ffffff; border-color: var(--field); color: var(--purple-deep); font-weight: 600; }
.btn[aria-disabled='true'] { opacity: 0.6; cursor: default; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: #ffffff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; min-height: 68px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { display: block; height: 28px; width: auto; }
.header-menu { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 12px 28px; }
.main-nav { display: flex; align-items: center; gap: 4px 26px; margin: 0 auto; font-size: 14px; font-weight: 500; }
.main-nav a { padding: 12px 0; color: var(--text); text-decoration: none; white-space: nowrap; }
.main-nav a:hover { color: var(--purple-deep); }
.main-nav a[aria-current] { color: var(--purple-deep); font-weight: 600; box-shadow: inset 0 -2px 0 var(--purple); }
.header-actions { display: flex; align-items: center; gap: 8px 12px; font-size: 14px; }
.header-link { padding: 12px 6px; color: var(--text); font-weight: 500; text-decoration: none; white-space: nowrap; }
.header-link:hover { color: var(--purple-deep); }
.header-actions .btn { min-height: 44px; padding: 0 18px; white-space: nowrap; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; border: 0; border-radius: var(--radius); background: transparent; color: var(--ink); cursor: pointer; }

.lang-menu { position: relative; }
.lang-menu summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: var(--radius); color: var(--text); font-weight: 500; white-space: nowrap; cursor: pointer; list-style: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: var(--tint); color: var(--purple-deep); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: 220px; padding: 8px; background: #ffffff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(46, 16, 101, 0.16); font-size: 15px; }
.lang-menu li a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.lang-menu li a:hover { background: var(--tint); }
.lang-menu li a[aria-current] { background: var(--lilac); color: var(--purple-deep); font-weight: 600; }

.lang-notice { background: var(--lilac); color: var(--ink); font-size: 14px; }
.lang-notice-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 18px; }
.lang-notice a, .notice-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--purple-deep); font-weight: 600; text-decoration: underline; cursor: pointer; }
.notice-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; color: var(--purple-deep); cursor: pointer; }

@media (max-width: 1159px) {
  .nav-toggle { display: inline-flex; }
  .js .header-menu { display: none; }
  .header-row { flex-wrap: wrap; }
  .header-menu, .js .header-menu.open { display: flex; flex: 1 0 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 0 16px; border-top: 1px solid var(--line-soft); }
  /* The open menu hangs below the header, so opening it never moves the page, and scrolls by itself
     when it is taller than the screen (phones held sideways). */
  .js .header-menu.open { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 69px); max-height: calc(100dvh - 69px); overflow-y: auto; padding: 8px 24px 16px; background: #ffffff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(46, 16, 101, 0.12); }
  .no-js .site-header { position: static; }
  .no-js .nav-toggle { display: none; }
  .main-nav { flex-direction: column; align-items: stretch; gap: 0; margin: 0; font-size: 16px; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line-soft); }
  .main-nav a[aria-current] { box-shadow: inset 3px 0 0 var(--purple); padding-left: 14px; }
  .header-actions { flex-wrap: wrap; padding-top: 8px; font-size: 15px; }
  /* Inside the menu the language list is part of the flow; a floating list would be clipped by the menu's own scroll. */
  .lang-menu { flex: 1 0 100%; }
  .lang-menu ul { position: static; width: auto; margin-top: 4px; box-shadow: none; }
}

/* Purple surfaces: the hero and everything that echoes it */
.hero-wrap { padding-top: 28px; }
.hero { position: relative; overflow: hidden; border-radius: var(--radius-hero); background: var(--hero); color: var(--on-dark); }
.hero > * { position: relative; }
.hero > .hero-star { position: absolute; right: -40px; top: -70px; width: min(40%, 420px); opacity: 0.85; pointer-events: none; }
.hero h1, .hero h2 { color: #ffffff; font-weight: 600; letter-spacing: var(--tight); }
.hero h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; }

.hero-inner { display: flex; flex-direction: column; gap: 14px; padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 64px); }
.hero-inner h1 { max-width: 24ch; }
:lang(zh) .hero-inner h1 { max-width: 20em; }
h1, h2, .card-title { text-wrap: balance; }
.hero-inner .lede { max-width: 66ch; font-size: 17px; line-height: 1.5; }

.hero-home { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 48px; padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 64px); }
.hero-home > .hero-star { right: -50px; width: min(52%, 600px); opacity: 0.9; }
.hero-copy { flex: 1.1 1 420px; display: flex; flex-direction: column; gap: 20px; }
.hero-home h1 { font-size: clamp(32px, 3.8vw, 48px); }
.sentence { display: inline-block; }
.hero-copy .lede { font-size: 17px; line-height: 1.5; }
.hero-copy .button-row { margin-top: 6px; }

.prompt { flex: 1 1 400px; min-width: 0; overflow: hidden; border-radius: var(--radius-card); background: #ffffff; color: var(--text); box-shadow: 0 24px 56px rgba(20, 6, 40, 0.38); }
.prompt-bar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--ground); border-bottom: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.prompt-bar .mono { min-width: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.prompt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); }
.prompt-app { font-weight: 500; color: var(--text); }
.prompt-body { display: flex; flex-direction: column; gap: 16px; padding: 24px 22px 22px; }
.prompt-greeting { font-size: 21px; font-weight: 600; color: var(--ink); text-align: center; }
.prompt-box { display: flex; flex-direction: column; gap: 14px; padding: 14px 16px; border: 1px solid #d5c2e1; border-radius: 12px; }
.prompt-text { display: grid; font-size: 15px; color: var(--text); }
.prompt-text > span { grid-area: 1 / 1; }
.prompt-sizer { visibility: hidden; }
/* The hidden copies carry a caret too, so the line the caret may wrap onto is already reserved. */
.prompt-live::after, .prompt-sizer::after { content: ''; display: inline-block; width: 8px; height: 1.1em; margin-left: 2px; vertical-align: text-bottom; background: var(--purple); }
.prompt-live::after { animation: caret 1s steps(1) infinite; }
.prompt-text.done .prompt-live::after { animation: none; }
@keyframes caret { 50% { opacity: 0; } }
.prompt-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prompt-chips { display: flex; gap: 8px; font-size: 13px; color: var(--purple-hover); }
.prompt-chips span { padding: 4px 10px; border-radius: 999px; background: var(--lilac); white-space: nowrap; }
.prompt-send { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tile); color: #ffffff; }
.prompt-steps { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.prompt-steps div { display: flex; align-items: baseline; gap: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--tint); }
.prompt-steps .mono { flex: none; font-size: 12px; color: var(--purple-hover); }

.closing { padding-bottom: var(--section); }
.hero-closing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(32px, 6vw, 64px); }
.hero-closing > .hero-star { right: -60px; top: -80px; width: min(42%, 440px); opacity: 0.7; }
.closing-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 8px; }
.closing-text h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; }

.band { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 52px; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-hero); background: var(--band); color: #f6effb; }
.band-text { flex: 1 1 320px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.band h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; font-weight: 600; letter-spacing: var(--tight); color: #ffffff; }
.band .eyebrow.on-dark { color: #f6effb; }
.band-video { flex: 1.4 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.video { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #ffffff; box-shadow: 0 20px 48px rgba(20, 6, 40, 0.32); text-decoration: none; }
.video img { width: min(44%, 300px); }
.video-play { display: flex; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: 50%; background: linear-gradient(135deg, #33164f, #844ca8); color: #ffffff; transition: transform 0.15s; }
.video:hover .video-play { transform: scale(1.06); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Light purple panel: the in-page echo of the banner. The dark banner itself is kept for the top and bottom of a page. */
.panel { border: 1px solid #dcc8ec; border-radius: var(--radius-hero); background: linear-gradient(160deg, #f6eefa 0%, #e9dcf3 100%); color: var(--text); }
.panel h2:not(.eyebrow) { color: var(--ink); font-weight: 600; letter-spacing: var(--tight); }

/* Cards */
.card { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius-card); }
.card h3, .card .card-title { font-size: 18px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.card p { font-size: 15px; color: var(--muted); }
.card p.eyebrow, .card h2.eyebrow { font-size: 12px; color: var(--purple-hover); }
.card-row { flex-direction: row; align-items: flex-start; gap: 18px; }
.card-tint { background: var(--tint); border-color: transparent; gap: 12px; }
.card-lilac { background: var(--lilac); border-color: transparent; }
.card-lilac p { color: var(--text); }
.card-link { text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.card-link:hover { border-color: var(--outline); box-shadow: 0 8px 24px rgba(46, 16, 101, 0.08); }
.card-note { font-size: 14px; color: var(--muted); }
.number-chip { align-self: flex-start; padding: 4px 10px; border-radius: 8px; background: var(--tile); color: #ffffff; font-family: var(--mono); font-size: 13px; }
.icon-tile { flex: none; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--tile); color: #ffffff; }
.label-chip { align-self: flex-start; padding: 3px 9px; border-radius: 6px; background: #5f3190; color: #ffffff; font-family: var(--mono); font-size: 12px; text-transform: uppercase; white-space: nowrap; }
.entry-meta .label-chip { max-width: 100%; white-space: normal; }
.label-chip-soft { background: var(--lilac); color: var(--purple-deep); }
.tag { align-self: flex-start; padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; background: #ffffff; color: var(--purple-hover); font-family: var(--mono); font-size: 12px; }

.genies { display: flex; flex-wrap: wrap; gap: 20px; }
.genies-lead { flex: 1 1 320px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 16px; min-height: 360px; padding: clamp(28px, 4vw, 44px); }
.genies-lead h2 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; }
.genies-grid { flex: 2 1 560px; min-width: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.genies-grid .card { padding: 24px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.step { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius-card); background: var(--tint); }
.step h3 { font-size: 18px; font-weight: 600; color: var(--ink); }
.step p { font-size: 15px; color: var(--muted); }
.step-number { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #33164f, #844ca8); color: #ffffff; font-weight: 600; }

/* Lists: news, publications, use cases, FAQ */
.list-card { overflow: hidden; background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius-card); }
.list-card > * + * { border-top: 1px solid var(--line-soft); }
.list-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; font-size: 14px; color: var(--muted); }
.news-row { display: flex; flex-wrap: wrap; gap: 6px 28px; padding: 20px 24px; text-decoration: none; }
.news-row:hover { background: var(--tint); }
/* The list clips its children, so draw the focus ring inside the row. */
.news-row:focus-visible, .faq-item summary:focus-visible { outline-offset: -2px; }
.news-date { flex: none; width: 150px; font-size: 13px; color: var(--purple-hover); }
.news-title { flex: 1 1 360px; font-weight: 500; color: var(--ink); }
.news-entry { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 22px 26px; }
.news-when { flex: none; width: 170px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--purple-hover); }
.news-what { flex: 1 1 380px; display: flex; flex-direction: column; gap: 6px; }
.news-what h2 { font-size: 18px; line-height: 1.35; font-weight: 600; color: var(--ink); }
.news-what p { font-size: 15px; color: var(--muted); }

.entry { display: flex; flex-wrap: wrap; gap: 16px 28px; padding: 26px; }
.entry-cover { flex: none; width: 132px; align-self: flex-start; }
.entry-cover img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 16px rgba(46, 16, 101, 0.10); }
.entry-body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--purple-hover); }
.entry h2 { font-size: 19px; line-height: 1.35; font-weight: 600; color: var(--ink); }
.entry p { max-width: 92ch; font-size: 15px; color: var(--muted); }
.abstract { display: flex; flex-direction: column; gap: 10px; }
.js .abstract:not(.open) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.js .abstract:not(.open) p + p { display: none; }
.abstract-toggle[aria-expanded='true'] .icon { transform: rotate(180deg); }

.faq-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; font-size: 14px; }
.faq-tabs button { min-height: 44px; padding: 0 18px; border: 1px solid var(--outline); border-radius: 999px; background: #ffffff; color: var(--purple-deep); font-weight: 500; cursor: pointer; }
.faq-tabs button:hover { background: var(--tint); }
.faq-tabs button[aria-selected='true'] { border-color: #5f3190; background: var(--tile); color: #ffffff; font-weight: 600; }
.faq { display: flex; flex-direction: column; }
.faq-group { display: flex; flex-direction: column; gap: 12px; }
.faq-group + .faq-group { margin-top: 32px; }
.faq-group > h3 { font-size: 18px; font-weight: 600; color: var(--ink); }
.faq.tabbed .faq-group + .faq-group { margin-top: 0; }
.faq.tabbed .faq-group > h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 14px 22px; color: var(--ink); font-weight: 500; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--purple-hover); transition: transform 0.15s; }
.faq-item summary:hover { background: var(--tint); }
.faq-item[open] { background: var(--tint); }
.faq-item[open] summary { font-weight: 600; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-answer { display: flex; flex-direction: column; gap: 10px; max-width: 96ch; padding: 2px 22px 22px; font-size: 15px; color: var(--muted); }
.faq-answer ul { display: flex; flex-direction: column; gap: 6px; padding-left: 20px; list-style: disc; }
.faq-answer strong { font-weight: 600; color: var(--ink); }

/* Plans */
.plans { grid-template-columns: repeat(4, 1fr); align-items: stretch; }
@media (max-width: 1099px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 26px 24px; background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius-card); }
.plan h2 { font-size: 18px; font-weight: 600; color: var(--ink); }
.plan-price { font-size: 14px; color: var(--muted); }
.plan-price span { margin-right: 4px; font-size: 36px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.plan-note { font-size: 13px; font-weight: 500; color: var(--purple-hover); }
.plan-body { min-height: 6.2em; font-size: 14px; color: var(--muted); }
.plan .eyebrow { margin-top: 6px; font-size: 11px; }
.checks { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.checks li { display: flex; align-items: flex-start; gap: 10px; }
.checks .icon { margin-top: 3px; color: var(--purple); }
/* The trial card is marked with the light panel and a purple edge, not a second dark banner under the page banner. */
.plan-featured { border-color: var(--purple); background: linear-gradient(160deg, #f6eefa 0%, #e9dcf3 100%); box-shadow: 0 10px 28px rgba(46, 16, 101, 0.10); }
.plan-featured .plan-price, .plan-featured .plan-body { color: var(--text); }

/* Company */
.fact { flex-direction: column-reverse; gap: 4px; padding: 22px 24px; }
.fact dt { font-size: 14px; color: var(--muted); }
.fact dd { font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: var(--tight); color: var(--ink); }
.mission-row { display: flex; flex-wrap: wrap; gap: 20px; }
.mission { flex: 1.2 1 420px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; min-height: 260px; padding: clamp(28px, 4vw, 44px); }
.mission p { max-width: 24ch; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; font-weight: 600; letter-spacing: var(--tight); color: var(--purple-deep); }
.mission .eyebrow, .vision .eyebrow { font-size: 12px; }
.vision { flex: 1 1 380px; justify-content: flex-end; gap: 14px; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-hero); }
.vision p:not(.eyebrow) { font-size: 19px; line-height: 1.45; font-weight: 500; color: var(--ink); }
.team { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.team > .heading { flex: 1 1 380px; }
.team > .stack-md { flex: 1.2 1 420px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; font-size: 15px; color: var(--ink); }
.tags li { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint); }
.tags-outline li { border-color: var(--outline); background: #ffffff; font-weight: 500; }

/* Forms */
.form-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.form { flex: 1.5 1 460px; min-width: 0; gap: 20px; padding: clamp(24px, 3vw, 36px); }
.form-layout > aside { flex: 1 1 300px; }
.form .h-section { font-size: 26px; }
.field-pair { display: flex; flex-wrap: wrap; gap: 20px; }
.field-pair .field { flex: 1 1 220px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text); }
.field input, .field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--field); border-radius: var(--radius); background: #ffffff; color: #1f2937; font: inherit; }
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; border-color: var(--purple); }
.field [aria-invalid='true'] { border-color: var(--error); }
.card .field-error { font-size: 13px; color: var(--error); }
.checkbox { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--muted); cursor: pointer; }
.checkbox input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--purple); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.card .form-status { font-size: 15px; font-weight: 500; color: var(--success); }
.card .form-status.failed { color: var(--error); }
.js .form-nojs { display: none; }
/* Without the script the form cannot send, so only the note with the email address is offered. */
.no-js .form [type='submit'], .no-js .footer-language { display: none; }

/* Legal */
.legal-note { margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.legal { gap: 14px; max-width: 920px; margin: 0 auto; padding: clamp(24px, 4vw, 48px); }
.legal h2 { margin-top: 18px; font-size: 19px; font-weight: 600; color: var(--ink); }
.legal p, .legal li { font-size: 15px; color: var(--text); }
.legal ul, .legal ol { display: flex; flex-direction: column; gap: 8px; padding-left: 22px; list-style: disc; }
.legal ol { list-style: decimal; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark); font-size: 14px; }
.site-footer a { color: #ffffff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-main { display: flex; flex-wrap: wrap; gap: 32px 64px; padding-top: 48px; padding-bottom: 28px; }
.footer-brand { flex: 1 1 300px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer-brand img { height: 28px; width: auto; margin-bottom: 4px; }
.footer-brand a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-col { display: flex; flex-direction: column; gap: 4px; }
.footer-col h2 { padding-bottom: 6px; font-size: 11px; font-weight: 600; letter-spacing: var(--tracking); text-transform: uppercase; color: #cdb8e0; }
.footer-col a { padding: 6px 0; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-top: 18px; padding-bottom: 32px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.footer-notes { flex: 1 1 420px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.footer-links a { padding: 8px 0; text-decoration: underline; }
.footer-language { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 8px; background: transparent; color: #ffffff; cursor: pointer; }
.footer-language:hover { background: rgba(255, 255, 255, 0.1); }

@media (max-width: 640px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .js .header-menu.open { padding-left: 16px; padding-right: 16px; }
  .hero-wrap { padding-top: 16px; }
  .hero, .band { border-radius: 18px; }
  .card, .entry, .news-entry { padding: 20px; }
  .entry-cover { width: 96px; }
  .news-date, .news-when { width: auto; flex-direction: row; align-items: center; }
  .button-row .btn { flex: 1 1 auto; }
  .plan-body { min-height: 0; }
}

@media print {
  .site-header { position: static; }
  .nav-toggle, .header-menu, .lang-notice, .faq-tabs, .abstract-toggle, .closing, .video { display: none !important; }
  .faq .faq-group[hidden] { display: flex !important; }
  .faq.tabbed .faq-group + .faq-group { margin-top: 32px; }
  .faq.tabbed .faq-group > h3 { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .js .abstract:not(.open) { display: flex; overflow: visible; }
  .js .abstract:not(.open) p + p { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
