/* Robin landing page, following embryo.com: DM Sans, black/white, red pill CTAs, 24px rounded blocks */
:root {
    --ink: #060003;
    --white: #ffffff;
    --grey: #e0e5e9;
    --muted: #5f6368;
    --line: rgba(6, 0, 3, 0.12);
    --red: #e12309;
    --red-dark: #b81c06;
    --blue: #83c3dc;
    --radius: 24px;
    --track: -0.03em;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    padding: 12px;
    background: var(--white);
    color: var(--ink);
    font: 400 16px/1.5 "DM Sans", system-ui, sans-serif;
    letter-spacing: var(--track);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 600; margin: 0; line-height: 1.05; }
p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; letter-spacing: 0; }
a { color: inherit; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

/* Buttons: Embryo pills with an arrow */
.btn {
    display: inline-flex; align-items: center; gap: 14px;
    padding: 16px 30px; border-radius: 40px;
    font-weight: 600; text-decoration: none;
    transition: background-color 160ms ease-out, color 160ms ease-out, transform 160ms ease-out;
}
.btn:active { transform: scale(0.97); }
.btn--solid { background: var(--red); color: var(--white); }
.btn--hollow { border: 1px solid currentColor; color: var(--white); }
.btn--small { padding: 9px 20px; font-size: 15px; }
@media (hover: hover) {
    .btn--solid:hover { background: var(--red-dark); }
    .btn--hollow:hover { background: var(--white); color: var(--ink); }
}
.btn:focus-visible, .cmd:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Hero */
.hero {
    background: var(--ink); color: var(--white);
    border-radius: var(--radius);
    padding: 24px clamp(20px, 5vw, 64px) clamp(56px, 9vw, 112px);
}
.nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(56px, 10vw, 120px); }
.wordmark { font-size: 26px; font-weight: 600; display: inline-flex; align-items: baseline; gap: 10px; }
.wordmark-by { font-size: 14px; font-weight: 400; color: rgba(255, 255, 255, 0.6); letter-spacing: 0; }
.hero-copy { max-width: 820px; }
.eyebrow { font-size: 18px; color: rgba(255, 255, 255, 0.75); margin-bottom: 18px; }
.hero h1 { font-size: clamp(44px, 8vw, 96px); letter-spacing: -0.045em; margin-bottom: 24px; }
.lead { font-size: clamp(18px, 2vw, 21px); max-width: 600px; color: rgba(255, 255, 255, 0.85); margin-bottom: 36px; }

/* Sections */
.block { border-radius: var(--radius); padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 64px); margin-top: 12px; }
.block--grey { background: var(--grey); }
.block h2 { font-size: clamp(32px, 4.5vw, 52px); letter-spacing: -0.04em; }
.section-lead { color: var(--muted); margin: 12px 0 28px; font-size: 18px; }

/* Commands + Slack mock */
.commands { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.cmd-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cmd-list li { border-bottom: 1px solid var(--line); }
.cmd {
    display: flex; gap: 18px; width: 100%; padding: 20px 4px;
    background: none; border: 0; text-align: left; cursor: pointer;
    font: inherit; color: inherit; letter-spacing: inherit;
    border-radius: 12px;
    transition: background-color 160ms ease-out;
}
@media (hover: hover) { .cmd:hover { background: rgba(255, 255, 255, 0.5); } }
.cmd-num {
    flex: none; width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--ink); display: grid; place-items: center;
    font-size: 15px; letter-spacing: 0;
    transition: background-color 160ms ease-out, color 160ms ease-out;
}
.cmd[aria-pressed="true"] .cmd-num { background: var(--ink); color: var(--white); }
.cmd-text { display: grid; gap: 4px; }
.cmd-text > code { font-size: 17px; font-weight: 600; }
.cmd-text > span { color: var(--muted); }

.slack {
    margin: 0; position: sticky; top: 24px;
    display: grid; grid-template-columns: 170px minmax(0, 1fr);
    min-height: 560px; border-radius: 16px; overflow: hidden;
    background: var(--white); letter-spacing: 0;
    box-shadow: 0 1px 2px rgba(6, 0, 3, 0.06), 0 24px 48px -12px rgba(6, 0, 3, 0.22);
    font-size: 15px;
}
.slack-side { background: var(--ink); color: rgba(255, 255, 255, 0.7); padding: 18px 12px; }
.slack-ws { color: var(--white); font-weight: 600; font-size: 17px; padding: 0 8px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); margin-bottom: 14px; }
.slack-label { font-size: 13px; padding: 0 8px 6px; }
.slack-ch { padding: 4px 8px; border-radius: 6px; font-size: 14px; }
.slack-ch.is-active { background: var(--red); color: var(--white); }
.slack-main { display: flex; flex-direction: column; min-width: 0; }
.slack-top { display: flex; align-items: baseline; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.slack-top span { color: var(--muted); font-size: 13px; }
.slack-feed { flex: 1; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; }
.slack-compose { margin: 0 20px 20px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }

.msg { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; animation: msg-in 260ms cubic-bezier(0.23, 1, 0.32, 1) both; }
.msg + .msg { animation-delay: 140ms; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .msg { animation: none; } }
.msg p + p, .msg ul + p, .msg p + ul { margin-top: 6px; }
.msg ul { margin: 6px 0 0; padding-left: 20px; }
.msg li + li { margin-top: 4px; }
.msg a { color: #1264a3; text-decoration: none; }
.msg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.msg-head time { color: var(--muted); font-size: 12px; }
.av { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--white); }
.av--a { background: #5b6b7a; }
.av--b { background: #2f7f9e; }
.av--robin { background: var(--red); font-size: 16px; }
.app { background: var(--grey); color: var(--muted); font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.at { background: rgba(29, 155, 209, 0.12); color: #1264a3; border-radius: 4px; padding: 1px 4px; }
.slash { background: var(--grey); padding: 3px 8px; border-radius: 4px; word-break: break-all; }
.muted-line { color: var(--muted); }
.msg--ephemeral { background: #f6f7f8; margin: -8px -10px; padding: 8px 10px; border-radius: 8px; }
.only-you { color: var(--muted); font-size: 12px; }
.slack-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sbtn { padding: 5px 12px; border: 1px solid var(--line); border-radius: 6px; font-weight: 600; font-size: 14px; }
.sbtn--primary { background: #007a5a; border-color: #007a5a; color: var(--white); }

/* Getting started */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.steps li { border-radius: 20px; background: var(--grey); padding: 28px; }
.steps li:nth-child(2) { background: var(--blue); }
.step-num { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; margin-bottom: 40px; letter-spacing: 0; }
.steps h3 { font-size: 24px; margin-bottom: 10px; }

.footer {
    margin-top: 12px; border-radius: var(--radius); background: var(--ink); color: rgba(255, 255, 255, 0.7);
    padding: 28px clamp(20px, 5vw, 64px); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 15px;
}

@media (max-width: 960px) {
    .commands { grid-template-columns: minmax(0, 1fr); }
    .slack { position: static; order: -1; }
    .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    body { padding: 8px; }
    .slack { grid-template-columns: minmax(0, 1fr); min-height: 480px; }
    .slack-side { display: none; }
    .step-num { margin-bottom: 20px; }
}
