/* 50DollarAds.com shared styles.
   The hero, "how it works", "what $50 buys" and the cannabis sections keep the
   inline styles from the design. Everything below styles the parts that are
   built from assets/config.js: gallery, add-on menu, order flow, FAQ, footer. */

:root {
  --sticker: #FFD400;
  --ink: #111111;
  --paper: #FFFFFF;
  --soft: #F3F2EC;
  --muted: #55554F;
  --line: #D9D8D0;
  --blue: #1F4FD8;
  --orange: #E8590C;
  --err: #B3261E;
  --ok: #1B6B3A;
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); font-family: var(--body); color: var(--ink); }
a { color: #111111; }
a:hover { color: #3A3200; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: #fff; padding: 10px 14px; border: 2px solid var(--ink); }

.c, .c *, .c *::before, .c *::after { box-sizing: border-box; }

.sec { padding: 88px 24px; }
.sec--tight { padding: 72px 24px; }
.sec--ink { background: var(--ink); }
.sec--soft { background: var(--soft); }
.sec--sticker { background: var(--sticker); }
.wrap { max-width: 1160px; margin: 0 auto; }
.wrap--narrow { max-width: 860px; }
.stack { display: flex; flex-direction: column; gap: 40px; }
.stack--sm { gap: 12px; }

.eyebrow { margin: 0; font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sec--ink .eyebrow { color: var(--sticker); }
.sec--sticker .eyebrow { color: var(--ink); }
.h2 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 0.95; text-transform: uppercase; letter-spacing: -0.01em; color: var(--ink); }
.sec--ink .h2 { color: #F5F5F0; }
.h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; text-transform: uppercase; color: var(--ink); }
.lede { margin: 0; max-width: 44rem; font-size: 19px; line-height: 1.55; color: var(--muted); }
.sec--ink .lede { color: #C9C9C1; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; background: var(--ink); color: #FFFFFF; border: 2px solid var(--ink); border-radius: 0; cursor: pointer; }
.btn:hover { color: #FFFFFF; background: #2A2A2A; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn--sticker { background: var(--sticker); color: var(--ink); border-color: var(--sticker); }
.btn--sticker:hover { background: #FFE04D; color: var(--ink); }
.btn--ghost { background: #FFFFFF; color: var(--ink); }
.btn--ghost:hover { background: var(--soft); color: var(--ink); }
.btn--sm { min-height: 48px; padding: 0 20px; font-size: 20px; }

/* Gallery */
.tiles { display: grid; gap: 28px; }
.tiles--wide { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.tiles--tall { max-width: 960px; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.tile { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.tile__frame { background: #1E1E1E; border: 2px solid #F5F5F0; overflow: hidden; }
.tile--wide .tile__frame { aspect-ratio: 16 / 9; }
.tile--tall .tile__frame { aspect-ratio: 9 / 16; }
.tile__frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.tile__title { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.05; text-transform: uppercase; color: #F5F5F0; }
.tile__meta { font-family: var(--mono); font-size: 13px; color: #C9C9C1; }
.tile__tag { align-self: flex-start; font-family: var(--mono); font-size: 12px; background: #F5F5F0; color: var(--ink); padding: 2px 8px; }

/* Add-on menu */
.menu__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 0 64px; }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.35; }
.price { font-family: var(--mono); font-weight: 500; font-size: 17px; white-space: nowrap; }
.humans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.human { background: var(--paper); border: 2px solid var(--ink); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.human__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.human__name { margin: 0; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.05; text-transform: uppercase; }
.human p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--muted); }

/* Order flow */
.card { background: var(--paper); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); padding: clamp(20px, 4vw, 40px); display: flex; flex-direction: column; gap: 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.steps li { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; padding: 8px 12px; border: 2px solid var(--ink); background: transparent; color: var(--ink); }
.steps li.is-current { background: var(--ink); color: #FFFFFF; }
.steps li.is-done { background: #FFFFFF; }
.step { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.step__title { padding: 0; margin: 0 0 4px; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; text-transform: uppercase; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.label, .field > label { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.input { width: 100%; min-height: 52px; padding: 12px 14px; font-family: var(--body); font-size: 17px; color: var(--ink); background: #FFFFFF; border: 2px solid var(--ink); border-radius: 0; }
.input[aria-invalid="true"] { border-color: var(--err); background: #FFF5F4; }
.hint { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.error { margin: 0; font-size: 14px; line-height: 1.45; color: var(--err); font-weight: 600; }
.warn { margin: 0; font-size: 14px; line-height: 1.45; color: #7A4B00; font-weight: 600; }
.choices { display: flex; flex-wrap: wrap; gap: 12px; }
.choice { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border: 2px solid var(--ink); font-size: 17px; cursor: pointer; }
.choice input, .check input { width: 20px; height: 20px; flex: none; accent-color: var(--ink); }
.drop { border: 2px dashed var(--ink); background: var(--soft); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.drop input[type="file"] { font-family: var(--body); font-size: 15px; max-width: 100%; }
.filelist { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }

.addons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 0 40px; }
.addons li { border-bottom: 1px solid var(--line); }
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 52px; padding: 14px 0; font-size: 16.5px; line-height: 1.35; cursor: pointer; }
.check__name { flex: 1 1 auto; }
.check__note { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.sub { padding: 0 0 16px 32px; display: flex; flex-direction: column; gap: 8px; }

.summary { margin: 0; display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 10px 20px; font-size: 16px; line-height: 1.45; }
.summary dt { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.summary dd { margin: 0; overflow-wrap: anywhere; }
.lines { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.lines li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; }
.lines li.is-total { border-bottom: 0; font-weight: 700; font-size: 18px; }
.consents { display: flex; flex-direction: column; }

.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-top: 2px solid var(--ink); padding-top: 24px; }
.total { display: flex; align-items: baseline; gap: 12px; }
.total__amount { font-family: var(--display); font-weight: 900; font-size: 56px; line-height: 1; }
.total__note { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.bar__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.status { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 600; }
.status.is-error { color: var(--err); }
.status.is-ok { color: var(--ok); }

/* FAQ */
.faq { display: flex; flex-direction: column; }
.faq__row { border-top: 2px solid var(--ink); padding: 22px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 12px 40px; }
.faq__q { margin: 0; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.05; text-transform: uppercase; }
.faq__a { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); }

/* Footer */
.foot { background: var(--ink); padding: 40px 24px; }
.foot__in { max-width: 1160px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.foot__mark { display: flex; align-items: baseline; gap: 6px; text-decoration: none; }
.foot__name { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; text-transform: uppercase; color: #F5F5F0; }
.foot__com { font-family: var(--mono); font-size: 14px; color: #C9C9C1; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--mono); font-size: 14px; color: #C9C9C1; }
.foot__links a { color: #F5F5F0; padding: 10px 0; }
.foot__links a:hover { color: var(--sticker); }

/* Plain pages: thanks, privacy, terms, 404 */
.plainhead { background: var(--sticker); border-bottom: 2px solid var(--ink); padding: 18px 24px; }
.plainhead a { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--ink); }
.plainhead__name { font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1; text-transform: uppercase; }
.plainhead__com { font-family: var(--mono); font-size: 15px; }
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; font-size: 17px; line-height: 1.65; }
.doc h1 { margin: 0 0 24px; font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 0.95; text-transform: uppercase; }
.doc h2 { margin: 40px 0 8px; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.05; text-transform: uppercase; }
.doc p, .doc li { color: #2B2B28; }
.draft { background: #FFF1C2; border: 2px dashed var(--ink); padding: 14px 18px; font-family: var(--mono); font-size: 14px; margin-bottom: 32px; }

@media (max-width: 560px) {
  .sec { padding: 64px 20px; }
  .summary { grid-template-columns: 1fr; gap: 2px 0; }
  .summary dd { margin-bottom: 10px; }
  .total__amount { font-size: 44px; }
  .bar__buttons { width: 100%; }
  .bar__buttons .btn { flex: 1 1 auto; }
}

/* Where it runs */
.sec--ink .menu__list li { color: #F5F5F0; border-bottom-color: #3A3A36; }
.sec--ink .hint { color: #C9C9C1; }
.mono { font-family: var(--mono); font-size: 0.92em; overflow-wrap: anywhere; }
.addons--one { grid-template-columns: 1fr; }
.sub .input[hidden] { display: none; }
.field > label.check { font-family: var(--body); font-size: 16.5px; font-weight: 400; letter-spacing: 0; text-transform: none; }

/* How it should feel */
.tones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tone { display: flex; align-items: flex-start; gap: 10px; min-height: 64px; height: 100%; padding: 12px 14px; border: 2px solid var(--ink); background: #fff; cursor: pointer; }
.tone input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--ink); }
.tone__text { display: flex; flex-direction: column; gap: 2px; }
.tone__name { font-weight: 700; font-size: 16px; line-height: 1.2; }
.tone__hint { font-size: 14px; line-height: 1.3; color: #4a4a4a; }
.tone:has(input:checked) { background: var(--sticker); box-shadow: 4px 4px 0 var(--ink); }
.tone:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }

/* A FAQ answer that runs to several paragraphs */
.faq__a p { margin: 0; }
.faq__a p + p { margin-top: 12px; }
