/* pictaria.ai — marketing site design system.
   Light-first (David's call, 2026-07-22); palette derived from the
   admin UI's light theme in pictaria-server/public/pictaria.css so the
   site reads as the product's public-facing sibling. The mosaic
   butterfly is the only decorative element. */

:root {
  color-scheme: light;
  --bg: #f7f9fb;
  --panel: #ffffff;
  --tint: #e9f5f3;          /* soft teal wash for strips + shot placeholders */
  --ink: #17202b;
  --muted: #5d6b7a;
  --line: #dde4ec;
  --accent: #0d9488;
  --accent-hover: #0b7a70;
  --accent-ink: #ffffff;
  --gold: #b45309;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 14px 40px rgba(23, 32, 43, 0.10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --page-w: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.wrap { max-width: var(--page-w); margin: 0 auto; padding: 0 22px; }

/* ---- Header ---- */
.s-top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247, 249, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.s-top-inner {
  max-width: var(--page-w); margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; gap: 26px;
  /* Constant height whether or not a page carries the pill CTA (its
     40px is the tallest child) — no jump when navigating. */
  min-height: 68px;
}
.s-brand { display: inline-flex; align-items: center; gap: 9px; }
/* Wordmark only in the header, matching the server admin UI — the
   butterfly stays the hero's moment. Delete to bring it back. */
.s-brand .s-mark { display: none; }
.s-brand .s-word { height: 19px; width: auto; display: block; }
/* Products (Frame, Server) sit left by the brand; utility links (Docs,
   Support) push right and mute slightly — the products are the story.
   Split is positional: link 3+ = utility (nav order is identical on
   every page: Frame · Server · Docs · Support). */
.s-nav { display: flex; gap: 38px; margin-left: 14px; flex: 1; align-items: center; }
.s-nav a { color: var(--ink); font-weight: 650; font-size: 15.5px; }
.s-nav a:nth-child(3) { margin-left: auto; }
.s-nav a:nth-child(n+3) { color: var(--muted); font-weight: 600; }
.s-nav a:hover { color: var(--accent); text-decoration: none; }
.s-nav a.active { color: var(--accent); }
.s-top-grow { flex: 0; }
.s-top-cta {
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
  font-size: 15px; padding: 8px 16px; border-radius: 999px; white-space: nowrap;
}
.s-top-cta:hover { background: var(--accent-hover); text-decoration: none; }
@media (max-width: 700px) {
  .s-top-inner { gap: 14px; padding: 12px 16px; min-height: 56px; }
  .s-nav { gap: 16px; margin-left: 6px; }
  .s-nav a { font-size: 14.5px; }
  .s-top-cta { display: none; }
  .s-brand .s-word { height: 17px; }
}

/* ---- Hero ---- */
.hero { padding: 84px 0 64px; text-align: center; }
.hero .lockup { display: inline-flex; align-items: center; gap: 22px; margin-bottom: 34px; }
.hero .lockup img.mark { height: 116px; width: auto; }
.hero .lockup img.word { height: 82px; width: auto; }
@media (max-width: 700px) {
  .hero .lockup { gap: 14px; }
  .hero .lockup img.mark { height: 72px; }
  .hero .lockup img.word { height: 51px; }
}
h1 {
  font-size: clamp(34px, 5.4vw, 54px); line-height: 1.12; letter-spacing: -0.6px;
  font-weight: 800; margin: 0 auto 18px; max-width: 17em; text-wrap: balance;
}
.hero .sub {
  font-size: clamp(17px, 2.2vw, 20px); color: var(--muted);
  max-width: 38em; margin: 0 auto 34px; text-wrap: balance;
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; font-weight: 750; font-size: 16.5px;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn.ghost { border-color: var(--line); color: var(--ink); background: var(--panel); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ---- Sections ---- */
section { padding: 66px 0; }
section.tinted { background: var(--tint); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 1.3px; font-size: 12.5px;
  font-weight: 800; color: var(--accent); margin: 0 0 10px;
}
h2 {
  font-size: clamp(25px, 3.6vw, 33px); line-height: 1.18; letter-spacing: -0.4px;
  font-weight: 800; margin: 0 0 12px; text-wrap: balance;
}
.lede { color: var(--muted); font-size: 18px; max-width: 42em; margin: 0 0 34px; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---- How-it-fits diagram ---- */
.flow { display: flex; gap: 0; align-items: stretch; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.flow .node {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; width: 280px; text-align: left; box-shadow: var(--shadow);
}
.flow .node .t { font-weight: 800; font-size: 17px; margin: 0 0 6px; }
.flow .node .d { color: var(--muted); font-size: 15px; margin: 0; }
.flow .node .k {
  text-transform: uppercase; letter-spacing: 1px; font-size: 11.5px;
  font-weight: 800; color: var(--accent); margin: 0 0 8px;
}
.flow .arrow { align-self: center; color: var(--accent); font-size: 26px; padding: 6px 16px; font-weight: 400; }
@media (max-width: 900px) {
  .flow { flex-direction: column; align-items: center; }
  .flow .arrow { transform: rotate(90deg); padding: 10px 0; }
}

/* ---- Feature rows (screenshot + copy, alternating) ---- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 54px;
  align-items: center; padding: 38px 0;
}
.feature:nth-child(even) .shot { order: -1; }
.feature h3 { font-size: 22px; font-weight: 800; margin: 0 0 10px; letter-spacing: -0.2px; }
.feature p { color: var(--muted); margin: 0 0 10px; }
.feature ul { color: var(--muted); margin: 10px 0 0; padding-left: 20px; }
.feature li { margin-bottom: 6px; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 22px; }
  .feature:nth-child(even) .shot { order: 0; }
}

/* ---- Screenshot placeholders ----
   Real screenshots land once the demo instances exist (WEBSITE.md §8).
   Until then: a framed panel that states what it will show. */
.shot {
  aspect-ratio: 16 / 10.4;
  background: linear-gradient(150deg, var(--tint), #dcebf3 60%, #e8e3f2);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.shot::before {
  /* faint butterfly watermark */
  content: ""; position: absolute; inset: 0;
  background: url("/brand/mark-128.png") center / 64px no-repeat;
  opacity: 0.16;
}
.shot .cap {
  position: absolute; left: 14px; bottom: 12px;
  font-size: 13px; font-weight: 650; color: var(--muted);
  background: rgba(255, 255, 255, 0.85); padding: 4px 10px; border-radius: 999px;
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot.device { aspect-ratio: 16 / 10; }

/* ---- Claim strip (privacy) ---- */
.claims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; }
.claims .claim {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
}
.claims .claim .t { font-weight: 800; margin: 0 0 6px; font-size: 16.5px; }
.claims .claim p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 820px) { .claims { grid-template-columns: 1fr; } }

/* ---- Product teaser cards (home) ---- */
.teasers { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 12px; position: relative; }
/* Cycle medallion on the seam between the two cards: two arrows chasing
   each other — the "better together" loop. Absolutely positioned, so it
   doesn't create a grid track. */
.cycle {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 88px; height: 88px; border-radius: 50%; z-index: 2;
  background: var(--panel); border: 2px solid var(--accent);
  box-shadow: var(--shadow); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.cycle svg { width: 46px; height: 46px; display: block; }
@media (max-width: 820px) {
  .cycle { width: 66px; height: 66px; }
  .cycle svg { width: 34px; height: 34px; }
}
.teaser {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
}
.teaser h3 { margin: 0; font-size: 21px; font-weight: 800; }
.teaser p { color: var(--muted); margin: 0; }
/* Lists left-align so items hug their bullets — the rest of the card
   stays centered (inherited from .wrap.center). */
.teaser ul { color: var(--muted); margin: 4px 0 8px; padding-left: 20px; font-size: 15.5px; text-align: left; }
.teaser li { margin-bottom: 4px; }
.teaser .go { font-weight: 750; margin-top: auto; }
@media (max-width: 820px) { .teasers { grid-template-columns: 1fr; } }

/* ---- Email capture ---- */
.sub-block { max-width: 520px; margin: 0 auto; text-align: center; }
.sub-form { display: flex; gap: 10px; margin-top: 18px; }
.sub-form input[type="email"] {
  flex: 1; font: 16px var(--font); padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--panel);
  color: var(--ink); min-width: 0;
}
.sub-form input[type="email"]:focus { border-color: var(--accent); outline: none; }
.sub-form button {
  font: 700 15.5px var(--font); padding: 12px 22px; border: 0; cursor: pointer;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink); white-space: nowrap;
}
.sub-form button:hover { background: var(--accent-hover); }
.sub-note { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.sub-done { display: none; margin-top: 16px; font-weight: 700; color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* honeypot */
@media (max-width: 540px) { .sub-form { flex-direction: column; } }

/* ---- Pricing / tier cards ---- */
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 26px; justify-content: center; margin-top: 14px; }
.tier {
  background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; text-align: center; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
}
.tier.patron { border-color: var(--gold); }
.tier .mark { height: 34px; width: auto; margin: 0 auto; }
.tier h3 { margin: 0; font-size: 21px; font-weight: 800; }
.tier.patron h3 { color: var(--gold); }
.tier .price { font-size: 38px; font-weight: 800; letter-spacing: -1px; }
.tier .price small { font-size: 15px; font-weight: 650; color: var(--muted); letter-spacing: 0; }
.tier p { color: var(--muted); font-size: 15px; margin: 0; }
.tier .btn { margin-top: auto; }
.tier .btn.gold { background: var(--gold); color: #fff; }
.tier .btn.gold:hover { background: #934508; }
@media (max-width: 760px) { .tiers { grid-template-columns: minmax(0, 420px); } }

/* ---- FAQ ---- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 20px; margin-bottom: 10px;
}
.faq summary { font-weight: 700; cursor: pointer; padding: 12px 0; }
.faq details p { color: var(--muted); margin: 0 0 14px; }

/* ---- Forms (support page) ---- */
.form-card {
  max-width: 560px; margin: 0 auto; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.form-card label { display: block; font-weight: 700; font-size: 14.5px; margin: 16px 0 6px; }
.form-card input, .form-card textarea {
  width: 100%; font: 16px var(--font); padding: 11px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink);
}
.form-card input:focus, .form-card textarea:focus { border-color: var(--accent); outline: none; }
.form-card textarea { min-height: 140px; resize: vertical; }
.form-card button {
  margin-top: 20px; width: 100%; font: 700 16px var(--font); padding: 13px;
  border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); cursor: pointer;
}
.form-card button:hover { background: var(--accent-hover); }
.form-err { display: none; color: #b42318; font-size: 14.5px; margin-top: 12px; }

/* ---- Docs hub ---- */
.doc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.doc-col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.doc-col h3 { margin: 0 0 14px; font-size: 19px; font-weight: 800; }
.doc-col ul { list-style: none; margin: 0; padding: 0; }
.doc-col li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.doc-col li:last-child { border-bottom: 0; }
.doc-col a { font-weight: 700; }
.doc-col .d { display: block; color: var(--muted); font-size: 14px; }
@media (max-width: 820px) { .doc-cols { grid-template-columns: 1fr; } }

/* ---- Code block (quickstart) ---- */
pre.code {
  background: #17202b; color: #dfe7ef; border-radius: var(--radius);
  padding: 22px 24px; overflow-x: auto; font: 13.5px/1.6 ui-monospace, "SF Mono", Menlo, monospace;
  text-align: left;
}
pre.code .c { color: #7d8b9b; }

/* ---- Prose pages (privacy) ---- */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: 23px; margin-top: 40px; }
.prose p, .prose li { color: #3c4a59; }

/* ---- Small print / badges ---- */
.smallprint { color: var(--muted); font-size: 14px; }
.testmode {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.6px;
  text-transform: uppercase; color: #92400e; background: #fef3c7;
  border: 1px solid #fcd34d; border-radius: 999px; padding: 2px 10px; margin-left: 8px;
  vertical-align: middle;
}

/* ---- Footer ---- */
.s-foot { border-top: 1px solid var(--line); background: var(--panel); margin-top: 40px; }
.s-foot-inner {
  max-width: var(--page-w); margin: 0 auto; padding: 44px 22px 36px;
  display: flex; gap: 60px; flex-wrap: wrap;
}
.s-foot .about { max-width: 300px; }
.s-foot .about .lockup { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.s-foot .about .lockup img { height: 20px; width: auto; }
.s-foot .about p { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.s-foot nav { display: flex; gap: 60px; flex-wrap: wrap; }
.s-foot nav .col .h {
  text-transform: uppercase; letter-spacing: 1px; font-size: 11.5px;
  font-weight: 800; color: var(--muted); margin-bottom: 10px;
}
.s-foot nav .col a { display: block; color: var(--ink); font-size: 14.5px; padding: 4px 0; font-weight: 600; }
.s-foot nav .col a:hover { color: var(--accent); text-decoration: none; }
.s-foot .fine { color: var(--muted); font-size: 12.5px; padding: 0 22px 26px; max-width: var(--page-w); margin: 0 auto; }
