/* pixla.app — one stylesheet for every page. Light and dark follow the system. */
@font-face { font-family: Outfit; src: url(fonts/Outfit.ttf); font-display: swap; }
:root {
  color-scheme: light dark;
  --ink: light-dark(#17151c, #ededed);
  --muted: light-dark(#6b6b6b, #a6a6a6);
  --line: light-dark(#e8e6e3, #2c2933);
  --bg: light-dark(#fff, #111013);
  --card: light-dark(#f8f8f7, #18171b);
  --card-hover: light-dark(#f1f0ee, #1f1e23);
  --accent: #6E56CF;
  --ok: light-dark(#0D7A54, #3FC98E);
  --err: light-dark(#B42318, #F97066);
  --display: Outfit, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
body { font: 16px/1.6 var(--text); color: var(--ink); background: var(--bg); }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* Header */
header { border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; min-height: 68px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: .14em; }
.brand .x { color: var(--accent); }
nav { display: flex; gap: 22px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
nav a[aria-current="page"] { font-weight: 600; }

/* Type */
.hero { padding: 88px 0 48px; }
.hero.small { padding: 64px 0 32px; }
.eyebrow { font: 600 13px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
h1 { font: 700 clamp(40px, 6vw, 64px)/1.05 var(--display); letter-spacing: -.02em; margin: 16px 0 20px; max-width: 16ch; }
.hero.small h1 { font-size: clamp(34px, 5vw, 48px); }
h2 { font: 700 30px/1.2 var(--display); letter-spacing: -.01em; margin-bottom: 10px; }
h3 { font: 700 20px/1.3 var(--display); margin-bottom: 6px; }
.lead { font-size: 19px; color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button { display: inline-block; padding: 11px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); }
.button.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.button:hover { opacity: .88; }

/* Sections */
.section { border-top: 1px solid var(--line); padding: 64px 0; }
.section-head { margin-bottom: 28px; max-width: 62ch; }
.section-head p { color: var(--muted); }
.more { display: inline-block; margin-top: 24px; font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Product cards */
.products { display: grid; gap: 16px; }
.products.two { grid-template-columns: repeat(2, 1fr); }
.products.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .products.two, .products.three { grid-template-columns: 1fr; } }
.product { display: flex; flex-direction: column; gap: 8px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: inherit; text-decoration: none; transition: background .15s; }
.product:hover { background: var(--card-hover); }
.product .icon { width: 52px; height: 52px; border-radius: 12px; margin-bottom: 10px; display: block; }
.product .kind { font: 600 12px/1.4 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.product .name { font: 700 26px/1.2 var(--display); }
.product .line { color: var(--muted); flex: 1; }
.product .go { font-weight: 600; margin-top: 10px; }
.tag { display: inline-block; font: 600 12px/1 var(--text); padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); align-self: flex-start; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 820px) { .principles { grid-template-columns: 1fr; } }
.principles .num { font: 700 14px/1 var(--display); color: var(--accent); margin-bottom: 12px; display: block; }
.principles p { color: var(--muted); }

/* Prose (About) */
.prose p { color: var(--muted); margin-bottom: 16px; max-width: 64ch; }
.prose p strong { color: var(--ink); }
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 12px; } }
.split .label h2 { margin-bottom: 4px; }
.split .label p { color: var(--muted); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { font: 600 18px/1.4 var(--display); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 12px; max-width: 64ch; }
.callout { margin-top: 40px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }

/* Contact form */
.contact { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
input, textarea { font: inherit; font-weight: 400; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 170px; resize: vertical; }
button { font: inherit; font-weight: 600; padding: 12px 22px; border-radius: 10px; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; justify-self: start; }
button:hover { opacity: .88; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.notice.ok { border-color: var(--ok); color: var(--ok); }
.aside { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.aside h3 { margin-top: 18px; }
.aside h3:first-child { margin-top: 0; }
.aside p, .aside li { color: var(--muted); }
.aside ul { padding-left: 18px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 48px 0 32px; color: var(--muted); font-size: 14px; margin-top: 32px; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 680px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }
.foot h4 { font: 600 13px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .brand { margin-bottom: 12px; }
.foot .made { font-size: 12px; opacity: .7; margin-top: 6px; }
.fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; }

/* Legal pages (privacy.html), rendered from Pixla-Legal by its pixla-legal-to-site.py */
.legal { max-width: 760px; padding-top: clamp(40px, 7vw, 80px); padding-bottom: 40px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 8px; max-width: none; }
.legal .meta { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.legal h2 { font-size: 20px; margin: 40px 0 12px; }
.legal h3 { font-size: 17px; margin: 28px 0 8px; }
.legal p, .legal li { margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 12px; }
.legal li { margin-bottom: 6px; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.legal a { text-underline-offset: 3px; }
.legal code { font-size: .9em; background: var(--card); padding: 1px 5px; border-radius: 5px; }
.legal .table { overflow-x: auto; margin: 16px 0; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; color: var(--muted); }
.formnote { font-size: 14px; color: var(--muted); }
