/* Shared styles for the public pages: landing (/market), /privacy, /terms, /reset, 404. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif; background: #16110c; color: #f4ece2; line-height: 1.5; }
a { color: #e0792a; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid #e0792a; outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: #c45c12; color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 5; }
.skip:focus { left: 8px; }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(env(safe-area-inset-top, 0px) + 16px) 0 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.03em; color: inherit; text-decoration: none; }
.brand img { width: 36px; height: 36px; display: block; }
.site-nav .links { display: flex; align-items: center; gap: 14px; white-space: nowrap; font-weight: 650; font-size: 15px; }
.site-nav .links a:not(.cta) { color: #f4ece2; text-decoration: none; }
.muted { color: #b6a793; }
.eyebrow { color: #e0792a; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.cta { display: inline-block; background: #c45c12; color: #fff; text-decoration: none; padding: 13px 20px; border-radius: 12px; font-weight: 700; border: 0; font: inherit; font-weight: 700; cursor: pointer; text-align: center; }
.cta.small { padding: 9px 14px; font-size: 14px; }
.cta.ghost { background: transparent; border: 1px solid #3d3124; color: #f4ece2; }
.cta:disabled { opacity: .5; }
.card { background: #221a12; border: 1px solid #3d3124; border-radius: 16px; padding: 16px; }
.site-footer { padding: 28px 0 calc(env(safe-area-inset-bottom, 0px) + 40px); border-top: 1px solid #2c2218; font-size: 14px; margin-top: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; }
.site-footer nav a { color: #f4ece2; }
.site-footer p { margin: 4px 0; }

/* legal pages */
.legal { max-width: 760px; padding-bottom: 20px; }
.legal h1 { font-size: 36px; letter-spacing: -0.04em; line-height: 1.1; margin: 12px 0 6px; }
.legal h2 { font-size: 21px; letter-spacing: -0.02em; margin: 30px 0 8px; padding-top: 8px; border-top: 1px solid #2c2218; }
.legal h3 { font-size: 16px; margin: 18px 0 6px; }
.legal p, .legal li { color: #e6dccf; }
.legal ul { padding-left: 20px; }
.legal li { margin: 4px 0; }
.legal .toc { columns: 2; column-gap: 24px; padding-left: 18px; font-size: 15px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 8px 8px 0; border-bottom: 1px solid #2c2218; }
.legal th { color: #b6a793; font-weight: 650; }
@media (max-width: 640px) { .legal h1 { font-size: 30px; } .legal .toc { columns: 1; } .legal table { font-size: 13px; } }

/* small form pages (reset, 404) */
.narrow { max-width: 440px; margin: 0 auto; padding: 8px 20px 40px; }
.narrow h1 { font-size: 28px; letter-spacing: -0.03em; margin: 10px 0 8px; }
label { display: block; font-size: 13px; color: #b6a793; margin: 14px 0 6px; font-weight: 650; }
input { width: 100%; background: #100c09; border: 1px solid #3d3124; border-radius: 12px; padding: 13px 12px; color: #f4ece2; font: inherit; font-size: 16px; }
input:focus-visible { border-color: #e0792a; outline-offset: 0; }
.full { width: 100%; margin-top: 16px; }
.msg { min-height: 1.3em; margin: 12px 0 0; }
.msg.err { color: #ff9c8c; }
.msg.ok { color: #c7e39a; }
.hidden { display: none !important; }
@media (max-width: 360px) { .site-nav .brand { font-size: 0; gap: 0; } }
