/* Obra Write — marketing one-pager.
   Dark-mode only, matching the Obra product-site design language: an artboard
   column on a darker canvas, hairline rails, squared cells, pill buttons.
   Adapted from obra-intellij/sites/_shared/screen.css. */

:root {
  color-scheme: dark;
  --fg: #e8e8e8;
  --muted: #9a9a9a;
  --bg: #141414;
  --accent: #ffffff;
  --accent-hover: #cccccc;
  --border: #2a2a2a;
  --code-bg: #1f1f1f;
  --btn-fg: #141414;
  --max: 720px;

  /* Layout: one full-bleed surface. Dividers run edge to edge; the content
     inside each section is centred and capped. */
  --page: 1080px;        /* max width of centred section content */
  --reading: 720px;      /* narrower cap for prose blocks */
  --gutter: 24px;        /* minimum side padding at small widths */
  --canvas-line: rgba(255, 255, 255, 0.16);

  /* One warm accent, used sparingly, to keep the page from being pure greyscale.
     Obra's amber "draft" hue, borrowed from the app itself. */
  --spark: #e8a33d;
  --spark-wash: rgba(232, 163, 61, 0.1);
  --spark-edge: rgba(232, 163, 61, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
}

/* One full-bleed surface. */
main {
  position: relative;
  background: var(--bg);
}

/* Every top-level block spans the full width, but its content sits in a centred
   column capped at --page — so the section dividers reach the viewport edges
   while text and grids stay contained and readable. */
main > * {
  padding-left: max(var(--gutter), calc((100% - var(--page)) / 2));
  padding-right: max(var(--gutter), calc((100% - var(--page)) / 2));
}

/* Full-bleed divider between sections — no side padding, runs edge to edge. */
.rule {
  height: 0;
  border: 0;
  border-top: 1px solid var(--canvas-line);
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

section {
  padding-top: 64px;
  padding-bottom: 64px;
}

/* Keep prose to a comfortable measure even though the column is wide. The
   notify card centres its own content, so leave it out. */
section:not(.notify) > p,
section:not(.notify) > h2,
section:not(.notify) > h3,
section:not(.notify) > .eyebrow,
section:not(.notify) > .lede,
.faq details {
  max-width: var(--reading);
}

/* --- Type ---------------------------------------------------------------- */

h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 22px;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 17px;
  margin: 0 0 6px;
}

p {
  margin: 0 0 12px;
}

.lede {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
}

code {
  background: var(--code-bg);
  padding: 1px 5px;
  font-size: 14px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

kbd {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  padding: 1px 6px;
  font-size: 13px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--fg);
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  padding-top: 88px;
  padding-bottom: 36px;
}

/* Hero text stays a readable measure; the screenshot below carries the width. */
.hero > .marks,
.hero > .badge,
.hero > h1,
.hero > .lede,
.hero > .cta-row {
  max-width: var(--reading);
}

.marks {
  margin: 0 0 24px;
  line-height: 0;
}

/* Just the macOS app icon. The squircle and its transparent corners are baked
   into the PNG, so no border-radius here. */
.marks .app-mark {
  display: block;
  width: 120px;
  height: 120px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.price {
  color: var(--muted);
  font-size: 15px;
}

/* Buttons are pill; containers are squared. */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--btn-fg);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

/* --- Hero screenshot ----------------------------------------------------- */

/* The screenshot runs a little wider than the text column for emphasis. */
.shot {
  margin: 0;
  padding-top: 8px;
  padding-bottom: 12px;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.8);
}

.figcaption {
  margin: 0;
  padding-top: 4px;
  padding-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* --- Connect pipeline (the differentiator) ------------------------------- */

.pipeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--canvas-line);
  border: 1px solid var(--canvas-line);
  margin: 0 0 16px;
}

.pipeline .step {
  background: var(--bg);
  padding: 22px 20px;
  position: relative;
}

.pipeline .step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--spark-edge);
  background: var(--spark-wash);
  color: var(--spark);
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 12px;
}

.pipeline .step h3 {
  margin: 0 0 6px;
}

.pipeline .step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.pipeline .step p code {
  font-size: 13px;
}

@media (min-width: 720px) {
  .pipeline {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.connect-note {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* --- Feature grid -------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--canvas-line);
  border: 1px solid var(--canvas-line);
}

.feature-grid > .feature {
  background: var(--bg);
  padding: 20px;
}

@media (min-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.feature--filler {
  min-height: 0;
}

/* --- "Works with" list (static site generators) -------------------------- */

.stack ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack li {
  background: var(--code-bg);
  padding: 6px 12px;
  font-size: 14px;
  color: var(--fg);
}

.stack-note {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* --- Notify (coming-soon CTA) -------------------------------------------- */

.notify {
  border: 1px solid var(--canvas-line);
  background: rgba(255, 255, 255, 0.02);
  padding: 28px 24px;
  text-align: center;
}

.notify h2 {
  margin: 0 0 8px;
}

.notify p {
  color: var(--muted);
  max-width: 44ch;
  margin: 0 auto 18px;
}

.notify .btn {
  margin: 0 auto;
}

.badge {
  display: inline-block;
  border: 1px solid var(--spark-edge);
  background: var(--spark-wash);
  color: var(--spark);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  margin: 0 0 14px;
}

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

.faq details {
  border-top: 1px solid var(--border);
  padding: 14px 0;
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 24px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: 10px 0 4px;
  color: var(--muted);
  font-size: 15px;
}

.faq a {
  color: var(--accent);
}

/* --- Footer -------------------------------------------------------------- */

footer {
  padding: 32px 24px;
  border-top: 1px solid var(--canvas-line);
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

footer p {
  margin: 0;
}

footer p + p {
  margin-top: 8px;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.siblings {
  color: var(--muted);
  font-size: 0.85rem;
}

.heart {
  color: var(--spark);
}
