/* Shedbell site. Black and white, system fonts, no external resources. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #666666;
  --faint: #9a9a9a;
  --line: #e6e6e6;
  --surface: #f6f6f6;
  --code-bg: #f2f2f2;
  --phone: #000000;
  --phone-edge: rgba(0, 0, 0, 0.12);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --fg: #f2f2f2;
    --muted: #9d9d9d;
    --faint: #666666;
    --line: #262626;
    --surface: #111111;
    --code-bg: #141414;
    --phone-edge: rgba(255, 255, 255, 0.18);
  }
}

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

html {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
}

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

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

p { margin: 0; }
p + p { margin-top: 1em; }

code, pre {
  font-family: var(--mono);
  font-size: 0.875em;
}

code {
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

pre {
  margin: 0;
  padding: 1rem 1.1rem;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  line-height: 1.5;
}

pre code { background: none; padding: 0; font-size: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 0.8rem;
  background: var(--fg);
  color: var(--bg);
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { top: 1rem; }

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

/* Navigation */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand .mark { width: 24px; height: 24px; flex: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--fg); }
.nav-links .btn { color: var(--bg); }

@media (max-width: 640px) {
  .nav-links li.hide-sm { display: none; }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; opacity: 0.88; }

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}
.btn-secondary:hover { opacity: 1; border-color: var(--fg); }

.btn-lg { min-height: 3.25rem; padding: 0 1.6rem; font-size: 1.05rem; }

.btn svg { width: 1.1em; height: 1.1em; }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(2.5rem, 7vw, 6rem) 0 clamp(3rem, 8vw, 7rem);
}

.hero-copy p.lede {
  margin-top: 1.5rem;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--muted);
  max-width: 34em;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-meta {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--faint);
}

.hero-meta span + span::before { content: "·"; margin: 0 0.5em; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
}

/* Phone mock: an illustration of the session screen, drawn in CSS so it stays light and monochrome. */

.phone {
  --w: 300px;
  width: var(--w);
  aspect-ratio: 300 / 640;
  margin-inline: auto;
  background: var(--phone);
  color: #fff;
  border-radius: 46px;
  border: 1px solid var(--phone-edge);
  box-shadow: 0 0 0 10px #0a0a0a, 0 0 0 11px var(--phone-edge), 0 40px 80px -30px rgba(0, 0, 0, 0.45);
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.3;
  position: relative;
  overflow: hidden;
}

.phone .island {
  width: 92px;
  height: 26px;
  border-radius: 13px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 auto 14px;
}

.phone .ph-head {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 10px;
  align-items: start;
}

.phone .ph-close {
  width: 26px; height: 26px; border-radius: 50%;
  background: #2a2a2a;
  display: grid; place-items: center;
  font-size: 13px; line-height: 1;
}

.phone .ph-title { font-weight: 600; font-size: 13px; }
.phone .ph-sub { color: #8d8d8d; font-size: 11px; margin-top: 2px; }

.phone .ph-live {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 999px; background: #1f1f1f;
  font-size: 11px;
}
.phone .ph-live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #35c759;
}

/* The streamed window */

.phone .ph-stream {
  flex: 1;
  margin: 14px -4px 12px;
  border-radius: 8px;
  background: #fff;
  color: #111;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone .win-bar {
  height: 20px;
  background: #ececec;
  display: flex; align-items: center; gap: 4px;
  padding: 0 8px;
}
.phone .win-bar i { width: 7px; height: 7px; border-radius: 50%; background: #c9c9c9; display: block; }
.phone .win-bar span {
  margin-left: 8px; flex: 1; height: 11px; border-radius: 3px; background: #fff;
  font-size: 8px; color: #999; line-height: 11px; padding-left: 5px;
}

.phone .win-body {
  flex: 1;
  padding: 18px 18px 26px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}

.phone .win-logo { width: 26px; height: 26px; border-radius: 50%; background: #111; margin-bottom: 10px; }
.phone .win-h { font-weight: 600; font-size: 12.5px; letter-spacing: -0.01em; }
.phone .win-p { color: #777; font-size: 10px; margin: 6px 0 14px; max-width: 18em; }
.phone .win-card {
  width: 100%; border: 1px solid #e3e3e3; border-radius: 8px; padding: 10px; text-align: left;
  display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: center;
  margin-bottom: 10px;
}
.phone .win-card i { width: 22px; height: 22px; border-radius: 6px; background: #e8e8e8; display: block; }
.phone .win-card b { font-size: 10.5px; display: block; }
.phone .win-card small { font-size: 9px; color: #888; }
.phone .win-btn {
  width: 100%; border-radius: 6px; background: #111; color: #fff;
  font-size: 11px; font-weight: 600; padding: 7px; text-align: center;
}
.phone .win-cursor {
  position: absolute; left: 71%; top: 70.5%;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.phone .ph-ask { color: #d0d0d0; font-size: 10.5px; padding: 0 2px; }
.phone .ph-ask b { color: #fff; font-weight: 500; }

.phone .ph-field {
  margin-top: 8px;
  height: 32px; border-radius: 9px; background: #1c1c1c; color: #777;
  display: flex; align-items: center; padding: 0 10px; font-size: 11px;
}

.phone .ph-actions {
  display: grid; grid-template-columns: 1fr 36px 1.4fr; gap: 8px; margin-top: 8px;
}
.phone .ph-actions span {
  height: 36px; border-radius: 18px; background: #262626;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 500;
}
.phone .ph-actions .done { background: #fff; color: #000; font-weight: 600; }

@media (max-width: 860px) {
  .phone { --w: 280px; }
}

/* Sections */

.section { padding: clamp(3rem, 7vw, 6rem) 0; border-top: 1px solid var(--line); }

.section-head { max-width: 40em; }
.section-head p { margin-top: 1rem; color: var(--muted); font-size: 1.1rem; text-wrap: pretty; }

.eyebrow {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li { counter-increment: step; }

.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--faint);
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--fg);
}

.steps h3 { margin-bottom: 0.5rem; }
.steps p { color: var(--muted); text-wrap: pretty; }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 2rem; }
}

/* Facts: stats and cards */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat b {
  display: block;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stat p { color: var(--muted); text-wrap: pretty; }

@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; gap: 2rem; }
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.cards li {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.cards h3 { margin-bottom: 0.5rem; }
.cards p { color: var(--muted); text-wrap: pretty; }

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

/* Agents */

.agents {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}

.agent-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.agent-list li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.agent-list b { font-weight: 600; }
.agent-list span { color: var(--muted); }

@media (max-width: 860px) {
  .agents { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .agent-list li { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* Screenshots */

.shots {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  align-items: start;
}

.shot figure { margin: 0; }
.shot img {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.shot figcaption { margin-top: 0.9rem; font-size: 0.95rem; color: var(--muted); }

.shot-phone img { width: min(100%, 330px); margin-inline: auto; border-radius: 28px; }
.shot-phone figcaption { text-align: center; }

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

/* CTA band */

.cta {
  padding: clamp(3rem, 7vw, 6rem) 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.cta .mark { width: 56px; height: 56px; margin: 0 auto 1.5rem; }
.cta p { margin: 1rem auto 0; max-width: 32em; color: var(--muted); font-size: 1.1rem; }
.cta .hero-actions { justify-content: center; }

/* Footer */

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

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer ul { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Prose pages (download, privacy, imprint) */

.page { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 6rem); }
.page-head { max-width: 42em; margin-bottom: 2.5rem; }
.page-head p { margin-top: 1rem; color: var(--muted); font-size: 1.1rem; }

.prose { max-width: 42em; }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
.prose h3 { margin: 1.75rem 0 0.5rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose pre { margin: 0.75rem 0 1.25rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 0.75rem 0 1.5rem; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; }
.prose .note { color: var(--muted); font-size: 0.95rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.placeholder {
  background: var(--code-bg);
  border: 1px dashed var(--faint);
  border-radius: 4px;
  padding: 0 0.3em;
  font-family: var(--mono);
  font-size: 0.9em;
}

/* Download page */

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.dl-card {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dl-card h2 { font-size: 1.4rem; }
.dl-card p { color: var(--muted); }
.dl-card .btn { align-self: flex-start; margin-top: 0.5rem; }
.dl-card dl { margin: 0.5rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; font-size: 0.9rem; }
.dl-card dt { color: var(--faint); }
.dl-card dd { margin: 0; overflow-wrap: anywhere; }

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

.setup-steps { margin: 0; padding: 0; list-style: none; counter-reset: setup; }
.setup-steps > li {
  counter-increment: setup;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.setup-steps > li::before {
  content: counter(setup);
  width: 2rem; height: 2rem; border-radius: 50%;
  border: 1px solid var(--fg);
  display: grid; place-items: center;
  font-weight: 600; font-size: 0.9rem;
}
.setup-steps h3 { margin: 0.2rem 0 0.4rem; }
.setup-steps p { color: var(--muted); margin: 0 0 0.6em; }
.setup-steps p:last-child { margin-bottom: 0; }

.snippet { position: relative; }
.snippet pre { padding-right: 5rem; }
.snippet .copy {
  position: absolute; top: 0.6rem; right: 0.6rem;
  font: inherit; font-size: 0.8rem; font-weight: 500;
  padding: 0.25rem 0.6rem; border-radius: 6px;
  border: 1px solid var(--line); background: var(--bg); color: var(--muted);
  cursor: pointer;
}
.snippet .copy:hover { color: var(--fg); border-color: var(--fg); }

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

.sprite { position: absolute; }
