/* OGMint design system — mint paper workshop, ink artifacts */

@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "InterVar";
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "InterVar";
  src: url("/fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "InterVar";
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "MonoVar";
  src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "FrauncesItalic";
  src: url("/fonts/fraunces-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f2f4f1;
  --paper-2: #e9eee9;
  --panel: #ffffff;
  --ink: #0b1120;
  --ink-soft: #3c4657;
  --muted: #66707f;
  --mint: #2dd4a7;
  --mint-deep: #0b8d68;
  --mint-wash: rgba(45, 212, 167, 0.12);
  --line: rgba(11, 17, 32, 0.12);
  --line-soft: rgba(11, 17, 32, 0.07);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 17, 32, 0.05), 0 12px 32px -12px rgba(11, 17, 32, 0.18);
  --font-display: "Bricolage", "InterVar", system-ui, sans-serif;
  --font-body: "InterVar", system-ui, -apple-system, sans-serif;
  --font-mono: "MonoVar", ui-monospace, "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(11, 17, 32, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--mint); color: var(--ink); }

a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
input, select { font: inherit; }

:focus-visible {
  outline: 2px solid var(--mint-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- chip motif: the square dot that lives on every card ---------- */
.chip-dot {
  width: 12px; height: 12px; border-radius: 3.5px;
  background: var(--mint);
  display: inline-block;
  flex: none;
}

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 244, 241, 0.97);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
}
.wordmark {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 800; font-size: 21px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-links {
  display: flex; gap: 22px; margin-left: auto;
  align-items: center;
}
.nav-links a {
  text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); }

/* ---------- buttons: pills, echoing the watermark badge ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 600; font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary .chip-dot { width: 9px; height: 9px; border-radius: 3px; }
.btn-primary:hover { box-shadow: 0 6px 20px -6px rgba(11, 17, 32, 0.45); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--panel); }
.btn-mint { background: var(--mint-deep); color: #fff; }
.btn-mint:hover { box-shadow: 0 6px 20px -6px rgba(11, 141, 104, 0.55); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 72px; }
.hero-grid {
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px;
  align-items: center;
}
h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 22px 0 20px;
}
h1 .minted {
  font-family: "FrauncesItalic", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--mint-deep);
  position: relative;
  white-space: nowrap;
}
h1 .minted::after {
  content: "";
  position: absolute; left: 2%; right: 2%; bottom: 0.02em;
  height: 0.09em;
  background: var(--mint);
  z-index: -1;
}
.hero-sub {
  font-size: 18.5px; color: var(--ink-soft); max-width: 46ch;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.metaline {
  margin-top: 34px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: #c7d0dd;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--font-mono); font-size: 12.5px;
  display: flex; align-items: center; gap: 12px;
  overflow-x: auto;
  white-space: nowrap;
}
.metaline .tag { color: #7c8ba1; }
.metaline .attr { color: var(--mint); }
.metaline-copy {
  margin-left: auto; flex: none;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  color: #e6ebf2; border-radius: 7px; padding: 5px 12px; font-size: 12px; font-family: var(--font-body); font-weight: 600;
}
.metaline-copy:hover { background: rgba(255,255,255,0.16); }

/* the live hero card */
.cardframe {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.cardframe img {
  border-radius: 10px;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  background: var(--paper-2);
  transition: opacity 0.25s ease;
}
.cardframe img.loading { opacity: 0.45; }
.hero-tryline {
  display: flex; gap: 10px; margin-top: 14px; align-items: center;
}
.hero-tryline input[type="text"] {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 15px;
  background: var(--paper);
  color: var(--ink);
  min-width: 0;
}
.hero-tryline input::placeholder { color: var(--muted); }
.hero-hint {
  margin-top: 10px; font-size: 13px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--mint-deep);
  animation: pulse 2.4s ease infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- sections ---------- */
section { padding: 76px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 16px 0 14px;
}
.section-sub { color: var(--ink-soft); font-size: 17px; }

/* ---------- template gallery ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.gallery a {
  text-decoration: none;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  padding: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: block;
}
.gallery a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery img {
  border-radius: 8px; width: 100%; height: auto;
  aspect-ratio: 1200 / 630; object-fit: cover;
  background: var(--paper-2);
}
.gallery .g-label {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 6px 4px;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.gallery .g-label span.desc { color: var(--muted); font-weight: 400; }
.render-note {
  margin-top: 26px;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink-soft);
  font-family: var(--font-mono);
}

/* ---------- playground ---------- */
.playground {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 34px;
  display: grid; grid-template-columns: 380px 1fr; gap: 34px;
}
.pg-form { display: flex; flex-direction: column; gap: 16px; }
.pg-field label {
  display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px;
  font-family: var(--font-mono);
}
.pg-field input[type="text"], .pg-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 15px;
  background: var(--paper);
  color: var(--ink);
}
.pg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.swatches { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.swatch {
  width: 30px; height: 30px; border-radius: 9px;
  border: 2px solid transparent;
  padding: 0;
}
.swatch[aria-pressed="true"] { border-color: var(--ink); }
.swatch-custom {
  width: 30px; height: 30px; border-radius: 9px; border: 1px dashed var(--line);
  background: transparent; padding: 0; overflow: hidden;
}
.swatch-custom input { width: 42px; height: 42px; margin: -6px; border: 0; padding: 0; cursor: pointer; background: none; }
.theme-toggle { display: flex; gap: 8px; }
.theme-toggle button {
  flex: 1; border: 1px solid var(--line); background: var(--paper);
  border-radius: 10px; padding: 9px 0; font-size: 14px; font-weight: 600; color: var(--ink-soft);
}
.theme-toggle button[aria-pressed="true"] {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}

.pg-preview { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pg-preview img {
  width: 100%; height: auto; border-radius: 12px;
  aspect-ratio: 1200 / 630; object-fit: cover;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  transition: opacity 0.25s ease;
}
.pg-preview img.loading { opacity: 0.45; }
.urlbox {
  display: flex; gap: 10px; align-items: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); padding: 10px 12px;
}
.urlbox code {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft);
  overflow-x: auto; white-space: nowrap; flex: 1;
  scrollbar-width: none;
}
.pg-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pg-error {
  border: 1px solid rgba(206, 84, 55, 0.4);
  background: rgba(226, 114, 91, 0.12);
  color: #99341c;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
}

/* key panel inside playground */
.keypanel {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--mint-wash);
}
.keypanel p { font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; }
.keypanel form { display: flex; gap: 10px; }
.keypanel input[type="email"] {
  flex: 1; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px; font-size: 14.5px; background: #fff; min-width: 0;
}
.keypanel .keyshow {
  font-family: var(--font-mono); font-size: 13px;
  background: var(--ink); color: var(--mint);
  border-radius: 8px; padding: 10px 12px;
  overflow-x: auto; white-space: nowrap;
}

/* ---------- how it works / snippets ---------- */
.snippet-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.snippet-tabs button {
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  border-radius: 999px; padding: 7px 16px; font-size: 13.5px; font-weight: 600;
}
.snippet-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.codeblock {
  background: var(--ink); color: #dde4ee;
  border-radius: var(--radius);
  padding: 20px 22px;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.7;
  overflow-x: auto;
}
.codeblock .c { color: #64748b; }
.codeblock .g { color: var(--mint); }
.codeblock .y { color: #fbbf24; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.step {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 22px;
}
.step .s-title { font-weight: 600; font-size: 16px; display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: 18px;
  padding: 28px; display: flex; flex-direction: column; gap: 6px;
}
.price-card.featured { border: 2px solid var(--mint-deep); position: relative; }
.price-card .ribbon {
  position: absolute; top: -13px; left: 24px;
  background: var(--mint-deep); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  padding: 4px 12px; border-radius: 999px;
}
.price-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.price-card .price { font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: -0.03em; margin: 4px 0 2px; }
.price-card .price span { font-size: 15px; font-weight: 500; color: var(--muted); font-family: var(--font-body); letter-spacing: 0; }
.price-card ul { list-style: none; margin: 14px 0 22px; display: flex; flex-direction: column; gap: 9px; }
.price-card li { font-size: 14.5px; color: var(--ink-soft); display: flex; gap: 9px; align-items: baseline; }
.price-card li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--mint); flex: none; position: relative; top: -1px; }
.price-card .btn { margin-top: auto; justify-content: center; }
.beta-note {
  margin-top: 24px; font-size: 14.5px; color: var(--ink-soft);
  background: var(--mint-wash); border: 1px dashed var(--line);
  border-radius: 12px; padding: 14px 18px;
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details {
  border-bottom: 1px solid var(--line-soft);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 16.5px;
  padding: 16px 0; list-style: none;
  display: flex; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; font-family: var(--font-mono); color: var(--mint-deep);
  font-size: 18px; width: 18px; flex: none;
}
.faq details[open] summary::before { content: "–"; }
.faq details p { padding: 0 0 18px 30px; color: var(--ink-soft); font-size: 15.5px; max-width: 62ch; }
.faq details p a { color: var(--mint-deep); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 44px 0 60px;
  margin-top: 40px;
}
.footer-inner { display: flex; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-inner .fnote { font-size: 13.5px; color: var(--muted); max-width: 34ch; margin-top: 10px; }
.footer-links { display: flex; gap: 26px; margin-left: auto; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* ---------- docs page ---------- */
.docs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding: 56px 0 90px; }
.docs-nav { position: sticky; top: 92px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.docs-nav a {
  text-decoration: none; font-size: 14px; color: var(--ink-soft);
  padding: 6px 10px; border-radius: 8px;
}
.docs-nav a:hover { background: var(--panel); color: var(--ink); }
.docs-body { min-width: 0; }
.docs-body h1 { font-size: clamp(34px, 4vw, 48px); margin-top: 0; }
.docs-body h2 { font-size: 26px; margin-top: 52px; padding-top: 8px; }
.docs-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 30px 0 10px; }
.docs-body p { color: var(--ink-soft); margin: 12px 0; max-width: 68ch; }
.docs-body p code, .docs-body li code, .docs-body td code {
  font-family: var(--font-mono); font-size: 0.85em;
  background: var(--paper-2); border: 1px solid var(--line-soft);
  padding: 1.5px 6px; border-radius: 6px;
}
.docs-body .codeblock { margin: 18px 0; }
.docs-body table {
  width: 100%; border-collapse: collapse; margin: 18px 0;
  font-size: 14.5px;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px;
  overflow: hidden;
}
.docs-body th, .docs-body td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.docs-body th {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-soft); background: var(--paper-2);
}
.docs-body tr:last-child td { border-bottom: 0; }
.docs-body ul { margin: 12px 0 12px 22px; color: var(--ink-soft); }
.docs-body li { margin: 6px 0; }

/* ---------- prose pages (terms/privacy) ---------- */
.prose { max-width: 720px; padding: 56px 0 90px; }
.prose h1 { font-size: 38px; }
.prose h2 { font-size: 22px; margin-top: 36px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 15.5px; }
.prose ul { margin: 12px 0 12px 22px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: var(--paper);
  border-radius: 999px; padding: 11px 22px; font-size: 14px; font-weight: 600;
  transition: transform 0.25s ease; z-index: 100;
  display: flex; align-items: center; gap: 9px;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .playground { grid-template-columns: 1fr; padding: 22px; }
  .steps { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; gap: 24px; }
  .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .gallery { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 56px 0 40px; }
  section { padding: 56px 0; }
}
