/* Naina Labs: one header, one footer and one set of brand marks for every public page.
   Loaded last in <head>, and every selector starts with "html body" so page styles can't drift it. */

/* ---------- one palette, light only ----------
   Some pages used to switch to a dark palette on dark-mode devices while the home page, sign-up and
   workspace stayed light. The site is light everywhere now, with one set of colours. */
html:root:not(#nl) {
  --bg: #FDFBFF; --surface: #FFFFFF; --sunk: #F3F0FA; --fg: #1B1530; --muted: #5D5674; --line: #E4DFF0; --mint: #0FA585;
  color-scheme: light;
}

/* ---------- brand marks ---------- */
/* The Naina wordmark: DynaPuff, with the gradient tile as the dot on the i. */
html body .oi, html body .lw-i, html body .bw-i { position: relative; display: inline-block; font: inherit; color: inherit; letter-spacing: inherit; text-transform: none; background: none; padding: 0; margin: 0; border-radius: 0; line-height: 1; }
html body .oi::after, html body .lw-i::after, html body .bw-i::after {
  content: ""; position: absolute; left: 50%; top: .1em; width: .28em; height: .28em;
  transform: translateX(-50%) rotate(12deg); border-radius: 30%;
  background: conic-gradient(from 200deg, #FF5A4E, #FFA53D, #FF4FA3, #7A4DFF, #FF5A4E);
}
html body .nm, html body .bw { font-family: "DynaPuff", "DM Sans", system-ui, sans-serif; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
/* The brand tile, used wherever Naina appears as a product or app icon. */
html body .ntile { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: #FFF1F7; }
html body .ntile::before { content: ""; width: 26px; height: 26px; border-radius: 8px; transform: rotate(12deg); background: conic-gradient(from 200deg, #FF5A4E, #FFA53D, #FF4FA3, #7A4DFF, #FF5A4E); }
/* Homepage example card: the tile matches the header logo exactly. */
html body .demo .ntile { display: inline-block; width: 32px; height: 32px; border-radius: 10px; transform: rotate(12deg); background: conic-gradient(from 200deg, #FF5A4E, #FFA53D, #FF4FA3, #7A4DFF, #FF5A4E); margin: 4px 6px 4px 4px; }
html body .demo .ntile::before { content: none; }

/* ---------- header ---------- */
html body header.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; margin: 0; padding: 0;
  background: color-mix(in srgb, #FDFBFF 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 0; border-bottom: 1px solid #E4DFF0; box-shadow: none;
  font: 400 16px/1.4 "DM Sans", system-ui, sans-serif; color: #1B1530;
}
html body header.nav > .wrap {
  max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 14px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px));
  font: inherit; line-height: 1.4;
}
html body header.nav .logo, html body footer.site .logo {
  display: flex; align-items: center; gap: 10px; flex: none; text-decoration: none; color: #1B1530; line-height: 1; font: 700 24px/1 "DM Sans", system-ui, sans-serif;
}
html body header.nav .logo i, html body footer.site .logo i {
  display: block; width: 32px; height: 32px; flex: none; border-radius: 10px; transform: rotate(12deg);
  background: conic-gradient(from 200deg, #FF5A4E, #FFA53D, #FF4FA3, #7A4DFF, #FF5A4E);
}
html body header.nav .logo .lw, html body footer.site .logo .lw { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; white-space: nowrap; font-size: 1em; font-weight: 700; }
html body header.nav .logo .lw-n, html body footer.site .logo .lw-n { font-family: "DynaPuff", "DM Sans", system-ui, sans-serif; font-weight: 700; letter-spacing: 0; }
html body header.nav .logo .lw small, html body footer.site .logo .lw small {
  font: 700 .4em "DM Sans", system-ui, sans-serif; letter-spacing: .42em; text-transform: uppercase; color: #5D5674; margin-top: .3em; padding-left: .08em;
}
html body header.nav .mnav { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; font: 600 15px/1 "DM Sans", system-ui, sans-serif; }
html body header.nav .mnav a { display: inline-block; text-decoration: none; color: #5D5674; font: inherit; padding: 0; margin: 0; background: none; box-shadow: none; border: 0; white-space: nowrap; }
html body header.nav .mnav a:hover { color: #1B1530; }
html body header.nav .mnav .nn { font: 700 18px/1 "DynaPuff", "DM Sans", sans-serif; color: #1B1530; }
html body header.nav .mnav .cta {
  display: inline-flex; align-items: center; gap: 0; padding: 10px 18px; border-radius: 999px;
  background: #1B1530; color: #FDFBFF; font: 700 15px/1 "DM Sans", system-ui, sans-serif; box-shadow: none; transform: none;
}
html body header.nav .mnav .cta:hover { color: #FDFBFF; background: #2E2550; }

/* ---------- Products menu ----------
   "Products" in the header opens a panel with Naina, LLM Insights and Free tools.
   It opens on hover with a mouse, and on tap or Enter elsewhere (nav.js adds .open). */
@property --pa { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
html body header.nav > .wrap { position: relative; }
html body header.nav .mnav .pm-menu { position: static; display: flex; align-items: center; }
html body header.nav .mnav .pm-trig {
  display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 8px 0; border: 0; background: none; cursor: pointer;
  font: 600 15px/1 "DM Sans", system-ui, sans-serif; color: #1B1530; white-space: nowrap;
}
html body header.nav .mnav .pm-trig:focus-visible { outline: 2px solid #7A4DFF; outline-offset: 4px; border-radius: 6px; }
html body header.nav .mnav .pm-trig svg { transition: transform .25s ease; }
html body header.nav .mnav .pm-new {
  font: 800 10px/1 "DM Sans", system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #FFFFFF;
  padding: 4px 6px; border-radius: 999px; background: linear-gradient(95deg, #FF5A4E, #FF4FA3 45%, #7A4DFF);
}
html body header.nav .mnav .pm-panel {
  position: absolute; top: calc(100% - 4px); right: max(24px, env(safe-area-inset-right, 0px)); width: min(760px, calc(100% - 48px));
  z-index: 60; padding: 1.5px; border-radius: 26px;
  background: conic-gradient(from var(--pa), #FF5A4E, #FFA53D, #FF4FA3, #7A4DFF, #FF5A4E);
  box-shadow: 0 40px 90px -30px rgba(27, 21, 48, .45), 0 10px 30px -15px rgba(122, 77, 255, .35);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-10px) scale(.98); transform-origin: top right;
  transition: opacity .2s ease, transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s;
}
html body header.nav .mnav .pm-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
html body header.nav .mnav .pm-in { background: #FFFFFF; border-radius: 24.5px; padding: 14px; }
html body header.nav .mnav .pm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
html body header.nav .mnav .pm-card {
  white-space: normal; box-shadow: none; margin: 0;
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: 18px 16px 16px; border-radius: 18px; background: #F6F3FD; color: #1B1530; text-decoration: none;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1), background .2s ease, box-shadow .2s ease;
}
html body header.nav .mnav .pm-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s ease;
  background: radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%);
}
html body header.nav .mnav .pm-card:hover, html body header.nav .mnav .pm-card:focus-visible {
  background: #FFFFFF; box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--c) 70%, transparent), inset 0 0 0 1.5px color-mix(in srgb, var(--c) 45%, transparent);
  outline: none;
}
html body header.nav .mnav .pm-card:hover::after, html body header.nav .mnav .pm-card:focus-visible::after { opacity: 1; }
html body header.nav .mnav .pm-ic {
  position: relative; z-index: 1; width: 46px; height: 46px; flex: none; border-radius: 15px; display: grid; place-items: center;
  background: var(--t); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
html body header.nav .mnav .pm-card:hover .pm-ic { transform: rotate(-6deg) scale(1.06); }
html body header.nav .mnav .pm-tx { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
html body header.nav .mnav .pm-tx b { display: flex; align-items: center; gap: 8px; font: 800 18px/1.15 "Bricolage Grotesque", "DM Sans", system-ui, sans-serif; letter-spacing: -.01em; }
html body header.nav .mnav .pm-tx b .nm { font-family: "DynaPuff", "DM Sans", system-ui, sans-serif; font-weight: 700; }
html body header.nav .mnav .pm-tx small { font: 400 13.5px/1.45 "DM Sans", system-ui, sans-serif; color: #5D5674; }
html body header.nav .mnav .pm-go {
  position: relative; z-index: 1; margin-top: auto; font: 700 13px/1 "DM Sans", system-ui, sans-serif; color: var(--c);
  display: inline-flex; align-items: center; gap: 6px;
}
html body header.nav .mnav .pm-go i { font-style: normal; transition: transform .25s ease; }
html body header.nav .mnav .pm-card:hover .pm-go i { transform: translateX(4px); }
html body header.nav .mnav .pm-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px;
  padding: 12px 6px 2px; font: 500 13px/1.4 "DM Sans", system-ui, sans-serif; color: #5D5674;
}
html body header.nav .mnav .pm-foot a { white-space: normal; padding: 0; color: #1B1530; font-weight: 700; text-decoration: none; }
html body header.nav .mnav .pm-foot a:hover { text-decoration: underline; }
/* open states */
html body header.nav .mnav .pm-menu.open .pm-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; animation: nl-pa 7s linear infinite; }
html body header.nav .mnav .pm-menu.open .pm-trig svg { transform: rotate(180deg); }
html body header.nav .mnav .pm-menu.open .pm-card { opacity: 1; transform: none; }
html body header.nav .mnav .pm-menu.open .pm-card:nth-child(2) { transition-delay: .05s, .05s, 0s, 0s; }
html body header.nav .mnav .pm-menu.open .pm-card:nth-child(3) { transition-delay: .1s, .1s, 0s, 0s; }
@media (hover: hover) and (pointer: fine) {
  html body header.nav .mnav .pm-menu:hover .pm-panel, html body header.nav .mnav .pm-menu:focus-within .pm-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; animation: nl-pa 7s linear infinite; }
  html body header.nav .mnav .pm-menu:hover .pm-trig svg { transform: rotate(180deg); }
  html body header.nav .mnav .pm-menu:hover .pm-card, html body header.nav .mnav .pm-menu:focus-within .pm-card { opacity: 1; transform: none; }
  html body header.nav .mnav .pm-menu:hover .pm-card:nth-child(2), html body header.nav .mnav .pm-menu:focus-within .pm-card:nth-child(2) { transition-delay: .05s, .05s, 0s, 0s; }
  html body header.nav .mnav .pm-menu:hover .pm-card:nth-child(3), html body header.nav .mnav .pm-menu:focus-within .pm-card:nth-child(3) { transition-delay: .1s, .1s, 0s, 0s; }
}
@keyframes nl-pa { to { --pa: 360deg; } }
@media (max-width: 760px) {
  html body header.nav .mnav .pm-panel { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 62px); left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); width: auto; max-height: calc(100vh - 80px); overflow: auto; transform-origin: top center; }
  html body header.nav .mnav .pm-grid { grid-template-columns: 1fr; }
  html body header.nav .mnav .pm-card { flex-direction: row; align-items: center; padding: 14px; }
  html body header.nav .mnav .pm-go { display: none; }
}
@media (max-width: 460px) { html body header.nav .mnav .pm-new { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html body header.nav .mnav .pm-panel, html body header.nav .mnav .pm-card, html body header.nav .mnav .pm-ic, html body header.nav .mnav .pm-trig svg { transition: none; animation: none; }
  html body header.nav .mnav .pm-menu.open .pm-panel { animation: none; }
}

/* ---------- footer ---------- */
html body footer.site {
  margin: 64px 0 0; padding: 0; border: 0; border-top: 1px solid #E4DFF0; background: #F3F0FA; color: #5D5674;
  font: 400 14px/1.5 "DM Sans", system-ui, sans-serif; box-shadow: none;
}
html body footer.site > .wrap { max-width: 1200px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
html body footer.site .ft-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; justify-content: normal; padding-block: 48px 32px; }
html body footer.site .ft-brand { display: flex; flex-direction: column; gap: 12px; max-width: 34ch; }
html body footer.site .ft-brand .logo { font-size: 20px; }
html body footer.site .ft-brand .logo i { width: 28px; height: 28px; border-radius: 9px; }
html body footer.site .ft-brand p { margin: 0; font: 400 14px/1.5 "DM Sans", system-ui, sans-serif; color: #5D5674; }
html body footer.site .ft-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; margin: 0; }
html body footer.site .ft-col h3 { margin: 0; font: 700 12px/1.2 "DM Sans", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #1B1530; }
html body footer.site .ft-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
html body footer.site .ft-col li { margin: 0; padding: 0; }
html body footer.site .ft-col a, html body footer.site .ft-bottom a { color: #5D5674; font: 500 14px/1.5 "DM Sans", system-ui, sans-serif; text-decoration: none; }
html body footer.site .ft-col a:hover, html body footer.site .ft-bottom a:hover { color: #1B1530; text-decoration: underline; }
html body footer.site .ft-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 20px;
  padding-block: 18px 32px; border-top: 1px solid #E4DFF0; font: 400 13px/1.55 "DM Sans", system-ui, sans-serif;
}
html body footer.site .ft-bottom span { max-width: 80ch; }
html body footer.site .ft-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ---------- smaller screens ---------- */
@media (max-width: 820px) {
  html body footer.site .ft-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body footer.site .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  html body header.nav > .wrap, html body footer.site > .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  html body header.nav .mnav a[href="index.html#pricing"] { display: none; }
}
@media (max-width: 460px) {
  html body header.nav .mnav { gap: 14px; font-size: 14px; }
  html body header.nav .mnav .nn { font-size: 16px; }
  html body header.nav .mnav .cta { padding: 9px 14px; font-size: 14px; }
  html body header.nav .logo .lw { display: none; }
}
@media (max-width: 420px) { html body footer.site .ft-top { grid-template-columns: 1fr; } }

/* AI and Privacy Veil notice in the footer */
footer.site .ft-disc{padding-block:14px 18px}
footer.site .ft-disc p{margin:0;font-size:12.5px;line-height:1.6;color:var(--muted,#5D5674);max-width:110ch}
footer.site .ft-disc b{color:inherit;font-weight:700}
footer.site .ft-disc a{color:inherit;text-decoration:underline}
