/* Tissona public site: the kit's tokens (kit/css/tokens.css), the layout
   of the mockup "Tissona Site". No script. */

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

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

body {
  margin: 0;
  background: var(--tsn-surface);
  color: var(--tsn-fg);
  font-family: var(--tsn-font-family-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; text-wrap: pretty; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--tsn-focus-ring, var(--tsn-action-primary)); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; padding: 8px 12px; background: var(--tsn-surface); border-radius: var(--tsn-radius-md); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 880px; }
.section { padding-top: 88px; padding-bottom: 88px; }
.section-end { padding-top: 32px; padding-bottom: 96px; }
.spaced { margin-top: 48px; }
.muted { color: var(--tsn-fg-secondary); }
.small { font-size: 13px; color: var(--tsn-fg-secondary); }

/* Header */
.header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--tsn-border-subtle); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo img { width: 96px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 6px 10px; border-radius: var(--tsn-radius-md); font-size: 14px; font-weight: 500; color: var(--tsn-fg-secondary); text-decoration: none; }
.nav a:hover { color: var(--tsn-fg); background: var(--tsn-surface-subtle); }
.nav a[aria-current="page"] { color: var(--tsn-fg-brand); background: var(--tsn-surface-brand-subtle); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.link-quiet { font-size: 14px; font-weight: 500; text-decoration: none; }
.link-quiet:hover { color: var(--tsn-fg-brand); }

/* Buttons and links */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: var(--tsn-radius-md); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.header .button { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.button-primary { background: var(--tsn-action-primary); color: var(--tsn-action-on-primary); }
.button-primary:hover { background: var(--tsn-action-primary-hover); }
.button-secondary { background: var(--tsn-surface); border-color: var(--tsn-border-default); color: var(--tsn-fg); }
.button-secondary:hover { background: var(--tsn-surface-subtle); }
.button-inverse { background: var(--tsn-surface); color: var(--tsn-fg); }
.button-ghost-inverse { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.button-soon { cursor: default; opacity: 0.75; }
.link { color: var(--tsn-fg-link); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.badge { display: inline-block; padding: 2px 8px; border-radius: var(--tsn-radius-full); background: var(--tsn-surface-subtle); color: var(--tsn-fg-secondary); font-size: 12px; font-weight: 600; letter-spacing: 0; vertical-align: middle; }

/* Headings */
p.eyebrow { margin: 0 0 12px; color: var(--tsn-fg-brand); font-size: 14px; font-weight: 600; }
p.eyebrow-inverse { color: var(--tsn-blue-300); }
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.1; letter-spacing: -0.03em; }
.title { font-size: clamp(28px, 4vw, 38px); line-height: 1.2; }
.lead { margin-top: 20px; max-width: 620px; font-size: 19px; color: var(--tsn-fg-secondary); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }

/* Home */
.hero { border-bottom: 1px solid var(--tsn-border-subtle); background: radial-gradient(circle at 80% 30%, var(--tsn-blue-50), transparent 55%); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 48px; padding-top: 96px; padding-bottom: 96px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--tsn-fg-secondary); }
.checks li::before, .ticks li::before { content: "✓"; margin-right: 8px; color: var(--tsn-success-fg); font-weight: 700; }
.hero-card { padding: 32px; border: 1px solid var(--tsn-border-subtle); border-radius: var(--tsn-radius-2xl); background: var(--tsn-surface); box-shadow: var(--tsn-shadow-lg); }
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 72px; padding-bottom: 72px; }
.promises h2 { font-size: 17px; letter-spacing: 0; }
.promises p { margin-top: 8px; font-size: 15px; color: var(--tsn-fg-secondary); }

.band { padding-top: 88px; padding-bottom: 88px; border-top: 1px solid var(--tsn-border-subtle); border-bottom: 1px solid var(--tsn-border-subtle); background: var(--tsn-canvas); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 24px; border: 1px solid var(--tsn-border-subtle); border-radius: var(--tsn-radius-xl); background: var(--tsn-surface); }
.steps h3 { margin-top: 12px; font-size: 19px; }
.steps p { margin-top: 8px; color: var(--tsn-fg-secondary); font-size: 15px; }
.step-number { font-family: var(--tsn-font-family-mono); font-size: 13px; color: var(--tsn-fg-brand); }

.panel { padding: 40px; border: 1px solid var(--tsn-border-subtle); border-radius: var(--tsn-radius-2xl); background: var(--tsn-canvas); }
.panel h3 { font-size: 19px; }
.panel p { margin-top: 8px; color: var(--tsn-fg-secondary); }
.panel-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.panel-split .title + p, .panel-split .title + .muted { margin-top: 20px; }
.rule { display: grid; gap: 12px; }
.rule-bar { display: grid; grid-template-columns: 1fr 3fr; overflow: hidden; border-radius: var(--tsn-radius-md); font-size: 13px; font-weight: 600; }
.rule-free { padding: 10px; background: var(--tsn-slate-200); }
.rule-paid { padding: 10px; background: var(--tsn-teal-500); color: #fff; }
.rule-legend { display: grid; grid-template-columns: 1fr 3fr; font-size: 13px; color: var(--tsn-fg-secondary); }
.figures { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.figure { display: grid; padding: 16px; border: 1px solid var(--tsn-border-subtle); border-radius: var(--tsn-radius-lg); background: var(--tsn-surface); }
.figure strong { font-size: 26px; }
.figure span { font-size: 13px; color: var(--tsn-fg-secondary); }
.example { padding: 12px 16px; border: 1px solid var(--tsn-border-subtle); border-radius: var(--tsn-radius-lg); background: var(--tsn-surface); font-size: 14px; }
.example strong { color: var(--tsn-value-fg); }

.dark { background: var(--tsn-surface-inverse); color: #fff; padding-top: 88px; padding-bottom: 88px; }
.dark p { color: var(--tsn-slate-300); }
.dark .title + p { margin-top: 20px; }
.page-head-dark h1 { max-width: 820px; }
.page-head-dark .lead { color: var(--tsn-slate-300); }
.price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price-card { display: grid; gap: 6px; padding: 24px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--tsn-radius-xl); }
.price-card span { font-size: 13px; color: var(--tsn-slate-400); }
.price-card strong { font-size: 30px; }
.price-card small { font-size: 13px; color: var(--tsn-slate-300); }

.faq { margin-top: 32px; border-top: 1px solid var(--tsn-border-subtle); }
.faq details { border-bottom: 1px solid var(--tsn-border-subtle); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--tsn-fg-tertiary); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { padding-bottom: 18px; color: var(--tsn-fg-secondary); }
.narrow > p:last-child { margin-top: 24px; }

.cta { display: grid; justify-items: center; gap: 16px; padding: 56px 32px; border-radius: var(--tsn-radius-2xl); background: var(--tsn-surface-brand-subtle); text-align: center; }
.cta .title { max-width: 560px; }
.cta .actions { margin-top: 8px; justify-content: center; }

/* Inner pages */
.page-head { padding-top: 80px; padding-bottom: 56px; border-bottom: 1px solid var(--tsn-border-subtle); background: var(--tsn-canvas); }
.page-head h1 { max-width: 820px; font-size: clamp(32px, 5vw, 52px); }
.page-head .muted { margin-top: 16px; font-size: 14px; }
.page-head .notice { margin-top: 16px; }
.page-head-dark { padding-top: 96px; padding-bottom: 96px; }

.timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.timeline li { position: relative; padding: 0 0 40px 64px; counter-increment: step; }
.timeline li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--tsn-radius-full); background: var(--tsn-surface-brand-subtle); color: var(--tsn-fg-brand); font-weight: 700; }
.timeline li::after { content: ""; position: absolute; left: 19px; top: 48px; bottom: 8px; width: 2px; background: var(--tsn-border-subtle); }
.timeline li:last-child::after { display: none; }
.timeline h2 { font-size: 21px; letter-spacing: -0.01em; }
.timeline p { margin-top: 6px; max-width: 640px; color: var(--tsn-fg-secondary); }
.rule-steps { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; margin: 24px 0 0; }
.rule-steps dt { font-family: var(--tsn-font-family-mono); font-size: 14px; font-weight: 600; color: var(--tsn-fg-brand); }
.rule-steps dd { margin: 0; color: var(--tsn-fg-secondary); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 32px; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { padding: 28px; border: 1px solid var(--tsn-border-subtle); border-radius: var(--tsn-radius-xl); background: var(--tsn-surface); }
.card h2, .card h3 { font-size: 19px; letter-spacing: -0.01em; }
.card p { margin-top: 8px; color: var(--tsn-fg-secondary); font-size: 15px; }
.card-highlight { border-color: var(--tsn-action-primary); box-shadow: var(--tsn-shadow-md); }
.price { margin-top: 20px !important; color: var(--tsn-fg) !important; font-size: 34px !important; font-weight: 700; }
.price small { font-size: 14px; font-weight: 500; color: var(--tsn-fg-secondary); }
.ticks, .crosses { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 15px; }
.crosses li::before { content: "✕"; margin-right: 8px; color: var(--tsn-danger-fg); font-weight: 700; }
.section .panel { margin-top: 20px; }
.section > .title + .muted { margin-top: 12px; }
.steps-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 32px; }
.notice { padding: 14px 16px; border: 1px solid var(--tsn-warning-border); border-radius: var(--tsn-radius-lg); background: var(--tsn-warning-bg, #FFFAEB); color: var(--tsn-warning-fg); font-size: 15px; }

/* Legal texts */
.prose { font-size: 16px; }
.prose h2 { margin-top: 40px; font-size: 22px; letter-spacing: -0.01em; }
.prose h3 { margin-top: 28px; font-size: 18px; }
.prose p, .prose ul, .prose ol, .prose table { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 4px; }
.prose blockquote { margin: 0; padding: 14px 16px; border: 1px solid var(--tsn-warning-border); border-radius: var(--tsn-radius-lg); background: var(--tsn-warning-bg, #FFFAEB); color: var(--tsn-warning-fg); }
.prose blockquote p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--tsn-border-subtle); text-align: left; vertical-align: top; }
.prose th { color: var(--tsn-fg-secondary); font-weight: 600; }
.prose a { color: var(--tsn-fg-link); }
.versions { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--tsn-border-subtle); }
.versions h2 { font-size: 16px; }
.versions ul { margin: 12px 0 0; padding: 0; list-style: none; color: var(--tsn-fg-secondary); font-size: 14px; }
.versions li + li { margin-top: 6px; }

/* Footer */
.footer { border-top: 1px solid var(--tsn-border-subtle); background: var(--tsn-canvas); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.footer-grid img { width: 96px; }
.footer-grid .muted { margin-top: 12px; font-size: 14px; }
.footer nav { display: grid; align-content: start; gap: 8px; }
.footer h2 { margin-bottom: 4px; font-size: 13px; letter-spacing: 0; color: var(--tsn-fg-tertiary); }
.footer nav a { font-size: 14px; color: var(--tsn-fg-secondary); text-decoration: none; }
.footer nav a:hover { color: var(--tsn-fg); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--tsn-border-subtle); font-size: 13px; color: var(--tsn-fg-tertiary); }

/* Small screens */
@media (max-width: 900px) {
  .hero-grid, .panel-split { grid-template-columns: 1fr; }
  .price-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-inner { flex-wrap: wrap; gap: 8px 16px; height: auto; padding-top: 12px; padding-bottom: 12px; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .section, .band, .dark { padding-top: 56px; padding-bottom: 56px; }
  .hero-grid { padding-top: 56px; padding-bottom: 56px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .panel { padding: 24px; }
  .figures { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-actions .link-quiet { display: none; }
}

/* Opportunities */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.opportunities { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.opportunity { display: grid; gap: 14px; padding: 20px; border: 1px solid var(--tsn-border-subtle); border-radius: var(--tsn-radius-xl); background: var(--tsn-surface); box-shadow: var(--tsn-shadow-xs); text-decoration: none; transition: transform var(--motion-fast) var(--ease-out), box-shadow var(--motion-fast) var(--ease-out), border-color var(--motion-fast) var(--ease-out); }
.opportunity .figure-value { transition: background-color var(--motion-fast) var(--ease-out); }
@media (hover: hover) {
  .opportunity:hover { transform: translateY(calc(-1 * var(--motion-distance-xs))); border-color: var(--tsn-slate-300); box-shadow: var(--tsn-shadow-md); }
  .opportunity:hover .figure-value { background: var(--tsn-teal-100); }
}
.opportunity:active { opacity: 0.96; }
.opportunity-head { display: flex; align-items: center; gap: 10px; }
.opportunity-head .badge { margin-left: auto; }
.initials { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border: 1px solid var(--tsn-border-subtle); border-radius: var(--tsn-radius-md); background: var(--tsn-blue-50); color: var(--tsn-fg-brand); font-size: 13px; font-weight: 700; }
.initials-large { width: 56px; height: 56px; font-size: 18px; }
.opportunity-company { display: grid; font-size: 14px; font-weight: 600; }
.opportunity-company small { color: var(--tsn-success-fg); font-size: 12px; font-weight: 500; }
.opportunity h3 { font-size: 17px; letter-spacing: -0.01em; }
.opportunity-figures { display: flex; flex-wrap: wrap; gap: 8px; }
.opportunity-figures span { display: grid; padding: 8px 12px; border-radius: var(--tsn-radius-md); font-weight: 700; }
.opportunity-figures small { font-size: 11px; font-weight: 500; color: var(--tsn-fg-secondary); }
.figure-value { background: var(--tsn-value-bg); color: var(--tsn-value-fg); }
.figure-plain { background: var(--tsn-surface-subtle); }
.opportunity-foot { padding-top: 12px; border-top: 1px solid var(--tsn-border-subtle); font-size: 13px; color: var(--tsn-fg-secondary); }
.filters { display: flex; gap: 8px; margin-top: 8px; }
.filters input { flex: 1; min-width: 0; min-height: 44px; padding: 10px 14px; border: 1px solid var(--tsn-border-input); border-radius: var(--tsn-radius-md); font: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.chips a { padding: 6px 14px; border: 1px solid var(--tsn-border-default); border-radius: var(--tsn-radius-full); font-size: 14px; text-decoration: none; }
.chips a[aria-current] { border-color: var(--tsn-surface-inverse); background: var(--tsn-surface-inverse); color: #fff; }
.results { margin-bottom: 12px; }
.empty { display: grid; justify-items: center; gap: 8px; padding: 56px 24px; border: 1px dashed var(--tsn-border-default); border-radius: var(--tsn-radius-xl); text-align: center; }
.empty h2 { font-size: 20px; }
.cta-inline { margin-top: 48px; padding: 40px 32px; }
.opportunity-title { display: flex; align-items: center; gap: 20px; margin-top: 8px; }
.opportunity-title h1 { font-size: clamp(28px, 4.5vw, 44px); }
.opportunity-title .muted { margin: 0 0 4px; font-size: 15px; }
.campaign { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; padding-top: 48px; }
.campaign-main h2 { margin-top: 32px; font-size: 18px; letter-spacing: -0.01em; }
.campaign-main h2:first-child { margin-top: 0; }
.campaign-main p { margin-top: 8px; color: var(--tsn-fg-secondary); }
.windows { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.windows li { padding: 6px 12px; border-radius: var(--tsn-radius-full); background: var(--tsn-surface-subtle); font-size: 14px; font-weight: 500; }
.campaign-side { position: sticky; top: 88px; display: grid; gap: 16px; padding: 28px; border: 1px solid var(--tsn-border-subtle); border-radius: var(--tsn-radius-xl); background: var(--tsn-surface); box-shadow: var(--tsn-shadow-md); }
.campaign-rate { color: var(--tsn-value-fg); font-size: 36px; font-weight: 700; }
.campaign-side dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.campaign-side dt { color: var(--tsn-fg-secondary); }
.campaign-side dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 900px) {
  .campaign { grid-template-columns: 1fr; }
  .campaign-side { position: static; }
}

/* Motion (mockup "Tissona Motion"): transforms and opacity only, short
   distances, no bounce; the static state is the last frame, which is
   what "reduced motion" shows. */
:root {
  --motion-instant: 120ms;
  --motion-fast: 180ms;
  --motion-base: 240ms;
  --motion-moderate: 320ms;
  --motion-enter: 420ms;
  --motion-slow: 500ms;
  --motion-distance-xs: 2px;
  --motion-distance-sm: 4px;
  --motion-distance-md: 8px;
  --motion-distance-lg: 12px;
  --motion-stagger: 80ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
}

/* The top of a page arrives: title, then the rest (80 ms later). */
@keyframes enter { from { opacity: 0; transform: translateY(var(--motion-distance-lg)); } }
.hero h1, .page-head h1 { animation: enter var(--motion-enter) var(--ease-out) both; }
.hero .lead, .hero .actions, .hero .checks, .page-head .lead, .page-head .actions { animation: enter var(--motion-enter) var(--ease-out) var(--motion-stagger) both; }

/* The background drifts, in 40 s. */
.hero { position: relative; overflow: hidden; isolation: isolate; background: none; }
.hero::before { content: ""; position: absolute; inset: -20%; z-index: -1; background: radial-gradient(circle at 70% 35%, var(--tsn-blue-50), transparent 45%); animation: drift 40s var(--ease-in-out) infinite alternate; }
.hero-grid { position: relative; }
@keyframes drift { to { transform: translate(-6%, 4%); } }

/* Hero (M3): Vous → Tissona → Entreprise, the consent, then the call. */
.hero-link { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 10px; }
.hero-node { display: grid; justify-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--tsn-fg-secondary); }
.hero-avatar { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--tsn-border-subtle); border-radius: var(--tsn-radius-full); background: var(--tsn-surface-subtle); color: var(--tsn-fg); font-size: 14px; }
.hero-avatar-company { border-radius: var(--tsn-radius-md); background: var(--tsn-blue-50); color: var(--tsn-fg-brand); }
.hero-node-tissona { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid var(--tsn-border-subtle); border-radius: var(--tsn-radius-lg); background: var(--tsn-surface); box-shadow: var(--tsn-shadow-md); }
.hero-node-tissona::after { content: ""; position: absolute; inset: -6px; border-radius: 18px; box-shadow: 0 0 0 4px var(--tsn-blue-100); opacity: 0; }
.hero-line { position: relative; height: 2px; margin-bottom: 20px; }
.hero-line-2 { margin-bottom: 20px; }
.line-dashed, .line-solid { position: absolute; inset: 0; transform-origin: left center; }
.line-dashed { border-top: 1px dashed var(--tsn-slate-400); }
.line-solid { bottom: auto; height: 2px; border-radius: 1px; background: var(--tsn-action-primary); }
p.hero-consent { justify-self: center; width: fit-content; margin: 8px auto 0; padding: 4px 12px; border-radius: var(--tsn-radius-full); background: var(--tsn-success-bg, #ECFDF3); color: var(--tsn-success-fg); font-size: 12px; font-weight: 600; }
.hero-call { display: grid; gap: 6px; margin-top: 20px; padding: 20px; border-radius: var(--tsn-radius-xl); background: var(--tsn-surface-inverse); color: #fff; }
.hero-call-head { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.hero-call-head small { display: block; color: var(--tsn-slate-400); font-size: 12px; font-weight: 500; }
.hero-call .initials { border-color: transparent; }
.hero-timer, .hero-state { display: grid; }
.hero-timer > span, .hero-state > span { grid-area: 1 / 1; }
.hero-timer { margin-top: 8px; font-family: var(--tsn-font-family-mono); font-size: 36px; font-variant-numeric: tabular-nums; }
.hero-timer > span:not(:last-child) { opacity: 0; }
.hero-state { font-size: 14px; font-weight: 600; }
.hero-state > span:first-child { opacity: 0; color: var(--tsn-slate-300); }
.hero-state > span:last-child { color: var(--tsn-teal-300); }
.hero-amount { color: var(--tsn-teal-300); font-size: 15px; font-weight: 700; }

@keyframes line-draw-1 { 0%, 3.75% { transform: scaleX(0); } 16.25%, 92.5% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes line-solid-1 { 0%, 15% { opacity: 0; } 27.5%, 92.5% { opacity: 1; } 100% { opacity: 0; } }
@keyframes line-draw-2 { 0%, 25% { transform: scaleX(0); } 37.5%, 92.5% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes line-solid-2 { 0%, 31% { opacity: 0; } 40%, 92.5% { opacity: 1; } 100% { opacity: 0; } }
@keyframes tissona-glow { 0%, 15% { opacity: 0; } 20% { opacity: 1; } 27.5%, 100% { opacity: 0; } }
@keyframes consent-in { 0%, 15% { opacity: 0; transform: translateY(var(--motion-distance-sm)); } 22%, 92.5% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes call-in { 0%, 38.75% { opacity: 0; transform: translateY(var(--motion-distance-md)); } 44%, 92.5% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes timer-58 { 0%, 51.24% { opacity: 1; } 51.25%, 100% { opacity: 0; } }
@keyframes timer-59 { 0%, 51.24% { opacity: 0; } 51.25%, 63.74% { opacity: 1; } 63.75%, 100% { opacity: 0; } }
@keyframes timer-60 { 0%, 63.74% { opacity: 0; } 63.75%, 100% { opacity: 1; } }
@keyframes state-old { 0%, 63.75% { opacity: 1; transform: none; } 67.75%, 100% { opacity: 0; transform: translateY(calc(-1 * var(--motion-distance-sm))); } }
@keyframes state-new { 0%, 63.75% { opacity: 0; transform: translateY(var(--motion-distance-sm)); } 67.75%, 100% { opacity: 1; transform: none; } }
@keyframes value-in { 0%, 63.75% { opacity: 0; transform: translateY(var(--motion-distance-sm)); } 71%, 100% { opacity: 1; transform: none; } }

.hero-line-1 .line-dashed { animation: line-draw-1 8s var(--ease-in-out) infinite; }
.hero-line-1 .line-solid { animation: line-solid-1 8s var(--ease-out) infinite; }
.hero-line-2 .line-dashed { animation: line-draw-2 8s var(--ease-in-out) infinite; }
.hero-line-2 .line-solid { animation: line-solid-2 8s var(--ease-out) infinite; }
.hero-node-tissona::after { animation: tissona-glow 8s var(--ease-out) infinite; }
p.hero-consent { animation: consent-in 8s var(--ease-out) infinite; }
.hero-call { animation: call-in 8s var(--ease-out) infinite; }
.hero-timer > span:nth-child(1) { animation: timer-58 8s linear infinite; }
.hero-timer > span:nth-child(2) { animation: timer-59 8s linear infinite; }
.hero-timer > span:nth-child(3) { animation: timer-60 8s linear infinite; }
.hero-state > span:first-child { animation: state-old 8s var(--ease-out) infinite; }
.hero-state > span:last-child { animation: state-new 8s var(--ease-out) infinite; }
.hero-amount { animation: value-in 8s var(--ease-out) infinite; }

/* Trust (M8): the details stop at the edge of Tissona's space; the
   authorisation crosses it. */
.trust-flow { padding: 28px; border: 1px solid var(--tsn-border-subtle); border-radius: var(--tsn-radius-2xl); background: var(--tsn-canvas); }
.trust-parties { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.trust-track { position: relative; container-type: inline-size; height: 96px; margin-top: 12px; }
.trust-space { position: absolute; inset: 0 22% 0 22%; display: grid; place-items: start center; padding-top: 6px; border: 1px dashed var(--tsn-blue-300); border-radius: var(--tsn-radius-lg); background: var(--tsn-surface-brand-subtle); color: var(--tsn-fg-brand); font-size: 12px; font-weight: 600; }
.trust-chip { position: absolute; left: 0; padding: 6px 12px; border-radius: var(--tsn-radius-full); font-size: 13px; font-weight: 600; white-space: nowrap; }
.trust-data { top: 30px; background: var(--tsn-surface); border: 1px solid var(--tsn-border-default); color: var(--tsn-fg-secondary); transform: translateX(calc(78cqw - 100%)); opacity: 0.55; }
.trust-auth { top: 62px; background: var(--tsn-action-primary); color: #fff; transform: translateX(calc(100cqw - 100%)); }
.trust-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--tsn-fg-secondary); counter-reset: trust; }
.trust-steps li { counter-increment: trust; }
.trust-steps li::before { content: counter(trust) " · "; color: var(--tsn-fg-brand); font-weight: 700; }
@keyframes trust-data { 0%, 5% { transform: translateX(0); opacity: 1; } 35% { transform: translateX(calc(78cqw - 100%)); opacity: 1; } 50%, 93% { transform: translateX(calc(78cqw - 100%)); opacity: 0.55; } 100% { transform: translateX(calc(78cqw - 100%)); opacity: 0; } }
@keyframes trust-auth { 0%, 45% { transform: translateX(0); opacity: 0; } 50% { transform: translateX(0); opacity: 1; } 85%, 93% { transform: translateX(calc(100cqw - 100%)); opacity: 1; } 100% { transform: translateX(calc(100cqw - 100%)); opacity: 0; } }
.trust-data { animation: trust-data 7s var(--ease-in-out) infinite; }
.trust-auth { animation: trust-auth 7s var(--ease-in-out) infinite; }

@media (max-width: 700px) {
  .trust-chip { font-size: 11px; }
  .trust-steps { grid-template-columns: 1fr; }
}

/* Reduced motion: no loop, no entry; every animation shows its last frame. */
@media (prefers-reduced-motion: reduce) {
  :root { --motion-enter: 0ms; --motion-slow: 120ms; }
  *, *::before, *::after { animation: none !important; transition-duration: var(--motion-instant) !important; }
  .opportunity:hover { transform: none; }
}

/* A company's link (task 013). */
.join-qr { display: block; width: 176px; height: 176px; margin: 12px auto; border: 1px solid var(--tsn-border-subtle); border-radius: 8px; }
.join-code { margin-top: 12px; }
