/* Product Tabs Studio — site stylesheet.
   One file, no build step, no external requests. */

:root {
  color-scheme: light dark;

  --bg:        #ffffff;
  --bg-alt:    #f5f8f8;
  --bg-code:   #f1f4f5;
  --fg:        #16232b;
  --fg-muted:  #4c5c66;
  --border:    #d7e0e3;
  --border-strong: #b9c6cb;
  --accent:    #0f6b60;
  --accent-hover: #0a534b;
  --on-accent: #ffffff;
  --note-bg:   #eef5f4;
  --note-bd:   #0f6b60;
  --warn-bg:   #fdf3e3;
  --warn-bd:   #a86612;
  --shadow:    0 1px 2px rgba(22, 59, 94, .08);

  --measure: 68ch;
  --radius: 8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #10171a;
    --bg-alt:    #161f23;
    --bg-code:   #1b262b;
    --fg:        #e7eef1;
    --fg-muted:  #a9b8bf;
    --border:    #2a363c;
    --border-strong: #3d4c53;
    --accent:    #5bd0c0;
    --accent-hover: #8ae2d5;
    --on-accent: #06231f;
    --note-bg:   #14241f;
    --note-bd:   #5bd0c0;
    --warn-bg:   #2a2113;
    --warn-bd:   #e0a94f;
    --shadow:    none;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

/* ---------- links, focus ---------- */

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg);
  color: var(--fg);
  padding: .6rem 1rem;
  border: 2px solid var(--accent);
  z-index: 10;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: 62rem; margin: 0 auto; padding: 0 1rem; }

main { display: block; padding-bottom: 3rem; }

section { margin: 2.75rem 0; }

.prose { max-width: var(--measure); }

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

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  font-size: 1.02rem;
}
.brand img { display: block; width: 28px; height: 28px; border-radius: 6px; }
.brand:hover { color: var(--fg); text-decoration: underline; }

.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.1rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--fg-muted);
  text-decoration: none;
  padding: .2rem 0;
  display: inline-block;
}
.site-nav a:hover { color: var(--accent); text-decoration: underline; }
.site-nav a[aria-current="page"] {
  color: var(--fg);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* ---------- headings ---------- */

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6rem; font-weight: 650; }
h1 { font-size: 2rem; letter-spacing: -.01em; margin-top: 2rem; }
h2 { font-size: 1.4rem; margin-top: 2.4rem; }
h3 { font-size: 1.12rem; margin-top: 1.8rem; }
h4 { font-size: 1rem; margin-top: 1.4rem; }

@media (min-width: 46rem) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.55rem; }
}

p, ul, ol, dl { margin: 0 0 1rem; }
li { margin-bottom: .35rem; }
li > ul, li > ol { margin-top: .35rem; }

.lead { font-size: 1.12rem; color: var(--fg-muted); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .76rem;
  font-weight: 700;
  color: var(--fg-muted);
  margin: 0 0 .4rem;
}

hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

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

.hero { padding: 1rem 0 .5rem; }
.hero h1 { margin-top: 1rem; }
.hero .lead { max-width: var(--measure); }

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

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }

.btn {
  display: inline-block;
  padding: .6rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  font-size: .98rem;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }

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

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  padding: 0;
  margin: 1.25rem 0;
  list-style: none;
}
@media (min-width: 42rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .cards.three { grid-template-columns: repeat(3, 1fr); } }

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  background: var(--bg-alt);
  box-shadow: var(--shadow);
  margin: 0;
}
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

/* ---------- callouts ---------- */

.note, .warn {
  border-left: 4px solid var(--note-bd);
  background: var(--note-bg);
  padding: .85rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0;
  max-width: var(--measure);
}
.warn { border-left-color: var(--warn-bd); background: var(--warn-bg); }
.note p:last-child, .warn p:last-child { margin-bottom: 0; }
.note > :first-child, .warn > :first-child { margin-top: 0; }

/* ---------- code ---------- */

code, kbd, pre, samp {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .9em;
}
code {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .06em .32em;
  overflow-wrap: break-word;
}
pre {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  overflow-x: auto;
  margin: 0 0 1.25rem;
}
pre code { background: none; border: 0; padding: 0; }

/* ---------- tables ---------- */

.tablewrap { overflow-x: auto; margin: 0 0 1.5rem; }
table { border-collapse: collapse; width: 100%; min-width: 32rem; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid var(--border); }
thead th { border-bottom: 2px solid var(--border-strong); font-weight: 650; }
tbody tr:nth-child(even) { background: var(--bg-alt); }
caption { text-align: left; color: var(--fg-muted); padding-bottom: .5rem; font-size: .92rem; }

/* ---------- figures / screenshots ---------- */

figure { margin: 1.5rem 0; }
figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
}
figcaption {
  color: var(--fg-muted);
  font-size: .9rem;
  margin-top: .5rem;
  max-width: var(--measure);
}

.shots { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .shots { grid-template-columns: repeat(2, 1fr); } }
.shots figure { margin: 0; }

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

ol.steps { padding-left: 1.3rem; max-width: var(--measure); }
ol.steps > li { margin-bottom: .8rem; }

/* ---------- FAQ ---------- */

.faq h3 { margin-top: 1.9rem; }
.faq p { max-width: var(--measure); }

/* ---------- table of contents ---------- */

nav.toc {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
  max-width: var(--measure);
}
nav.toc h2 { font-size: 1rem; margin: 0 0 .5rem; }
nav.toc ul { margin: 0; padding-left: 1.1rem; }

/* ---------- breadcrumb ---------- */

.crumbs { font-size: .9rem; color: var(--fg-muted); margin: 1.25rem 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--border-strong); }

/* ---------- key/value list ---------- */

dl.kv { display: grid; grid-template-columns: 1fr; gap: 0 1rem; max-width: var(--measure); }
@media (min-width: 40rem) { dl.kv { grid-template-columns: 12rem 1fr; } }
dl.kv dt { font-weight: 650; }
dl.kv dd { margin: 0 0 .6rem; color: var(--fg-muted); }

/* ---------- forms ---------- */

form.waitlist { max-width: 30rem; margin: 1.25rem 0; }
form.waitlist label { display: block; font-weight: 600; margin-bottom: .3rem; }
form.waitlist input[type="email"], form.waitlist textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: .55rem .7rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  margin-bottom: .9rem;
}
form.waitlist .hint { font-size: .9rem; color: var(--fg-muted); margin: -.55rem 0 .9rem; }
form.waitlist button { font: inherit; cursor: pointer; }

/* ---------- pricing ---------- */

.price { font-size: 1.5rem; font-weight: 650; margin: .25rem 0 .1rem; }
.price small { display: block; font-size: .85rem; font-weight: 400; color: var(--fg-muted); }
.badge {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .15rem .5rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--fg-muted);
  vertical-align: middle;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--fg-muted);
  font-size: .93rem;
  padding: 1.75rem 0;
  margin-top: 3rem;
}
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin: 0 0 .75rem; padding: 0; }
.site-footer p { margin: 0; max-width: var(--measure); }

/* ---------- quoted UI message ---------- */

blockquote.note, blockquote.warn { margin-left: 0; margin-right: 0; }
blockquote.warn p { font-style: normal; }
