/* Alyze. Tokens come from the brand assets: the wordmark ink and the cyan of the Alyze platform. */
:root {
  --night: #081a1d;
  --ink: #0e282c;
  --paper: #eef2f0;
  --mist: #a3b8b5;
  --slate: #4a6064;
  --signal: #1ebac0;
  --signal-text: #0b6f74;
  --rule-dark: rgba(163, 184, 181, .2);
  --rule-light: rgba(14, 40, 44, .16);

  --f-display: "Josefin Sans", "Futura", "Century Gothic", sans-serif;
  --f-text: "Source Serif 4", "Georgia", serif;
  --f-mono: "Martian Mono", ui-monospace, "Consolas", monospace;

  --t-hero: clamp(2.5rem, 1.2rem + 4.2vw, 5.2rem);
  --t-h2: clamp(2rem, 1.2rem + 2.7vw, 3.7rem);
  --t-h3: clamp(1.2rem, 1rem + .6vw, 1.55rem);
  --t-lead: clamp(1.12rem, 1rem + .5vw, 1.4rem);
  --t-body: clamp(1.02rem, .97rem + .22vw, 1.15rem);
  --t-mono: .7rem;

  --pad: clamp(1.25rem, 5vw, 5rem);
  --max: 82rem;
  --section: clamp(5rem, 10vw, 9rem);
  --header-h: 4.6rem;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-text); font-size: var(--t-body); line-height: 1.62; font-optical-sizing: auto; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--paper); padding: .6rem 1rem; }

p, li, figcaption { text-align: justify; hyphens: manual; -webkit-hyphens: manual; text-align-last: left; }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 200; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: var(--t-hero); line-height: 1.02; }
h2 { font-size: var(--t-h2); line-height: 1.06; }
h3 { font-size: var(--t-h3); font-weight: 400; line-height: 1.2; letter-spacing: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.dark { background: var(--night); color: var(--paper); }
.dark p { color: #d5e0de; }
.section { padding: var(--section) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 6rem); align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head p { margin: 0; }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; } }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; gap: .6em; font-family: var(--f-display); font-weight: 400; font-size: 1rem; letter-spacing: .01em; text-decoration: none; padding: .95em 1.5em .8em; border-radius: 999px; border: 0; cursor: pointer; background: var(--signal); color: var(--night); transition: background .3s var(--ease), color .3s var(--ease); }
.btn:hover { background: var(--paper); }
.link { position: relative; display: inline-flex; align-items: center; gap: .55em; font-family: var(--f-display); font-size: 1rem; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: .15em; transition: background-size .35s var(--ease); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.link::after { content: ""; position: absolute; inset: -12px -8px; }
.play-mark { width: 0; height: 0; border-style: solid; border-width: .38em 0 .38em .62em; border-color: transparent transparent transparent currentColor; }

/* Header: transparent over the hero, solid as soon as the page scrolls */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--paper); transition: background .35s var(--ease), box-shadow .35s var(--ease); }
.site-header.is-solid { background: var(--night); box-shadow: 0 1px 0 var(--rule-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { width: 6.4rem; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.site-nav a:not(.btn) { position: relative; font-family: var(--f-display); font-size: .98rem; text-decoration: none; opacity: .82; transition: opacity .25s; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; inset: -12px -8px; }
.site-nav a:not(.btn):hover { opacity: 1; }
.site-nav .btn { padding: .75em 1.2em .6em; font-size: .92rem; }
@media (max-width: 860px) { .site-nav .anchor { display: none; } .brand img { width: 5.4rem; } }

/* Hero with the product film as the protagonist */
.hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)) 0 clamp(4rem, 8vw, 7rem); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70rem 36rem at 80% 0%, rgba(30, 186, 192, .12), transparent 70%); }
.hero-copy { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 6rem); align-items: end; }
.hero h1 { max-width: 12.5em; }
.hero .lead { font-size: var(--t-lead); line-height: 1.5; margin: 0; color: #d5e0de; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; margin-top: 2rem; }
@media (max-width: 900px) { .hero-copy { grid-template-columns: 1fr; gap: 1.6rem; } }

.showreel { position: relative; margin: clamp(3rem, 6vw, 5rem) 0 0; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: clamp(10px, 1.4vw, 18px); overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(163, 184, 181, .16), 0 50px 120px -40px rgba(30, 186, 192, .35), 0 40px 80px -30px rgba(0, 0, 0, .7); }
.player video { width: 100%; height: 100%; object-fit: cover; }
.player-cover { position: absolute; inset: 0; width: 100%; display: flex; align-items: flex-end; justify-content: flex-start; padding: clamp(1rem, 3vw, 2.2rem); background: linear-gradient(180deg, rgba(8, 26, 29, 0) 45%, rgba(8, 26, 29, .78)); border: 0; cursor: pointer; color: var(--paper); text-align: left; }
.player-cover .btn { pointer-events: none; font-size: clamp(.95rem, .9rem + .3vw, 1.1rem); }
.player-cover:hover .btn { background: var(--paper); }
.player-cover .time { font-family: var(--f-mono); font-size: .72rem; opacity: .75; }
.showreel figcaption { margin-top: 1.1rem; font-family: var(--f-mono); font-size: var(--t-mono); color: var(--mist); text-align: left; }

/* Proof: numbers from a real study */
.proof-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 6rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.proof-head p { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule-light); }
.stat { padding: clamp(1.4rem, 2.6vw, 2.2rem) clamp(1rem, 2vw, 1.8rem) 0 0; }
.stat + .stat { padding-left: clamp(1rem, 2vw, 1.8rem); border-left: 1px solid var(--rule-light); }
.stat-figure { margin: 0; font-family: var(--f-display); font-weight: 200; font-size: clamp(2.2rem, 1.5rem + 2.2vw, 3.8rem); line-height: 1; color: var(--ink); text-align: left; }
.stat-label { margin: .8rem 0 0; font-size: .95rem; color: var(--slate); text-align: left; }
@media (max-width: 900px) {
  .proof-head { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule-light); margin-top: 1.4rem; }
}

/* Inside the report: real screens by tab */
.tour { display: grid; grid-template-columns: minmax(15rem, .8fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.tabs { display: flex; flex-direction: column; border-top: 1px solid var(--rule-dark); position: sticky; top: calc(var(--header-h) + 2rem); }
.tab { appearance: none; background: none; border: 0; border-bottom: 1px solid var(--rule-dark); color: var(--mist); cursor: pointer; text-align: left; padding: 1.15rem 0 1rem 1.2rem; font-family: var(--f-display); font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); position: relative; transition: color .25s var(--ease); }
.tab::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--rule-dark); transition: background .25s; }
.tab:hover, .tab[aria-selected="true"] { color: var(--paper); }
.tab[aria-selected="true"]::before { background: var(--signal); box-shadow: 0 0 0 4px rgba(30, 186, 192, .2); }
.panel p { margin: 0 0 1.6rem; max-width: 40rem; }
.screen { margin: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(163, 184, 181, .18), 0 40px 90px -35px rgba(0, 0, 0, .75), 0 30px 80px -40px rgba(30, 186, 192, .3); }
.screen img { width: 100%; }
@media (max-width: 900px) {
  .tour { grid-template-columns: 1fr; }
  .tabs { position: static; flex-direction: row; overflow-x: auto; border-top: 0; gap: .5rem; padding-bottom: .4rem; scrollbar-width: none; }
  .tab { flex: none; border: 1px solid var(--rule-dark); border-radius: 999px; padding: .6rem 1rem .5rem; font-size: 1rem; }
  .tab::before { display: none; }
  .tab[aria-selected="true"] { background: var(--signal); border-color: var(--signal); color: var(--night); }
}

/* How it works */
.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); border-top: 1px solid var(--rule-light); padding-top: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.type h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); font-weight: 300; }
.type p { margin: .5rem 0 0; color: var(--slate); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2.4rem); position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: .42rem; height: 1px; background: var(--rule-light); }
.step-item { position: relative; padding-top: 2.2rem; text-align: left; }
.step-item::before { content: ""; position: absolute; left: 0; top: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 2px solid var(--signal-text); }
.step-item h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.step-item p { margin: 0; font-size: .98rem; color: var(--slate); }
.engine { margin-top: clamp(4rem, 8vw, 7rem); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 5rem); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(2rem, 5vw, 4rem); }
.fact h4 { margin: 0 0 .5rem; font-weight: 400; font-size: 1.1rem; letter-spacing: 0; }
.fact p { margin: 0; font-size: .98rem; color: var(--slate); }
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .steps::before { left: .42rem; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .step-item { padding: 0 0 0 2.2rem; }
}
@media (max-width: 760px) { .types, .engine, .facts { grid-template-columns: 1fr; } }

/* Case study */
.case { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.case-still { margin: 0; position: sticky; top: calc(var(--header-h) + 2rem); }
.case-still img { width: 100%; border-radius: 12px; box-shadow: 0 0 0 1px rgba(163, 184, 181, .18), 0 40px 90px -35px rgba(0, 0, 0, .8); }
.case-still figcaption { margin-top: 1rem; font-family: var(--f-mono); font-size: var(--t-mono); color: var(--mist); text-align: left; }
.case h2 { margin-bottom: 1.2rem; }
.findings { list-style: none; margin: 2.4rem 0 0; padding: 0; border-top: 1px solid var(--rule-dark); }
.finding { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.4rem; padding: 1.6rem 0; border-bottom: 1px solid var(--rule-dark); align-items: baseline; }
.finding strong { font-family: var(--f-display); font-weight: 200; font-size: clamp(2rem, 1.6rem + 1.2vw, 2.8rem); line-height: 1; color: var(--signal); }
.finding p { margin: 0; }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } .case-still { position: static; } }
@media (max-width: 480px) { .finding { grid-template-columns: 1fr; gap: .6rem; } }

/* Industries */
.sectors { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-light); }
.sector { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1rem clamp(2rem, 6vw, 7rem); align-items: baseline; padding: clamp(1.4rem, 2.6vw, 2.2rem) 0; border-bottom: 1px solid var(--rule-light); text-align: left; }
.sector h3 { font-size: clamp(1.7rem, 1.1rem + 2vw, 3rem); font-weight: 200; transition: transform .45s var(--ease), color .45s var(--ease); }
.sector p { margin: 0; color: var(--slate); }
.sector:hover h3 { transform: translateX(.6rem); color: var(--signal-text); }
@media (max-width: 760px) { .sector { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .sector h3 { transition: none; } .sector:hover h3 { transform: none; } }

/* Contact and demo form */
.contact { text-align: center; }
.contact .lockup { width: clamp(9rem, 16vw, 13rem); margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.contact h2 { max-width: 14em; margin: 0 auto 1.5rem; }
.contact p { max-width: 34rem; margin: 0 auto; }
.contact .login-line { margin-top: 3rem; text-align: center; text-align-last: center; }
.demo { max-width: 42rem; margin: clamp(3rem, 6vw, 4.5rem) auto 0; text-align: left; }
.contact .demo p { max-width: none; margin: 0; }
.demo-top { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 2.2rem; }
.demo-count { font-family: var(--f-mono); font-size: var(--t-mono); color: var(--mist); white-space: nowrap; min-width: 4.5rem; }
.demo-bar { flex: 1; height: 1px; background: var(--rule-dark); position: relative; }
.demo-bar span { position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--signal); transition: width .45s var(--ease); }
.step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.step.is-active { display: block; }
.step legend { padding: 0; margin-bottom: 1.6rem; font-family: var(--f-display); font-weight: 300; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.15; color: var(--paper); }
.demo input[type=text], .demo input[type=email] { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--mist); border-radius: 0; color: var(--paper); font-family: var(--f-text); font-size: 1.3rem; padding: .5rem 0 .6rem; }
.demo input[type=text]:focus, .demo input[type=email]:focus { outline: none; }
.demo input[type=text]:focus-visible, .demo input[type=email]:focus-visible { border-bottom-color: var(--signal); box-shadow: 0 2px 0 0 var(--signal); background: rgba(30, 186, 192, .06); }
.demo input[aria-invalid="true"] { border-bottom-color: #f0b37e; box-shadow: 0 2px 0 0 #f0b37e; }
.field { display: block; margin-bottom: 1.6rem; }
.field span { display: block; font-family: var(--f-mono); font-size: var(--t-mono); color: var(--mist); margin-bottom: .2rem; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.option span { position: relative; display: block; height: 100%; padding: 1rem 2.8rem 1rem 1.1rem; border: 1px solid var(--rule-dark); border-radius: 10px; font-family: var(--f-display); font-size: 1.05rem; line-height: 1.3; color: var(--paper); transition: border-color .2s, background .2s; }
.option span::after { content: ""; position: absolute; right: 1.1rem; top: 50%; width: .8rem; height: .8rem; margin-top: -.4rem; border: 1.5px solid var(--mist); border-radius: 50%; }
.option input[type=checkbox] + span::after { border-radius: 3px; }
.option:hover span { border-color: var(--mist); }
.option input:checked + span { border: 2px solid var(--signal); padding: calc(1rem - 1px) calc(2.8rem - 1px) calc(1rem - 1px) calc(1.1rem - 1px); background: rgba(30, 186, 192, .12); }
.option input:checked + span::after { background: var(--signal); border-color: var(--signal); box-shadow: inset 0 0 0 2px var(--night); }
.option input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.contact .demo .hint { margin-top: 1rem; font-family: var(--f-mono); font-size: var(--t-mono); color: var(--mist); text-align: left; }
@media (hover: none) { .hint-keys { display: none; } }
.consent { display: flex; gap: .8rem; align-items: flex-start; margin-top: .4rem; font-size: .95rem; color: #d5e0de; cursor: pointer; }
.consent input { margin-top: .3rem; accent-color: var(--signal); width: 1.05rem; height: 1.05rem; flex: none; }
.consent input[aria-invalid="true"] { outline: 2px solid #f0b37e; outline-offset: 2px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.demo-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.2rem; }
.demo-nav .back { min-height: 44px; display: inline-flex; align-items: center; padding: 0 .6rem; margin-left: -.6rem; background: none; border: 0; color: var(--mist); font-family: var(--f-display); font-size: 1rem; cursor: pointer; }
.demo-nav .back:hover { color: var(--paper); }
.demo-nav .btn { margin-left: auto; }
.contact .demo .demo-error { min-height: 1.4em; margin-top: 1rem; font-family: var(--f-mono); font-size: .8rem; color: #f0b37e; text-align: left; }
.contact .demo .done-title { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.15; color: var(--paper); margin-bottom: 1rem; }
@media (max-width: 560px) { .options { grid-template-columns: 1fr; } }
@media (forced-colors: active) {
  .demo input:focus-visible { outline: 2px solid CanvasText; outline-offset: 2px; }
  .option input:checked + span { border: 3px solid Highlight; }
  .option input:checked + span::after { background: Highlight; border-color: Highlight; forced-color-adjust: none; }
}

/* Footer */
.site-footer { background: var(--night); color: var(--mist); border-top: 1px solid var(--rule-dark); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding-top: 2rem; padding-bottom: 2rem; font-family: var(--f-mono); font-size: var(--t-mono); }
.site-footer img { width: 4.6rem; opacity: .85; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .9rem 1.6rem; }
.site-footer nav a { position: relative; text-decoration: none; white-space: nowrap; }
.site-footer nav a::after { content: ""; position: absolute; inset: -12px -8px; }
.site-footer a:hover { color: var(--paper); }

/* Legal pages and 404 */
.legal-page { padding: clamp(8rem, 14vw, 10rem) 0 clamp(5rem, 9vw, 7rem); }
.legal-page .wrap { max-width: 46rem; }
.legal-page h1 { font-size: var(--t-h2); line-height: 1.06; margin-bottom: 1rem; }
.legal-page h2 { font-size: var(--t-h3); font-weight: 400; margin: 2.6rem 0 .8rem; }
.legal-page .updated { font-family: var(--f-mono); font-size: var(--t-mono); color: var(--slate); text-align: left; }
.legal-page a { color: var(--signal-text); }
.notfound { min-height: 100svh; display: flex; align-items: center; }
.notfound p { max-width: 30rem; margin: 1.5rem 0 2.2rem; }
