/* Ukoo design system: the tokens and parts every page shares. The brand page documents them. */
:root {
  color-scheme: dark;
  --night: #0B0A09;
  --coal: #131210;
  --char: #1C1A17;
  --line: rgba(243, 238, 229, .1);
  --line-2: rgba(243, 238, 229, .2);
  --paper: #F3EEE5;
  --ash: #9A948A;
  --stone: #8A847A;
  --bone: #E6DCC8;
  --bone-2: #D9CDB5;
  --ink: #12100D;
  --ink-2: #5A5347;
  --glow: #FFF4DE;
  --halo: rgba(255, 214, 160, .55);

  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wide: 116%;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: clamp(1200px, 84vw, 1440px);
  --gutter: clamp(16px, 4vw, 40px);
  --header: 72px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header); }
body { margin: 0; background: var(--night); color: var(--paper); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--glow); color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }
@media (min-width: 1100px) { body { font-size: 18px; } }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.unseen { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 500; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* Type */
h1, h2, h3 { font-family: var(--text); font-weight: 500; font-stretch: var(--wide); letter-spacing: -.028em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(46px, 7.4vw, 112px); line-height: .96; }
h2 { font-size: clamp(34px, 4.9vw, 70px); line-height: 1.01; }
h3 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; letter-spacing: -.012em; }
.lede { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; color: var(--ash); max-width: 33em; text-wrap: pretty; }
.copy { color: var(--ash); max-width: 36em; text-wrap: pretty; }
.mono { font: 500 11px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font: 500 11px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ash); }
.kicker::before { content: ""; flex: none; width: 18px; height: 5px; border-radius: 3px; background: var(--glow); box-shadow: 0 0 10px var(--halo); }
.head { display: grid; gap: 22px; max-width: 760px; }
.head .kicker { margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--paper); font: 500 15px/1 var(--text); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease); }
.btn:hover { border-color: var(--paper); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn.primary:hover { background: #fff; border-color: #fff; }
.btn:disabled { opacity: .55; cursor: default; }
.btn svg { width: 14px; height: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Status: what works today, what's in build, what's next, what's still a concept */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px 6px 9px; border: 1px solid var(--line); border-radius: 999px; font: 500 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ash); white-space: nowrap; }
.chip::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; box-sizing: border-box; }
.chip[data-s="works"] { color: var(--paper); border-color: var(--line-2); }
.chip[data-s="works"]::before { background: var(--glow); border-color: var(--glow); box-shadow: 0 0 8px var(--halo); }
.chip[data-s="build"]::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.chip[data-s="concept"]::before { border-style: dotted; }
.bone .chip { border-color: rgba(18, 16, 13, .16); color: var(--ink-2); }

/* The logo: the giraffe and ukoo network. On hover the ear flicks back. */
.logo { display: inline-flex; align-items: center; color: var(--paper); text-decoration: none; }
.logo svg { height: 30px; width: auto; overflow: visible; }
.logo .ear { transform-box: view-box; transform-origin: 101px 62px; transition: transform .6s var(--ease); }
.logo:hover .ear { transform: rotate(-16deg); }
@media (max-width: 420px) { .logo svg { height: 24px; } }
/* The face: a field of warm dots that face.js draws from data-state. --size scales it, and it never grows wider than
   the screen allows. The background is the field listening, for when the script can't run. */
.face { --size: 1; --u: min(calc(var(--size) * 1px), calc((100vw - 2 * var(--gutter) - 8px) / 360)); position: relative; display: block; width: calc(var(--u) * 360); height: calc(var(--u) * 132);
  background: radial-gradient(circle, rgba(255, 236, 212, .9) calc(var(--u) * 2.2), transparent calc(var(--u) * 2.6)) 0 50% / calc(var(--u) * 360 / 42) calc(var(--u) * 132 / 13) repeat-x,
    radial-gradient(circle, rgba(255, 236, 212, .08) calc(var(--u) * .85), transparent calc(var(--u) * 1.1)) 0 0 / calc(var(--u) * 360 / 42) calc(var(--u) * 132 / 13); }
.face.drawn { background: none; }
/* No edge: the field fades out from its middle, so it never reads as a box. */
.face { -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent); mask-image: radial-gradient(closest-side, #000 25%, transparent); }
.face canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Header */
.top { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background .4s, border-color .4s; }
.top.solid { background: rgba(11, 10, 9, .74); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); border-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header); }
.nav { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.nav a:not(.btn) { color: var(--ash); text-decoration: none; transition: color .2s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav .btn { min-height: 40px; padding: 0 18px; font-size: 14px; }
@media (max-width: 899px) { .nav a:not(.btn) { display: none; } }
.nav .btn:has(.wide) { gap: 0; } .nav .wide { white-space: pre; }
@media (max-width: 420px) { .nav .wide { display: none; } }

/* Sections */
.section { position: relative; padding-block: clamp(96px, 15vh, 176px); border-top: 1px solid var(--line); }
.bone { background: var(--bone); color: var(--ink); }
.section.bone { border-top: 0; }
.bone .kicker, .bone .lede, .bone .copy { color: var(--ink-2); }
.bone .kicker::before { background: var(--ink); box-shadow: none; }
.bone .btn { border-color: rgba(18, 16, 13, .3); color: var(--ink); }
.bone .btn:hover { border-color: var(--ink); }
.bone .btn.primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Numbers */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 28px 28px 0 0; }
.stat b { display: block; font: 500 clamp(44px, 5.2vw, 76px)/1 var(--text); font-stretch: var(--wide); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat b small { font-size: .42em; letter-spacing: -.01em; margin-left: .12em; }
.stat span { display: block; margin-top: 12px; max-width: 22em; color: var(--ash); font-size: 15px; line-height: 1.5; }
.note { margin-top: 28px; font: 500 12px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.bone .stats { border-color: rgba(18, 16, 13, .14); }
.bone .stat span { color: var(--ink-2); }

/* Sign-up */
.signup .field { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; max-width: 560px; }
.signup input[type="email"] { flex: 1 1 260px; min-height: 52px; padding: 0 22px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(243, 238, 229, .04); color: var(--paper); font: 16px var(--text); transition: border-color .2s, background .2s; }
.signup input[type="email"]::placeholder { color: var(--stone); }
.signup input[type="email"]:focus { outline: none; border-color: var(--paper); background: rgba(243, 238, 229, .07); }
.signup .btn { min-height: 52px; }
.signup .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup .said { min-height: 1.6em; margin-top: 14px; font-size: 14px; color: var(--ash); }
.signup .interests { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.signup .interests > span { margin-right: 4px; color: var(--stone); font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.signup .interests label { position: relative; cursor: pointer; }
.signup .interests input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.signup .interests label span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 15px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ash); font-size: 14px; transition: color .2s, border-color .2s; }
.signup .interests label span::before { content: ""; flex: none; width: 7px; height: 7px; border: 1.5px solid currentColor; border-radius: 50%; box-sizing: border-box; }
.signup .interests label:hover span { color: var(--paper); }
.signup .interests input:checked + span { border-color: var(--paper); color: var(--paper); }
.signup .interests input:checked + span::before { border-color: var(--glow); background: var(--glow); box-shadow: 0 0 8px var(--halo); }
.signup .interests input:focus-visible + span { outline: 2px solid var(--paper); outline-offset: 2px; }
.signup.done .field, .signup.done .interests { display: none; }
@media (max-width: 560px) { .signup .btn { width: 100%; } }
.signup.done .said { color: var(--paper); font-size: 17px; }

/* Footer */
.foot { position: relative; padding: 72px 0 48px; border-top: 1px solid var(--line); background: var(--night); }
.foot .grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot .logo svg { height: 34px; }
.foot .tag { margin-top: 18px; color: var(--ash); font-size: 15px; }
.foot h2 { font: 500 11px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--stone); margin-bottom: 16px; }
.foot li + li { margin-top: 10px; }
.foot li a { color: var(--ash); text-decoration: none; font-size: 15px; transition: color .2s; }
.foot li a:hover { color: var(--paper); }
.foot .fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font: 500 12px/1.7 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--stone); }
@media (max-width: 760px) { .foot .grid { grid-template-columns: 1fr 1fr; } .foot .grid > :first-child { grid-column: 1 / -1; } }

/* Reveal on scroll, only once the script is known to run */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.seen { opacity: 1; transform: none; }

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

/* The cookie note: small, in the corner, out of the way */
.consent { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: max-content; z-index: 60; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 10px 10px 10px 16px; border-radius: 16px;
  background: rgba(30, 28, 25, .94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 12px 32px rgba(0, 0, 0, .5), inset 0 0 0 .5px rgba(255, 255, 255, .12); color: var(--ash); font-size: 13px; line-height: 1.4; }
.consent a { color: var(--paper); }
.consent .actions { display: flex; gap: 6px; flex: none; margin: 0; }
.consent .btn { min-height: 32px; padding: 0 14px; font-size: 13px; }
@media (max-width: 520px) { .consent { left: 16px; right: 16px; width: auto; transform: none; flex-wrap: wrap; } .consent .actions { margin-left: auto; } }
