
:root {
  color-scheme: dark;
  --bg: #0b0f1a;
  --surface: #151b2b;
  --text: #e8ecf5;
  --muted: #9aa4b8;
  --brand: #7c5cff;
  --accent: #22d3ee;
  --soft-purple: #c6b4ff;
  --line: #303852;
  --radius: 14px;
  --heading: "Space Grotesk", Inter, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 Inter, system-ui, sans-serif;
}
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
button, a, summary, select { -webkit-tap-highlight-color: #7c5cff33; }
a { color: var(--soft-purple); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }
p { margin: 0 0 16px; max-width: 70ch; }
h1, h2, h3, h4 { margin: 0; font-family: var(--heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.5rem, 3.3vw, 2rem); letter-spacing: -.035em; }
h3 { font-size: 22px; letter-spacing: -.024em; }
h4 { font-size: 18px; }
section[id] { scroll-margin-top: 28px; }
.site-wrap { width: min(calc(100% - 48px), 1120px); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; transform: translateY(-150%); padding: 8px 16px; background: var(--surface); }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid #28304a; background: #0e1320; }
.header-row, .footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  min-height: 66px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--heading);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.03em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark svg { width: 32px; height: 32px; display: block; }
.site-nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-nav a, .site-footer nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
.site-nav a:hover, .site-footer nav a:hover { color: #fff; text-decoration: underline; }
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.action-main { background: #6848e4; color: #fff; }
.action-main:not(:disabled):hover { background: #5839cb; }
.action-line { border-color: #626393; background: transparent; color: var(--text); }

.action-line:hover { background: #332754; border-color: var(--soft-purple); }


#main { min-height: calc(100vh - 180px); }
.studio-page { padding: 40px 0 64px; }
.studio-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 24px;
}
.studio-heading p { margin: 0; color: var(--muted); }
.editorial-section { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.section-intro { margin-bottom: 24px; }
.section-intro h2 { margin-bottom: 8px; }
.section-intro p { margin: 0; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.steps li { padding: 16px 0 0; border-top: 2px solid #6553a5; }
.steps p, .prompt-example p, .orbit-example p, .faq-entry p { margin: 8px 0 0; color: var(--muted); }
.example-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: start; }
.orbit-example {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.orbit-example img { width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: cover; }
.orbit-example figcaption { display: grid; justify-items: start; gap: 12px; padding: 24px; }
.orbit-example p { margin: 0; }
.prompt-examples > h3 { margin-bottom: 12px; }
.prompt-example { padding: 16px 0; border-bottom: 1px solid var(--line); }
.prompt-example button { margin-top: 8px; }
.faq-items { max-width: 780px; }
.faq-entry { border-bottom: 1px solid var(--line); }
.faq-entry summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px 0;
  font-weight: 600;
  list-style: none;
}
.faq-entry summary::-webkit-details-marker { display: none; }
.faq-entry summary:hover { color: var(--soft-purple); }
.faq-entry p { margin-top: 0; padding-bottom: 16px; }
.faq-plus { position: relative; flex: 0 0 16px; width: 16px; height: 16px; color: var(--soft-purple); }
.faq-plus::before, .faq-plus::after { position: absolute; content: ""; top: 7px; left: 1px; width: 14px; height: 2px; background: currentColor; }
.faq-plus::after { transform: rotate(90deg); }
.faq-entry[open] .faq-plus::after { transform: none; }
.site-footer { border-top: 1px solid var(--line); background: #0e1320; }
.footer-row { padding-block: 16px; }
.footer-brand { color: var(--text); text-decoration: none; font-family: var(--heading); font-weight: 700; }
.copyright { margin-left: 12px; color: var(--muted); font-size: 14px; }


.legal-wrap { padding: 40px 0 64px; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--muted); font-size: 14px; }
.legal-content { max-width: 784px; margin-inline: auto; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.effective-date { color: var(--muted); margin-top: 12px; font-size: 14px; }
.legal-content h2 { margin: 32px 0 8px; font-size: 22px; }
.legal-content p, .legal-content li { color: #c9d1e2; }
.legal-content ul { padding-left: 24px; }
.account-removal { margin-top: 16px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.account-removal[open] summary { margin-bottom: 8px; }
.account-removal form { display: grid; justify-items: start; gap: 8px; }
@media (max-width: 840px) {
  .header-row, .footer-row { padding-block: 12px; }
  .studio-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 700px) {
  .site-wrap { width: calc(100% - 32px); }
  .studio-page { padding: 28px 0 48px; }
  .studio-heading { margin-bottom: 16px; }
  .editorial-section { margin-top: 40px; padding-top: 28px; }
  .steps, .example-layout { grid-template-columns: 1fr; gap: 16px; }
  .steps li { border-top: 0; border-left: 2px solid #6553a5; padding: 0 0 0 12px; }
  .footer-row, .site-header .header-row { align-items: flex-start; }
  .legal-content { padding: 24px; }
}
@media (max-width: 470px) {
  .site-header .header-row { flex-wrap: wrap; }
  .site-header .site-nav { gap: 8px 16px; width: 100%; }
  .site-nav a { line-height: 2; }
  .orbit-example figcaption { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


.related-tools { margin: 24px 0 0; color: var(--muted); }
.usage-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 32px; }
.usage-details > div { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.usage-details h3 { margin-bottom: 12px; }
.usage-details p { color: var(--muted); }
.usage-details p:last-child { margin-bottom: 0; }
.tool-article { color: #c9d1e2; max-width: 860px; }
.tool-article h2 { color: var(--text); margin: 36px 0 12px; }
.tool-article h2:first-child { margin-top: 0; }
.tool-article ol { padding-left: 24px; margin-bottom: 22px; max-width: 72ch; }
.tool-article li + li { margin-top: 8px; }
.local-tool-page .breadcrumbs { margin-bottom: 20px; }
@media (max-width: 700px) { .usage-details { grid-template-columns: 1fr; gap: 12px; } }
