/* Chronic Dunks — site styles. The accent comes from config.php (--cd-accent). */
:root {
  --cd-ink: #121212;
  --cd-ink-2: #444444;
  --cd-ink-3: #555555;
  --cd-bg: #FFFFFF;
  --cd-soft: #F2F2EE;
  --cd-line: #E4E4DF;
  --cd-line-2: #C9C9C2;
  --cd-accent: #FF5A1F;
  --cd-ok: #1F6A2E;
  --cd-radius: 18px;
  --cd-display: Anton, Impact, "Arial Narrow", sans-serif;
  --cd-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cd-bg); color: var(--cd-ink); font: 16px/1.55 var(--cd-body); }
img, svg { max-width: 100%; }
a { color: var(--cd-ink); }
a:hover { color: #5A2A12; }
h1, h2, h3 { line-height: 1.05; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--cd-accent); outline-offset: 2px; }

.cd-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.cd-display { font-family: var(--cd-display); font-weight: 400; text-transform: uppercase; letter-spacing: .5px; }
.cd-eyebrow { font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #5A2A12; }
.cd-muted { color: var(--cd-ink-2); }
.cd-skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 50; }
.cd-skip:focus { left: 8px; }

/* Buttons */
.cd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px;
  border-radius: 999px; font: 700 16px/1 var(--cd-body); text-decoration: none; border: 2px solid var(--cd-ink);
  background: #fff; color: var(--cd-ink); cursor: pointer; }
.cd-btn:hover { color: var(--cd-ink); background: var(--cd-soft); }
.cd-btn-accent { background: var(--cd-accent); border-color: var(--cd-accent); }
.cd-btn-accent:hover { background: var(--cd-accent); filter: brightness(.95); }
.cd-btn-dark { background: var(--cd-ink); color: #fff; }
.cd-btn-dark:hover { background: #000; color: #fff; }
.cd-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--cd-line-2); background: #fff; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--cd-ink); }
.cd-chip[aria-current="true"] { background: var(--cd-ink); border-color: var(--cd-ink); color: #fff; }

/* Header */
.cd-head { border-bottom: 1px solid var(--cd-line); background: #fff; position: sticky; top: 0; z-index: 20; }
.cd-head-in { display: flex; align-items: center; gap: 12px 28px; min-height: 68px; flex-wrap: wrap; }
.cd-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.cd-logo span { font-family: var(--cd-display); font-size: 26px; letter-spacing: 1px; text-transform: uppercase; color: var(--cd-ink); }
.cd-nav { display: flex; gap: 6px 24px; flex-wrap: wrap; font-weight: 500; }
.cd-nav a { text-decoration: none; padding: 10px 2px; }
.cd-nav a[aria-current="page"] { border-bottom: 2px solid var(--cd-ink); }

/* Sections */
.cd-section { padding: 80px 0; }
.cd-section-soft { background: var(--cd-soft); }
.cd-section-dark { background: var(--cd-ink); color: #fff; }
.cd-section-dark .cd-muted { color: #D6D6D0; }
.cd-section-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }
.cd-section-head h2 { font-family: var(--cd-display); font-weight: 400; text-transform: uppercase; font-size: clamp(38px, 5vw, 56px); }
.cd-section-head p { margin-top: 10px; font-size: 18px; }

/* Hero */
.cd-hero { padding: 64px 0 56px; }
.cd-hero-in { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.cd-hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.cd-hero h1 { font-family: var(--cd-display); font-weight: 400; text-transform: uppercase; font-size: clamp(54px, 8vw, 104px); line-height: .95; }
.cd-hero-lede { font-size: 20px; color: var(--cd-ink-2); max-width: 540px; }
.cd-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cd-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-weight: 500; }
.cd-ticks li { display: flex; gap: 8px; align-items: center; }
.cd-ticks li::before { content: ""; width: 18px; height: 18px; flex: 0 0 auto;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121212' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E"); }
.cd-hero-art { flex: 1 1 380px; min-width: 0; position: relative; display: flex; justify-content: center; }
.cd-hero-art .cd-blob { position: absolute; inset: 4% 6%; background: var(--cd-accent); border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%; }
.cd-hero-art .cd-garment { position: relative; width: min(440px, 88%); filter: drop-shadow(0 18px 24px rgba(0,0,0,.22)); }

/* Cards */
.cd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.cd-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--cd-ink); }
.cd-card:hover { color: var(--cd-ink); }
.cd-card-art { position: relative; background: var(--cd-soft); border-radius: var(--cd-radius); aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center; overflow: hidden; transition: transform .15s ease; }
.cd-card:hover .cd-card-art { transform: translateY(-3px); }
.cd-card-art .cd-garment { width: 78%; height: auto; }
.cd-card-row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-weight: 700; font-size: 17px; }
.cd-card-note { font-size: 14px; color: var(--cd-ink-3); }
.cd-badge { position: absolute; top: 12px; left: 12px; background: var(--cd-ink); color: #fff; font-size: 12px; font-weight: 700;
  padding: 6px 10px; border-radius: 999px; }

/* Template cards: open straight in the studio */
.cd-tpl-art { aspect-ratio: 4 / 5; }
.cd-tpl-art .cd-garment { width: 92%; }
.cd-tpl-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cd-tpl-foot b { display: block; font-size: 16px; }
.cd-tpl-foot small { color: var(--cd-ink-3); font-size: 13px; }
.cd-tpl-go { flex: 0 0 auto; font-weight: 700; font-size: 14px; padding: 9px 15px; border-radius: 999px; border: 2px solid var(--cd-ink); }
.cd-card:hover .cd-tpl-go { background: var(--cd-ink); color: #fff; }

/* Steps */
.cd-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cd-steps li { border: 2px solid var(--cd-ink); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.cd-steps li:last-child { background: var(--cd-accent); }
.cd-steps .cd-num { font-family: var(--cd-display); font-size: 60px; line-height: 1; }
.cd-steps h3 { font-size: 22px; }

/* Studio showcase */
.cd-split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.cd-split > * { flex: 1 1 420px; min-width: 0; }
.cd-feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.cd-feature-list li { display: flex; gap: 12px; align-items: center; }
.cd-feature-list li::before { content: ""; width: 10px; height: 10px; border-radius: 5px; background: var(--cd-accent); flex: 0 0 auto; }
.cd-mock { background: #1F1F1D; border: 1px solid #3A3A36; border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.cd-mock-canvas { background: #fff; border-radius: 16px; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cd-mock-canvas .cd-garment { width: 70%; }
.cd-mock form { display: flex; flex-wrap: wrap; gap: 10px; }
.cd-mock label { color: #D6D6D0; font-size: 14px; font-weight: 500; width: 100%; }
.cd-mock input { flex: 1 1 220px; min-width: 0; min-height: 48px; border-radius: 12px; border: 1px solid #4A4A45; background: #121212;
  color: #fff; font: 16px var(--cd-body); padding: 0 16px; }

/* Pricing */
.cd-price-box { border: 2px solid var(--cd-ink); border-radius: 28px; padding: 40px; display: flex; flex-wrap: wrap; gap: 36px; }
.cd-price-box > div { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cd-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--cd-line); background: #fff; }
.cd-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 380px; }
.cd-table th, .cd-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--cd-line); }
.cd-table tr:last-child td { border-bottom: 0; }
.cd-table th { background: var(--cd-soft); }

/* FAQ */
.cd-faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.cd-faq details { background: #fff; border-radius: 16px; padding: 20px 24px; }
.cd-faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; }
.cd-faq summary::-webkit-details-marker { display: none; }
.cd-faq details p { margin-top: 12px; color: var(--cd-ink-2); }

/* CTA band */
.cd-band { background: var(--cd-accent); }
.cd-band .cd-wrap { padding-top: 60px; padding-bottom: 60px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cd-band h2 { font-family: var(--cd-display); font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 5vw, 68px); }

/* Product page */
.cd-crumbs { font-size: 14px; color: var(--cd-ink-3); padding: 24px 0 0; }
.cd-crumbs a { color: var(--cd-ink-3); }
.cd-product { display: flex; flex-wrap: wrap; gap: 44px; padding: 24px 0 64px; align-items: flex-start; }
.cd-product-art { flex: 1 1 460px; min-width: 0; background: var(--cd-soft); border-radius: 24px; aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center; }
.cd-product-art .cd-garment { width: 74%; }
.cd-product-buy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.cd-product-buy h1 { font-family: var(--cd-display); font-weight: 400; text-transform: uppercase; font-size: 56px; }
.cd-price-big { font-size: 26px; font-weight: 700; }
.cd-price-big small { font-size: 15px; font-weight: 500; color: var(--cd-ink-3); }
.cd-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.cd-swatch { width: 44px; height: 44px; border-radius: 22px; border: 1px solid #9A9A92; display: inline-block; }
.cd-swatch[aria-current="true"] { border: 3px solid var(--cd-ink); box-shadow: inset 0 0 0 3px #fff; }
.cd-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.cd-sizes span { min-width: 52px; text-align: center; padding: 10px 12px; border: 1px solid var(--cd-line-2); border-radius: 10px; font-weight: 700; }
.cd-note-box { background: var(--cd-soft); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }

/* Ideas */
.cd-ideas-hero { background: var(--cd-ink); color: #fff; padding: 56px 0; }
.cd-ideas-hero h1 { font-family: var(--cd-display); font-weight: 400; text-transform: uppercase; font-size: clamp(46px, 6vw, 80px); }
.cd-ideas-hero p { color: #D6D6D0; font-size: 18px; max-width: 620px; margin-top: 14px; }
.cd-ideas-hero form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 760px; margin-top: 22px; }
.cd-ideas-hero input { flex: 1 1 300px; min-width: 0; min-height: 56px; border-radius: 14px; border: 1px solid #4A4A45; background: #1F1F1D;
  color: #fff; font: 16px var(--cd-body); padding: 0 18px; }
.cd-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 32px 0 8px; }
.cd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Footer */
.cd-foot { background: var(--cd-ink); color: #D6D6D0; margin-top: 0; }
.cd-foot-in { padding-top: 64px; padding-bottom: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px; }
.cd-foot-in nav, .cd-foot-in > div { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.cd-foot-in b { color: #fff; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.cd-foot a { color: #D6D6D0; text-decoration: none; }
.cd-foot a:hover { color: #fff; }
.cd-foot-brand .cd-display { font-size: 28px; color: #fff; }
.cd-foot-base { border-top: 1px solid #3A3A36; padding-top: 18px; padding-bottom: 28px; font-size: 13px; }

/* Bottom tabs: phones only */
.cd-tabs { display: none; }
@media (max-width: 760px) {
  .cd-nav, .cd-head-cta { display: none; }
  .cd-section { padding: 56px 0; }
  .cd-price-box { padding: 26px 20px; }
  body { padding-bottom: 72px; }
  .cd-tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: #fff; border-top: 1px solid var(--cd-line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .cd-tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700;
    text-decoration: none; color: var(--cd-ink-3); min-height: 48px; justify-content: center; }
  .cd-tabs a[aria-current="page"] { color: var(--cd-ink); }
  .cd-tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .cd-tabs .cd-tab-main svg { background: var(--cd-accent); color: var(--cd-ink); border-radius: 12px; width: 34px; height: 30px; padding: 4px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
