@import url("fonts.css");

:root {
  /* Font: Inter is a free stand-in for Ramp's TWK Lausanne (commercial, not bundled).
     With a Lausanne licence, load it in fonts.css and put "TWK Lausanne" first here. */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --bg: #ffffff;
  --panel: #f3f3f1;
  --ink: #0f0f0f;
  --ink-2: #3b3b39;
  --muted: #6e6e6a;
  --faint: #9d9d98;
  --line: #e7e7e3;
  --line-2: #d9d9d4;
  --accent: #dcf343;      /* the one accent: primary CTA only */
  --ok: #1d7a4f;
  --ok-soft: #e8f5ee;

  /* spacing scale: 4 8 12 16 24 32 48 64 96 128 */
  --gutter: 32px;
  --max: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Dotted grid in the margins, white page column in the middle. */
html { background: #fafaf9 radial-gradient(circle, #d4d4cf 1px, transparent 1.2px) 0 0 / 16px 16px; }
body {
  margin: 0 auto; max-width: calc(var(--max) + 2 * var(--gutter) + 80px); min-height: 100vh;
  background: var(--bg); box-shadow: 1px 0 0 var(--line), -1px 0 0 var(--line);
  color: var(--ink); font: 400 16px/1.55 var(--font-sans); font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }

/* Type */
.mono { font-family: var(--font-mono); }
.label { font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.h1 { font-size: clamp(44px, 7vw, 92px); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
.h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; }
.h3 { font-size: 20px; font-weight: 500; line-height: 1.25; letter-spacing: -.015em; }
.lead { font-size: 20px; line-height: 1.45; letter-spacing: -.01em; color: var(--ink-2); }
.body { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 8px; font: 500 16px/1 var(--font-sans); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; border: 1px solid transparent; transition: filter .15s, background .15s; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { filter: brightness(.95); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2a28; }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--panel); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: #ffffffe6; backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; height: 68px; gap: 40px; }
.wordmark { font: 600 24px/1 var(--font-sans); letter-spacing: -.055em; text-decoration: none; color: var(--ink); }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--ink); margin: 4px auto; transition: transform .2s; }
.mobile-menu { display: none; }
@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .nav .wrap { height: 60px; }
  .mobile-menu { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 4px var(--gutter) 20px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .18s; }
  .mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .mobile-menu a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 18px; }
  .mobile-menu .row { display: flex; gap: 8px; margin-top: 16px; }
  .mobile-menu .row .btn { flex: 1; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(2.75px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-2.75px) rotate(-45deg); }
}

/* Hero */
.hero { padding: 96px 0 64px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.hero .h1 { margin: 32px 0 0; }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-top: 40px; }
.hero-foot .lead { max-width: 520px; }

/* Product panel */
.panel { background: var(--panel); border-radius: 24px; }
.showcase { position: relative; padding: 64px 64px 0; overflow: hidden; }
.app { background: #fff; border-radius: 12px 12px 0 0; box-shadow: 0 0 0 1px #0000000d, 0 24px 60px -24px #0000002e; display: grid; grid-template-columns: 200px 1fr; min-height: 500px; font-size: 13px; color: #1b1b1a; overflow: hidden; }
.app-side { border-right: 1px solid #efefec; padding: 20px 12px; background: #fcfcfb; }
.app-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; letter-spacing: -.01em; margin: 0 8px 20px; }
.app-brand i { width: 20px; height: 20px; border-radius: 5px; background: #1b1b1a; }
.app-side .grp { font: 500 10.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 20px 8px 8px; }
.app-side span { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 6px; color: #4a4a47; }
.app-side span.on { background: #f0f0ed; color: #111; font-weight: 500; }
.app-side .dot { width: 7px; height: 7px; border-radius: 2px; background: #cfcfca; flex: none; padding: 0; }
.app-main { padding: 24px 32px; min-width: 0; }
.crumbs { color: var(--faint); font-size: 12px; margin-bottom: 8px; }
.app-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.app-head h4 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.025em; }
.fake-btn { background: #1b1b1a; color: #fff; border-radius: 6px; padding: 6px 12px; font-size: 12px; font-weight: 500; }
.app-tabs { display: flex; gap: 20px; border-bottom: 1px solid #efefec; margin-bottom: 8px; }
.app-tabs span { padding-bottom: 10px; color: #8a8a85; }
.app-tabs span.on { color: #111; box-shadow: inset 0 -1.5px 0 #111; font-weight: 500; }
.app { margin-right: 200px; }
.app-main > * { margin-right: 136px; }
.app-main > .table { width: calc(100% - 136px); }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font: 500 10.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 10px 8px; border-bottom: 1px solid #efefec; }
.table td { padding: 10px 8px; border-bottom: 1px solid #f3f3f0; white-space: nowrap; }
.person { display: flex; align-items: center; gap: 10px; }
.av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 600; color: #fff; background: #8a8a85; flex: none; }
.role { color: #555552; }
.row-new td { background: #fbfde9; }
.row-new .role::after { content: "New"; margin-left: 8px; font: 500 10px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: var(--ink); border-radius: 4px; padding: 2px 5px; }

/* Skate widget */
.sk { position: absolute; right: 64px; top: 128px; width: 328px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px #0000000f, 0 28px 60px -16px #00000038; padding: 12px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.45; color: #1b1b1a; }
.sk-head { display: flex; align-items: center; gap: 8px; padding: 2px 2px 0; }
.sk-head b { font-weight: 600; letter-spacing: -.04em; font-size: 14px; }
.sk-head .st { margin-left: auto; font: 500 10.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ok); display: flex; align-items: center; gap: 6px; }
.sk-head .st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.msg { align-self: flex-end; max-width: 90%; background: #1b1b1a; color: #fff; padding: 8px 11px; border-radius: 12px 12px 4px 12px; }
.steps { list-style: none; margin: 0; padding: 0 2px; display: grid; gap: 7px; color: #4a4a47; font-size: 12.5px; }
.steps li { display: flex; align-items: center; gap: 9px; }
.steps svg { width: 14px; height: 14px; color: var(--ok); flex: none; }
.verified { background: var(--ok-soft); border-radius: 10px; padding: 10px 12px; color: #173d2c; }
.verified .t { font: 500 10.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ok); margin-bottom: 3px; }
.sk-input { display: flex; align-items: center; border: 1px solid #e5e5e1; border-radius: 10px; padding: 4px 4px 4px 12px; color: var(--faint); }
.sk-input span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-input .go { background: #1b1b1a; color: #fff; border-radius: 7px; padding: 6px 11px; font-weight: 500; }

@media (max-width: 1100px) {
  .showcase { padding: 40px 40px 0; }
  .app-side { display: none; }
  .app { grid-template-columns: 1fr; }
  .app { margin-right: 160px; }
  .sk { right: 40px; }
  .app-main > * { margin-right: 176px; }
  .app-main > .table { width: calc(100% - 176px); }
  .table .hide-md { display: none; }
}
@media (max-width: 860px) {
  .showcase { padding: 24px 16px 24px; }
  .app { border-radius: 12px; min-height: 0; }
  .app-main { padding: 16px; }
  .app { margin-right: 0; }
  .app-main > * { margin-right: 0; }
  .app-main > .table { width: 100%; }
  .table .hide-sm { display: none; }
  .sk { position: relative; right: auto; top: auto; width: auto; margin: 16px 0 0; }
}

/* Stat strip */
.stats { margin-top: 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); }
.stats > div { padding: 24px 24px 24px 0; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-n { display: inline-block; font: 500 22px/1 var(--font-mono); letter-spacing: -.02em; border: 1px solid var(--ink); border-radius: 6px; padding: 7px 10px; margin-bottom: 12px; }
.stat-n small { font-size: 15px; color: var(--muted); }
.stats .label { line-height: 1.5; display: block; }
.stats .label b { color: var(--ink); font-weight: 500; }
.caveat { margin-top: 16px; font-size: 13px; color: var(--muted); max-width: 820px; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .stats > div:nth-child(2) { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(4) { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Sections */
.sec { padding: 128px 0 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 48px; }
.feat { border-top: 1px solid var(--ink); padding-top: 24px; }
.feat .label { display: block; margin-bottom: 32px; }
.feat .h3 { margin-bottom: 8px; }
.feat a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; gap: 40px; } .feat .label { margin-bottom: 16px; } }

.install { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.install .body { margin-top: 16px; max-width: 420px; font-size: 17px; }
.code { background: var(--ink); color: #e9e9e4; border-radius: 16px; overflow: hidden; }
.code-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 12px 20px; border-bottom: 1px solid #ffffff14; }
.code-top .label { color: #8d8d88; }
.copy { background: #ffffff14; color: #fff; border: 0; border-radius: 6px; padding: 6px 12px; font: 500 12px var(--font-mono); cursor: pointer; }
.copy:hover { background: #ffffff24; }
.code pre { margin: 0; padding: 24px; font: 14px/1.75 var(--font-mono); overflow-x: auto; }
.code .c { color: #7d7d78; } .code .k { color: #fff; } .code .a { color: #b9b9b3; } .code .s { color: var(--accent); }
@media (max-width: 860px) { .install { grid-template-columns: 1fr; gap: 32px; } .code pre { font-size: 12.5px; padding: 20px 16px; } }

.cta { margin: 128px 0 0; padding: 64px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta .body { margin-top: 8px; font-size: 17px; }
@media (max-width: 860px) { .cta { flex-direction: column; align-items: flex-start; padding: 40px 24px; } }

/* Footer */
.foot { padding: 64px 0 48px; }
.foot .wrap { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.foot .wordmark { font-size: 20px; }
.foot ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.foot a { text-decoration: none; font-size: 14.5px; color: var(--muted); }
.foot a:hover { color: var(--ink); }
.foot .copy-line { margin-left: auto; font: 12px var(--font-mono); color: var(--faint); }
@media (max-width: 600px) { .foot .wrap { flex-direction: column; align-items: flex-start; gap: 20px; } .foot .copy-line { margin-left: 0; } }

/* Doc pages (security, legal, 404) */
.doc { max-width: 720px; margin: 0 auto; padding: 96px var(--gutter) 64px; }
.doc .h2 { margin: 24px 0 16px; }
.doc .lead { margin-bottom: 48px; }
.doc h3 { font-size: 18px; font-weight: 500; letter-spacing: -.015em; margin: 0 0 8px; }
.doc section { border-top: 1px solid var(--line); padding: 24px 0 28px; display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.doc section p, .doc section li { color: var(--ink-2); font-size: 16px; }
.doc ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.doc code { font: 14px var(--font-mono); background: var(--panel); padding: 1px 5px; border-radius: 4px; }
.doc a { text-underline-offset: 3px; }
@media (max-width: 700px) { .doc { padding-top: 56px; } .doc section { grid-template-columns: 1fr; gap: 8px; } }

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .hero { padding: 48px 0 40px; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 28px; margin-top: 24px; }
  .lead { font-size: 18px; }
  .panel { border-radius: 16px; }
  .sec { padding-top: 88px; }
  .cta { margin-top: 88px; }
}

/* Compare, docs, changelog */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.doc-wide { max-width: 960px; }
.pill-link { text-decoration: none; }
.pill-link:hover { border-color: var(--ink); }
.cmp-wrap { border-top: 1px solid var(--ink); }
.cmp { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.cmp thead th { font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 18px; }
.cmp thead th:nth-child(2) { color: var(--ink); }
.cmp tbody th { font-weight: 500; width: 28%; }
.cmp td { color: var(--ink-2); width: 36%; }
.cmp td:nth-child(2) { color: var(--ink); }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 64px; }
.pick > div { border-top: 1px solid var(--ink); padding-top: 24px; }
.pick h3 { font-size: 20px; font-weight: 500; letter-spacing: -.015em; margin-bottom: 12px; }
.pick li { color: var(--ink-2); }
.note { margin-top: 48px; font-size: 13px; color: var(--muted); }
.note a { color: var(--muted); }
.doc .cmp-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); display: block; }
.cmp-list a { display: grid; grid-template-columns: 200px 1fr 24px; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.cmp-list b { font-size: 18px; font-weight: 500; letter-spacing: -.015em; }
.cmp-list span { color: var(--muted); }
.cmp-list i { font-style: normal; color: var(--faint); transition: transform .15s, color .15s; }
.cmp-list a:hover i { color: var(--ink); transform: translateX(3px); }
.cta-sm { margin-top: 32px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: -24px 0 40px; font-size: 15px; }
.toc a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.toc a:hover { color: var(--ink); border-color: var(--ink); }
.doc section > div > * + * { margin-top: 12px; }
.doc section[id] { scroll-margin-top: 80px; }
.code-sm pre { padding: 18px 20px; font-size: 13.5px; }
.doc section.log { grid-template-columns: 160px 1fr; }
.log time { padding-top: 4px; }
.log h3 { margin-bottom: 4px; }
@media (max-width: 700px) {
  .cmp { font-size: 14.5px; }
  .cmp thead { display: none; }
  .cmp tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .cmp th, .cmp td { display: block; width: auto; padding: 0; border: 0; }
  .cmp tbody th { grid-column: 1 / -1; width: auto; margin-bottom: 6px; }
  .cmp td::before { content: attr(data-l); display: block; font: 500 11px/1.6 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .pick { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; }
  .cmp-list a { grid-template-columns: 1fr 24px; gap: 4px 16px; }
  .cmp-list span { grid-column: 1; grid-row: 2; font-size: 15px; }
  .cmp-list i { grid-column: 2; grid-row: 1; }
  .doc section.log { grid-template-columns: 1fr; gap: 8px; }
}
