/* ==========================================================================
   GumGum Labs — shared stylesheet
   Mobile-first · no external dependencies · light/dark via prefers-color-scheme
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  color-scheme: light;

  --bg: #faf9fb;
  --surface: #ffffff;
  --surface-subtle: #f3f1f7;
  --border: #e6e1ee;
  --border-strong: #d4cdE0;

  --text: #211d29;
  --text-muted: #615b70;
  --text-faint: #8b8598;

  --accent: #d6246e;
  --accent-strong: #b71d5c;
  --accent-soft: rgba(214, 36, 110, 0.09);
  --accent-ring: rgba(214, 36, 110, 0.35);

  --violet: #7c3aed;

  --btn-primary-bg: #d6246e;
  --btn-primary-fg: #ffffff;

  --shadow-sm: 0 1px 2px rgba(33, 29, 41, 0.06);
  --shadow-md: 0 4px 16px rgba(33, 29, 41, 0.08);
  --shadow-lg: 0 12px 32px rgba(33, 29, 41, 0.10);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --header-h: 64px;
  --wrap: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --bg: #14111a;
    --surface: #1c1824;
    --surface-subtle: #252031;
    --border: #2f293d;
    --border-strong: #413952;

    --text: #efeaf4;
    --text-muted: #a79fb6;
    --text-faint: #7d7590;

    --accent: #ff5c93;
    --accent-strong: #ff7ba8;
    --accent-soft: rgba(255, 92, 147, 0.12);
    --accent-ring: rgba(255, 92, 147, 0.40);

    --violet: #a78bfa;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--surface);
  color: var(--text);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  box-shadow: var(--shadow-md);
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
}

.section-lede {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--btn-primary-bg);
  filter: brightness(1.08);
  color: var(--btn-primary-fg);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-list a:hover {
  color: var(--accent);
  text-decoration: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.lang-switch a {
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lang-switch a[aria-current="true"],
.lang-switch a.active {
  background: var(--accent);
  color: #fff;
}

.lang-switch a:hover {
  color: var(--accent);
  text-decoration: none;
}

.lang-switch a[aria-current="true"]:hover,
.lang-switch a.active:hover {
  color: #fff;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close { display: none; }

.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 99;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: none;
    padding: 1rem 1.25rem 1.5rem;
  }

  .site-nav.open { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list li { border-bottom: 1px solid var(--border); }
  .nav-list li:last-child { border-bottom: 0; }

  .nav-list a {
    display: block;
    padding: 0.9rem 0.25rem;
    font-size: 1.05rem;
  }

  .nav-lang { padding-top: 0.9rem; }
}

@media (min-width: 861px) {
  .nav-lang { margin-left: 0.4rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 10vw, 7rem) clamp(3.5rem, 8vw, 6rem);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 560px;
  height: 560px;
  top: -220px;
  right: -160px;
  background: radial-gradient(circle at center,
      rgba(214, 36, 110, 0.16), transparent 65%);
}

.hero::after {
  width: 480px;
  height: 480px;
  bottom: -260px;
  left: -180px;
  background: radial-gradient(circle at center,
      rgba(124, 58, 237, 0.14), transparent 65%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  max-width: 17ch;
  margin-bottom: 0.4em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lede {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 38rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.18rem;
  margin-bottom: 0.4em;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.97rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}

/* Products */
.product-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.8rem;
}

.product-card .pill { align-self: flex-start; }

.product-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.product-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: #fff;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.product-icon svg {
  width: 26px;
  height: 26px;
}

.product-name {
  font-size: 1.35rem;
  margin: 0;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.feature-list li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-1px);
}

.product-foot {
  margin-top: auto;
  padding-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-faint);
}

/* Services */
.service-card {
  padding: 1.4rem;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1rem;
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

/* About */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

.about-points {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.about-points li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.about-points .pt-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.about-points .pt-icon svg { width: 16px; height: 16px; }

.about-points strong { display: block; }

.about-points span.pt-text { color: var(--text-muted); font-size: 0.96rem; }

.about-panel {
  background: linear-gradient(150deg, var(--accent-soft),
      color-mix(in srgb, var(--violet) 8%, transparent));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}

.about-panel h3 { font-size: 1.05rem; margin-bottom: 1rem; }

.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
  font-size: 0.94rem;
}

.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed var(--border-strong);
}

.fact-list li:last-child { border-bottom: 0; padding-bottom: 0; }

.fact-list .fact-label { color: var(--text-muted); }

.fact-list .fact-value { font-weight: 600; text-align: right; }

/* Contact */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
  }
}

.contact-email-box {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  padding: 0.8rem 1.1rem;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  color: var(--text);
  word-break: break-all;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-top: 0.8rem;
  margin-bottom: 0;
}

.form-grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 620px) {
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
  }
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.97rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2.2rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.94rem;
  max-width: 26rem;
  margin-top: 0.9rem;
}

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--text-faint);
}

.footer-bottom p { margin: 0; }

/* ---------- Legal / prose pages ---------- */
.prose-page main {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.prose {
  max-width: 46rem;
}

.prose h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.5rem);
  margin-bottom: 0.3em;
}

.prose .meta-line {
  color: var(--text-faint);
  font-size: 0.92rem;
  margin-bottom: 2.2rem;
}

.prose h2 {
  font-size: 1.3rem;
  margin-top: 2.4rem;
  margin-bottom: 0.6em;
}

.prose h3 {
  font-size: 1.05rem;
  margin-top: 1.8rem;
}

.prose ul {
  padding-left: 1.3rem;
  color: var(--text);
}

.prose li { margin-bottom: 0.45em; }

.prose strong { font-weight: 650; }

.placeholder {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.12em 0.45em;
  border-radius: 6px;
  word-break: break-all;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 3rem;
  font-weight: 600;
}

/* ---------- Cookie consent banner ---------- */
.consent-banner {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 300;
  max-width: 30rem;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1.3rem 1.4rem;
}

@media (min-width: 640px) {
  .consent-banner { right: auto; left: 1.5rem; margin-inline: 0; }
}

.consent-banner[hidden] { display: none; }

.consent-banner h2 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.consent-banner p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.consent-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.consent-actions .btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }

.cta-band {
  text-align: center;
}

.cta-band p {
  max-width: 34rem;
  margin-inline: auto;
}
