/* ==========================================================================
   Oye.cab marketing site
   One stylesheet, no framework, no external fonts: every byte is served from
   our own origin so the first paint does not wait on a third party.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f3;
  --bg-inset: #efefe9;
  --ink: #14141a;
  --ink-soft: #4a4a57;
  --ink-muted: #6c6c7a;
  --line: #e3e3dc;
  --line-strong: #cfcfc5;
  --accent: #ffc629;
  --accent-ink: #14141a;
  --accent-soft: #fff5d6;
  --focus: #1a56db;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1120px;
  --step: clamp(1rem, 0.9rem + 0.4vw, 1.0625rem);
  --shadow: 0 1px 2px rgba(20, 20, 26, .05), 0 12px 32px -20px rgba(20, 20, 26, .35);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d10;
    --bg-soft: #15151b;
    --bg-inset: #1c1c24;
    --ink: #f2f2ef;
    --ink-soft: #c3c3ce;
    --ink-muted: #9a9aa8;
    --line: #26262f;
    --line-strong: #383843;
    --accent: #ffc629;
    --accent-ink: #14141a;
    --accent-soft: #2a2415;
    --focus: #93b4ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -24px rgba(0, 0, 0, .8);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.021em; margin: 0 0 .5em; font-weight: 660; }
h1 { font-size: clamp(2.25rem, 1.5rem + 3.2vw, 3.75rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.35rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1rem; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: from-font; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; }
strong { font-weight: 640; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: .6rem 1rem; border-radius: 0 0 var(--radius) var(--radius); font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }
.icon-sprite { display: none; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.muted { color: var(--ink-muted); }
.lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--ink-soft); max-width: 62ch; }

/* --------------------------------------------------------------- header -- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg); /* fallback for browsers without color-mix() */
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 26px; width: auto; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--ink-soft); font-size: .95rem; font-weight: 520; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }

.nav-toggle {
  display: none; margin-left: auto; width: 2.75rem; height: 2.5rem;
  background: none; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  margin-inline: auto; position: relative; content: "";
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; inset: 4.25rem 0 auto; flex-direction: column;
    align-items: stretch; gap: .25rem; padding: 1rem 1.25rem 1.5rem;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: .75rem; justify-content: center; }
}

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .975rem; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .5rem 1rem; font-size: .9rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 84%, #000); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-muted); background: var(--bg-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.store-badges { display: flex; flex-wrap: wrap; gap: .75rem; }
.store-badge {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .6rem 1.15rem; border-radius: 12px; text-decoration: none;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  transition: transform .12s ease, opacity .12s ease;
}
.store-badge:hover { transform: translateY(-1px); opacity: .9; }
.store-badge span { display: flex; flex-direction: column; font-weight: 620; font-size: 1.02rem; line-height: 1.15; }
.store-badge small { font-size: .62rem; text-transform: uppercase; letter-spacing: .09em; opacity: .78; font-weight: 500; }
.store-badges-sm .store-badge { padding: .45rem .9rem; }
.store-badges-sm .store-badge span { font-size: .9rem; }

/* ----------------------------------------------------------- structure --- */

section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
section > .wrap > h2 { max-width: 20ch; }
.section-head { max-width: 62ch; margin-bottom: 2.5rem; }
.eyebrow {
  display: inline-block; margin-bottom: 1rem; font-size: .78rem; font-weight: 620;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink-muted);
}
.eyebrow::before { content: ""; display: inline-block; width: 1.6rem; height: 2px; background: var(--accent); margin-right: .6rem; vertical-align: middle; }
.tinted { background: var(--bg-soft); border-block: 1px solid var(--line); }
main.narrow { padding-block: 3rem; }

/* ------------------------------------------------------------------ hero - */

.hero { padding-top: clamp(3rem, 2rem + 5vw, 6rem); padding-bottom: clamp(2.5rem, 2rem + 3vw, 4rem); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: -40% -10% auto 40%; height: 130%;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%);
  z-index: -1; pointer-events: none;
}
.hero h1 { max-width: 16ch; }
.hero .lede { margin-bottom: 2rem; }
.hero-points { list-style: none; margin: 2.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--ink-soft); font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: .45rem; }
.hero-points li::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--accent); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stats div { background: var(--bg); padding: 1.5rem 1.4rem; }
.stats dt { font-size: .85rem; color: var(--ink-muted); margin-bottom: .35rem; }
.stats dd { margin: 0; font-size: 1.15rem; font-weight: 620; letter-spacing: -.01em; }

/* ------------------------------------------------------------------ cards */

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .965rem; }
.card-icon { margin-bottom: 1rem; }

.icon { width: 1.75rem; height: 1.75rem; display: block; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon .dot { stroke: var(--accent); }
.group-icon { width: 2rem; height: 2rem; margin-bottom: .9rem; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: start; }

/* ------------------------------------------------------------------ steps */

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.75rem; }
.steps > li { counter-increment: step; position: relative; padding-top: 3.2rem; }
.steps > li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 2.35rem; height: 2.35rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
  background: var(--accent); color: var(--accent-ink);
}
.steps h3 { margin-bottom: .35rem; }
.steps p { color: var(--ink-soft); margin: 0; font-size: .965rem; }

/* --------------------------------------------------------------- features */

.feature-group { padding-block: 0; margin-bottom: 3.5rem; }
.feature-group-head { max-width: 62ch; margin-bottom: 1.75rem; }
.feature-group-head h2 { margin-bottom: .35rem; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem 2rem; }
.feature-list > li { border-top: 2px solid var(--line); padding-top: .9rem; }
.feature-name { font-size: 1rem; margin-bottom: .3rem; }
.feature-list p { margin: 0; color: var(--ink-soft); font-size: .93rem; }

/* -------------------------------------------------------------------- faq */

.chip-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 2.5rem; }
.chip-nav a {
  display: inline-block; padding: .4rem .9rem; border: 1px solid var(--line-strong);
  border-radius: 999px; font-size: .88rem; text-decoration: none; color: var(--ink-soft);
}
.chip-nav a:hover { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }

.faq-group { padding-block: 0; margin-bottom: 3rem; }
.faq-group h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: flex-start; gap: 1rem; justify-content: space-between;
  padding: 1.15rem 0; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.faq-item summary::after {
  content: ""; flex: none; width: .7rem; height: .7rem; margin-top: .4rem;
  border-right: 2px solid var(--ink-muted); border-bottom: 2px solid var(--ink-muted);
  transform: rotate(45deg); transition: transform .18s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item[open] summary h3 { color: var(--ink); }
.faq-answer { padding: 0 0 1.35rem; max-width: 72ch; }
.faq-answer p { margin: 0; color: var(--ink-soft); }
.faq-item:target { background: var(--accent-soft); box-shadow: -1rem 0 0 var(--accent-soft), 1rem 0 0 var(--accent-soft); }

/* --------------------------------------------------------------- coverage */

.coverage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; max-width: 32rem; }
.coverage-list li {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: .85rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
}
.coverage-list .muted { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 34rem; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 620; background: var(--bg-soft); }
tbody tr:last-child td { border-bottom: 0; }

/* -------------------------------------------------------------------- cta */

.cta {
  border-radius: var(--radius-lg); padding: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  background: var(--ink); color: var(--bg); display: grid; gap: 1.5rem;
}
.cta h2 { max-width: 18ch; margin: 0; }
.cta p { color: color-mix(in srgb, var(--bg) 78%, var(--ink)); max-width: 54ch; margin: 0; }
.cta .store-badge { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cta .btn-ghost { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 40%, transparent); }
.cta .btn-ghost:hover { background: color-mix(in srgb, var(--bg) 12%, transparent); }

/* ----------------------------------------------------------------- prose - */

.prose { max-width: 74ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .5rem; }
.prose a { color: var(--ink); }
.updated { color: var(--ink-muted); font-size: .9rem; }

.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--bg-soft); border-radius: var(--radius);
  padding: 1.25rem 1.4rem; margin: 2rem 0;
}
.callout :last-child { margin-bottom: 0; }
.callout h3 { margin-top: 0; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; background: var(--bg); }
.contact-card p { color: var(--ink-soft); font-size: .95rem; }
.contact-card a.email { font-weight: 620; color: var(--ink); font-size: 1.05rem; }

/* ---------------------------------------------------------------- footer - */

.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding-block: 3.5rem 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 2.5rem; }
.footer-brand img { height: 26px; width: auto; }
.footer-brand p { margin: 1rem 0; color: var(--ink-soft); max-width: 34ch; font-size: .95rem; }
.footer-col h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-muted); margin-bottom: .9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a { text-decoration: none; color: var(--ink-soft); font-size: .95rem; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between;
  color: var(--ink-muted); font-size: .875rem;
}
.footer-legal p { margin: 0; }

/* ------------------------------------------------------------------- 404 - */

.notfound { min-height: 52vh; display: grid; place-content: center; text-align: center; }
.notfound .btn-row { justify-content: center; }

/* ================================================================== content
   Guides, tutorials, support articles and the blog. Same visual language as
   the marketing pages - no second design system for the editorial side.
   ========================================================================== */

.hero-sm { padding-block: 3.5rem 2rem; }
.hero-sm h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem); }
.section-tight { padding-block: 1.25rem; }
.section-tight .chip-nav ul { margin-bottom: 0; }

.eyebrow-icon { width: 1rem; height: 1rem; vertical-align: -2px; margin-right: .35rem; }
.eyebrow:has(.eyebrow-icon)::before { display: none; }

/* ------------------------------------------------------------- breadcrumbs */

.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .875rem; margin-bottom: 1.25rem; color: var(--ink-muted); }
.crumbs a { text-decoration: none; color: var(--ink-muted); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ------------------------------------------------------------------ chips */

.chip {
  display: inline-block; padding: .2rem .6rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-inset);
  font-size: .78rem; font-weight: 560; color: var(--ink-soft);
  text-decoration: none; line-height: 1.6;
}
a.chip:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.chip-section { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.chip-draft { background: transparent; border-style: dashed; }
.chip-nav-tags a { font-size: .82rem; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }

/* ------------------------------------------------------------ article grid */

.article-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.article-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; background: var(--bg); display: flex; flex-direction: column;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.article-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.article-card-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.article-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.article-card h3 a { text-decoration: none; }
.article-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.article-card p { color: var(--ink-soft); font-size: .95rem; }
.article-card-date { margin-top: auto; margin-bottom: 0; padding-top: .75rem; color: var(--ink-muted); font-size: .82rem; }

/* --------------------------------------------------------------- an article */

.prose-page { padding-block: 2.5rem 1rem; }
.prose-head { max-width: 74ch; margin-bottom: 2.5rem; }
.prose-head h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem); margin-bottom: .75rem; }
.prose-date { color: var(--ink-muted); font-size: .875rem; margin-top: 1rem; }
.prose-foot { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* The contents list sits beside the article on wide screens and above it on
   narrow ones, where a sticky sidebar would eat most of the viewport. */
.prose-body { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 62rem) {
  .prose-body:has(.toc) { grid-template-columns: minmax(0, 74ch) 15rem; }
  .toc { position: sticky; top: 5.5rem; order: 2; }
}
.toc {
  border-left: 2px solid var(--line); padding-left: 1rem;
  font-size: .9rem;
}
.toc h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-muted); margin-bottom: .75rem; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.toc a { text-decoration: none; color: var(--ink-soft); }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.toc-sub { padding-left: .9rem; font-size: .85rem; }

.prose > :first-child { margin-top: 0; }
.prose blockquote {
  margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem;
  border-left: 3px solid var(--accent); color: var(--ink-soft);
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .9em; background: var(--bg-inset); padding: .1rem .35rem; border-radius: 6px;
}
.prose pre {
  background: var(--bg-inset); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; overflow-x: auto;
}
.prose pre code { background: none; padding: 0; }
.prose hr { margin: 2.5rem 0; }
.prose img { border-radius: var(--radius); }
