/* Cowboy Capital: company look (warm neutral, saddle accent) plus a product theme per app.
   Colors were checked for WCAG AA contrast. System fonts only: fast, and no third-party requests. */
:root {
  --bg: #FBF9F5; --surface: #EFE8DC; --card: #FFFFFF;
  --ink: #15171A; --muted: #5A5F66; --line: #DDD5C7;
  --accent: #8A4B1F; --on-accent: #FFFFFF; --mark-bg: #FBF9F5; --seal-gap: #FBF9F5;
  --radius: 16px; --max: 1080px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15171A; --surface: #1E2126; --card: #1E2126; --ink: #F4EFE6; --muted: #A9ADB3; --line: #2E3238;
          --accent: #E0A872; --on-accent: #15171A; --mark-bg: #15171A; --seal-gap: #15171A; }
}
/* Impact Reel: blue and red on black and white, matching the app icon */
.theme-impact-reel { --accent: #1F5FD1; --on-accent: #FFFFFF; --red: #D62828; --deep: #0E1013; --mark-bg: #FBF9F5; }
@media (prefers-color-scheme: dark) { .theme-impact-reel { --accent: #6AA0FF; --on-accent: #0B1220; --red: #FF5A5A; --deep: #0E1013; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; font: 400 1.0625rem/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; margin: 0; }
.brand .seal { width: 44px; height: 35px; color: var(--ink); }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .97rem; }
nav a:hover { background: var(--surface); }
nav a[aria-current="page"] { background: var(--surface); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; font-size: 1rem; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-soon { background: var(--surface); color: var(--muted); border-color: var(--line); cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* sections */
section { padding: clamp(48px, 9vw, 96px) 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .8rem; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 40rem; }
.band { background: var(--surface); }

/* company hero */
.hero-co { padding-top: clamp(56px, 10vw, 120px); }
.hero-co h1 { max-width: 14ch; }

/* product cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.product-card { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgb(0 0 0 / .08); }
.product-card img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 2px 10px rgb(0 0 0 / .18); }
.card-link { font-weight: 700; color: var(--accent); }
.placeholder { border-style: dashed; background: transparent; color: var(--muted); display: flex; align-items: center; }

/* product hero */
.product-hero { background: radial-gradient(1000px 460px at 85% -10%, rgb(31 95 209 / .55) 0%, transparent 60%), radial-gradient(800px 400px at 0% 110%, rgb(214 40 40 / .30) 0%, transparent 60%), linear-gradient(160deg, #0A0C10, #14181F); color: #F4F6F9; padding: clamp(48px, 9vw, 104px) 0; }
.product-hero .lead { color: #C3CAD6; }
.product-hero .eyebrow { color: #FF7A7A; }
.product-hero .btn-soon { background: rgb(255 255 255 / .10); color: #E7ECF4; border-color: rgb(255 255 255 / .25); }
.product-hero .btn-primary { background: #FFFFFF; color: #0E1013; }
.product-hero a { color: #8FB8FF; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero-icon { width: min(260px, 60vw); border-radius: 22%; box-shadow: 0 24px 60px rgb(0 0 0 / .45); margin-inline: auto; }
.product-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.product-head img { width: 56px; height: 56px; border-radius: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; padding: 0; list-style: none; }
.chips li { border: 1px solid rgb(255 255 255 / .28); border-radius: 999px; padding: 6px 14px; font-size: .92rem; font-weight: 600; }

/* steps + features */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding: 0; list-style: none; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; margin-bottom: 12px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.feature { padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.feature .ico { width: 40px; height: 40px; border-radius: 11px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; margin-bottom: 12px; }
.feature p { color: var(--muted); margin: 0; }

/* faq */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style-position: outside; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
details p:last-child { margin-bottom: 14px; }

/* prose pages (privacy, support) */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .96rem; margin: 1em 0 1.5em; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--surface); }
.prose ul { padding-left: 1.2em; }
.page-head { padding: clamp(40px, 7vw, 72px) 0 8px; }
.callout { background: var(--surface); border-left: 4px solid var(--accent); border-radius: 8px; padding: 16px 20px; margin: 1.5em 0; }

/* breadcrumb trail (rendered by build.py from the page's folders) */
.crumbs { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .8rem; color: var(--accent); margin-bottom: 14px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { opacity: .55; margin: 0 2px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; background: var(--bg); }
.cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.page-head .eyebrow a { color: inherit; }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--ink); }
.foot-brand { margin-bottom: 8px; }
.legal { margin: 32px 0 0; color: var(--muted); font-size: .88rem; }

@media (max-width: 760px) {
  .hero-grid, .cols { grid-template-columns: 1fr; }
  .hero-icon { width: 150px; order: -1; margin-inline: 0; }
  .product-card { grid-template-columns: 72px 1fr; }
  .product-card img { width: 72px; height: 72px; border-radius: 17px; }
  nav a { padding: 8px 10px; }
  .site-header .brand span { display: none; }
}

/* footer with columns: every page links to every hub */
.site-footer { padding: 40px 0 28px; }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px 32px; }
.foot-about p { margin: 10px 0 0; max-width: 24rem; font-size: .95rem; }
.site-footer a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-footer a:hover { text-decoration: underline; }
.legal { margin: 28px 0 0; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }

/* document cards and guide */
.doc { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.doc:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgb(0 0 0 / .08); }
.doc-cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.guide > li { margin-bottom: .8em; }
.theme-impact-reel .steps li::before, .theme-impact-reel .feature .ico { background: var(--accent); }
.theme-impact-reel .steps li:nth-child(even)::before { background: var(--red); color: #fff; }
.theme-impact-reel .card-link { color: var(--accent); }

/* home: the photograph as a band at the top, then the product and the company below it */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.home-hero { position: relative; min-height: min(76svh, 720px); display: grid; align-items: end; color: #fff; background: #1b1410 url("/assets/img/desert.jpg") center 60% / cover no-repeat; }
.home-hero { background-image: image-set(url("/assets/img/desert.webp") type("image/webp"), url("/assets/img/desert.jpg") type("image/jpeg")); }
@media (max-width: 900px) {
  .home-hero { min-height: min(70svh, 640px); background-image: url("/assets/img/desert-small.jpg"); background-position: 62% center; }
  .home-hero { background-image: image-set(url("/assets/img/desert-small.webp") type("image/webp"), url("/assets/img/desert-small.jpg") type("image/jpeg")); }
}
.home-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(0 0 0 / .35), transparent 30%, rgb(0 0 0 / .55) 75%, rgb(0 0 0 / .72)); pointer-events: none; }
.home-hero .wrap { position: relative; padding: clamp(56px, 10vw, 120px) 0 clamp(36px, 6vw, 64px); }
.home-hero .eyebrow { color: #F0C28F; }
.home-hero h1 { color: #fff; max-width: 18ch; text-shadow: 0 2px 18px rgb(0 0 0 / .45); }
.home-hero .lead { color: rgb(255 255 255 / .88); text-shadow: 0 1px 10px rgb(0 0 0 / .45); }
.home-hero .price-line { color: #fff; }
.home-hero .btn-primary { background: #fff; color: #0E1013; }
.home-hero .btn-soon { background: rgb(255 255 255 / .12); color: #F4EFE6; border-color: rgb(255 255 255 / .3); }
.home-hero .btn-ghost { color: #fff; }
.home-seal { position: absolute; right: clamp(16px, 3vw, 40px); top: clamp(16px, 3vw, 36px); width: clamp(64px, 8vw, 96px); color: rgb(222 178 130 / .6); }
.home-seal .seal { width: 100%; height: auto; --seal-gap: transparent; filter: drop-shadow(0 1px 4px rgb(0 0 0 / .3)); }
.maker { display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: center; }
.maker img { border-radius: 50%; }
.maker blockquote { margin: 0 0 .6em; font-size: 1.15rem; }
@media (max-width: 760px) { .maker { grid-template-columns: 1fr; } .maker img { width: 120px; height: 120px; } }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .two-up { grid-template-columns: 1fr; } }

/* scenic pages (Portfolio, Contact): the landing photograph, softened, behind light text */
body.scenic { background: #1b1410; color: #F6EDE0; min-height: 100vh; position: relative; --ink: #F6EDE0; --muted: #D8C7B2; --accent: #F0C28F; --on-accent: #2A1B10; --line: rgb(246 237 224 / .22); --surface: rgb(246 237 224 / .12); --seal-gap: transparent; }
body.scenic::before { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgb(24 15 9 / .62), rgb(24 15 9 / .72)), url("/assets/img/desert.jpg") center 60% / cover no-repeat; }
@media (max-width: 900px) { body.scenic::before { background-image: linear-gradient(to bottom, rgb(24 15 9 / .62), rgb(24 15 9 / .72)), url("/assets/img/desert-small.jpg"); background-position: 62% center; } }
body.scenic .site-header { background: transparent; backdrop-filter: none; border-bottom: 0; }
body.scenic .brand, body.scenic nav a { color: #F6EDE0; text-shadow: 0 1px 8px rgb(0 0 0 / .5); }
body.scenic .brand .seal { color: rgb(222 178 130 / .85); }
body.scenic nav a:hover, body.scenic nav a[aria-current="page"] { background: rgb(255 255 255 / .16); }
body.scenic .card { background: rgb(30 19 11 / .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-color: rgb(246 237 224 / .22); color: #F6EDE0; }
body.scenic .product-card:hover { box-shadow: 0 12px 34px rgb(0 0 0 / .35); }
body.scenic .card-link, body.scenic .eyebrow, body.scenic a { color: #F0C28F; }
body.scenic .btn-primary { background: #F0C28F; color: #2A1B10; }
body.scenic .site-footer { background: transparent; border-top-color: rgb(246 237 224 / .18); }
body.scenic .site-footer a, body.scenic .legal { color: #D8C7B2; }
body.scenic h1, body.scenic h2, body.scenic h3 { color: #FFF8EE; text-shadow: 0 1px 14px rgb(0 0 0 / .35); }
body.scenic { display: flex; flex-direction: column; }
body.scenic main { flex: 1; }

/* small document links at the foot of the product page */
.doc-links { padding: 18px 0; border-top: 1px solid var(--line); display: block; }
.doc-links .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: .92rem; }
.doc-links span { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; }
.doc-links a { color: var(--accent); font-weight: 600; text-decoration: none; }
.doc-links a:hover { text-decoration: underline; }

.steps li h3 { margin-bottom: 0; }

/* app screenshots in a phone shape */
.phone { margin: 0; border-radius: 28px; overflow: hidden; background: #0E1013; border: 6px solid #0E1013; box-shadow: 0 18px 44px rgb(0 0 0 / .28); }
.phone img { width: 100%; }
.phone-hero { width: min(300px, 70vw); margin-inline: auto; box-shadow: 0 28px 70px rgb(0 0 0 / .55); }
.price-line { color: #E7ECF4; margin: 18px 0 22px; }
.shot-steps { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.shot-steps .phone, .shot-features .phone { max-width: 200px; margin: 0 auto 18px; border-width: 4px; border-radius: 22px; box-shadow: 0 10px 26px rgb(0 0 0 / .18); }
.shot-steps li h3 { margin-bottom: .35em; }
.shot-steps li p { color: var(--muted); margin: 0; }
.send-icon { display: grid; place-items: center; height: 120px; font-size: 3.4rem; color: var(--accent); }
@media (max-width: 760px) { .phone-hero { width: 220px; } }

/* product page: the S1 art, then the buy band under it */
.s1-hero { background: #0E1013; }
.s1-hero img { width: 100%; }
.hero-under { padding: clamp(28px, 5vw, 48px) 0; }
.hero-under h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin-bottom: .3em; }
.hero-under .lead { margin-bottom: 0; }
.shot-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.shot-feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.shot-feature p { color: var(--muted); margin: 0; }
.shot-feature .ico { width: 40px; height: 40px; border-radius: 11px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; margin-bottom: 12px; }

/* maker note and press founder */
.maker { display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: center; }
.maker img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; }
.maker blockquote { margin: 0; font-size: 1.15rem; }
@media (max-width: 760px) { .maker { grid-template-columns: 1fr; } .maker img { width: 120px; height: 120px; } }

/* press facts and downloads */
.facts { list-style: none; padding: 0; margin: 0 0 1em; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts strong { color: var(--muted); font-weight: 600; }
.facts span { min-width: 0; overflow-wrap: anywhere; }

/* filming guide diagram */
.diagram { margin: 0 0 1.5em; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.diagram svg { width: 100%; height: auto; }
.diagram figcaption { color: var(--muted); font-size: .92rem; margin-top: 8px; }

/* printing (and PDFs for review): keep cards, pictures and answers whole, show every answer */
@media print {
  .site-header { position: static; }
  .steps li, .shot-feature, .feature, .card, figure, details, table, .maker, .facts li { break-inside: avoid; }
  h2, h3, .eyebrow { break-after: avoid; }
  details::details-content { content-visibility: visible; display: block; height: auto; }
  .steps, .shot-features, .features, .cards { display: block; font-size: 0; }
  .steps > li, .shot-feature, .feature, .cards > .card { display: inline-block; vertical-align: top; width: 31.5%; margin: 0 1.5% 16px 0; font-size: 1rem; }
  .cards > .card { width: 48%; }
}
