/* PR-1990 (D8200): the 2026 design's base — tokens, type, buttons, labels — shared by the home page and the
   redesigned pages (/features/*, /team, /faq). Ported from the design prototype's App.css. */
:root {
  --primitive-ink: oklch(0.16 0.008 60);
  --primitive-paper: oklch(0.935 0.006 90);
  --primitive-coral: oklch(0.704 0.202 39);
  --primitive-white: oklch(0.97 0.005 90);
  --primitive-ink-soft: oklch(0.39 0.01 60);
  --primitive-paper-soft: oklch(0.79 0.008 90);

  --color-bg: var(--primitive-paper);
  --color-text: var(--primitive-ink);
  --color-muted: var(--primitive-ink-soft);
  --color-accent: var(--primitive-coral);
  --color-dark: var(--primitive-ink);
  --color-on-dark: var(--primitive-white);
  --color-dark-muted: var(--primitive-paper-soft);
  --color-line-light: oklch(0.16 0.008 60 / 0.2);
  --color-line-dark: oklch(0.97 0.005 90 / 0.22);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --space-section: clamp(5.5rem, 10vw, 10rem);
  --page-pad: clamp(1.25rem, 3.3vw, 3.5rem);
  --z-header: 20;
  --z-overlay: 40;
  --z-dialog: 50;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-image: url('/v2/media/grain.png');
  content: '';
  opacity: 0.025;
  pointer-events: none;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  margin: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
}

button:not(:disabled),
summary {
  cursor: pointer;
}

img,
video {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
}

::selection {
  background: var(--color-accent);
  color: var(--primitive-ink);
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

.section-dark :focus-visible,
.hero :focus-visible {
  outline-color: var(--primitive-white);
}

.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;
}

.section-light {
  background: var(--color-bg);
  color: var(--color-text);
}

.section-dark {
  background: var(--color-dark);
  color: var(--color-on-dark);
}

.eyebrow,
.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.section-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-line-light);
}

.section-dark .section-label {
  border-color: var(--color-line-dark);
  color: var(--color-dark-muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 52px;
  padding: 0.8rem 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 180ms ease-out, background-color 180ms ease-out, color 180ms ease-out;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button-coral {
  background: var(--color-accent);
  color: var(--primitive-ink);
}

.button-coral:hover {
  background: var(--primitive-white);
}

.button-ink {
  background: var(--primitive-ink);
  color: var(--primitive-white);
}

.button-ink:hover {
  background: var(--primitive-white);
  color: var(--primitive-ink);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.logo img {
  width: 30px;
  height: 30px;
}

.logo-dark img {
  filter: invert(1);
}


/* ===== PR-1990 (D8200): the static port. Tailwind's preflight did this in the React prototype. ===== */
:where(.v2 main) :where(h1,h2,h3,p,ul,ol,figure,fieldset,dl,dd){margin:0}
:where(.v2 main) :where(ul,ol){list-style:none;padding:0}
:where(.v2 main) :where(img,video){display:block;max-width:100%;height:auto}
:where(.v2 main) :where(fieldset){border:0;padding:0;min-width:0}
:where(.v2 main) :where(section){position:relative}
.ico{width:1.15em;height:1.15em;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ico-fill{fill:currentColor;stroke:none}
.text-link{display:inline-flex;align-items:center;min-height:44px;border-bottom:1px solid currentColor;font-family:var(--font-mono);font-size:.7rem;letter-spacing:.05em;text-transform:uppercase;line-height:1.2}
.text-link:hover{color:var(--color-accent)}
.section-light .text-link:hover{color:var(--cwi-coral-ink)}
.button-outline{border:1px solid currentColor;color:inherit}
.button-outline:hover{background:var(--primitive-white);color:var(--primitive-ink);border-color:var(--primitive-white)}
.button-ghost{border:1px solid var(--color-line-dark);color:inherit}
.button-ghost:hover{background:var(--primitive-white);color:var(--primitive-ink)}
.button-ghost-ink{border:1px solid var(--color-line-light);color:var(--primitive-ink)}
.button-ghost-ink:hover{background:var(--primitive-ink);color:var(--primitive-white)}
.button:disabled{opacity:.5;transform:none}
.fine{max-width:75ch;margin-top:2rem !important;font-size:.9rem;color:var(--color-muted)}
.section-dark .fine{color:var(--color-dark-muted)}
.fine a{text-decoration:underline;text-underline-offset:3px}



/* PR-1990 (D8210): product screens are framed warm, rounded and compact, and open full size on a click. */
.v2 :is(.product-stage-wide,.screen-strip figure,.ai-shot,.demo,.device-web,.shot){background:linear-gradient(155deg,oklch(.95 .03 75),oklch(.89 .055 48));border-radius:18px;padding:clamp(10px,1.4vw,16px);overflow:hidden}
.v2 :is(.product-stage-wide,.screen-strip figure,.ai-shot,.demo,.device-web) img,.v2 .shot img{display:block;width:100%;height:auto;border-radius:10px;border:0;box-shadow:0 14px 34px oklch(.4 .09 40 / .22);cursor:zoom-in;transition:transform .25s ease-out}
.v2 :is(.product-stage-wide,.screen-strip figure,.ai-shot,.demo,.device-web) img:hover{transform:translateY(-2px)}
.v2 :is(.screen-strip,.ai-shot,.demo,.device-web) figcaption{padding:.7rem .2rem 0;color:oklch(.42 .06 45) !important}
dialog.v2-lightbox{width:min(1280px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;border:0;background:transparent;overflow:visible}
dialog.v2-lightbox::backdrop{background:oklch(.12 .01 50 / .86)}
dialog.v2-lightbox img{display:block;width:100%;height:auto;max-height:calc(100dvh - 90px);object-fit:contain;border-radius:14px;background:oklch(.95 .02 75)}
dialog.v2-lightbox p{margin:.7rem 0 0;color:oklch(.9 .02 80);font-family:var(--font-mono);font-size:.7rem;letter-spacing:.04em;text-transform:uppercase}
dialog.v2-lightbox button{position:absolute;top:-14px;right:-6px;width:44px;height:44px;border-radius:50%;background:var(--primitive-white);color:var(--primitive-ink);font-size:1.4rem;line-height:1}
@media (prefers-reduced-motion:reduce){.v2 :is(.product-stage-wide,.screen-strip figure,.ai-shot,.demo,.device-web) img{transition:none}}

/* ===== PR-1990 (D8215): warmer, rounder, more compact (Sachin, 20 Nov 2026) =====
   Content sits in a centred column (max 1240px) with wider edge margins; sections are rounded cards on a warm
   sand page; headings are a size smaller; buttons, tabs and frames are pills and soft corners. */
:root{--primitive-paper:oklch(.955 .012 78);--primitive-ink:oklch(.2 .018 45);--color-bg:var(--primitive-paper);--color-dark:var(--primitive-ink);
  --page-pad:max(clamp(1.5rem,5.5vw,4.5rem),calc((100vw - 1240px) / 2));--space-section:clamp(3.75rem,7vw,6.5rem);--v2-radius:28px;--v2-sand:oklch(.9 .028 70)}
body.v2{background:var(--v2-sand);font-size:16px}
.v2 main>section:not(.hero),.v2 main>.cwi-studio-entry,.v2 main>.cwi-discover{margin:10px;border-radius:var(--v2-radius);overflow:hidden}
.v2 main>section.section-light,.v2 main>section.section-paper-alt,.v2 main>.cwi-discover{background:var(--primitive-paper)}
.v2 .hero{border-radius:0 0 var(--v2-radius) var(--v2-radius)}
.v2 .button,.v2 .cwi-start,.v2 .text-link{border-radius:999px}
.v2 .button{min-height:48px;padding:.7rem 1.35rem}
.v2 .text-link{border-bottom:0;text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px;padding:0 .2rem}
.v2 .section-label{border-bottom-style:dashed}
.v2 main h2{letter-spacing:-.025em}
.v2 .xclose,.v2 .dialog-close{border-radius:999px}
.v2 .field input:not([type=radio]):not([type=checkbox]),.v2 .field select,.v2 .field textarea,.v2 .opt span{border-radius:12px}
dialog.modal,dialog.video-dialog{border-radius:22px;overflow:hidden}
