/* InnoCraft Labs. One stylesheet, no framework, no JS.
   Brand (marketing/brand): black #0B0B0C, white #F5F5F2, one accent Lab Lime #C6F432, Inter.
   Black-led identity: nav, hero and footer are black in both themes; lime is used as full-bleed
   blocks and solid pills; each app block carries its own app colour. Content pages follow the
   reader's light/dark preference. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --black: #0b0b0c;
  --carbon: #161618;
  --line-dark: #2a2a2e;
  --white: #f5f5f2;
  --on-black: #f5f5f2;
  --on-black-2: #c9c9cd;
  --lime: #c6f432;
  /* content surfaces (switch with the theme) */
  --bg: #f5f5f2;
  --surface: #ffffff;
  --ink: #0b0b0c;
  --ink-2: #3f3f45;
  --line: #d9d9d3;
  --link: #0b0b0c;
  /* app colours, from each app's icon and theme */
  --dm: #04588f;
  --dm-ink: #ffffff;
  --tv-bg: #0b0b0a;
  --tv: #ff9d3f;
  --nv-bg: #134e4a;
  --nv: #d4af37;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1280px;
  --gutter: 16px;
}
@media (min-width: 720px) { :root { --gutter: 40px; } }
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --surface: #161618;
    --ink: #f5f5f2;
    --ink-2: #c3c3c8;
    --line: #2a2a2e;
    --link: #f5f5f2;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.lime :focus-visible, .on-light :focus-visible { outline-color: var(--black); }
h1, h2, h3 { margin: 0 0 0.45em; font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--lime); color: var(--black); padding: 10px 14px; z-index: 20; font-weight: 700; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 18px; }
.display { font-size: clamp(2.7rem, 11vw, 5.6rem); font-weight: 900; line-height: 0.9; letter-spacing: -0.045em; text-transform: uppercase; }
.h-xl { font-size: clamp(2.3rem, 6.4vw, 5rem); font-weight: 850; line-height: 0.98; letter-spacing: -0.038em; }
.h-l { font-size: clamp(1.9rem, 4.4vw, 3.3rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.032em; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.5; max-width: 36rem; }

/* Pills (buttons) */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-size: 0.8125rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; white-space: nowrap; }
.pill:hover { filter: brightness(1.06); }
.pill-lime { background: var(--lime); color: var(--black); }
.pill-black { background: var(--black); color: var(--white); }
.pill-ink { background: var(--ink); color: var(--bg); }
.pill-white { background: var(--white); color: var(--black); }
.pill-tv { background: var(--tv); color: var(--black); }
.pill-ghost { background: transparent; color: currentColor; border-color: currentColor; }
.pill-static { background: transparent; color: currentColor; border: 2px dashed currentColor; cursor: default; }
.pill-static:hover { filter: none; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.badge-play img { height: 48px; width: auto; }
.badge-play { display: inline-block; border-radius: 9px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--black); color: var(--on-black); border-bottom: 1px solid var(--line-dark); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--on-black); text-decoration: none; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 10px 10px; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--lime); }
.nav a:hover { color: var(--lime); }
.nav .pill { min-height: 38px; padding: 0 16px; margin-left: 8px; font-size: 0.72rem; }
.nav .pill:hover { color: var(--black); }
@media (max-width: 560px) {
  .site-header .wrap { gap: 8px; }
  .brand img { height: 20px; }
  .nav a { padding: 10px 6px; font-size: 0.68rem; letter-spacing: 0.08em; }
  .nav .pill { display: none; }
}

/* Full-bleed blocks */
.block { position: relative; overflow: hidden; }
.black { background: var(--black); color: var(--on-black); }
.black .muted, .black .lead { color: var(--on-black-2); }
.black a:not(.pill) { color: var(--on-black); }
.lime { background: var(--lime); color: var(--black); }
.lime a:not(.pill) { color: var(--black); }
.paper { background: var(--bg); color: var(--ink); }
.dm { background: var(--dm); color: var(--dm-ink); }
.dm .lead, .dm .muted { color: #e4eef6; }
.dm a:not(.pill) { color: #ffffff; }
.tv { background: var(--tv-bg); color: var(--on-black); }
.tv .eyebrow, .tv .accent { color: var(--tv); }
.tv .lead, .tv .muted { color: var(--on-black-2); }
.tv a:not(.pill) { color: var(--on-black); }
.nv { background: var(--nv-bg); color: #ffffff; }
.nv .eyebrow, .nv .accent { color: var(--nv); }
.nv .lead { color: #dcebe8; }
.nv a:not(.pill) { color: #ffffff; }
.black .eyebrow { color: var(--lime); }
.pad { padding: 72px 0; }
@media (min-width: 900px) { .pad { padding: 112px 0; } }

/* Hero */
.hero { padding-top: 56px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: end; }
@media (min-width: 980px) { .hero { padding-top: 96px; } .hero-grid { grid-template-columns: 1.4fr 0.6fr; gap: 48px; } .hero .phones { justify-content: flex-end; } .hero .phones .phone:nth-child(2) { margin-left: -150px; position: relative; z-index: 1; } }
.hero .display { margin-bottom: 28px; }
.hero-copy { padding-bottom: 56px; }
@media (min-width: 980px) { .hero-copy { padding-bottom: 112px; } }

/* Phones: real screens, framed, cropped by the block edge */
.phones { position: relative; display: flex; gap: 16px; justify-content: center; align-items: flex-end; margin-bottom: -1px; }
.phone { flex: none; width: min(44vw, 300px); border-radius: 40px 40px 0 0; border: 9px solid #000; border-bottom: 0; background: #000; overflow: hidden; box-shadow: 0 0 0 1px var(--line-dark); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 31px 31px 0 0; }
.crop-lg .phone:nth-child(2), .crop-md .phone:nth-child(2) { height: calc(var(--ph) - 64px); }
.crop-lg { --ph: min(92vw, 560px); }
.crop-md { --ph: min(84vw, 480px); }
.crop-lg .phone, .crop-md .phone { height: var(--ph); }
@media (min-width: 980px) { .crop-lg { --ph: 600px; } .crop-lg .phone { width: 300px; } .crop-md { --ph: 540px; } .crop-md .phone { width: 280px; } }
.dm .phone { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.18), 0 30px 60px -20px rgb(0 0 0 / 0.5); }
.tv .phone { box-shadow: 0 0 0 1px #34302b; }

/* App blocks on the home page */
.app-block { padding-top: 72px; }
@media (min-width: 900px) { .app-block { padding-top: 112px; } }
.app-grid { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: end; }
@media (min-width: 980px) { .app-grid { grid-template-columns: 1fr 1fr; gap: 64px; } .app-grid.flip > :first-child { order: 2; } }
.app-copy { padding-bottom: 64px; }
@media (min-width: 980px) { .app-copy { padding-bottom: 112px; } }
.app-id { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.app-id img { width: 56px; height: 56px; border-radius: 14px; }
.app-id strong { display: block; font-size: 1.05rem; font-weight: 750; letter-spacing: -0.01em; }
.app-id span { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.9; }
.facts { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid currentColor; }
.facts li { padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent); display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; font-size: 0.98rem; }
.facts b { font-size: 0.75rem; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 3px; }
@media (max-width: 480px) { .facts li { grid-template-columns: 1fr; gap: 2px; } }
.soon-note { font-size: 0.9rem; font-weight: 600; margin: 14px 0 0; }

/* Rows: editorial list with rules (principles, features) */
.split2 { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 980px) { .split2 { grid-template-columns: 0.9fr 1.1fr; gap: 72px; } }
.rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid currentColor; }
.rows li { padding: 22px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.rows h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.rows p { margin: 0; font-size: 1.02rem; }
.rows.numbered li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 8px; }
.rows .n { font-size: 0.8rem; font-weight: 750; letter-spacing: 0.1em; padding-top: 5px; }
.paper .rows p { color: var(--ink-2); }

/* Money table */
.money { width: 100%; border-collapse: collapse; font-size: 1rem; border-top: 2px solid var(--ink); }
.money th, .money td { text-align: left; vertical-align: top; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); }
.money thead th { font-size: 0.72rem; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; }
.money tbody th { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; white-space: nowrap; }
.money tbody th a { text-decoration: none; color: var(--ink); }
.money td { color: var(--ink-2); }
@media (max-width: 760px) {
  .money, .money tbody, .money tr, .money th, .money td { display: block; }
  .money thead { display: none; }
  .money tr { border-bottom: 1px solid var(--line); padding: 14px 0; }
  .money th, .money td { border: 0; padding: 5px 0; }
  .money td::before { content: attr(data-label); display: block; font-size: 0.7rem; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
}

/* Section heads on paper */
.head { max-width: 46rem; margin-bottom: 40px; }
.head p { color: var(--ink-2); }
.paper .eyebrow { color: var(--ink); }

/* Post list */
.post-rows { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.post-rows li { position: relative; display: grid; grid-template-columns: 1fr; gap: 6px 32px; padding: 24px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .post-rows li { grid-template-columns: 11rem 1fr; } }
.post-rows h2, .post-rows h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 800; letter-spacing: -0.025em; margin: 0 0 6px; }
.post-rows h2 a, .post-rows h3 a { color: var(--ink); text-decoration: none; }
.post-rows h2 a::after, .post-rows h3 a::after { content: ""; position: absolute; inset: 0; }
.post-rows li:hover h2 a, .post-rows li:hover h3 a { text-decoration: underline; text-decoration-thickness: 2px; }
.post-rows p { margin: 0; color: var(--ink-2); }
.post-rows .meta { flex-direction: column; gap: 4px; }
.meta { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; display: flex; flex-wrap: wrap; gap: 8px 14px; padding-top: 6px; }

/* Page header band (content pages) */
.band { padding: 56px 0 48px; }
@media (min-width: 900px) { .band { padding: 96px 0 72px; } }
.band h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); font-weight: 850; letter-spacing: -0.038em; line-height: 0.98; max-width: 18ch; margin-bottom: 18px; }
.band .lead { color: var(--on-black-2); }
.crumbs { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 22px; color: var(--lime); }
.crumbs a { color: var(--lime) !important; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* App page */
.app-hero { padding-top: 56px; }
@media (min-width: 980px) { .app-hero { padding-top: 88px; } }
.app-hero .crumbs { color: currentColor; }
.app-hero .crumbs a { color: currentColor !important; }
.app-hero h1 { font-size: clamp(2.4rem, 6.6vw, 5.4rem); font-weight: 900; letter-spacing: -0.042em; line-height: 0.95; max-width: 13ch; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(64vw, 270px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 24px; margin: 0 calc(var(--gutter) * -1); overscroll-behavior-x: contain; scrollbar-width: thin; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery .shot { border: 8px solid #000; border-radius: 34px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line); }
.gallery .shot img { border-radius: 26px; width: 100%; }
.gallery figcaption { font-size: 0.72rem; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 12px; }
.fine { font-size: 0.875rem; color: var(--ink-2); }
.black .fine, .tv .fine { color: var(--on-black-2); }
.dm .fine { color: #e4eef6; }
.lime .fine { color: #1d1f12; }
.cols2 { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 900px) { .cols2 { grid-template-columns: 1fr 1fr; gap: 72px; } }
.list { list-style: none; margin: 0; padding: 0; border-top: 2px solid currentColor; }
.list li { padding: 13px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
.paper .list li { color: var(--ink-2); }
.dl { margin: 0; border-top: 2px solid currentColor; }
.dl div { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 18px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
@media (min-width: 720px) { .dl div { grid-template-columns: 12rem 1fr; gap: 24px; } }
.dl dt { font-size: 0.75rem; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 4px; }
.dl dd { margin: 0; font-size: 1.1rem; font-weight: 500; }
.big-icon { width: 120px; height: 120px; border-radius: 28px; }

/* Prose: privacy, support, blog */
.prose { max-width: 44rem; font-size: 1.0625rem; line-height: 1.75; color: var(--ink); }
@media (min-width: 720px) { .prose { font-size: 1.125rem; } }
.prose > :first-child { margin-top: 0; }
.prose h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 850; letter-spacing: -0.035em; margin: 0 0 0.5em; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); font-weight: 800; letter-spacing: -0.025em; margin: 2.1em 0 0.6em; line-height: 1.15; }
.prose h3 { font-size: 1.2rem; font-weight: 750; letter-spacing: -0.015em; margin: 1.7em 0 0.5em; line-height: 1.25; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose li { margin: 0.4em 0; }
.prose li > ul, .prose li > ol { margin: 0.4em 0 0; }
.prose strong { font-weight: 700; }
.prose em { font-style: italic; }
.prose code { font-family: var(--mono); font-size: 0.88em; background: color-mix(in srgb, var(--ink) 8%, transparent); padding: 0.1em 0.35em; border-radius: 5px; }
.prose pre { background: var(--surface); border: 1px solid var(--line); padding: 16px; border-radius: 12px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin: 1.6em 0; padding: 2px 0 2px 22px; border-left: 4px solid var(--lime); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.6em 0; }
.prose a { word-break: break-word; text-decoration-color: color-mix(in srgb, var(--ink) 45%, transparent); }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95em; display: block; overflow-x: auto; margin: 0 0 1.4em; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.prose thead th { border-bottom: 2px solid var(--ink); font-size: 0.85em; }
.prose img { margin: 2em auto; border-radius: 14px; border: 1px solid var(--line); }
.prose img.portrait { width: 100%; max-width: 380px; border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 18px 40px -22px rgb(0 0 0 / 0.35); background: var(--surface); }
.prose figure { margin: 2em 0; }
.prose figure img { margin: 0 auto; }
.prose figcaption, .prose img + em { display: block; text-align: center; font-size: 0.9rem; color: var(--ink-2); margin-top: 10px; }
.prose p:has(> img:only-child) { margin: 0; }
.page-body { padding: 56px 0 96px; }
@media (min-width: 900px) { .page-body { padding: 80px 0 120px; } }

/* Blog post */
.article-meta { color: var(--lime); }
.related { margin-top: 64px; max-width: 44rem; position: relative; display: grid; grid-template-columns: auto 1fr; gap: 18px 20px; align-items: center; padding: 28px; }
.related img { width: 72px; height: 72px; border-radius: 17px; }
.related .eyebrow { margin: 0 0 6px; }
.related h2 { font-size: 1.5rem; font-weight: 850; letter-spacing: -0.03em; margin: 0 0 6px; }
.related h2 a { text-decoration: none; }
.related h2 a::after { content: ""; position: absolute; inset: 0; }
.related p { margin: 0; font-size: 1rem; }
.related .go { grid-column: 1 / -1; font-size: 0.75rem; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; }
.related-apps { margin-top: 64px; max-width: 44rem; }
.related-apps ul { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.related-apps li a { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.related-apps li img { width: 48px; height: 48px; border-radius: 12px; }
.related-apps li span { display: block; color: var(--ink-2); font-size: 0.95rem; }

/* Contact block */
.contact-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
.email-pill { font-size: clamp(0.9rem, 3.4vw, 1.05rem); text-transform: none; letter-spacing: 0; min-height: 56px; padding: 0 26px; }

/* Footer */
.site-footer { background: var(--black); color: var(--on-black); padding: 72px 0 40px; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.footer-brand img { height: 26px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--on-black-2); font-size: 0.95rem; max-width: 22rem; }
.site-footer h2 { font-size: 0.72rem; font-weight: 750; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 16px; color: var(--lime); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 10px; font-size: 0.95rem; }
.site-footer a { color: var(--on-black); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-contact { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-contact { grid-column: auto; } }
.footer-contact a.mail { overflow-wrap: anywhere; }
.footer-contact .badge-play { margin-top: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 0.82rem; color: var(--on-black-2); }

/* 404 */
.notfound .display { max-width: 12ch; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.post-cover { width: 100%; max-width: 900px; border-radius: 18px; margin: 0 0 40px; }
