/* DataStep Studio for R: the product page. The family's look (DataStep Studio for SAS): one idea per section, a
   large centred headline, one short line, one large real picture; navy as the stage, teal for links, amber for the
   one action. The R accent is the blue of the icon's R. Plain CSS, system fonts, no external file. */
:root {
  --bg: #FFFFFF; --bg-alt: #F3F6F8; --surface: #FFFFFF; --ink: #0E2436; --muted: #4E6474; --line: #DCE3E9;
  --navy: #12385A; --navy-deep: #0B2236; --teal: #0F8077; --teal-bright: #3CC7B8; --amber: #FFB020;
  --rblue: #2F6FC4;        /* the R accent: the icon's R, darkened for a light ground */
  --rblue-bright: #74B0FF; /* the icon's R */
  --note: #1F5FA8; --clean: #2E7D4F; --check: #9A6200; --err: #C0392B;
  --bar: #EEF5EC;          /* greenbar listing paper */
  --shadow: 0 40px 90px -50px rgba(14, 36, 54, .55), 0 12px 30px -18px rgba(14, 36, 54, .25);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 18px; --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07131F; --bg-alt: #0B1B2B; --surface: #0F2336; --ink: #E8EFF4; --muted: #9AB0BE; --line: #1C3349;
    --teal: #3CC7B8; --rblue: #74B0FF; --note: #7FB2F0; --clean: #7CCB80; --check: #E6B450; --err: #F08A7E; --bar: #10283B;
    --shadow: 0 40px 90px -40px rgba(0, 0, 0, .8), 0 12px 30px -18px rgba(0, 0, 0, .6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07131F; --bg-alt: #0B1B2B; --surface: #0F2336; --ink: #E8EFF4; --muted: #9AB0BE; --line: #1C3349;
  --teal: #3CC7B8; --rblue: #74B0FF; --note: #7FB2F0; --clean: #7CCB80; --check: #E6B450; --err: #F08A7E; --bar: #10283B;
  --shadow: 0 40px 90px -40px rgba(0, 0, 0, .8), 0 12px 30px -18px rgba(0, 0, 0, .6); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--teal); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, video:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
code, kbd { font-family: var(--mono); font-size: .86em; }
code { background: color-mix(in srgb, var(--teal) 10%, transparent); padding: .08em .35em; border-radius: 5px; overflow-wrap: anywhere; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; padding: .05em .45em; border-radius: 6px; background: var(--surface); color: var(--ink); white-space: nowrap; }
img, video { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; text-wrap: balance; }
h2 code { background: none; padding: 0; color: var(--rblue); font-size: .9em; letter-spacing: -.02em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 48px); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 30; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 26px; height: 26px; }
.brand span { color: var(--rblue); }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.top .btn { padding: 7px 16px; font-size: 14px; }
@media (max-width: 900px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font: 600 17px/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #1A1400; }
.btn-primary:hover { background: #FFBE45; }
.btn-ghost { border-color: color-mix(in srgb, var(--ink) 22%, transparent); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .play { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* sections */
.sec { padding-block: clamp(80px, 11vw, 150px); }
.sec.alt { background: var(--bg-alt); }
.head { text-align: center; max-width: 880px; margin: 0 auto; display: grid; gap: 20px; justify-items: center; }
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: .01em; color: var(--teal); }
.eyebrow code { background: none; padding: 0; color: inherit; }
.sec h2 { font-size: clamp(34px, 5.2vw, 64px); line-height: 1.05; letter-spacing: -.03em; }
.lede { font-size: clamp(18px, 1.9vw, 22px); line-height: 1.45; color: var(--muted); max-width: 36em; text-wrap: pretty; }
.more { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; font-size: 17px; font-weight: 500; }
.more a { text-decoration: none; }
.more a:hover { text-decoration: underline; }
.more a::after { content: " \203A"; }

/* pictures and films */
.shot { margin: clamp(44px, 6vw, 80px) auto 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); max-width: 1104px; }
.shot img, .shot video { display: block; width: 100%; height: auto; }
.cap { margin: 18px auto 0; text-align: center; font-size: 15px; color: var(--muted); max-width: 48em; }
.facts { list-style: none; padding: 0; margin: clamp(44px, 6vw, 72px) auto 0; max-width: 1104px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.facts li { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 6px; align-content: start; }
.facts strong { font-size: 19px; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; }
.facts span { color: var(--muted); font-size: 16px; }
@media (max-width: 820px) { .facts { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; max-width: 1104px; margin: clamp(48px, 7vw, 88px) auto 0; }
.split .shot { margin: 0; }
.split .text { display: grid; gap: 14px; }
.split h3 { font-size: clamp(23px, 2.5vw, 30px); line-height: 1.15; letter-spacing: -.02em; }
.split p { color: var(--muted); font-size: 17px; }
.split.with-log { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.split.with-log .log { font-size: 12.5px; }
@media (max-width: 860px) { .split, .split.with-log { grid-template-columns: minmax(0, 1fr); } }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); max-width: 1104px; margin: clamp(28px, 4vw, 40px) auto 0; }
.pair figure { margin: 0; min-width: 0; }
.pair .shot { margin: 0; }
.pair figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); text-align: center; }
@media (max-width: 760px) { .pair { grid-template-columns: minmax(0, 1fr); } }

/* hero */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(72px, 9vw, 120px); text-align: center; overflow: hidden; }
.hero-text { display: grid; justify-items: center; gap: 26px; }
.hero h1 { font-size: clamp(42px, 7.4vw, 96px); line-height: 1.02; letter-spacing: -.036em; max-width: 12em; }
.hero h1 .accent { display: block; background: linear-gradient(90deg, var(--rblue) 0%, var(--teal) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { max-width: 31em; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 6px; }
.meta { font-size: 14px; color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--surface); color: var(--ink); text-decoration: none; }
.tag b { padding: 3px 10px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.film { max-width: 1200px; margin: clamp(56px, 8vw, 96px) auto 0; padding-inline: clamp(16px, 4vw, 48px); scroll-margin-top: 72px; }
.film .shot { margin: 0 auto; max-width: none; }
.film-tall { display: none; max-width: 420px !important; }
@media (max-width: 640px) { .film-wide { display: none; } .film-tall { display: block; } }

/* the dark stage (navy): the agent and pry sections */
.stage { background: radial-gradient(120% 70% at 50% 0%, #16405F 0%, #0B2236 55%, #07131F 100%); color: #E9F2F7; }
.stage .eyebrow { color: var(--teal-bright); }
.stage .lede, .stage .cap, .stage .facts span, .stage .split p { color: #B6CAD8; }
.stage .facts li { border-color: #1F3D5A; }
.stage .shot { border-color: #1F3D5A; background: #0A1B2B; box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .9); }
.stage a { color: var(--teal-bright); }
.stage code { background: rgba(60, 199, 184, .14); color: #E9F2F7; }
.stage h2 code { background: none; color: var(--rblue-bright); }
.stage .log { border-color: #23476A; color: #D6E4EE; background-color: #0A1B2B; background-image: repeating-linear-gradient(#0A1B2B 0 3.5em, #0E2438 3.5em 7em); }

/* a log, as the session prints it: greenbar listing paper */
.log { margin: 0; font: 400 13.5px/1.75 var(--mono); color: var(--ink); background-color: var(--surface); background-image: repeating-linear-gradient(var(--surface) 0 3.5em, var(--bar) 3.5em 7em); background-position: 0 14px; background-attachment: local; border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; overflow-x: auto; white-space: pre; box-shadow: var(--shadow); min-width: 0; text-align: left; }
.log b { font-weight: 600; }
.log .cmd { color: var(--muted); }
.log .ok { color: var(--clean); font-weight: 700; }
.log .chk { color: var(--check); font-weight: 700; }
.log .bad { color: var(--err); font-weight: 700; }
.log .pry { color: var(--rblue); font-weight: 700; }
.log mark { background: color-mix(in srgb, var(--amber) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
.stage .log .cmd { color: #8FB0C6; } .stage .log .ok { color: #7CCB80; } .stage .log .pry { color: var(--rblue-bright); } .stage .log .bad { color: #F08A7E; }
.wide-log { max-width: 1104px; margin: clamp(36px, 5vw, 56px) auto 0; }

/* which debugger when */
.picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; max-width: 1104px; margin: clamp(44px, 6vw, 72px) auto 0; }
.pick { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; border: 1px solid #1F3D5A; border-radius: var(--radius); background: rgba(10, 27, 43, .55); }
.pick-tool { margin: 0; font: 600 12.5px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--teal-bright); }
.pick h4 { font-size: 20px; line-height: 1.25; letter-spacing: -.01em; color: #fff; }
.pick p { color: #C3D4DF; font-size: 15.5px; flex: 1; }
.pick .how { flex: none; font: 500 13px/1.6 var(--mono); color: var(--amber); }
@media (max-width: 1000px) { .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .picks { grid-template-columns: minmax(0, 1fr); } }

/* the agent trial */
.trial { max-width: 900px; margin: clamp(44px, 6vw, 72px) auto 0; overflow-x: auto; }
.trial h3 { font-size: 22px; letter-spacing: -.01em; margin-bottom: 8px; }
.trial > p { color: #B6CAD8; margin-bottom: 14px; }
.trial table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.trial th, .trial td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #1F3D5A; vertical-align: top; }
.trial th { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #8FB0C6; }
.trial .ok { color: #7CCB80; font-weight: 700; font-family: var(--mono); }

/* install */
.steps { list-style: none; padding: 0; margin: clamp(44px, 6vw, 72px) auto 0; max-width: 1104px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: step; display: grid; gap: 10px; align-content: start; min-width: 0; }
.steps li::before { content: counter(step); font-size: 15px; font-weight: 700; color: #1A1400; background: var(--amber); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; }
.steps h3 { font-size: 20px; letter-spacing: -.01em; }
.steps p { color: var(--muted); font-size: 16px; }
.copy { display: block; min-width: 0; overflow-wrap: anywhere; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; }
.req { max-width: 860px; margin: 36px auto 0; text-align: center; color: var(--muted); font-size: 15.5px; }

/* preview note */
.preview { max-width: 860px; margin: 0 auto; border: 1px solid color-mix(in srgb, var(--amber) 60%, var(--line)); border-radius: var(--radius); background: var(--surface); padding: clamp(22px, 3.4vw, 36px); display: grid; gap: 14px; }
.preview h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; }
.preview p, .preview li { color: var(--muted); }
.preview ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* privacy and questions */
.qa { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); max-width: 1104px; margin: 0 auto; }
@media (max-width: 860px) { .qa { grid-template-columns: minmax(0, 1fr); } }
.qa h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -.028em; }
.privacy { display: grid; gap: 16px; align-content: start; }
.privacy p { color: var(--muted); }
details { border-bottom: 1px solid var(--line); padding-block: 18px; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 24px/1 var(--sans); color: var(--teal); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 12px; color: var(--muted); }

footer { background: var(--bg-alt); padding-block: 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; gap: 14px; max-width: 1104px; }
footer .links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
footer a { color: var(--ink); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .brand { font-size: 15px; }

/* 404 */
.lost { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.lost .log { display: inline-block; margin-top: 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.privacy .eyebrow, .preview .eyebrow { color: var(--teal); }
.lost .head { min-width: 0; max-width: 100%; padding-inline: 16px; }
.lost .log { max-width: 100%; }
