/* Cognify Reel product site. Colours and type follow the Cognify brand guide (cognify-marketing/00-brand). */

@font-face { font-family: 'Fraunces'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/fraunces-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 500; font-style: italic; font-display: swap; src: url('/fonts/fraunces-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/fraunces-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-weight: 400; font-display: swap; src: url('/fonts/inter-tight-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-weight: 500; font-display: swap; src: url('/fonts/inter-tight-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-weight: 600; font-display: swap; src: url('/fonts/inter-tight-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --paper: #FAFAF7;
  --sunken: #F2F1EB;
  --surface: #FFFFFF;
  --line: #E8E6DF;
  --line-2: #D6D3C8;
  --ink: #1A1A18;
  --ink-2: #45453F;
  --mute: #63635D;
  --forest: #2C5F2D;
  --forest-hover: #244F25;
  --forest-ink: #1F4520;
  --forest-soft: #E7EFE3;
  --forest-light: #5FA861;
  --mint: #9FC490;
  --dark: #14130F;
  --dark-2: #1F1E19;
  --dark-line: #34322B;
  --dark-text: #C9C6BB;
  --warn-soft: #F6EEDA;
  --warn-text: #7A5810;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --r-sm: 9px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(26, 26, 24, .05), 0 1px 1px rgba(26, 26, 24, .03);
  --shadow: 0 10px 24px -12px rgba(26, 26, 24, .18), 0 2px 6px rgba(26, 26, 24, .05);
  --shadow-lg: 0 30px 60px -24px rgba(26, 26, 24, .32), 0 8px 20px -8px rgba(26, 26, 24, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --focus: 2px solid var(--forest);
  --wrap: 1180px;
  --gutter: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--forest-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--forest); }
:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--mint); color: var(--ink); }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; line-height: 1.1; text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--forest); }
h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.9vw, 2.9rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 760px; }
@media (max-width: 520px) { :root { --gutter: 20px; } }

.skip { position: absolute; left: 12px; top: -60px; padding: 10px 14px; background: var(--ink); color: var(--paper); border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 12px; }

.eyebrow { font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--forest); margin-bottom: 18px; }
.eyebrow--light { color: var(--mint); }
.lede { font-size: 1.22rem; line-height: 1.55; color: var(--ink-2); max-width: 36em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn--primary { background: var(--forest); color: #fff; box-shadow: 0 8px 18px -10px rgba(44, 95, 45, .7); }
.btn--primary:hover { background: var(--forest-hover); color: #fff; }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn--outline { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--outline:hover { color: #fff; border-color: #fff; }
.arrow { transition: transform .18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 247, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__bar { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name { font: 600 19px/1 var(--serif); letter-spacing: -0.01em; }
.brand__name em { font-style: italic; font-weight: 500; color: var(--forest); }
.brand--light, .brand--light:hover { color: #fff; }
.brand--light .brand__name em { color: var(--mint); }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a { padding: 8px 12px; border-radius: var(--r-sm); font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.nav__links a:hover { background: var(--sunken); color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; place-items: center; }
.nav__toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav__toggle { display: grid; }
  .nav__actions { margin-left: auto; }
  .nav__links {
    position: absolute; top: 70px; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 18px; background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 12px; font-size: 16px; }
}
@media (max-width: 420px) { .nav__actions .btn { display: none; } }

/* Hero */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 84px); align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--mute); }
.hero__demo { position: relative; margin: 0; display: grid; justify-items: center; }
.phone {
  position: relative; z-index: 1; width: min(300px, 74vw); aspect-ratio: 9 / 16;
  padding: 10px; border-radius: 34px; background: var(--dark);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.phone__video { width: 100%; height: 100%; object-fit: cover; border-radius: 25px; background: #FFF4E8; }
.desk span { position: absolute; z-index: 0; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.desk span:nth-child(1) { width: 62%; height: 70%; top: 7%; left: 0; transform: rotate(-6deg); background: var(--sunken); }
.desk span:nth-child(2) { width: 58%; height: 64%; top: 14%; right: 0; transform: rotate(5deg); }
.hero__caption { position: relative; z-index: 1; max-width: 340px; margin-top: 22px; font-size: 14px; line-height: 1.5; color: var(--mute); text-align: center; }
.tag { display: inline-block; margin-right: 6px; padding: 3px 8px; border-radius: 6px; background: var(--forest-soft); color: var(--forest-ink); font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; vertical-align: 1px; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__demo { margin-top: 12px; }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--sunken { background: var(--sunken); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head h2 { margin-bottom: 16px; }
.section__lede { font-size: 1.1rem; color: var(--ink-2); }
.fineprint { margin-top: 22px; font-size: 14px; color: var(--mute); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 24px 22px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.step__n { display: inline-block; margin-bottom: 18px; font: 500 12px/1 var(--mono); letter-spacing: .1em; color: var(--forest); padding: 6px 8px; border-radius: 6px; background: var(--forest-soft); }
.step h3 { font-size: 1.18rem; margin-bottom: 10px; }
.step p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* Split layouts */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.split--top { align-items: start; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.split__copy h2 { margin-bottom: 18px; }
.split__copy > p { color: var(--ink-2); font-size: 1.08rem; }
@media (max-width: 900px) { .split, .split--top { grid-template-columns: 1fr; } }

.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--forest-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C5F2D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ticks strong { color: var(--ink); font-weight: 600; }

/* Code next to frame */
.codeframe { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 0; padding: 14px; border-radius: var(--r-lg); background: var(--dark); box-shadow: var(--shadow-lg); }
.codeframe__code { margin: 0; padding: 22px 20px; overflow-x: auto; font: 400 13.5px/1.75 var(--mono); color: #E9E6DC; }
.c-k { color: var(--mint); }
.c-s { color: #F2B59F; }
.c-n { color: #F6D488; }
.codeframe__img { width: 100%; height: auto; border-radius: 12px; }
@media (max-width: 520px) { .codeframe { grid-template-columns: 1fr; } .codeframe__img { max-width: 220px; margin: 0 auto 6px; } }

/* Variants */
.variants { display: grid; grid-template-columns: .56fr .8fr 1fr 1.78fr; gap: 18px; align-items: end; }
.variant { margin: 0; }
.variant img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: #10263A; }
.variant figcaption { margin-top: 12px; font-size: 14px; color: var(--mute); line-height: 1.4; }
.variant figcaption b { display: block; font: 500 13px/1.4 var(--mono); letter-spacing: .06em; color: var(--ink); }
@media (max-width: 900px) {
  .variants { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .variant--wide { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .variants { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { padding: 28px 26px 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__ico { width: 40px; height: 40px; padding: 9px; margin-bottom: 20px; border-radius: 10px; background: var(--forest-soft); fill: none; stroke: var(--forest); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--ink-2); }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* Limits */
.limits { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.limits li { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 18px; align-items: start; padding: 20px 24px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 16px; }
.limits li:first-child { border-top: 0; }
.limits strong { color: var(--ink); font-weight: 600; }
.badge { justify-self: start; margin-top: 2px; padding: 5px 9px; border-radius: 6px; background: var(--sunken); border: 1px solid var(--line); font: 500 11.5px/1.3 var(--mono); letter-spacing: .04em; color: var(--ink-2); white-space: nowrap; }
.badge--warn { background: var(--warn-soft); border-color: transparent; color: var(--warn-text); }
@media (max-width: 560px) { .limits li { grid-template-columns: 1fr; gap: 8px; } }

/* Prose */
.prose { display: grid; gap: 16px; font-size: 1.05rem; color: var(--ink-2); }

/* CTA band */
.cta-wrap { padding-bottom: clamp(64px, 9vw, 120px); }
.cta { padding: clamp(36px, 6vw, 64px); border-radius: var(--r-lg); background: var(--dark); color: var(--dark-text); box-shadow: var(--shadow-lg); }
.cta h2 { color: #fff; margin-bottom: 16px; max-width: 18em; }
.cta p { max-width: 38em; font-size: 1.08rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 520px) { .cta__actions .btn { white-space: normal; text-align: center; } }

/* Footer */
.foot { background: var(--dark); color: var(--dark-text); padding: 64px 0 28px; font-size: 15px; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.foot__about p { margin-top: 16px; max-width: 28em; }
.foot__head { margin: 4px 0 14px; font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.foot a:hover { text-decoration: underline; color: #fff; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--dark-line); font-size: 13.5px; color: #A6A397; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__about { grid-column: 1 / -1; } }

/* Legal and 404 */
.legal h1, .missing h1 { margin-bottom: 20px; }
.legal h2 { font-size: 1.6rem; margin: 44px 0 14px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 10px; }
.legal strong { color: var(--ink); }
.missing { min-height: 56vh; }

/* Reveal on scroll (below the fold only; the hero is never hidden) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
