/* Kubik's website. The look is the app's own: millimetre paper for the
   ground, lifted white cards, Inter, the app's blue. Colours follow the
   app's light and dark palettes (lib/config/styles/theme/color_palette.dart). */

@font-face { font-family: Inter; src: url(../fonts/Inter-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(../fonts/Inter-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url(../fonts/Inter-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url(../fonts/Inter-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light dark;
  --ground: #F3F6FB;
  --surface: #FFFFFF;
  --inset: #EEF2FA;
  --border: #D5DDE8;
  --edge: #6F82A3;
  --text: #0B1530;
  --second: #33415C;
  --blue: #1447C0;
  --on-blue: #FFFFFF;
  --bar: #8DB4FF;
  --grid-bold: rgba(20, 71, 192, 0.14);
  --grid-fine: rgba(20, 71, 192, 0.06);
  --lift: 0 14px 30px -18px rgba(11, 21, 48, 0.3);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #070B14;
    --surface: #121A2A;
    --inset: #1A2438;
    --border: #283246;
    --edge: #5E7194;
    --text: #FFFFFF;
    --second: #C3CEE0;
    --blue: #8DB4FF;
    --on-blue: #06122B;
    --bar: #8DB4FF;
    --grid-bold: rgba(141, 180, 255, 0.1);
    --grid-fine: rgba(141, 180, 255, 0.045);
    --lift: 0 14px 30px -18px rgba(0, 0, 0, 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--text); font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased;
  background-color: var(--ground);
  background-image: linear-gradient(var(--grid-bold) 1px, transparent 1px), linear-gradient(90deg, var(--grid-bold) 1px, transparent 1px), linear-gradient(var(--grid-fine) 1px, transparent 1px), linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
}
img, canvas, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 24px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px 40px; overflow: hidden; }
.wordmark { height: 34px; width: 89px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 14px; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; }
.btn.main { background: var(--blue); color: var(--on-blue); }
.btn.quiet { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--edge); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.nav > a:first-child { display: block; }
.nav ul { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.nav ul a { text-decoration: none; color: var(--second); }
.nav ul a:hover { color: var(--text); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
@media (max-width: 720px) { .nav ul { display: none; } }

.hero { text-align: center; padding: 8px 0 44px; }
.hero canvas { width: min(100%, 500px); aspect-ratio: 520 / 420; margin: 0 auto -8px; -webkit-mask-image: linear-gradient(transparent, #000 24%); mask-image: linear-gradient(transparent, #000 24%); }
.hero h1 { font-size: clamp(36px, 5.2vw, 62px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; max-width: 14em; margin: 0 auto 18px; text-wrap: balance; }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--second); max-width: 34em; margin: 0 auto 26px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.tile { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 26px; box-shadow: var(--lift); }
.tile h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.tile p { color: var(--second); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.t-slabs { grid-column: span 3; grid-row: span 2; padding-bottom: 0; }
.t-scan, .t-status { grid-column: span 3; }
.t-chain { grid-column: span 2; }
.t-dash { grid-column: span 4; }
.phone { width: min(250px, 78%); margin: 24px auto -150px; padding: 8px; border-radius: 44px; background: #0A0F1C; box-shadow: 0 30px 60px -24px rgba(3, 7, 20, 0.55), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14); }
.phone img { width: 100%; height: auto; border-radius: 36px; }
.barcode { height: 64px; max-width: 260px; margin: 18px 0 6px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--blue) 0 3px, transparent 3px 6px, var(--blue) 6px 7px, transparent 7px 12px, var(--blue) 12px 16px, transparent 16px 18px, var(--blue) 18px 19px, transparent 19px 23px); }
.barcode + small { font: 500 13px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--second); letter-spacing: 0.2em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: #fff; }
.chain { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; font-weight: 600; }
.chain li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--inset); }
.chain small { font-weight: 500; color: var(--second); margin-left: auto; font-size: 13px; }
.bars { display: grid; grid-template-columns: max-content 1fr max-content; gap: 10px 14px; align-items: center; margin-top: 18px; font-size: 15px; }
.bars i { display: block; height: 22px; border-radius: 6px; background: var(--bar); }
.bars b { font-weight: 600; }

.h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; line-height: 1.15; font-weight: 700; text-align: center; margin: 72px auto 24px; max-width: 18em; text-wrap: balance; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; color: var(--blue); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; margin-bottom: 10px; }
.steps h3 { font-size: 19px; }
.steps p { font-size: 15px; }

.end { text-align: center; padding: 64px 0 12px; }
.end canvas { width: 96px; height: 96px; margin: 0 auto 8px; }
.end h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; font-weight: 700; margin-bottom: 18px; }
.foot { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding: 28px 0 0; font-size: 14px; color: var(--second); }
.foot ul { display: flex; gap: 20px; }

/* The text pages: privacy and support. */
.sheet { max-width: 760px; margin: 24px auto 0; padding: clamp(24px, 5vw, 48px); }
.sheet h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.02em; line-height: 1.1; font-weight: 700; margin-bottom: 8px; }
.sheet .dated { color: var(--second); font-size: 15px; margin-bottom: 28px; }
.sheet h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin: 32px 0 8px; }
.sheet p, .sheet li { color: var(--second); font-size: 17px; }
.sheet p + p, .sheet ul + p { margin-top: 12px; }
.sheet ul { list-style: disc; padding-left: 22px; margin-top: 8px; display: grid; gap: 6px; }
.sheet strong { color: var(--text); font-weight: 600; }
.sheet a { color: var(--blue); }
.open { border-left: 3px solid #B8720F; padding: 10px 14px; margin-top: 12px; background: var(--inset); border-radius: 0 10px 10px 0; font-size: 15px; }

@media (max-width: 820px) {
  .bento, .steps { grid-template-columns: 1fr; }
  .t-slabs, .t-scan, .t-status, .t-chain, .t-dash { grid-column: auto; grid-row: auto; }
}
