/* Marked Labs — shared stylesheet for all pages */

:root {
  --bg:        #E3C9E1;
  --surface:   #F6EDF5;
  --white:     #FFFFFF;
  --line:      rgba(93, 29, 135, 0.16);
  --dark:      #5D1D87;
  --magenta:   #97338F;
  --pink:      #DB4F87;
  --salmon:    #ED8B97;
  --ink:       #3E1159;
  --text:      #4A1568;
  --muted:     #664678;
  --radius:    18px;
  --max:       1080px;
  --gutter:    24px;
  --gradient:  linear-gradient(90deg, var(--dark), var(--magenta), var(--pink), var(--salmon));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--dark); text-underline-offset: 3px; }
a:hover { color: var(--magenta); }

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

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 750; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  padding: 8px 14px;
  background: var(--dark);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
  z-index: 10;
}
.skip:focus { top: 12px; color: var(--white); }

/* Header */

.site-header { padding: 22px 0; }

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 38px; height: auto; flex: none; }

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  list-style: none;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--magenta); text-decoration: underline; }

/* Hero */

.hero { padding: 56px 0 72px; }

.hero .container {
  display: grid;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--text);
  max-width: 38em;
  margin-top: 22px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--dark);
}
.button-primary { background: var(--dark); color: var(--white); }
.button-primary:hover { background: var(--magenta); border-color: var(--magenta); color: var(--white); }
.button-secondary { background: transparent; color: var(--dark); }
.button-secondary:hover { background: var(--surface); color: var(--dark); }

.hero-mark { display: none; }
.hero-mark svg { width: 100%; height: auto; }

@media (min-width: 860px) {
  .hero { padding: 72px 0 96px; }
  .hero .container { grid-template-columns: 1fr 280px; gap: 64px; }
  .hero-mark { display: block; }
}

/* Sections */

.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head p { margin-top: 12px; color: var(--muted); }

/* Products */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.product {
  --accent: var(--dark);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.product::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--accent);
}
.product-flowcue    { --accent: var(--dark); }
.product-blepper    { --accent: var(--magenta); }
.product-dendert    { --accent: var(--pink); }
.product-streampush { --accent: var(--salmon); }
.product-applease   { --accent: #B7418B; }
.product-papayo     { --accent: var(--muted); }

.product-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.product-meta { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.product p { color: var(--text); }
.product .product-link { margin-top: auto; padding-top: 6px; font-weight: 700; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.status-dev::before  { background: var(--pink); }
.status-beta::before { background: var(--salmon); }
.status-live::before { background: #2E8B57; }
.status-past::before { background: var(--muted); }

/* Services */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.service h3 { margin-bottom: 8px; }

.note { margin-top: 28px; color: var(--muted); }

/* About */

.about {
  display: grid;
  gap: 40px;
}
.about-text h2 { margin-bottom: 16px; }
.about-text p + p { margin-top: 16px; }

@media (min-width: 860px) {
  .about { grid-template-columns: 1.3fr 1fr; gap: 56px; }
}

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 20px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  align-self: start;
}
.facts dt { font-weight: 700; color: var(--ink); }
.facts dd { color: var(--text); overflow-wrap: break-word; }

@media (max-width: 420px) {
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
}

/* Contact */

.contact-card {
  position: relative;
  display: grid;
  gap: 32px;
  padding: 36px 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--gradient);
}

@media (min-width: 760px) {
  .contact-card { grid-template-columns: 1fr 1fr; padding: 44px 40px; }
}

.contact-card h2 { margin-bottom: 12px; }
.contact-email {
  display: inline-block;
  margin-top: 18px;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-card address { font-style: normal; line-height: 1.7; }
.contact-card address strong { color: var(--ink); }
.contact-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 8px;
}

/* Legal pages */

.page { padding: 40px 0 80px; }
.prose { max-width: 44em; }
.prose h1 { font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 800; }
.prose .updated { margin-top: 10px; color: var(--muted); }
.prose h2 { font-size: 1.4rem; margin-top: 40px; margin-bottom: 12px; }
.prose p, .prose ul { margin-top: 12px; }
.prose ul { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose address { font-style: normal; margin-top: 12px; line-height: 1.7; }

/* 404 */

.not-found { padding: 96px 0 120px; text-align: center; }
.not-found svg { width: 110px; height: auto; margin: 0 auto 32px; display: block; }
.not-found h1 { font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 800; }
.not-found p { margin-top: 14px; }
.not-found .actions { justify-content: center; }

/* Footer */

.site-footer {
  padding: 36px 0 44px;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-footer .rule {
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient);
  margin-bottom: 14px;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  list-style: none;
}
.site-footer li { white-space: nowrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--dark); }

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 32px 0 56px; }
  .product { padding: 26px 20px 20px; }
  .contact-card { padding: 32px 20px; }
}
