/* The Mascotte.AI marketing site.
 *
 *  Rebuilt from the Manus pages as plain CSS. The original was React 19 +
 *  Tailwind v4 + shadcn + framer-motion; none of that is here, because this
 *  repo serves static files with no bundler and because the point of moving off
 *  Manus was to be able to EDIT THE COPY -- which you can do in the HTML next to
 *  this file, with no build, no install and no framework.
 *
 *  The palette is the original's: white ground, near-black text, blue-600 for
 *  everything that acts. Kept deliberately, so the site people already know does
 *  not change character the day it moves house.
 */

:root {
  --ink:      #111827;   /* gray-900  */
  --ink-2:    #374151;   /* gray-700  */
  --dim:      #6b7280;   /* gray-500  */
  --line:     #e5e7eb;   /* gray-200  */
  --wash:     #f9fafb;   /* gray-50   */
  --blue:     #2563eb;   /* blue-600  */
  --blue-700: #1d4ed8;
  --blue-50:  #eff6ff;
  --radius:   16px;
  --nav-h:    72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* The app is dark and this site is light. Saying so stops a browser in dark
     mode from inverting form controls into something that does not match. */
  color-scheme: light;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin: 0;
}
h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 700; line-height: 1.25; }
p  { margin: 0 0 18px; }
a  { color: inherit; }

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

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow    { max-width: 820px; }
.lede      { font-size: clamp(17px, 2vw, 20px); color: var(--dim); }
.center    { text-align: center; }
.eyebrow   { font-size: 12px; font-weight: 700; letter-spacing: .12em;
             text-transform: uppercase; color: var(--dim); margin: 0 0 14px; }
.section   { padding: 84px 0; }
.section.wash { background: var(--wash); }
.blue      { color: var(--blue); }

/* ---------------------------------------------------------------- nav ---- */
/* Fixed and transparent over the hero, solid once you scroll past it -- the
   behaviour the original had, minus the scroll listener: the page tells the bar
   which mode it is in with a class, and only the home page starts transparent. */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h); display: flex; align-items: center;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .25s ease, border-color .25s ease;
}
.nav .container { display: flex; align-items: center; gap: 22px; }
.nav .mark { display: flex; align-items: center; margin-right: auto; }
.nav .mark img { height: 30px; width: auto; display: block; transition: filter .25s ease; }
.nav a.item { text-decoration: none; font-size: 14.5px; font-weight: 500;
              color: var(--ink-2); white-space: nowrap; }
.nav a.item:hover { color: var(--blue); }
.nav a.item.on { color: var(--blue); }

/* Over the video hero: no plate, white text, and the wordmark knocked out to
   white -- the logo is dark artwork and would otherwise be invisible on it. */
.nav.over { background: transparent; backdrop-filter: none; border-color: transparent; }
.nav.over a.item { color: #fff; }
.nav.over a.item:hover { color: #bfdbfe; }
.nav.over .mark img { filter: brightness(0) invert(1); }

.navToggle { display: none; background: none; border: 0; padding: 8px;
             color: inherit; cursor: pointer; }
.navToggle svg { width: 24px; height: 24px; display: block; }
.nav.over .navToggle { color: #fff; }

@media (max-width: 940px) {
  .nav .links { position: absolute; top: var(--nav-h); left: 0; right: 0;
                display: none; flex-direction: column; gap: 0;
                background: #fff; border-bottom: 1px solid var(--line);
                padding: 8px 24px 16px; }
  .nav .links.open { display: flex; }
  .nav .links a.item { color: var(--ink-2); padding: 11px 0; font-size: 16px; }
  .navToggle { display: block; }
}
@media (min-width: 941px) {
  .nav .links { display: flex; align-items: center; gap: 22px; }
}

/* Every page except the home hero starts below the bar. */
.pagetop { padding-top: calc(var(--nav-h) + 64px); }

/* ------------------------------------------------------------- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  padding: 14px 30px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn.primary:hover { background: var(--blue-700); border-color: var(--blue-700); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn.onDark { background: transparent; color: #fff; border-color: rgba(255,255,255,.32); min-width: 200px; }
.btn.onDark:hover { background: var(--blue); border-color: var(--blue); }
.btn[disabled] { opacity: .55; cursor: default; }

/* --------------------------------------------------------------- cards ---- */
.grid { display: grid; gap: 26px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.05);
  transition: box-shadow .3s ease, transform .3s ease, border-color .2s ease;
  text-decoration: none; color: inherit;
}
a.card:hover { box-shadow: 0 18px 44px rgba(16,24,40,.13); border-color: #d5dbe4; }
.card .pic { display: block; width: 100%; height: 224px; object-fit: cover;
             background: var(--wash); }
.card .body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 10px; }
a.card:hover h3 { color: var(--blue); }
.card p { color: var(--dim); font-size: 15px; flex: 1; }
.card .btn { width: 100%; }

.note { border: 1px solid var(--line); border-radius: var(--radius);
        background: var(--wash); padding: 26px 28px; }

/* ---------------------------------------------------------------- feed ---- */
.bullets { margin: 0; padding: 0; list-style: none; }
.bullets li { position: relative; padding-left: 30px; margin-bottom: 13px;
              color: var(--ink-2); }
.bullets li::before {
  content: ""; position: absolute; left: 6px; top: .58em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
}

/* --------------------------------------------------------------- forms ---- */
.field { display: flex; gap: 12px; flex-wrap: wrap; }
.field input, .field textarea, input.inp, textarea.inp, select.inp {
  font: inherit; font-size: 16px; padding: 13px 18px; border-radius: 999px;
  border: 2px solid var(--line); background: #fff; color: var(--ink);
  flex: 1 1 240px; min-width: 0;
}
textarea.inp { border-radius: 16px; resize: vertical; min-height: 130px; }
.field input:focus, .inp:focus { outline: none; border-color: var(--blue); }
.formNote { font-size: 14px; margin-top: 12px; min-height: 20px; }
.formNote.ok  { color: #15803d; }
.formNote.bad { color: #b91c1c; }
label.lbl { display: block; font-size: 14px; font-weight: 600; margin: 0 0 7px; }
.stack { display: grid; gap: 16px; }

/* -------------------------------------------------------------- footer ---- */
.foot { border-top: 1px solid var(--line); padding: 62px 0 40px; margin-top: 20px; }
.foot .cols { display: grid; gap: 40px; grid-template-columns: 1.6fr repeat(4, 1fr);
              margin-bottom: 46px; }
@media (max-width: 860px) { .foot .cols { grid-template-columns: 1fr 1fr; } }
.foot img.mark { height: 26px; width: auto; display: block; margin-bottom: 16px; }
.foot .blurb { color: var(--dim); font-size: 14px; }
.foot h4 { font-size: 12px; font-weight: 700; letter-spacing: .1em;
           text-transform: uppercase; margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot ul a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.foot ul a:hover { color: var(--blue); }
.foot .base { border-top: 1px solid var(--line); padding-top: 28px;
              text-align: center; font-size: 14px; color: var(--dim); }
.foot .base a { color: var(--blue); text-decoration: none; font-weight: 500; }

/* ------------------------------------------------- the relaunch notice ---- */
/* "We have a brand new website" (Leonardo). It is also how you tell at a glance
   which of the two sites you are looking at while mascotte.ai still points at
   the old host -- the new one says so, the old one cannot.
   TO REMOVE IT LATER: delete this block, the #relaunch markup that site.js
   injects, and the newSite() call at the bottom of site.js. Nothing else
   depends on it. */
#relaunch { position: fixed; inset: 0; z-index: 200; display: flex;
            align-items: center; justify-content: center; padding: 24px;
            background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px);
            opacity: 0; animation: relaunchIn .35s ease forwards .45s; }
#relaunch .box { background: #fff; border-radius: 20px; max-width: 430px;
                 padding: 34px 32px 28px; text-align: center;
                 box-shadow: 0 30px 70px rgba(2, 6, 23, .35);
                 transform: translateY(10px);
                 animation: relaunchUp .35s ease forwards .45s; }
#relaunch img { height: 32px; width: auto; margin: 0 0 18px; }
#relaunch h3 { font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
               font-size: 24px; letter-spacing: -.5px; margin: 0 0 10px; }
#relaunch p { color: var(--dim); font-size: 14.5px; margin: 0 0 22px; }
#relaunch .acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
#relaunch .later { background: none; border: 0; font: inherit; font-size: 13.5px;
                   color: var(--dim); cursor: pointer; padding: 12px 8px; }
#relaunch .later:hover { color: var(--ink); text-decoration: underline; }
@keyframes relaunchIn { to { opacity: 1; } }
@keyframes relaunchUp { to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  #relaunch, #relaunch .box { animation-duration: .01ms; animation-delay: 0s; }
}

/* ------------------------------------------------------------ reveal ------ */
/* What framer-motion was doing on every section: fade up once, on entry.
   An IntersectionObserver in site.js adds .in.
   WITHOUT JAVASCRIPT THIS MUST NOT HIDE ANYTHING, and an earlier version did:
   .rise was opacity:0 and only script ever cleared it, so with JS off every
   revealed section was invisible -- on a page whose job is to be read. Each
   page carries a <noscript> override next to its stylesheet link, so the
   no-script case ends up with everything simply visible. */
.rise { opacity: 0; transform: translateY(18px);
        transition: opacity .6s ease, transform .6s ease; }
.rise.in { opacity: 1; transform: none; }
/* Belt and braces for browsers that support it: the media query answers the
   same question without needing the markup to remember. */
@media (scripting: none) {
  .rise { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
