/* gmdo — direction: Type and nothing else · palette Olive on bone · type Red Hat Display / Red Hat Text
   Layout rule: every section sits in one centred container on one left edge and opens with the same
   heading + lede. Only the hero, the Clone band and the footer run edge to edge, as colour fields. */
:root {
  --bg: #ecebe7;
  --surface: #e1dfd9;
  --ink: #38450f;
  --muted: #56612f;
  --accent: #38450f;
  --accent-ink: #ecebe7;
  --field-1: #38450f;
  --field-1-ink: #ecebe7;
  --deep: #161c05;            /* the submerged ink of the hero's lower line */
  --tint-1: #d3d6bd;
  --ui-bg: #f3f3f1;           /* interface fragments: the product's own paper */
  --ui-line: #d5d3cb;
  --ui-ink: #222a0c;
  --ui-muted: #5f6450;

  --font-display: "Red Hat Display", system-ui, sans-serif;
  --font-text: "Red Hat Text", system-ui, sans-serif;
  --font-code: ui-monospace, "SF Mono", Menlo, Consolas, monospace; /* taste-skill-ignore: real code only */

  /* five steps, no more */
  --step-small: clamp(0.875rem, 0.84rem + 0.12vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1rem + 0.9vw, 1.75rem);
  --step-head: clamp(2.5rem, 1.4rem + 4.2vw, 5rem);
  --step-display: clamp(4.25rem, 9.5vw, 9.375rem);

  --container: 1240px;
  --margin: clamp(1.25rem, 3vw, 2.5rem);
  --gutter: clamp(1.25rem, 3vw, 3rem);
  --section: clamp(5rem, 9vw, 8.5rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, ul, ol, dl, dd, pre { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 5rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 900; text-wrap: balance; letter-spacing: -0.03em; line-height: 0.95; }
p { text-wrap: pretty; }
code, pre { font-family: var(--font-code); font-size: 0.875em; }
.nums { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.plain { display: grid; gap: 4px; }

/* ---------- the one container ---------- */
.container { width: min(100% - var(--margin) * 2, var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); }
.alt { background: var(--surface); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: var(--step-head); }
.lede { max-width: 58ch; font-size: var(--step-lead); line-height: 1.35; }

/* ---------- header: a plain bar that takes the ground and ink of the chapter under it ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 10; background: var(--header-ground, var(--bg)); color: var(--header-ink, var(--ink)); transition: background-color 300ms ease, color 300ms ease; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.85rem; }
.wordmark { font-family: var(--font-display); font-weight: 900; font-size: 1.75rem; letter-spacing: -0.04em; text-decoration: none; line-height: 1; }
.top nav { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 2rem); font-size: var(--step-small); }
.top nav a:not(.button) { text-decoration: none; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 1.25rem; background: var(--header-ink, var(--accent)); color: var(--header-ground, var(--accent-ink));
  border-radius: var(--radius); text-decoration: none; font-weight: 500; white-space: nowrap; transition: transform 140ms var(--ease-out), background-color 300ms ease, color 300ms ease; }
.button:active { transform: scale(0.96); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; transition: text-decoration-color 180ms ease; }
.menu-word { display: none; font-size: var(--step-small); text-decoration: underline; text-underline-offset: 0.22em; }
.menu { position: absolute; top: 100%; right: var(--margin); display: grid; min-width: 14rem; padding: 8px 0; background: var(--header-ground, var(--bg)); color: var(--header-ink, var(--ink)); box-shadow: 0 12px 32px -8px rgba(29, 37, 7, 0.28); } /* taste-skill-ignore: floating menu */
.menu[hidden] { display: none; }
.menu a { padding: 12px 20px; text-decoration: none; font-size: var(--step-body); }
.menu a:hover, .menu a:focus-visible { background: color-mix(in srgb, currentColor 8%, transparent); }
@media (min-width: 48em) { .menu { display: none !important; } }
@media (max-width: 47.99em) {
  .top nav .link { display: none; }
  .top nav .menu-word { display: inline; }
}
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
  .button:hover { transform: translateY(-1px); }
}

/* ---------- hero: the agent pulling a course out of Canvas ---------- */
.hero { padding-block: calc(5.5rem + clamp(2rem, 5vw, 4.5rem)) var(--section); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gutter); align-items: center; }
.hero-copy { display: grid; gap: 24px; align-content: center; }
.hero-title { font-size: clamp(3.25rem, 1.2rem + 5.6vw, 7rem); line-height: 0.88; text-transform: uppercase; letter-spacing: -0.04em; max-width: 7ch; }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; font-weight: 500; }
.button.solid { background: var(--ink); color: var(--bg); }
@media (max-width: 63.99em) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-title { max-width: none; } }

.stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center;
  padding: clamp(18px, 2.6vw, 32px); background: var(--field-1); color: var(--ui-ink); min-height: 30rem; overflow: hidden; }
.stage[data-ui] { background: var(--field-1); }
.pane { position: relative; background: var(--ui-bg); display: flex; flex-direction: column; min-height: 25rem; overflow: hidden; }
.pane-bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #e6e5df; font-size: 0.75rem; color: var(--ui-muted); white-space: nowrap; }
.pane-bar .win-url { flex: 1; min-width: 0; padding: 2px 8px; background: var(--ui-bg); border-radius: 3px; overflow: hidden; text-overflow: ellipsis; }
.pane-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px 8px; font-weight: 500; font-size: 0.875rem; }
.pane-title #st-course { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-tag { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 0.6875rem; font-weight: 500; }
.agent-tag svg { width: 12px; height: 12px; }
.grades { display: grid; padding: 0 8px 10px; font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.g-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 7px 6px; border-radius: 3px; transition: background-color 220ms ease, color 220ms ease; }
.g-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-row.reading { background: #dfe3c6; }
.g-row.done { color: #63675a; }
.cursor { position: absolute; left: 0; top: 0; width: 20px; height: 20px; z-index: 3; transition: transform 420ms var(--ease-out); pointer-events: none; }

.stream { color: var(--bg); padding-inline: 6px; }
.stream svg { width: 100%; height: 24px; display: block; overflow: visible; }
.flow { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-dasharray: 6 7; animation: flow 900ms linear infinite; }
@keyframes flow { to { stroke-dashoffset: -26; } }
.packet { position: absolute; z-index: 4; left: 0; top: 0; padding: 4px 8px; border-radius: 3px; background: var(--bg); color: var(--ink); font-size: 0.6875rem; font-weight: 500; white-space: nowrap; pointer-events: none; }

.out .pane-bar span:nth-of-type(1) { flex: 1; color: var(--ui-ink); font-weight: 500; }
.ico { width: 14px; height: 14px; flex: none; }
.live { display: inline-flex; align-items: center; gap: 6px; color: #2f6b1f; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #2f6b1f; }
.csv { flex: 1; padding: 10px 12px; font-family: var(--font-code); font-size: 0.6875rem; line-height: 1.65; color: var(--ui-ink); overflow: hidden; }
.csv .l { display: grid; grid-template-columns: 1fr auto; gap: 8px; white-space: nowrap; animation: append 360ms var(--ease-out) both; }
.csv .l span:first-child { overflow: hidden; text-overflow: ellipsis; }
.csv .h { color: var(--ui-muted); }
.ok-ico { width: 12px; height: 12px; color: #2f6b1f; }
@keyframes append { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.docs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px 12px; background: #ecebe5; font-size: 0.6875rem; color: var(--ui-muted); min-height: 38px; }
.docs-label { display: inline-flex; align-items: center; gap: 5px; margin-right: 4px; color: var(--ui-ink); font-weight: 500; }
.doc { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; background: var(--ui-bg); border-radius: 3px; animation: append 360ms var(--ease-out) both; }
.status { display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; background: var(--ink); color: var(--bg); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.status b { font-weight: 500; }

@media (max-width: 47.99em) {
  .stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 44px auto; min-height: 0; }
  .pane { min-height: 15rem; }
  .stream { transform: rotate(90deg); width: 44px; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .flow, .csv .l, .doc { animation: none; }
}

/* ---------- try it: the input line ---------- */
.typed-line { position: relative; display: flex; align-items: baseline; font-family: var(--font-display); font-weight: 900; font-size: var(--step-head); letter-spacing: -0.03em; line-height: 1; }
.typed-line input { flex: 1; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; letter-spacing: inherit; outline: none; caret-color: transparent; }
.typed-line .caret { position: absolute; top: 0.08em; width: 0.08em; height: 0.86em; background: var(--ink); animation: blink 1.1s steps(1) infinite; pointer-events: none; }
@keyframes blink { 50% { opacity: 0; } }
.typed-line:focus-within { outline: 2px solid var(--ink); outline-offset: 10px; }
#try .lede { margin-top: 20px; }
.answer { margin-top: clamp(2rem, 4vw, 3rem); }
.examples { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-top: 28px; }
.examples button { font-size: var(--step-body); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.25em; transition: text-decoration-color 180ms ease, transform 140ms var(--ease-out); }
.examples button:hover, .examples button[aria-pressed="true"] { text-decoration-color: currentColor; }
.examples button:active { transform: scale(0.97); }

/* ---------- interface fragments (data-ui): the product's own look, lines allowed ---------- */
[data-ui] { background: var(--ui-bg); color: var(--ui-ink); font-size: 0.9375rem; line-height: 1.45; }
.term { padding: clamp(18px, 2.4vw, 28px); }
.term pre { font-size: clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem); line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.term .ok { color: #2f6b1f; }
.term .warn { color: #8a5a00; }

/* ---------- three commands: words left, output right ---------- */
.row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gutter); align-items: start; }
.row + .row { margin-top: clamp(3.5rem, 7vw, 6rem); }
.row-text { display: grid; gap: 16px; }
.row-text h3 { font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.02em; }
.row-text p { max-width: 46ch; }
.call { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 8px; padding: 16px 18px; background: var(--bg); }
.call pre { overflow-x: auto; }
.copy-btn { flex: none; font-size: var(--step-small); text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 63.99em) {
  .row { grid-template-columns: minmax(0, 1fr); }
}

.win { border: 1px solid var(--ui-line); } /* taste-skill-ignore: data-ui window */
.win-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--ui-line); font-size: 0.8125rem; color: var(--ui-muted); } /* taste-skill-ignore: data-ui window */
.win-dots { display: flex; gap: 6px; } .win-dots i { width: 9px; height: 9px; border-radius: 50%; background: #cfcdc4; display: block; }
.win-url { flex: 1; padding: 3px 10px; background: #ebeae4; border-radius: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.win-body { padding: 18px; display: grid; gap: 14px; }
.kv { display: grid; grid-template-columns: 9.5rem 1fr; gap: 6px 12px; font-size: 0.9375rem; }
.kv dt { color: var(--ui-muted); } .kv dd { margin: 0; font-weight: 500; }
.pill-ok { color: #2f6b1f; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 8px; }
.tiles span { padding: 10px 12px; background: #ebeae4; font-size: 0.8125rem; line-height: 1.3; }

.ui-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; padding: 14px 14px 8px; font-size: 0.8125rem; color: var(--ui-muted); }
.ui-head b { color: var(--ui-ink); font-weight: 500; }
.ui-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.ui-table th { text-align: left; font-weight: 500; color: var(--ui-muted); padding: 8px 14px; border-bottom: 1px solid var(--ui-line); }
.ui-table td { padding: 9px 14px; border-bottom: 1px solid #e6e4dc; vertical-align: top; }
.ui-table .r { text-align: right; white-space: nowrap; }
.ui-table .key { white-space: nowrap; }
@media (max-width: 63.99em) {
  .ui-table .key { white-space: normal; overflow-wrap: anywhere; }
  .ui-table th, .ui-table td { padding-inline: 10px; }
}
.ui-table tr.sel td { background: #eceee0; }
@media (max-width: 47.99em) {
  .ui-table .hide-sm { display: none; }
  .ui-table th, .ui-table td { padding-inline: 10px; }
}

/* ---------- options: sentences with switches ---------- */
.switches { display: grid; gap: 6px; }
.sw { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--gutter); padding: clamp(18px, 2.4vw, 28px); background: var(--surface); cursor: pointer; transition: background-color 320ms ease; }
.sw .say { font-family: var(--font-display); font-weight: 900; font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.02em; color: var(--muted); transition: color 320ms ease; }
.sw .then { max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; color: var(--ink); transition: max-height 420ms var(--ease-out), opacity 320ms ease, margin-top 420ms var(--ease-out), visibility 0s 420ms; }
.sw[data-on="true"] { background: var(--tint-1); }
.sw[data-on="true"] .say { color: var(--ink); }
.sw[data-on="true"] .then { max-height: 8em; opacity: 1; margin-top: 8px; visibility: visible; transition-delay: 0s; }
.toggle { position: relative; width: 2.6em; height: 1.4em; border-radius: 999px; background: #a9a99c; transition: background-color 240ms ease; font-size: 1.5rem; flex: none; }
.toggle::after { content: ""; position: absolute; top: 0.15em; left: 0.15em; width: 1.1em; height: 1.1em; border-radius: 50%; background: var(--ui-bg); transition: transform 260ms var(--ease-out); }
.toggle[aria-checked="true"] { background: var(--ink); }
.toggle[aria-checked="true"]::after { transform: translateX(1.2em); }

/* ---------- the check ---------- */
.check { width: 100%; border-collapse: collapse; font-size: var(--step-body); font-variant-numeric: tabular-nums; }
.check th { text-align: left; font-weight: 500; padding: 12px 16px; color: var(--muted); font-size: var(--step-small); }
.check td { padding: 14px 16px; vertical-align: top; }
.check tbody tr:nth-child(even) td { background: var(--bg); }
.check .yr { width: 18%; font-weight: 500; white-space: nowrap; }
.check .r { text-align: right; white-space: nowrap; }
.check tr.gap td { padding: 0; height: 24px; background: transparent !important; }
@media (max-width: 47.99em) {
  .check thead { display: none; }
  .check tr { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; row-gap: 2px; padding: 12px; }
  .check td { padding: 0; background: transparent !important; }
  .check tbody tr:nth-child(even) { background: var(--bg); }
  .check .yr:empty { display: none; }
  .check .yr { grid-column: 1 / -1; font-size: 1.25rem; margin: 10px 0 6px; width: auto; }
  .check .subj { grid-column: 1 / -1; }
  .check .rows { color: var(--muted); text-align: left; }
}

/* ---------- questions ---------- */
.faq-text { columns: 2; column-gap: var(--gutter); }
.faq-text p { break-inside: avoid; margin-bottom: 22px; line-height: 1.55; }
.faq-text b { font-weight: 500; }
@media (max-width: 63.99em) { .faq-text { columns: 1; } .faq-text p { max-width: 65ch; } }

/* ---------- cta: the whole field is the link ---------- */
.cta { display: block; background: var(--field-1); color: var(--field-1-ink); text-decoration: none; transition: background-color 200ms ease, color 200ms ease; }
.cta-in { display: flex; flex-direction: column; justify-content: space-between; min-height: 52svh; padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.cta-top { display: flex; justify-content: space-between; gap: 1.5rem; }
.cta-say { max-width: 30ch; font-size: var(--step-body); }
.cta-arrow { flex: none; width: 48px; height: 48px; transition: transform 240ms var(--ease-out); }
.cta-word { margin-top: 3rem; font-family: var(--font-display); font-weight: 900; font-size: calc(var(--step-display) * 2.2); line-height: 0.8; letter-spacing: -0.05em; text-transform: uppercase; }
.cta:hover, .cta:focus-visible { background: var(--field-1-ink); color: var(--field-1); outline: none; }
.cta:hover .cta-arrow, .cta:focus-visible .cta-arrow { transform: translate(6px, -6px); }
@media (max-width: 47.99em) { .cta-in { min-height: 40svh; } .cta-word { font-size: 26vw; } .cta-arrow { width: 32px; height: 32px; } }

/* ---------- footer ---------- */
.foot { background: var(--surface); }
.foot-in { display: flex; flex-direction: column; min-height: 72svh; padding-block: 40px 28px; }
.foot-notes { display: flex; justify-content: space-between; gap: 2rem; font-size: var(--step-small); }
.foot-big { display: block; margin-top: auto; padding-top: 4rem; font-family: var(--font-display); font-weight: 900; font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.04em; text-decoration: none; }
.foot-meta { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 1.5rem; margin-top: 40px; font-size: var(--step-small); color: var(--muted); }
.foot-meta > :last-child { text-align: right; }
.row-list { display: flex; gap: 1.25rem; flex-wrap: wrap; }
@media (max-width: 47.99em) {
  .foot-notes { flex-direction: column; }
  .foot-big { font-size: 13vw; }
  .foot-meta { grid-template-columns: 1fr; } .foot-meta > :last-child { text-align: left; }
}

/* ---------- scroll bars, placeholders ---------- */
.call pre { scrollbar-width: thin; scrollbar-color: #9aa080 transparent; }
input::placeholder { color: var(--muted); }

/* ---------- motion (content stays visible without script) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] > * { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 75ms); }
  .js [data-reveal].is-in > * { opacity: 1; transform: none; }
  .js .hero-copy > * { animation: rise-in 800ms var(--ease-out) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: 90ms; }
  .js .hero-copy > :nth-child(3) { animation-delay: 180ms; }
  .js .stage { animation: rise-in 900ms 120ms var(--ease-out) both; }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .typed-line .caret { animation: none; } * { transition-duration: 1ms !important; } }
.flag { white-space: nowrap; }
