/* Trade Desk Graphics site styles. Layout: full-width bands, 1120px inner column; the CMYK spectrum rule is the one brand flourish. */
:root {
  --bg: #ffffff; --bg-alt: #f3f5f9; --surface: #ffffff; --surface-dark: #36363C;
  --fg: #1d1d22; --fg-muted: #5c5f6b; --fg-on-dark: #f4f5f8; --line: #dde1ea;
  --blue: #1C60AE; --blue-hover: #174f8f; --cyan: #4FC2E0;
  --spectrum: linear-gradient(90deg, #14A7CD 0%, #1C60AE 25%, #832D7B 50%, #E42575 75%, #FAB913 100%);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --radius: 10px; --shadow: 0 10px 30px rgba(29,29,34,.08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1f1f24; --bg-alt: #27272d; --surface: #2c2c33; --surface-dark: #16161a;
    --fg: #f1f2f5; --fg-muted: #b3b6c2; --line: #3d3e47; --blue: #3b82d6; --blue-hover: #5a97e0;
    --shadow: 0 10px 30px rgba(0,0,0,.35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1f1f24; --bg-alt: #27272d; --surface: #2c2c33; --surface-dark: #16161a;
  --fg: #f1f2f5; --fg-muted: #b3b6c2; --line: #3d3e47; --blue: #3b82d6; --blue-hover: #5a97e0;
  --shadow: 0 10px 30px rgba(0,0,0,.35); color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; text-wrap: balance; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band { padding-block: clamp(56px, 8vw, 104px); }
.band-sm { padding-block: clamp(40px, 5vw, 64px); }
.band-alt { background: var(--bg-alt); }
.band-dark { background: var(--surface-dark); color: var(--fg-on-dark); }
.band-dark .lede, .band-dark .muted { color: rgba(244,245,248,.78); }
.muted { color: var(--fg-muted); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.band-dark .eyebrow { color: var(--cyan); }
.spectrum { height: 5px; background: var(--spectrum); }
.lede { font-size: 1.15rem; max-width: 62ch; }
.mt-1 { margin-top: 16px; } .mt-2 { margin-top: 28px; } .mt-3 { margin-top: 44px; }
.center { text-align: center; } .center .lede { margin-inline: auto; }
.fine { font-size: .9rem; color: var(--fg-muted); margin-top: 22px; max-width: 70ch; }
.prose { max-width: 68ch; display: grid; gap: 16px; }
.prose p { color: var(--fg-muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 8px; font-weight: 700; font-size: .98rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s, color .15s; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.band-dark .btn-ghost { border-color: rgba(255,255,255,.35); color: var(--fg-on-dark); }
.band-dark .btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link { color: var(--blue); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.logo img { height: 40px; width: auto; max-width: min(270px, 60vw); display: block; }
.logo-foot { margin-bottom: 14px; }
.logo-foot img { height: 36px; }
.logo .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo .logo-light { display: none; } :root:not([data-theme="light"]) .logo .logo-dark { display: block; } }
:root[data-theme="dark"] .logo .logo-light { display: none; }
:root[data-theme="dark"] .logo .logo-dark { display: block; }
@media (max-width: 520px) { .logo img { height: 34px; } }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; font-weight: 500; font-size: .93rem; align-items: center; }
.nav-list > li { position: relative; }
.nav-list a, .nav-list button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 6px; text-decoration: none; color: var(--fg-muted); background: none; border: 0; font: inherit; cursor: pointer; white-space: nowrap; }
.nav-list a:hover, .nav-list button:hover, .nav-list a[aria-current="page"], .nav-list li.current > a, .nav-list li.current > button { color: var(--blue); }
.nav-list .caret { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.has-menu .menu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 290px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0; display: none; z-index: 25; }
.has-menu .menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-menu.open .menu, .has-menu:hover .menu, .has-menu:focus-within .menu { display: grid; }
.has-menu .menu a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 6px; white-space: normal; color: var(--fg); }
.has-menu .menu a:hover { background: var(--bg-alt); color: var(--blue); }
.has-menu .menu a small { font-weight: 400; color: var(--fg-muted); font-size: .8rem; }
.has-menu .menu .all { border-bottom: 1px solid var(--line); margin-bottom: 4px; padding-bottom: 8px; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 10px 16px; font-size: .9rem; border-radius: 7px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; place-items: center; }
.burger span { display: block; width: 20px; height: 2px; background: var(--fg); box-shadow: 0 -6px 0 var(--fg), 0 6px 0 var(--fg); }
@media (max-width: 1040px) {
  .nav-list { display: none; }
  .burger { display: grid; }
  .nav-cta .btn-ghost { display: none; }
  .site-header.menu-open .nav-list { display: grid; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-left, 0px)) 18px; gap: 2px; align-items: stretch; box-shadow: var(--shadow); }
  .site-header.menu-open .nav-list a, .site-header.menu-open .nav-list button { width: 100%; justify-content: space-between; padding: 12px 10px; font-size: 1rem; }
  .has-menu .menu { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 0 14px; }
  .has-menu.open .menu { display: grid; }
  .has-menu:hover:not(.open) .menu { display: none; }
}

/* Page hero */
.hero { padding-block: clamp(64px, 9vw, 120px) clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; font-size: .92rem; color: var(--fg-muted); }
.hero-proof span::before { content: "✓"; color: var(--blue); font-weight: 800; margin-right: 8px; }
.page-hero { padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero .lede { margin-top: 18px; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

/* Ticket mockup */
.ticket { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; font-size: .88rem; max-width: 460px; margin-inline: auto; width: 100%; }
.ticket-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: var(--surface-dark); color: var(--fg-on-dark); font-weight: 600; }
.pill { background: var(--cyan); color: #10222c; font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; letter-spacing: .04em; white-space: nowrap; }
.ticket-body { padding: 18px; display: grid; gap: 12px; }
.ticket-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; }
.ticket-row b { font-weight: 600; color: var(--fg-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.ticket-flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--line); font-size: .74rem; font-weight: 600; color: var(--fg-muted); }
.ticket-flow span { padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); }
.ticket-flow span.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.ticket-flow i { font-style: normal; opacity: .5; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 44px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.step .num { width: 44px; height: 44px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 1.05rem; }
.step p { color: var(--fg-muted); font-size: .97rem; }
.step ul { margin: 4px 0 0; padding-left: 18px; color: var(--fg-muted); font-size: .92rem; display: grid; gap: 4px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Feature rows (alternating image/text) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature + .feature { margin-top: clamp(48px, 7vw, 88px); }
.feature.flip .feature-art { order: -1; }
.feature-art { min-width: 0; }
.feature-text { min-width: 0; display: grid; gap: 14px; }
.feature-text p { color: var(--fg-muted); }
.feature-text ul { margin: 0; padding-left: 20px; color: var(--fg-muted); display: grid; gap: 6px; }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; } .feature.flip .feature-art { order: 0; } }

/* Art tiles: sign-type placeholders until real samples exist */
.tile { aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-alt); position: relative; overflow: hidden; display: grid; place-items: center; }
.tile::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 24px 24px; opacity: .55; }
.tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--spectrum); }
.tile .lab { position: relative; background: var(--surface-dark); color: var(--fg-on-dark); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 8px 14px; border-radius: 6px; text-align: center; }
.tile .note { position: absolute; top: 10px; right: 10px; font-size: .7rem; font-weight: 600; color: var(--fg-muted); background: var(--surface); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.gallery .tile { aspect-ratio: 1; }
.tile.photo { background: var(--surface-dark); }
.tile.photo::before { display: none; }
.tile.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile.wide { aspect-ratio: 4 / 3; }
.gallery.boards { grid-template-columns: repeat(2, 1fr); }
.gallery.boards .tile { aspect-ratio: 16 / 9; }
.tile.photo.board { background: #fff; }
.tile.photo.board img { object-fit: contain; }
@media (max-width: 600px) { .gallery.boards { grid-template-columns: 1fr; } }
.tile.photo.draw { background: #fff; }
.tile.photo.draw img { object-fit: contain; }
.tile.photo .lab { position: absolute; left: 12px; bottom: 16px; background: rgba(54,54,60,.88); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card p { color: var(--fg-muted); font-size: .97rem; }
.card ul { margin: 0; padding-left: 18px; color: var(--fg-muted); font-size: .93rem; display: grid; gap: 5px; }
.card .link, .card .btn { margin-top: auto; align-self: flex-start; }
.card.featured { border-top: 5px solid; border-image: var(--spectrum) 1; }
.card .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--bg-alt); display: grid; place-items: center; color: var(--blue); font-weight: 800; font-size: 1.1rem; }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.benefit { display: grid; gap: 8px; border-top: 3px solid var(--blue); padding-top: 14px; min-width: 0; }
.benefit p { color: var(--fg-muted); font-size: .95rem; }
.band-dark .benefit { border-top-color: var(--cyan); }
@media (max-width: 1000px) { .cards, .cards.four { grid-template-columns: repeat(2, 1fr); } .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards, .cards.two, .cards.four { grid-template-columns: 1fr; } .benefits { grid-template-columns: 1fr; } }

/* Check lists */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: baseline; }
.checks li::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--cyan); flex: none; transform: translateY(-1px); }
.checks li .muted { font-size: .92rem; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; position: relative; }
.plan.popular { border-color: var(--blue); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -13px; left: 24px; }
.plan .price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: .95rem; font-weight: 500; color: var(--fg-muted); letter-spacing: 0; }
.plan .hours { font-weight: 600; color: var(--blue); }
.plan .rate { font-size: .85rem; color: var(--fg-muted); }
.plan .btn { margin-top: auto; }
.plan .checks { font-size: .93rem; }
.plan .adds { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-muted); font-weight: 700; }
.flex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.compare { width: 100%; border-collapse: collapse; font-size: .93rem; margin-top: 28px; min-width: 720px; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-muted); font-weight: 700; }
.compare td:first-child { font-weight: 600; }
.compare .yes { color: var(--blue); font-weight: 700; }
.scroll { overflow-x: auto; }
@media (max-width: 1000px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .price-grid, .flex-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 36px; border-top: 1px solid var(--line); max-width: 860px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--blue); }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 22px; color: var(--fg-muted); max-width: 68ch; }

/* Articles */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.filters button { border: 1px solid var(--line); background: var(--surface); color: var(--fg-muted); font: inherit; font-size: .88rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.post .tile { aspect-ratio: 16 / 9; border: 0; border-radius: 0; }
.post-body { padding: 20px 22px 24px; display: grid; gap: 10px; }
.post-meta { font-size: .8rem; color: var(--fg-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.post-meta .cat { color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.post h3 { font-size: 1.1rem; }
.post p { color: var(--fg-muted); font-size: .95rem; }
.pager { display: flex; gap: 8px; margin-top: 32px; }
.pager a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 600; color: var(--fg-muted); }
.pager a[aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; }
@media (max-width: 900px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }

/* CTA band */
.cta-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 800px) { .cta-inner { grid-template-columns: 1fr; } .cta-actions { justify-content: flex-start; } }
.contact-strip { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-top: 40px; }
.contact-strip strong { font-size: 1.1rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.stat { border-left: 3px solid var(--cyan); padding-left: 16px; min-width: 0; }
.stat b { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat span { color: var(--fg-muted); font-size: .92rem; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Forms */
.form { display: grid; gap: 16px; max-width: 560px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); width: 100%; }
.form textarea { min-height: 120px; resize: vertical; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.notice { margin-top: 16px; padding: 14px 16px; border-radius: 8px; background: var(--bg-alt); border: 1px solid var(--line); font-size: .95rem; }
@media (max-width: 520px) { .form .two { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { padding-block: 44px 32px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--fg-muted); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { margin: 0 0 12px; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--fg); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--blue); }
.copy { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; }
@media (max-width: 800px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Theme toggle */
.theme-toggle { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg-muted); display: grid; place-items: center; cursor: pointer; padding: 0; flex: 0 0 auto; }
.theme-toggle:hover { color: var(--blue); border-color: var(--blue); }
.theme-toggle .ico-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: block; }
html { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
