/* zicky.ai page layout. Colours and type come from brand/tokens.css; parts from brand/components.css. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--font-sans); -webkit-font-smoothing: antialiased; }
.band { padding-inline: 16px; }
.band + .band:not(.zk-night) .zk-frame { border-top: 1px solid var(--hair); }
h1, h2, h3, p { margin: 0; }
h2, h3 { text-wrap: balance; }
.stag span { display: block; }
.stag .i1 { padding-left: 1.6em; }
.stag .i2 { padding-left: 3.2em; }
@media (min-width: 821px) { .stag span { white-space: nowrap; } }

/* nav */
.nav { display: flex; align-items: stretch; height: 64px; border-bottom: 1px solid var(--night-line); }
.nav .home { display: flex; align-items: center; padding: 0 24px; border-right: 1px solid var(--night-line); }
.nav .links { display: flex; align-items: center; gap: 32px; padding: 0 32px; flex: 1; font-size: 15px; }
.nav .links a { color: var(--on-night); text-decoration: none; }
.nav .links a:hover { color: var(--cobalt-on-night); }
.nav .right { display: flex; align-items: center; gap: 24px; padding-right: 8px; }
.nav .lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font: 12px/1 var(--font-mono); letter-spacing: .06em; color: var(--on-night-muted); text-decoration: none; }
.nav .lang:hover { color: var(--on-night); }

/* hero */
/* Hero C: the chrome turns behind the headline and the letters invert (difference blend) where they cross it. */
.hero { position: relative; overflow: hidden; padding: 64px 32px 56px; min-height: 720px; display: flex; flex-direction: column; isolation: isolate; }
.fluid { position: absolute; top: 50%; right: -8%; width: min(800px, 72%); aspect-ratio: 1; transform: translateY(-42%); pointer-events: none; z-index: 0; }
.fluid canvas { display: block; width: 100%; height: 100%; }
.fluid .still { position: absolute; inset: 14%; border-radius: 50%;
  background: radial-gradient(circle at 36% 24%, rgba(255, 255, 255, .9) 0, rgba(255, 255, 255, 0) 34%),
    radial-gradient(ellipse 150% 58% at 42% 0, #dedfe3 0, #c3c5cb 98.4%, transparent 99.6%),
    linear-gradient(#17181e 55%, #20222b 85%, #2a2c37 100%); }
/* No mid-grey stops: the inverted headline needs the sphere to be clearly light or clearly dark under it. */
.hero .meta { position: relative; z-index: 2; font: 13px/1.45 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--on-night-muted); font-variant-numeric: tabular-nums; }
.hero h1 { position: relative; z-index: 2; margin-top: 40px; font-size: clamp(36px, 7.2vw, 104px); color: #fff; mix-blend-mode: difference; }
.hero .foot { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; margin-top: auto; padding-top: 56px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.tag { max-width: 360px; padding: 16px 18px; background: rgba(14, 14, 16, .82); border: 1px solid var(--night-line);
  font: 13px/1.5 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.tag .zk-sq { margin-bottom: 14px; }

/* three columns under the hero */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.cols > div { padding: 32px 32px 40px; border-right: 1px solid var(--hair); min-width: 0; display: grid; gap: 10px; align-content: start; }
.cols > div:last-child { border-right: 0; }
.cols h2 { margin-top: 8px; }
.cols p { color: var(--ink-muted); }

/* platform */
.open { padding: 128px 32px 48px; display: grid; gap: 24px; }
.stack { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hair); }
.stack > div { padding: 32px; border-right: 1px solid var(--hair); min-width: 0; }
.stack > div:last-child { border-right: 0; }
.stack ul { list-style: none; margin: 24px 0 0; padding: 0; }
.stack li { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.stack li::before { content: ""; width: 6px; height: 6px; margin-top: .58em; background: var(--ink); flex: none; }

.lede { max-width: 56ch; color: var(--ink-muted); font-size: 18px; line-height: 1.55; }
.zk-night .lede { color: var(--on-night-muted); }
.open.split { grid-template-columns: auto minmax(240px, 1fr); align-items: center; gap: 32px; }
.open-copy { display: grid; gap: 24px; align-content: start; }
.open.split h2 { font-size: clamp(36px, 5.4vw, 76px); }
.illo { display: block; width: 100%; height: auto; }
.open.split .illo { max-width: 520px; justify-self: end; }

/* resilience (night) */
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--night-line); }
.res-grid > div { padding: 32px 32px 40px; display: grid; gap: 10px; align-content: start; border-right: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); min-width: 0; }
.res-grid > div:nth-child(3n) { border-right: 0; }
.res-grid .zk-sq { margin-bottom: 12px; }
.res-grid p { color: var(--on-night-muted); }

/* mission */
.mission { padding: 112px 32px 48px; text-align: center; display: grid; justify-items: center; gap: 24px; }
.mission .zk-sq { margin-bottom: 40px; }
.mission p.t-heading { max-width: 22ch; }
@media (min-width: 821px) { .mission p.t-heading { max-width: 30ch; } }

.bridge { padding: 0 32px 64px; }
.bridge img { display: block; width: 100%; height: auto; }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; }
.feature + .feature, .open + .feature { border-top: 1px solid var(--hair); }
.feature .copy { padding: 96px 32px; display: grid; gap: 20px; align-content: start; border-right: 1px solid var(--hair); min-width: 0; }
.feature .copy > p:not(.zk-label) { color: var(--ink-muted); max-width: 46ch; }
.feature .copy .zk-code { margin-top: 12px; max-width: 520px; }
.feature .art { padding: 32px; min-width: 0; display: grid; }
.panel { background: var(--panel); border: 1px solid var(--hair); border-radius: var(--radius-md); padding: 32px; display: grid; align-content: center; min-height: 420px; }
.card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius-md); box-shadow: 0 24px 48px -32px rgba(18, 18, 18, .25); min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--hair); }
.card table { width: 100%; border-collapse: collapse; font-size: 14px; }
.card td, .card th { padding: 12px 18px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.card th { text-align: left; font-weight: 400; }
.card tr:last-child :is(td, th) { border-bottom: 0; }
.card .k { font: 12px var(--font-mono); color: var(--ink-faint); }
.card td.v { font-weight: 500; }
.card .scroll { overflow-x: auto; }
.lanes { display: grid; }
.lane { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; padding: 18px; border-bottom: 1px solid var(--hair); align-items: center; }
.lane:last-child { border-bottom: 0; }
.lane h3 { font: 600 16px/1.3 var(--font-display); letter-spacing: -.01em; }
.lane p { grid-column: 2; color: var(--ink-muted); font-size: 14px; }
.lane.on { background: var(--review-soft); }
.feed-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 18px; border-bottom: 1px solid var(--hair); align-items: center; }
.feed-row:last-child { border-bottom: 0; }
.feed-row b { font-weight: 500; font-size: 14px; }
.feed-row span.m { grid-column: 1; font: 12px var(--font-mono); color: var(--ink-faint); }
.feed-row .zk-chip { grid-row: 1 / span 2; grid-column: 2; }
.feature.global { border-top: 1px solid var(--hair); }
.feature.global .art { place-items: center; padding: 48px 32px; }
.feature.global .illo { max-width: 440px; }
.caption { margin-top: 12px; font: 12px/1.5 var(--font-mono); color: var(--ink-faint); }

/* who */
.who-head { padding: 112px 32px 64px; text-align: center; display: grid; justify-items: center; gap: 24px; }
.who-row { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 32px; padding: 40px 32px; border-top: 1px solid var(--hair); align-items: start; }
.who-row p { color: var(--ink-muted); }

/* trust */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--hair); }
.principles > div { padding: 32px; border-bottom: 1px solid var(--hair); display: grid; gap: 8px; min-width: 0; }
.principles > div:nth-child(odd) { border-right: 1px solid var(--hair); }
.principles p { color: var(--ink-muted); }
.regs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 32px; }
.regs span:not(.zk-label) { font: 12px/1 var(--font-mono); letter-spacing: .06em; padding: 8px 10px; border: 1px solid var(--hair); border-radius: var(--radius-sm); }

/* closing */
.closing { padding: 128px 32px 112px; display: grid; gap: 40px; }
.closing .row { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: end; }
.closing .row p { max-width: 46ch; color: var(--ink-muted); }
.mail { font: 15px/1 var(--font-mono); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hair); padding-bottom: 3px; }
.mail:hover { color: var(--cobalt); border-color: currentColor; }

/* footer */
.foot-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); }
.foot-grid > div { padding: 64px 32px 48px; border-right: 1px solid var(--night-line); display: grid; gap: 14px; align-content: start; min-width: 0; }
.foot-grid > div:last-child { border-right: 0; }
.foot-grid a { color: var(--on-night); text-decoration: none; font-size: 15px; }
.foot-grid a:hover { color: var(--cobalt-on-night); }
.foot-grid .zk-sq { margin-top: 6px; }
.legal { margin: 0; padding: 20px 32px; border-top: 1px solid var(--night-line);
  font: 12px/1.7 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--on-night-muted); }
.giant { border-top: 1px solid var(--night-line); padding: 48px 32px 0; overflow: hidden; height: clamp(90px, 15vw, 210px); }
.giant img { display: block; width: 100%; height: auto; opacity: .16; }

@media (max-width: 1000px) {
  .res-grid { grid-template-columns: repeat(2, 1fr); }
  .res-grid > div:nth-child(3n) { border-right: 1px solid var(--night-line); }
  .res-grid > div:nth-child(2n) { border-right: 0; }
  .stack { grid-template-columns: repeat(2, 1fr); }
  .stack > div:nth-child(2) { border-right: 0; }
  .stack > div:nth-child(-n+2) { border-bottom: 1px solid var(--hair); }
  .who-row { grid-template-columns: 1fr 1fr; }
  .who-row p { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  /* Section links move to a second, sideways-scrolling row instead of disappearing. */
  .nav { flex-wrap: wrap; height: auto; }
  .nav .home, .nav .right { height: 64px; }
  .nav .links { order: 3; flex: 1 0 100%; height: 48px; gap: 24px; padding: 0 16px; overflow-x: auto; white-space: nowrap;
    border-top: 1px solid var(--night-line); font-size: 14px; scrollbar-width: none; }
  .nav .links::-webkit-scrollbar { display: none; }
  .nav .home { border-right: 0; padding: 0 16px; }
  .nav .right { margin-left: auto; }
  .hero { padding: 40px 16px; min-height: 0; }
  .fluid { position: relative; top: auto; right: auto; left: 50%; transform: translateX(-50%); width: min(110%, 52vh); width: min(110%, 52svh); margin: -24px 0 -40px; }
  .hero h1 { mix-blend-mode: normal; }
  .open.split { grid-template-columns: 1fr; }
  .open.split .illo { justify-self: center; max-width: 360px; }
  .bridge { padding: 0 16px 40px; }
  .feature.global .art { padding: 0 16px 48px; }
  .res-grid { grid-template-columns: 1fr; }
  .res-grid > div, .res-grid > div:nth-child(3n) { border-right: 0; padding: 24px 16px; }
  .stag .i1, .stag .i2 { padding-left: 0; }
  .cols, .feature, .principles, .foot-grid { grid-template-columns: 1fr; }
  .cols > div, .feature .copy, .principles > div:nth-child(odd), .foot-grid > div { border-right: 0; }
  .cols > div { border-bottom: 1px solid var(--hair); padding: 24px 16px; }
  .open, .mission, .who-head, .closing { padding: 72px 16px 40px; }
  .stack > div { padding: 24px 16px; }
  .feature .copy { padding: 56px 16px 24px; }
  .feature .art { padding: 0 16px 40px; }
  .panel { padding: 16px; min-height: 0; }
  .who-row { grid-template-columns: 1fr; gap: 12px; padding: 32px 16px; }
  .principles > div, .regs { padding: 24px 16px; }
  .foot-grid > div { padding: 32px 16px; border-bottom: 1px solid var(--night-line); }
  .legal { padding: 20px 16px; }
  .giant { padding: 32px 16px 0; }
}
@media (max-width: 560px) { .stack { grid-template-columns: 1fr; } .stack > div { border-right: 0; border-bottom: 1px solid var(--hair); } }
/* Phones: the hero CTA is on the first screen, so the top-bar CTA goes and the language switch stays. */
@media (max-width: 420px) { .nav .zk-btn--sm { display: none; } .nav .right { padding-right: 4px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 560px) { .lane { grid-template-columns: 1fr; } .lane p { grid-column: 1; } }

/* ---- Launch: accessibility, CSP-safe widths, legal pages, 404 (tech owner) ---- */
.band { padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
.skip { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 12px 16px; background: var(--on-night); color: var(--night);
  font: 500 15px/1 var(--font-sans); border-radius: var(--radius-sm); text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* Nav labels never wrap; between 821px and 999px the row tightens so every label and the CTA fit on one line. */
.nav .links a { white-space: nowrap; }
@media (min-width: 821px) and (max-width: 999px) { html .nav .links, html[lang^="pt"] .nav .links { gap: 18px; padding: 0 18px; font-size: 14px; } .nav .home { padding: 0 18px; } .nav .right { gap: 8px; } }
/* PT: uppercase diacritics (Ê Õ Ç Ã) need more line room than 0.86/0.88. */
html[lang^="pt"] .t-display-xl, html[lang^="pt"] .t-display-l { line-height: 1.08; }
/* Confidence bars: widths as classes so the CSP needs no 'unsafe-inline' for style="" attributes. */
.zk-conf__bar .w98 { width: 98%; } .zk-conf__bar .w99 { width: 99%; } .zk-conf__bar .w95 { width: 95%; } .zk-conf__bar .w81 { width: 81%; }
.feed-row .id { white-space: nowrap; }
/* Workflow stage labels ("… · designed") can wrap to two lines; reserve both so the four lists line up. */
@media (min-width: 561px) { #workflows .stack .zk-label { display: block; min-height: 3.1em; } }
.who-note { max-width: 52ch; color: var(--ink-muted); font-size: 18px; }
.legal a { color: inherit; text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 3px; }
.legal a:hover { color: var(--on-night); }
.legal .mail-l { text-transform: none; }
.foot-grid a[aria-current="page"] { color: var(--on-night-muted); }
.card .scroll:focus-visible, .zk-code pre:focus-visible { outline: 2px solid var(--cobalt); outline-offset: -2px; }
@media (max-width: 560px) {
  .zk-code pre { white-space: pre; overflow-x: auto; font-size: 12px; }
  .card td, .card th { padding: 10px 12px; }
  .card .k { white-space: normal; }
  .zk-conf__bar { display: none; }
  .card-head { flex-wrap: wrap; }
  .card-head > * { white-space: nowrap; }
}
/* Narrow phones: each case row stacks its key above the value, so the confidence column stays in view. */
@media (max-width: 380px) {
  .card table, .card tbody { display: block; }
  .card tr { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 12px; row-gap: 2px; padding: 10px 12px; border-bottom: 1px solid var(--hair); }
  .card tr:last-child { border-bottom: 0; }
  .card th.k, .card td { padding: 0; border: 0; }
  .card th.k { grid-column: 1 / -1; }
}
.lane .zk-chip { justify-self: start; }
.principles > div { align-content: start; }
/* Neutral backdrop for the difference blend: the headline turns pure black or white over the chrome. */
.fluid { filter: grayscale(1); }
@media (min-width: 821px) { .feature .art { align-items: start; } .panel { position: sticky; top: 32px; } }
.nav .links { scroll-padding-inline: 16px; }
@media (max-width: 820px) {
  .nav .links { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); padding-right: 40px; scroll-padding-inline: 16px 48px; }
}

/* Privacy notice pages */
.doc { padding: 112px 32px 112px; display: grid; gap: 20px; max-width: 760px; }
.doc h1 { margin-bottom: 16px; }
.doc h2 { margin-top: 28px; }
.doc p, .doc li { color: var(--ink-muted); max-width: 68ch; }
.doc .doc-intro { color: var(--ink); font-size: 18px; }
.doc strong { color: var(--ink); font-weight: 500; }
.doc ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.doc a { color: var(--ink); text-underline-offset: 3px; }
.doc a:hover { color: var(--cobalt); }
@media (max-width: 820px) { .doc { padding: 64px 16px 72px; } }

/* 404 pages */
.page-404 { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--night); color: var(--on-night); }
.page-404 .nf { display: grid; gap: 24px; justify-items: start; }
.page-404 .nf p { color: var(--on-night-muted); }
.page-404 .nf p a { color: var(--on-night); }
.page-404 .nf .home { display: inline-flex; margin-bottom: 24px; }
.nav .right { margin-left: auto; }
