/* ToledoLabs — brand surface (studio-first) */
:root {
  --bg: #0b0d10;
  --bg-elevated: #12161c;
  --bg-soft: #171c24;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef1f6;
  --text-muted: #9aa3b2;
  --text-faint: #6b7382;
  --accent: #5eead4;
  --accent-dim: rgba(94, 234, 212, 0.14);
  --accent-strong: #2dd4bf;
  --warm: #f0b27a;
  --warm-dim: rgba(240, 178, 122, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1080px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(94, 234, 212, 0.09), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(240, 178, 122, 0.07), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(11, 13, 16, 0.72);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background:
    linear-gradient(145deg, var(--accent) 0%, #0f766e 55%, #0b0d10 100%);
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.25), 0 8px 24px rgba(45, 212, 191, 0.18);
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1.5px solid rgba(11, 13, 16, 0.55);
  border-radius: 4px;
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-faint);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--accent-dim);
  color: var(--accent);
}

/* Hero (studio) */
.hero {
  padding: 5.5rem 0 4rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  margin: 0 0 1.25rem;
}

.hero h1 {
  margin: 0 0 1.1rem;
  max-width: 16ch;
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 650;
}

.hero .lead {
  margin: 0 0 2rem;
  max-width: 38rem;
  font-size: 1.15rem;
  color: var(--text-muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary {
  background: linear-gradient(180deg, #5eead4, #2dd4bf);
  color: #042f2e;
  box-shadow: 0 10px 30px rgba(45, 212, 191, 0.22);
}

.btn-primary:hover {
  color: #042f2e;
}

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

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

/* Sections */
section {
  padding: 3.25rem 0;
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  max-width: 40rem;
  color: var(--text-muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 70%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

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

.card .icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ——— Product showcase (Pogo Blocks only) ——— */
.product-showcase {
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border);
  background:
    radial-gradient(700px 320px at 80% 0%, rgba(251, 191, 36, 0.08), transparent 55%),
    radial-gradient(500px 280px at 10% 100%, rgba(34, 197, 94, 0.06), transparent 50%),
    var(--bg-elevated);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-top {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  align-items: stretch;
}

@media (max-width: 900px) {
  .product-top {
    grid-template-columns: 1fr;
  }
}

.product-art {
  position: relative;
  background: #0a1a14;
  min-height: 320px;
}

.product-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  min-height: 360px;
  max-height: 520px;
}

@media (max-width: 900px) {
  .product-art img {
    max-height: 420px;
  }
}

.product-copy {
  padding: 1.75rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.9rem;
}

.product-badges > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--warm);
  background: var(--warm-dim);
  border: 1px solid rgba(240, 178, 122, 0.25);
  border-radius: 999px;
  padding: 0.32rem 0.7rem 0.32rem 0.55rem;
}

.product-badges .badge-soft {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(94, 234, 212, 0.22);
  padding-inline: 0.65rem;
}

/* Brand marks (Simple Icons SVGs) tinted via mask + currentColor */
.brand-logo {
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.brand-logo--apple {
  -webkit-mask-image: url("/assets/brands/apple.svg");
  mask-image: url("/assets/brands/apple.svg");
}

.brand-logo--android {
  -webkit-mask-image: url("/assets/brands/android.svg");
  mask-image: url("/assets/brands/android.svg");
  /* Android green on warm badge */
  background-color: #3ddc84;
}

.product-copy h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.55rem, 2.5vw, 1.9rem);
  letter-spacing: -0.03em;
}

.product-copy > p {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

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

.product-meta li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.product-meta li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  flex: 0 0 auto;
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.product-icon-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.product-icon-row img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.product-icon-row small {
  display: block;
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* Feature strip inside product */
.product-features {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

@media (max-width: 960px) {
  .product-features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .product-features {
    grid-template-columns: 1fr;
  }
}

.product-feature {
  padding: 1.15rem 1.1rem 1.25rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
}

.product-features .product-feature:last-child {
  border-right: 0;
}

@media (max-width: 960px) {
  .product-feature:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 520px) {
  .product-feature {
    border-right: 0;
  }
}

.product-feature .thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: #0a1a14;
  margin-bottom: 0.75rem;
}

.product-feature .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-feature .thumb.thumb-contain {
  background: radial-gradient(circle at 50% 40%, #1a3d2e, #050a08 80%);
  display: grid;
  place-items: center;
  padding: 0.5rem;
}

.product-feature .thumb.thumb-contain img {
  object-fit: contain;
  max-height: 100%;
}

.product-feature .thumb.thumb-icon {
  display: grid;
  place-items: center;
  padding: 0.85rem;
  background: #0a1a14;
}

.product-feature .thumb.thumb-icon img {
  width: 56%;
  max-width: 88px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22%;
  height: auto;
}

.product-feature h4 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.product-feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

/* Contact */
.contact-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

@media (max-width: 860px) {
  .contact-box {
    grid-template-columns: 1fr;
  }
}

.contact-box .card code,
.legal-body code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--warm);
  background: rgba(240, 178, 122, 0.08);
  border: 1px solid rgba(240, 178, 122, 0.15);
  border-radius: 6px;
  padding: 0.1rem 0.35rem;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  color: var(--text-faint);
  font-size: 0.9rem;
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

/* Legal / privacy pages */
.legal-hero {
  padding: 3.5rem 0 1.5rem;
}

.legal-hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.035em;
}

.legal-hero .sub {
  margin: 0;
  color: var(--text-muted);
  max-width: 42rem;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1.25rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

.legal-body {
  padding-bottom: 4rem;
}

.legal-body article {
  max-width: 46rem;
}

.legal-body h2 {
  margin: 2.25rem 0 0.7rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.legal-body p,
.legal-body li {
  color: var(--text-muted);
}

.legal-body ul {
  padding-left: 1.2rem;
}

.legal-body li + li {
  margin-top: 0.35rem;
}

.notice {
  border: 1px solid rgba(94, 234, 212, 0.22);
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  color: var(--text);
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
}

.hidden {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
