/* a gud company — gud.work
   brand tokens are placeholders; swap the two accents and nothing else needs to move. */
:root {
  --paper: #FAF7F1;
  --paper-2: #F1ECE3;
  --ink: #17171A;
  --ink-soft: #5C5A55;
  --line: #D9D3C7;
  --accent: #FF6A3D;
  --accent-2: #1F8A70;
  --radius: 14px;
  --max-width: 1120px;
  --gutter: 20px;
  --header-h: 64px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.2rem + 4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  transition: text-decoration-thickness 120ms ease;
}
a:hover { text-decoration-thickness: 3px; }

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

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: var(--radius);
  z-index: 100;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  margin-right: auto;
}
.brand img { width: 28px; height: 28px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
}
.nav a:hover { background: var(--paper-2); }
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.2em;
}

.x-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.x-link:hover { background: var(--paper-2); }
.x-badge {
  width: 26px;
  height: 26px;
  border: 2.5px solid var(--ink);
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0;
}

.menu-btn {
  display: none;
  appearance: none;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  border-radius: 10px;
  padding: 7px 12px;
  cursor: pointer;
}

@media (max-width: 767px) {
  .has-js .menu-btn { display: inline-flex; align-items: center; gap: 6px; }
  .has-js .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 12px;
  }
  .has-js .nav.is-open { display: block; }
  .has-js .nav ul { flex-direction: column; gap: 2px; }
  .has-js .nav a { display: block; padding: 12px 10px; font-size: 1.05rem; }
  .brand span { font-size: 0.98rem; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding: 40px 0 32px;
  color: var(--ink);
}
.site-footer .brand { margin: 0 0 6px; }
.site-footer p { margin: 0 0 10px; }
.site-footer .foot-links {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.site-footer .muted { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- shared blocks ---------- */
main { flex: 1 0 auto; }
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section.alt { background: var(--paper-2); }
.section-title { margin-bottom: 28px; }
.eyebrow {
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 14px;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.narrow { max-width: 68ch; }

/* marker underline doodle */
.marker { position: relative; display: inline-block; white-space: nowrap; }
.marker svg {
  position: absolute;
  left: -0.05em;
  right: -0.05em;
  bottom: -0.16em;
  width: auto;
  height: 0.32em;
  color: var(--accent);
  pointer-events: none;
}

/* star doodle bullets */
.star {
  width: 1.1em;
  height: 1.1em;
  color: var(--accent);
  flex: none;
}
.starred {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
}
.starred li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 10px;
}
.starred .star { margin-top: 0.3em; }
.star-mark { display: flex; align-items: center; gap: 10px; }
.starred-title { display: inline-flex; }
.starred-title .star { width: 0.85em; height: 0.85em; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  border: 2px solid transparent;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #ff7c55; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--paper-2); }
.btn-big { font-size: 1.3rem; padding: 18px 30px; word-break: break-all; }
.btn .arrow {
  width: 22px;
  height: 14px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.btn:hover .arrow, .btn:focus-visible .arrow { opacity: 1; transform: translateX(0); }
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 26px;
}

/* pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--ink);
  border: 1.5px solid var(--ink-soft);
  margin-bottom: 12px;
  align-self: flex-start;
}
.pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.pill-live { border-color: var(--accent-2); background: rgba(31, 138, 112, 0.10); }
.pill-live::before { background: var(--accent-2); }
.pill-soon { color: var(--ink-soft); }

/* ---------- home ---------- */
.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap {
  display: grid;
  gap: 36px;
  align-items: center;
}
.hero-art img { width: 100%; max-width: 560px; margin-inline: auto; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 55fr 45fr; gap: 48px; }
  .hero-art img { margin-inline: 0 auto; }
}

.cards {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.cards.two { grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards.two { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
}
.section.alt .card { background: var(--paper); }
.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  margin-bottom: 16px;
  background: var(--paper-2);
}
.card h3 { margin-bottom: 6px; }
.card p { margin-bottom: 12px; }
.card-links {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-weight: 700;
}

.values {
  display: grid;
  gap: 22px 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values { grid-template-columns: repeat(4, 1fr); } }
.value h3 { font-size: 1.15rem; margin: 0 0 6px; }
.value p { color: var(--ink-soft); margin: 0; }

.band { text-align: center; }
.band p { font-size: 1.15rem; }

/* ---------- products ---------- */
.feature {
  display: grid;
  gap: 28px;
  align-items: center;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.feature img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
}
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; padding: 24px; gap: 36px; }
}
.feature .actions { margin-top: 18px; }

/* ---------- prose pages ---------- */
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose h2:first-of-type { margin-top: 1.2em; }
.updated { color: var(--ink-soft); margin: -0.2em 0 1.6em; }

.contact-block { text-align: center; }
.contact-block .btn-big { margin: 18px 0 22px; }
.note {
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 28px auto 0;
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.nothing { text-align: center; padding: clamp(80px, 14vw, 160px) 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .btn .arrow { transform: none; }
}
