/* ESP-Mosaico workshop landing. Hand-written CSS, no build step, no JavaScript. */
:root {
  --bg: #fbfaf7;
  --bg-alt: #f2efe8;
  --ink: #12152a;
  --muted: #5b6075;
  --line: #e2ddd2;
  --dark: #0f1220;
  --accent: #ff7a45;
  --accent-ink: #ffffff;
  --violet: #7c5cf0;
  --radius: 18px;
  --wrap: 1120px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id], main[id] { scroll-margin-top: 72px; }
body { margin: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: .9rem; margin-top: .8rem; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 250, 247, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 26px; height: 26px; padding: 4px; background: var(--dark); border-radius: 8px; }
.brand-mark i { border-radius: 2px; }
.brand-mark i:nth-child(1) { background: #ff7a45; }
.brand-mark i:nth-child(2) { background: #67e8f9; }
.brand-mark i:nth-child(3) { background: #a78bfa; }
.brand-mark i:nth-child(4) { background: #fde047; }
.topnav { display: flex; align-items: center; gap: 22px; font-size: .95rem; }
.topnav a:not(.btn) { text-decoration: none; color: var(--muted); }
.topnav a:not(.btn):hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  background: var(--accent); color: var(--accent-ink);
  border: 2px solid var(--accent); border-radius: 999px;
  font-weight: 650; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -10px rgba(255, 122, 69, .8); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { box-shadow: none; border-color: var(--ink); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn-big { min-height: 56px; padding: 0 30px; font-size: 1.05rem; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--violet); }
.hl { background: linear-gradient(90deg, var(--accent), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: #2c3048; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 26px 0; }
.facts div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 700; font-size: 1.05rem; }
.facts small { display: block; font-weight: 500; font-size: .78rem; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.device { margin: 0; text-align: center; }
.device img { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.device figcaption, .kit-photo figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; }
.credit { display: block; font-size: .78rem; opacity: .85; margin-top: 2px; }
.kit-photo { margin: 28px 0 0; }
.kit-photo img { display: block; width: 100%; max-width: 400px; height: auto; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Sections */
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section-alt { background: var(--bg-alt); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { color: var(--muted); margin: 0; }
.card-wide { grid-column: 1 / -1; background: var(--dark); color: #fff; border-color: var(--dark); }
.card-wide p { color: #c3c7da; }
.card-icon { font-size: 1.6rem; display: block; margin-bottom: 8px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 6px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.agenda { list-style: none; padding: 0; margin: 24px 0 0; border-left: 2px solid var(--line); }
.agenda li { display: grid; grid-template-columns: 70px 1fr; gap: 14px; padding: 12px 0 12px 22px; position: relative; }
.agenda li::before { content: ""; position: absolute; left: -7px; top: 19px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.agenda li.pause::before { background: var(--line); }
.agenda li.pause span { color: var(--muted); font-style: italic; }
.agenda time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--violet); }

details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; font-weight: 650; padding: 14px 32px 14px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; color: var(--muted); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); }

.cta-final { background: var(--dark); color: #fff; }
.cta-final .lead { color: #c3c7da; }

.footer { padding: 28px 0 40px; font-size: .85rem; color: var(--muted); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .device img { max-width: 300px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .topnav a:not(.btn) { display: none; }
  .cards { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .agenda li { grid-template-columns: 56px 1fr; }
}
