/* ============================================================
   ExtraQube house theme — the shared starting point for every surface
   ============================================================
   Extracted 2026-07-21. Be precise about where each part came from:
     · extraqube.com (eq-web/src/app/globals.css + page.css) → the brand ramp, the glow button
       incl. both keyframes, the footer wording, the dark-theme values
     · store.extraqube.app (store/css/styles.css) → EVERYTHING ELSE: surfaces, ambient wash,
       nav, hero, card, buttons, radius, easing. `.eq-nav` `.eq-hero` `.eq-card` `.eq-btn` are
       store's components, generalised — they are not lifted from extraqube.com, which is a
       React/Tailwind site with its own section components.
   So: this file is store's structure carrying extraqube.com's brand values. That is the
   agreed house look, but do not claim a class here matches an extraqube.com section 1:1.

   How to use
     vanilla static:  <link rel="stylesheet" href="css/eq-theme.css"> BEFORE your own sheet
     Tailwind v4:     @import "./eq-theme.css";  then reference var(--eq-*) in @theme
     Then style with the tokens. Do not re-invent a palette per site.

   Rules of the road
     · Add product-specific rules in your own stylesheet; do not edit this file per repo.
       A change here is a change to every ExtraQube site and belongs in the canonical copy
       (homelab repo ci/eq-design/eq-theme.css), synced outward.
     · House type (owner 2026-10-08; it was Prompt for everything from 2026-07-21):
         --eq-font-display  Prompt          headings and titles, 500-700
         --eq-font          Anuphan         everything else: body, labels, buttons, numbers
         --eq-font-mono     IBM Plex Mono   identifiers only (URLs, hosts, code); never Thai
       Each stack falls back to the next house face, so a site that has not loaded Anuphan
       yet still renders Prompt. Rules and the comparison: docs/ops/design-system.md §3.
       design-lint-disable the rule's own banned list is named in the doc above, not used
     · Load the three yourself: next/font/google, or
       https://fonts.googleapis.com/css2?family=Anuphan:wght@300..700&family=IBM+Plex+Mono:wght@400;500&family=Prompt:wght@500;600;700&display=swap
   ============================================================ */

:root {
  /* ---- brand: the pink family ---- */
  --eq-pink:        #ee3a68;  /* primary. accents, links, active state */
  --eq-pink-mid:    #ff8e86;  /* the second stop in every brand gradient */
  --eq-pink-soft:   #ffbdaf;
  --eq-pink-deep:   #c0234f;  /* pressed / high-contrast-on-light */
  --eq-coral:       #ff006a;  /* hover on the glow button */

  /* ---- brand ramp (extraqube.com --gradient-*) ---- */
  --eq-ramp-100: #4d0009;
  --eq-ramp-80:  #80000c;     /* also the wordmark SVG colour */
  --eq-ramp-60:  #c83f4f;
  --eq-ramp-40:  #f06876;
  --eq-ramp-20:  #ffe7e3;     /* hairline borders, top-of-hero fade */

  /* ---- surfaces: light pink canvas ---- */
  --eq-bg:        #fff6f8;
  --eq-bg-2:      #fff0f3;
  --eq-surface:   #ffffff;
  --eq-surface-2: #fdeef2;
  --eq-border:    rgba(238, 58, 104, 0.10);
  --eq-border-2:  #fbe1e7;

  /* ---- text ---- */
  --eq-text:      #1c1418;
  --eq-text-soft: #7a5560;
  --eq-muted:     #b08090;
  --eq-on-accent: #ffffff;

  /* ---- shape + motion ---- */
  --eq-radius:      20px;
  --eq-radius-sm:   14px;
  --eq-radius-pill: 999px;
  --eq-ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --eq-gut:         clamp(20px, 5vw, 60px);

  /* ---- type ---- */
  --eq-font-display: "Prompt", "Anuphan", system-ui, -apple-system, "Segoe UI", sans-serif;
  --eq-font: "Anuphan", "Prompt", system-ui, -apple-system, "Segoe UI", sans-serif;
  --eq-font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* Optional dark theme, matching extraqube.com's [data-theme="dark"]. Only opt in if the
   surface actually has a theme toggle — the house default is the light pink canvas. */
[data-theme="dark"] {
  --eq-bg:        #0c0c10;
  --eq-bg-2:      #14141c;
  --eq-surface:   #14141c;
  --eq-surface-2: #1a1a22;
  --eq-border:    rgba(238, 58, 104, 0.18);
  --eq-border-2:  #2a2029;
  --eq-text:      #e8e8ec;
  --eq-text-soft: #b4aab0;
  --eq-muted:     #8a7f87;
}

/* ================================================================
   Base
   ================================================================ */
.eq-base {
  background: var(--eq-bg);
  color: var(--eq-text);
  font-family: var(--eq-font);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Headings are the display face; everything else inherits the text face from .eq-base. */
.eq-base :is(h1, h2, h3) { font-family: var(--eq-font-display); }

/* The ambient wash behind everything. Put it on the element that carries .eq-base. */
.eq-ambient::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 60% at 0% 0%, #ffe3e9 0%, transparent 55%),
    radial-gradient(100% 50% at 100% 20%, #ffe9ec 0%, transparent 50%),
    var(--eq-bg);
}

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--eq-bg-2); }
::-webkit-scrollbar-thumb { background: #ffb3c1; border-radius: var(--eq-radius-pill); }

/* Every interactive element needs a visible focus ring. Do not remove this. */
:focus-visible {
  outline: 2px solid var(--eq-pink);
  outline-offset: 2px;
}

/* ================================================================
   Nav — sticky, translucent, hairline rule
   ================================================================ */
.eq-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 62px;
  padding: 0 var(--eq-gut);
  background: rgba(255, 246, 248, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--eq-border);
}

.eq-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.eq-brand__mascot { width: 32px; height: 32px; object-fit: contain; flex: none; }
.eq-brand__logo { height: 17px; width: auto; flex: none; display: block; }

/* Status pill with a live dot: Beta, Preview, Internal. */
.eq-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--eq-radius-pill);
  background: var(--eq-surface-2);
  border: 1px solid var(--eq-border-2);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--eq-pink);
}
.eq-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--eq-pink);
  box-shadow: 0 0 6px var(--eq-pink);
}

/* ================================================================
   Hero
   ================================================================ */
.eq-hero { max-width: 900px; margin: 0 auto; padding: clamp(56px, 10vw, 96px) var(--eq-gut) clamp(40px, 7vw, 64px); text-align: center; }

.eq-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eq-pink);
}

.eq-title { font-family: var(--eq-font-display); font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }

/* House signature. Apply to the emphasised span inside the headline, not the whole line. */
.eq-gradient-text {
  background: linear-gradient(110deg, var(--eq-pink), var(--eq-pink-mid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eq-lede { font-size: clamp(1rem, 2.2vw, 1.2rem); font-weight: 300; color: var(--eq-text-soft); line-height: 1.7; max-width: 560px; margin-inline: auto; }

/* ================================================================
   Card
   ================================================================ */
.eq-card {
  background: var(--eq-surface);
  border: 1px solid var(--eq-border);
  border-radius: var(--eq-radius);
  overflow: hidden;
  box-shadow: 0 2px 0 rgba(238, 58, 104, 0.04), 0 18px 48px -24px rgba(238, 58, 104, 0.18);
  transition: transform 0.22s var(--eq-ease), box-shadow 0.22s var(--eq-ease), border-color 0.18s;
}
.eq-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 0 rgba(238, 58, 104, 0.06), 0 28px 56px -20px rgba(238, 58, 104, 0.28);
  border-color: rgba(238, 58, 104, 0.22);
}

/* ================================================================
   Buttons
   ================================================================ */
.eq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 16px;
  border-radius: var(--eq-radius-sm);
  background: linear-gradient(120deg, var(--eq-pink), var(--eq-pink-mid));
  color: var(--eq-on-accent);
  text-decoration: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 26px -12px var(--eq-pink);
  transition: filter 0.15s var(--eq-ease), transform 0.15s var(--eq-ease), box-shadow 0.15s;
}
.eq-btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 14px 32px -12px var(--eq-pink); }
.eq-btn:active { transform: translateY(0); }

.eq-btn--quiet {
  background: var(--eq-bg);
  color: var(--eq-text);
  border: 1.5px solid var(--eq-border-2);
  box-shadow: none;
}
.eq-btn--quiet:hover { filter: none; border-color: var(--eq-pink); }

/* The extraqube.com nav CTA, ported 1:1 from eq-web page.css including both keyframes:
   on hover the fill pulses pink↔coral while an outline ripples outward. */
.eq-glow-button {
  --eq-glow-outline: rgba(238, 58, 104, 0.25);
  --eq-glow-shadow: rgba(0, 0, 0, 0.35);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3em 0.4em 0.3em 0.9em;
  border-radius: var(--eq-radius-pill);
  background: var(--eq-pink);
  border: 1px solid var(--eq-pink);
  color: var(--eq-on-accent);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.62rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0.25em 0 var(--eq-pink);
  transition: 0.5s;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .eq-glow-button { font-size: 0.8rem; }
}

.eq-glow-button span {
  margin-right: 0.35em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: 0.5s;
}

.eq-glow-button:hover {
  background: var(--eq-coral);
  outline: 0.08em solid transparent;
  outline-offset: 0.2em;
  box-shadow: 0 0 1em 0 var(--eq-pink);
  animation: eq-ripple 1s linear infinite, eq-colorize 1s infinite;
}
.eq-glow-button:hover span { text-shadow: 3px 3px 5px var(--eq-glow-shadow); }
.eq-glow-button:active { transform: scale(0.96); }
.eq-glow-button:active span { text-shadow: none; }

@keyframes eq-colorize {
  0%   { background: var(--eq-pink); }
  50%  { background: var(--eq-coral); }
  100% { background: var(--eq-pink); }
}

@keyframes eq-ripple {
  0%   { outline: 0em solid transparent; outline-offset: -0.1em; }
  50%  { outline: 0.2em solid var(--eq-glow-outline); outline-offset: 0.2em; }
  100% { outline: 0.4em solid transparent; outline-offset: 0.4em; }
}

/* ================================================================
   Footer — identical wording on every ExtraQube surface
   ================================================================ */
.eq-footer {
  border-top: 1px solid var(--eq-border-2);
  background: var(--eq-surface);
  padding: clamp(28px, 4vw, 36px) var(--eq-gut);
  text-align: center;
  color: var(--eq-muted);
  font-family: var(--eq-font-mono);
  font-size: clamp(10px, 1.4vw, 12px);
  letter-spacing: 0.04em;
}
.eq-footer__accent { color: var(--eq-pink); }

/* ================================================================
   Quality floor — applies to every surface, no exceptions
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Lift-on-hover reads as a stuck state on touch. */
@media (hover: none) {
  .eq-card:hover { transform: none; }
  .eq-btn:hover { transform: none; }
}
