/* =========================================================================
   MindMe! — design system
   Brand: warm-ink + signature yellow + retro-pixel motif (PawRetro).
   Palette seeded from the device render + PawRetro assets:
     yellow #FFE600 · ink #1A1714 · device-body #26211D
     pixel accents: purple #9D17CA · cyan #0897CC · green #6AFF66
   Type: Space Grotesk (display) + IBM Plex Sans (body) + Press Start 2P (pixel accent, sparingly)
   ========================================================================= */

:root {
  /* colour */
  --ink:        #1A1714;
  --ink-2:      #26211D;
  --paper:      #FBFAF6;
  --paper-2:    #F1ECE2;
  --yellow:     #FFE600;
  --yellow-2:   #F5D400;        /* hover/active for yellow surfaces */
  --line:       rgba(26, 23, 20, .12);
  --line-dark:  rgba(255, 255, 255, .14);
  --muted:      #6B645C;
  --muted-on-dark: #B7AfA5;
  /* retro-pixel accent trio — used only in the signature motif */
  --px-purple:  #9D17CA;
  --px-cyan:    #0897CC;
  --px-green:   #6AFF66;

  /* type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-pixel:   "Press Start 2P", monospace;

  /* type scale (fluid) */
  --t-hero:  clamp(2rem, 1rem + 2.4vw, 3.1rem);
  --t-h2:    clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem);
  --t-h3:    clamp(1.25rem, 1.05rem + .8vw, 1.6rem);
  --t-lead:  clamp(1.05rem, .98rem + .45vw, 1.3rem);
  --t-body:  1.0625rem;
  --t-small: .875rem;
  --t-eyebrow: .78rem;

  /* spacing / shape */
  --sp: 8px;
  --container: 1180px;
  --r-card: 16px;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgba(26,23,20,.06), 0 12px 32px -12px rgba(26,23,20,.18);
  --shadow-lift: 0 2px 4px rgba(26,23,20,.08), 0 24px 48px -16px rgba(26,23,20,.28);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }

/* ---------- a11y ---------- */
:focus-visible { outline: 3px solid var(--px-cyan); outline-offset: 3px; border-radius: 3px; }
.skip-link {
  position: absolute; left: 12px; top: -120px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-pill);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--paper-2 { background: var(--paper-2); }
.eyebrow {
  font-family: var(--font-body); font-weight: 600; font-size: var(--t-eyebrow);
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 8px; background: var(--yellow);
  /* tiny pixel tick — the motif, in miniature */
  clip-path: polygon(0 0, 33% 0, 33% 50%, 66% 50%, 66% 0, 100% 0, 100% 100%, 0 100%); }
.section--dark .eyebrow { color: var(--muted-on-dark); }
.section-head { max-width: none; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: var(--t-h2); }
.section-head .lead { font-size: var(--t-lead); color: var(--muted); margin-top: 18px; }
.section--dark .section-head .lead { color: var(--muted-on-dark); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -.01em;
  padding: 15px 26px; border-radius: var(--r-pill); border: 2px solid transparent;
  text-decoration: none; transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.btn--primary { background: var(--yellow); color: var(--ink); box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--yellow-2); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: rgba(0,0,0,.06); transform: translateY(-2px); }
.section--dark .btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn .arrow { transition: transform .18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover, .btn .arrow { transform: none; } }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.nav__brand img { height: 26px; width: auto; }
.nav__links { display: flex; gap: 6px; }
.nav__links a {
  text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink);
  padding: 8px 14px; border-radius: var(--r-pill); transition: background .15s var(--ease);
}
.nav__links a:hover { background: var(--paper-2); }
.nav__links a.is-active { background: var(--ink); color: var(--paper); }

/* language toggle */
.lang {
  display: inline-flex; padding: 4px; gap: 2px; background: var(--paper-2);
  border-radius: var(--r-pill); border: 1px solid var(--line);
}
.lang button {
  border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: .82rem;
  padding: 6px 12px; border-radius: var(--r-pill); letter-spacing: .04em; transition: all .15s var(--ease);
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lang button:hover:not([aria-pressed="true"]) { color: var(--ink); }

.nav__toggle { display: none; border: 0; background: transparent; padding: 8px; }


/* =========================================================================
   HERO — typographic statement
   ========================================================================= */
.hero { background: var(--ink); color: var(--paper); }
.hero__inner { padding-top: clamp(8px, 2vh, 28px); padding-bottom: clamp(48px, 7vh, 88px); }
.hero__grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__copy { max-width: none; }
.hero h1 { font-size: var(--t-hero); color: var(--paper); }
.hero h1 .accent { color: var(--yellow); }
.hero__sub {
  font-size: clamp(1rem, .9rem + .4vw, 1.18rem); color: var(--muted-on-dark);
  margin-top: 22px; max-width: 44ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__media { width: 100%; max-width: 420px; justify-self: end; }

/* =========================================================================
   ABOUT  (+ capabilities strip + real-use media)
   ========================================================================= */
.about__layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about__copy p + p { margin-top: 16px; }
.about__media { position: relative; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.about__media video, .about__media img { width: 100%; display: block; aspect-ratio: 4 / 5; object-fit: cover; }
.about__tag {
  position: absolute; left: 16px; bottom: 14px; background: none; color: #fff;
  font-weight: 500; font-style: italic; font-size: .82rem; letter-spacing: .02em;
  padding: 0; border-radius: 0; text-shadow: 0 1px 6px rgba(0,0,0,.75);
}

/* device render on its own row */
.device-figure { text-align: center; }
.device-figure img { margin-inline: auto; max-width: 900px; width: 100%; }

/* bring the device up closer to the top of the section */
#about { padding-top: clamp(8px, 2vw, 24px); }

/* MindMe logo: under "Get in touch" on desktop, last on mobile */
.contact__logo { display: inline-block; width: 255px; max-width: 80%; height: auto; }

/* capabilities strip on dark */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(28px, 4vw, 52px); }
.cap { text-align: left; }
.cap__icon { height: clamp(80px, 8vw, 104px); width: auto; margin-bottom: 20px; }
.cap h3 { font-size: var(--t-h3); color: var(--paper); margin-bottom: 8px; }
.cap p { color: var(--muted-on-dark); font-size: var(--t-small); }
.caps-figure { text-align: center; }
.caps-figure img { margin-inline: auto; max-width: 720px; width: 100%; }
.caps-figure figcaption { color: var(--muted-on-dark); font-size: var(--t-small); margin-top: 14px; }

/* =========================================================================
   BETA — unmissable yellow CTA band
   ========================================================================= */
.beta { background: var(--yellow); color: var(--ink); position: relative; overflow: hidden; }
.beta__inner { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); flex-wrap: wrap; }
.beta__paw { width: 138px; image-rendering: pixelated; flex: none; }
.beta__text { flex: 1; min-width: 260px; }
.beta__text h2 { font-size: var(--t-h2); }
.beta__text p { margin-top: 10px; max-width: 52ch; }
.beta .btn--primary { background: var(--ink); color: var(--yellow); }
.beta .btn--primary:hover { background: #000; }

/* capacity badge */
.beta__badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  background: var(--ink); color: var(--yellow); font-family: var(--font-body);
  font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 13px; border-radius: var(--r-pill);
}
.beta__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }

/* disabled "apply" button */
.btn:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; transform: none; }
.btn:disabled:hover { transform: none; box-shadow: none; background: var(--ink); }

/* waitlist */
.beta__action { flex: none; display: flex; flex-direction: column; gap: 18px; min-width: 300px; }
.beta__waitlist label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 9px; }
.beta__waitlist-row { display: flex; gap: 8px; flex-wrap: wrap; }
.beta__waitlist input[type="email"] {
  flex: 1; min-width: 190px; font: inherit; font-size: 1rem; padding: 13px 16px;
  border: 2px solid var(--ink); border-radius: var(--r-pill); background: #fff; color: var(--ink);
}
.beta__waitlist input[type="email"]::placeholder { color: var(--muted); }
.beta__waitlist input[type="email"]:focus { outline: none; box-shadow: 0 0 0 3px rgba(26,23,20,.25); }
.beta__waitlist .btn--primary { white-space: nowrap; }
.beta__waitlist .form-status.is-ok { color: #14532d; }

/* =========================================================================
   CONCEPT — video embed
   ========================================================================= */
.concept__video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden;
  background: var(--ink-2); box-shadow: var(--shadow); display: grid; place-items: center;
}
.concept__video iframe,
.concept__video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }
.concept__placeholder { text-align: center; color: var(--muted-on-dark); padding: 32px; max-width: 46ch; }
.concept__placeholder .px { font-family: var(--font-pixel); font-size: .7rem; color: var(--yellow); display: block; margin-bottom: 16px; }

/* =========================================================================
   TEAM
   ========================================================================= */
.team__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 48px); }
.member { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; box-shadow: var(--shadow); }
.member__photo {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin-bottom: 20px;
  background: var(--ink); display: grid; place-items: center;
}
.member__photo--ph { /* placeholder avatar until real photo arrives */
  color: var(--yellow); font-family: var(--font-display); font-weight: 600; font-size: 1.7rem;
  border: 2px dashed var(--line); background: var(--paper-2); position: relative;
}
.member h3 { font-size: var(--t-h3); }
.member__role { color: var(--muted); font-size: var(--t-small); font-weight: 600; margin-top: 4px; }
.member__bio { margin-top: 14px; color: var(--ink); }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact__layout { display: grid; grid-template-columns: .9fr 1.1fr; column-gap: clamp(32px, 5vw, 72px); row-gap: 28px; align-items: start; }
.contact__layout .contact__aside { grid-column: 1; grid-row: 1; }
.contact__layout #contact-form { grid-column: 2; grid-row: 1 / span 2; }
.contact__layout .contact__logo-wrap { grid-column: 1; grid-row: 2; text-align: center; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: var(--t-small); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; padding: 13px 15px; border: 1.5px solid var(--line);
  border-radius: 12px; background: var(--paper); color: var(--ink); transition: border-color .15s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 128px; }
.hp { position: absolute; left: -9999px; } /* honeypot */
.privacy-note { font-size: var(--t-small); color: var(--muted); margin-top: 6px; }
.form-status { margin-top: 14px; font-weight: 600; font-size: var(--t-small); min-height: 1.2em; }
.form-status.is-ok { color: #1B7A3D; }
.form-status.is-err { color: #B3261E; }
.contact__aside p { color: var(--muted); }
.contact__aside .mail { font-family: var(--font-display); font-weight: 600; font-size: var(--t-h3); color: var(--ink); text-decoration: none; word-break: break-all; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { background: var(--ink); color: var(--muted-on-dark); padding-block: 40px; font-size: var(--t-small); }
.footer__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.footer__totop { color: var(--muted-on-dark); text-decoration: none; font-weight: 600; }
.footer__totop::after { content: " ↑"; }
.footer__totop:hover { color: var(--yellow); }
.footer__top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer__brand { display: inline-flex; align-items: center; color: var(--paper); font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.footer__gh { color: var(--muted-on-dark); display: inline-flex; transition: color .15s var(--ease); }
.footer__gh:hover { color: var(--yellow); }
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal a { color: var(--muted-on-dark); text-decoration: none; }
.footer__legal a:hover { color: var(--yellow); }
.footer__meta { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.placeholder-flag { color: var(--yellow); font-weight: 600; }

/* =========================================================================
   REVEAL animation (respects reduced-motion)
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 860px) {
  .nav__inner { gap: 12px; }
  .lang button { padding: 6px 9px; }
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px clamp(20px,5vw,48px) 20px; gap: 4px;
  }
  .nav__toggle { display: inline-flex; }
  .hero__grid, .about__layout, .contact__layout { grid-template-columns: 1fr; }
  .hero__media { justify-self: stretch; margin-inline: auto; }
  /* contact: stack aside, form, then logo last */
  .contact__layout .contact__aside,
  .contact__layout #contact-form,
  .contact__layout .contact__logo-wrap { grid-column: 1; grid-row: auto; }
  .caps { grid-template-columns: 1fr; gap: 32px; }
  .team__grid { grid-template-columns: 1fr; }
  /* beta: stack so nothing is cut off on the right */
  .beta__inner { flex-direction: column; align-items: stretch; gap: 22px; }
  .beta__paw { width: 96px; align-self: flex-start; }
  .beta__text { min-width: 0; }
  .beta__text p { max-width: none; }
  .beta__action { min-width: 0; width: 100%; }
  .beta__waitlist-row { width: 100%; flex-direction: column; align-items: stretch; }
  .beta__waitlist input[type="email"] { min-width: 0; }
  /* device render bigger on mobile (~50%); outer edge labels clip a little */
  .device-figure { overflow: visible; }
  .device-figure img { width: 150%; max-width: 150%; margin-left: -25%; }
}
