/* InID's own colors and type, in one place. The landing, the docs and the panel
   (apps/site/site.css, apps/panel/panel.css) and the buyer's component
   (apps/element/styles.css) are built with this file in front of them and name these
   instead of repeating the values. Each keeps its own grays and its own way of going dark. */
:root {
  --inid-black: #111113;
  --inid-lime: #c6ff3d;
  /* Lime as text or a mark on a light background */
  --inid-lime-ink: #5c8a00;
  --inid-good: #1a7f37;
  --inid-good-dark: #3fb950;
  --inid-bad: #c4231a;
  --inid-bad-dark: #ff6b60;
  --inid-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
}

/* inid.co: the landing and the public documentation share these tokens */
:root {
  --ink: var(--inid-black); --muted: #5f5f66; --line: #e4e4e9; --fill: #f4f4f6; --bg: #ffffff; --card: #ffffff;
  --lime: var(--inid-lime); --lime-ink: var(--inid-lime-ink); --btn: var(--inid-black); --btn-ink: #ffffff; --good: var(--inid-good);
  --code-bg: var(--inid-black); --code-ink: #e9e9ee;
  --radius: 14px; --max: 1120px;
  color-scheme: light;
  font: 16px/1.55 var(--inid-font);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f5f5f7; --muted: #a1a1a6; --line: #2c2c30; --fill: #1a1a1d; --bg: #0c0c0d; --card: #141416;
    --lime-ink: var(--inid-lime); --btn: var(--inid-lime); --btn-ink: var(--inid-black); --good: var(--inid-good-dark); --code-bg: #18181b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #f5f5f7; --muted: #a1a1a6; --line: #2c2c30; --fill: #1a1a1d; --bg: #0c0c0d; --card: #141416;
  --lime-ink: var(--inid-lime); --btn: var(--inid-lime); --btn-ink: var(--inid-black); --good: var(--inid-good-dark); --code-bg: #18181b;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo .wordmark { height: 24px; width: auto; }
.logo .dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo .light { display: none; } :root:not([data-theme="light"]) .logo .dark { display: block; } }
:root[data-theme="dark"] .logo .light { display: none; }
:root[data-theme="dark"] .logo .dark { display: block; }
.top nav { display: flex; gap: 22px; font-size: 14.5px; color: var(--muted); }
.top nav a { text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
.top .cta { margin-left: auto; }
@media (max-width: 760px) { .top nav { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; border: 1px solid var(--btn); background: var(--btn); color: var(--btn-ink); white-space: nowrap; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; }
.btn:hover { filter: brightness(1.08); }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 8px; margin: 0 0 20px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 2px; background: var(--lime); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 15%, transparent); }
h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 20px; font-weight: 750; }
h1 em { font-style: normal; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--lime) 80%, transparent) 62%); padding: 0 .04em; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.snippet { margin-top: 32px; }
.snippet p { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
pre, code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.snippet pre { margin: 0; }
/* On a phone the line wraps: nothing to scroll sideways to read it */
@media (max-width: 640px) { .snippet pre { white-space: pre-wrap; overflow-wrap: anywhere; } }
pre { background: var(--code-bg); color: var(--code-ink); border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; }
pre .t { color: #8c8c96; } pre .a { color: var(--lime); } pre .s { color: #ffd479; }
@media (max-width: 900px) { .hero { padding-top: 44px; } .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* The hero: an app's page with InID's form inside it, then the app knowing who came in */
.mock { position: relative; }
.app { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.25); overflow: hidden; }
.app .bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.app .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.app .url { margin-left: 10px; flex: 1; min-width: 0; font-size: 12.5px; color: var(--muted); background: var(--fill); border-radius: 8px; padding: 5px 10px; white-space: nowrap; overflow: hidden; }
.app .url b { font-weight: 500; color: var(--ink); }
.screens { display: grid; padding: 22px; min-height: 330px; }
.screen { grid-area: 1 / 1; min-width: 0; }
.screen.home { visibility: hidden; opacity: 0; }
/* InID's form, as it looks inside an app: white, InID's black button */
.mock .form { max-width: 330px; margin: 0 auto; background: #ffffff; color: #1d1d1f; border: 1px solid #e4e4e9; border-radius: 16px; padding: 18px; box-shadow: 0 18px 40px -22px rgba(0,0,0,.3); }
.mock .form .head { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.mock .form .head svg { width: 28px; height: 28px; flex: none; }
.mock .form .head b { display: block; font-size: 15px; }
.mock .form .head small { color: #6e6e73; font-size: 12.5px; }
.mock .form .input { height: 42px; border: 1px solid #e4e4e9; border-radius: 11px; padding: 0 12px; display: flex; align-items: center; font-size: 14.5px; }
.mock .form .input .ph { color: #8e8e93; display: none; }
.mock .form .input .typed { color: #1d1d1f; letter-spacing: .01em; }
.mock .form .code { display: none; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 10px; }
.mock .form .code i { height: 40px; border: 1px solid #e4e4e9; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-weight: 600; font-size: 16px; }
.mock .form .go { height: 42px; margin-top: 10px; border-radius: 11px; background: #111113; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14.5px; }
.mock .form .google { height: 40px; margin-top: 8px; border-radius: 11px; border: 1px solid #e4e4e9; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 500; }
.mock .form .google svg { width: 16px; height: 16px; }
/* The organization's own site around InID's form, and the app once someone is in */
.site-nav { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.site-nav .brand { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 15px; color: var(--ink); }
.site-nav .brand i { width: 18px; height: 18px; border-radius: 6px; background: linear-gradient(135deg, #5b8cff, #8a5bff); }
.site-nav .links { display: flex; gap: 12px; margin-left: auto; }
.site-nav .admin { color: var(--ink); font-weight: 600; }
.site-nav .me i { width: 26px; height: 26px; border-radius: 50%; background: #8a5bff; color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12px; }
.home .hello { font-size: 22px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.home .note { margin: 2px 0 14px; color: var(--muted); font-size: 13.5px; }
.home .item { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.home .item b { display: block; font-size: 14px; font-weight: 600; }
.home .item small { color: var(--muted); font-size: 12.5px; }
.home .bar-progress { flex: none; width: 70px; height: 6px; border-radius: 99px; background: var(--fill); overflow: hidden; }
.home .bar-progress i { display: block; height: 100%; border-radius: 99px; background: #8a5bff; }
@media (max-width: 480px) { .screens { padding: 16px; } .site-nav .links span:not(.admin) { display: none; } }
/* The sequence (site.js) sets data-step: the phone, the code, then the app */
.mock[data-step="phone"] .input .ph.show { display: inline; }
.mock[data-step="code"] .code { display: grid; }
.mock[data-step="code"] .google { display: none; }
.mock[data-step="home"] .screen.signin { visibility: hidden; opacity: 0; }
.mock[data-step="home"] .screen.home { visibility: visible; opacity: 1; }
/* A field stacks its placeholder and its value in one cell, so filling it can cross-fade */

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
.kicker { font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--lime-ink); margin: 0 0 10px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 14px; font-weight: 720; }
.sub { color: var(--muted); font-size: 17.5px; max-width: 40em; margin: 0 0 40px; }
.grid { display: grid; gap: 16px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid.three, .grid.two { grid-template-columns: minmax(0, 1fr); } }
.tile { background: var(--fill); border-radius: var(--radius); padding: 24px; }
.tile h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.01em; }
.tile p { margin: 0; color: var(--muted); font-size: 15.5px; }
.step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.tile .quote { margin-top: 14px; font-size: 14px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--muted); }
.list li::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--lime); margin-top: 7px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 15%, transparent); }
.list b { color: var(--ink); font-weight: 600; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.platforms .tile { display: flex; flex-direction: column; gap: 12px; }
.platforms .tile a.more { margin-top: auto; font-weight: 600; font-size: 14.5px; text-underline-offset: 3px; }
.platforms pre { font-size: 12.5px; margin: 0; }
.dark-band { background: var(--inid-black); color: #f5f5f7; border-top: 0; }
.dark-band .kicker { color: var(--lime); }
.dark-band .sub, .dark-band .list li { color: #a1a1a6; }
.dark-band .list b { color: #f5f5f7; }
.dark-band .tile { background: #1a1a1d; }
.dark-band .tile p { color: #a1a1a6; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 10px 0 0; max-width: 46em; }
.closing { text-align: center; }
.closing .sub { margin-left: auto; margin-right: auto; }
.closing .actions { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; gap: 32px; flex-wrap: wrap; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { text-decoration: none; } footer a:hover { color: var(--ink); }

/* Documentation */
.docs { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; padding-top: 36px; padding-bottom: 80px; }
.docs aside { position: sticky; top: 84px; align-self: start; font-size: 14.5px; }
.docs aside p { font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.docs aside p:first-child { margin-top: 0; }
.docs aside a { display: block; padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--muted); }
.docs aside a:hover { color: var(--ink); background: var(--fill); }
.docs aside a[aria-current] { color: var(--ink); background: var(--fill); font-weight: 600; }
@media (max-width: 860px) { .docs { grid-template-columns: minmax(0, 1fr); gap: 20px; } .docs aside { position: static; display: flex; flex-wrap: wrap; gap: 4px; } .docs aside p { display: none; } .docs aside a { background: var(--fill); } }
.prose { max-width: 760px; }
.prose h1 { font-size: 38px; margin-bottom: 16px; }
.prose h2 { font-size: 24px; margin: 44px 0 12px; padding-top: 8px; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 82%, var(--bg)); }
.prose a { text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.prose :not(pre) > code { background: var(--fill); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; font-size: .88em; overflow-wrap: anywhere; }
.prose pre { margin: 16px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 16px 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 650; background: var(--fill); }
.prose blockquote { margin: 16px 0; padding: 4px 16px; border-left: 3px solid var(--lime); color: var(--muted); }
.prose .anchor { text-decoration: none; color: var(--muted); margin-left: 6px; opacity: 0; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.cards a { display: block; text-decoration: none; background: var(--fill); border-radius: 12px; padding: 18px; }
.cards a:hover { outline: 1px solid var(--line); }
.cards b { display: block; margin-bottom: 4px; }
.cards span { color: var(--muted); font-size: 14.5px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; }
.pager a { text-decoration: none; color: var(--muted); } .pager a:hover { color: var(--ink); }
/* On dark, the lime marker would sit under light text; color the words instead */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) h1 em { background: none; color: var(--lime); } }
:root[data-theme="dark"] h1 em { background: none; color: var(--lime); }

/* Motion (the landing only: site.js sets .motion unless reduced motion is on) */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes mark { to { background-size: 100% 100%; } }
@keyframes blink { 0%, 70%, 100% { opacity: 1; } 80% { opacity: .25; } }
@keyframes fill { from { opacity: 0; transform: translateX(-6px); } }
@keyframes tick { from { transform: scale(.4); } }
@keyframes beat { 50% { transform: scale(.55); } }
@keyframes nudge { 50% { transform: scale(1.025); } }
.motion .hero .wrap > div:first-child > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.motion .hero .wrap > div:first-child > :nth-child(2) { animation-delay: .08s; }
.motion .hero .wrap > div:first-child > :nth-child(3) { animation-delay: .16s; }
.motion .hero .wrap > div:first-child > :nth-child(4) { animation-delay: .24s; }
.motion .hero .wrap > div:first-child > :nth-child(5) { animation-delay: .32s; }
.motion .hero .mock { animation: rise .9s .2s cubic-bezier(.2,.7,.2,1) both; }
.motion .screen { transition: opacity .45s, visibility .45s, transform .5s cubic-bezier(.2,.8,.2,1); }
.motion .mock[data-step="home"] .screen.signin { transform: translateY(-10px) scale(.98); }
.motion .screen.home { transform: translateY(12px); }
.motion .mock[data-step="home"] .screen.home { transform: none; }
.motion .mock[data-step] .home .hello, .motion .mock[data-step] .home .note, .motion .mock[data-step] .home .item, .motion .mock[data-step] .site-nav .admin, .motion .mock[data-step] .site-nav .me { opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s cubic-bezier(.2,.7,.2,1); }
.motion .mock[data-step] .home .in { opacity: 1; transform: none; }
.motion .form .go { transition: transform .15s, background-color .3s; }
.motion .form .go.press { transform: scale(.96); }
.motion .form .go.ok { background: var(--inid-good); }
.motion .form .code i.in { animation: tick .25s cubic-bezier(.3,1.6,.5,1) both; border-color: #b9b9c0; }
.motion .form .input.caret::after { content: ""; width: 1.5px; height: 18px; background: #1d1d1f; margin-left: 2px; animation: blink 1s infinite; }
.motion h1 em { background-repeat: no-repeat; background-size: 0 100%; animation: mark .6s .7s cubic-bezier(.6,0,.2,1) forwards; }
.motion .eyebrow i { animation: blink 3s 1.5s infinite; }
.motion .btn { transition: transform .15s, filter .15s; }
.motion .btn:active { transform: scale(.97); }
.motion .platforms .tile { transition: transform .25s, box-shadow .25s, opacity .6s cubic-bezier(.2,.7,.2,1); }
.motion .platforms .tile.in:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0,0,0,.35); }
/* Hidden until in view: keep this list in sync with REVEAL in site.js */
.motion :is(section .kicker, section h2, section .sub, section .tile, section .list li, section details, section .actions) { opacity: 0; transform: translateY(14px); transition: opacity .4s cubic-bezier(.2,.7,.2,1), transform .4s cubic-bezier(.2,.7,.2,1); }
.motion :is(section .kicker, section h2, section .sub, section .tile, section .list li, section details, section .actions).in { opacity: 1; transform: none; }

/* Code in the docs: highlighted at build time, tabs per language, a copy button */
.prose pre { position: relative; }
.prose pre code.hljs { display: block; background: none; padding: 0; color: inherit; font-size: inherit; }
.hljs-comment, .hljs-quote { color: #8c8c96; font-style: italic; }
.hljs-keyword, .hljs-selector-tag, .hljs-meta .hljs-keyword, .hljs-doctag { color: #ff8fb7; }
.hljs-string, .hljs-regexp, .hljs-template-variable, .hljs-addition { color: #ffd479; }
.hljs-number, .hljs-literal, .hljs-symbol, .hljs-bullet { color: #9ecbff; }
.hljs-title, .hljs-title.function_, .hljs-section { color: #8fd3ff; }
.hljs-title.class_, .hljs-type, .hljs-built_in, .hljs-class .hljs-title { color: #f0b35e; }
.hljs-attr, .hljs-attribute, .hljs-name, .hljs-selector-attr, .hljs-selector-class, .hljs-variable, .hljs-params { color: #c6ff3d; }
.hljs-tag, .hljs-meta, .hljs-punctuation, .hljs-operator { color: #b9b9c3; }
.hljs-deletion { color: #ff8f8f; }
.code-tabs { margin: 18px 0; border-radius: 12px; overflow: hidden; background: var(--code-bg); }
.code-tabs pre { margin: 0; border-radius: 0; }
.code-tabs-bar { display: flex; flex-wrap: wrap; gap: 0 2px; padding: 6px 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.code-tabs-bar::-webkit-scrollbar { display: none; }
.code-tabs-bar button { font: inherit; font-size: 12.5px; font-weight: 600; white-space: nowrap; border: 0; background: none; color: #9a9aa5; padding: 7px 10px 8px; border-radius: 7px 7px 0 0; cursor: pointer; border-bottom: 2px solid transparent; }
.code-tabs-bar button:hover { color: #e9e9ee; }
.code-tabs-bar button[aria-selected="true"] { color: #fff; border-bottom-color: var(--inid-lime, #c6ff3d); }
.code-tabs.single .code-tabs-bar button { cursor: default; color: #b9b9c3; border-bottom-color: transparent; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 500; }
.code-copy { position: absolute; top: 8px; right: 8px; font: inherit; font-size: 11.5px; font-weight: 600; color: #b9b9c3; background: rgba(255,255,255,.08); border: 0; border-radius: 6px; padding: 4px 8px; cursor: pointer; opacity: 0; transition: opacity .15s; }
.prose pre:hover .code-copy, .code-copy:focus-visible { opacity: 1; }
.code-copy:hover { color: #fff; background: rgba(255,255,255,.16); }
@media (hover: none) { .code-copy { opacity: 1; } }
