/* DAYSTY polish layer. Loaded after site.css; refines layout, header, mobile navigation and forms. */
:root { --d-top-h: 68px; color-scheme: dark; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.daysty-site { font-family: var(--d-font-body); font-size: 16px; line-height: 1.6; }
.daysty-site h1, .daysty-site h2, .daysty-site h3 { font-family: var(--d-font-head); font-weight: 800; letter-spacing: -.02em; }
.daysty-site input, .daysty-site select, .daysty-site textarea, .daysty-site button { font-family: var(--d-font-body); font-size: 16px; }
.d-btn { white-space: nowrap; line-height: 1; }
.d-btn--primary { box-shadow: 0 6px 18px -8px rgba(229, 23, 58, .7); }
.d-btn--lg-inline { min-height: 50px; padding: 0 26px; font-size: 16px; }

/* header */
.d-top { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: 'brand nav search actions'; align-items: center; column-gap: 28px; min-height: var(--d-top-h); padding: 0 28px; }
.d-brand { grid-area: brand; display: block; }
.d-top .d-logo { --w: 150px !important; }
.d-nav { grid-area: nav; }
.d-nav a { font-size: 15px; }
.d-top .d-search { grid-area: search; margin: 0; width: 100%; max-width: 560px; justify-self: center; position: relative; }
.d-top .d-search input { height: 42px; padding: 0 18px 0 44px; font-size: 15px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A0A0AB' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 16px 50%; background-size: 18px; }
.d-top .d-search input:focus { outline: none; border-color: var(--d-violet); box-shadow: 0 0 0 3px var(--d-violet-soft); }
.d-top .d-actions { grid-area: actions; margin: 0; }

/* 18+ notice: one slim line */
.d-age { display: flex; align-items: center; gap: 10px; padding: 8px 28px; font-size: 13px; line-height: 1.45; background: rgba(140, 98, 246, .10); border-bottom: 1px solid var(--d-line); }
.d-age b { flex: none; background: var(--d-red); color: #fff; padding: 2px 8px; border-radius: 6px; font-size: 11px; letter-spacing: .06em; }
.d-age span { color: var(--d-muted); }
.d-age a { color: var(--d-text); text-decoration: underline; }

/* shell */
.d-shell { max-width: 1480px; }
.d-rail { top: var(--d-top-h); height: calc(100vh - var(--d-top-h)); }
.d-rail__empty { color: var(--d-muted); font-size: 14px; margin: 0 var(--d-s2); }
.d-main { position: relative; isolation: isolate; padding: 0 var(--d-s6) var(--d-s6); }

/* hero */
.d-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 56px 0 64px; position: relative; }
.d-hero::before { content: ''; position: absolute; z-index: -1; inset: 0 -32px auto -32px; height: 460px; pointer-events: none; background: radial-gradient(520px 300px at 10% 0%, rgba(229, 23, 58, .20), transparent 70%), radial-gradient(460px 280px at 95% 10%, rgba(140, 98, 246, .18), transparent 70%); }
.d-eyebrow { font: 700 12px var(--d-font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--d-red-logo); margin: 0 0 16px; }
.d-hero h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.05; font-weight: 800; max-width: 17ch; }
.d-hero__lede { font-size: 18px; color: var(--d-muted); max-width: 52ch; margin: 20px 0 28px; }
.d-hero .d-actions { margin: 0 0 28px; flex-wrap: wrap; }
.d-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--d-muted); font-size: 14px; }
.d-trust li { display: flex; align-items: center; gap: 8px; }
.d-trust li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--d-red-logo); flex: none; }
.d-hero__steps { background: rgba(26, 26, 34, .6); border: 1px solid var(--d-line); border-radius: var(--d-r-lg); padding: var(--d-s4); gap: var(--d-s2); }
.d-hero__steps li { background: transparent; border: 0; border-bottom: 1px solid var(--d-line); border-radius: 0; padding: var(--d-s3) var(--d-s2); }
.d-hero__steps li:last-child { border-bottom: 0; }
.d-link { color: var(--d-muted); font-weight: 600; text-decoration: underline; white-space: nowrap; }
.d-link:hover { color: var(--d-text); }
.d-head { margin-top: var(--d-s2); }
.d-empty--compact { grid-template-columns: 1fr; padding: var(--d-s6); }
.d-empty--compact h3 { font-size: 24px; margin-bottom: 8px; }
.d-split { margin-top: var(--d-s7); }
.d-panel { padding: var(--d-s6); }
.d-panel ul { line-height: 1.6; }

/* inner pages */
.d-page { padding: var(--d-s7) var(--d-s5) var(--d-s6); }
.d-auth__intro h1 { letter-spacing: -.03em; }
.d-field label { color: var(--d-text); }
.d-field input, .d-field select, .d-field textarea { font-size: 16px; }
.d-btn--block { min-height: 48px; }
.d-head h1 { letter-spacing: -.03em; }

/* footer */
.d-foot { max-width: 1480px; margin: var(--d-s8) auto 0; padding: var(--d-s5) 28px; }
.d-foot nav { gap: var(--d-s2) var(--d-s5); }

/* gate heading is an h2 now */
.d-gate h2 { font-size: clamp(26px, 4.5vw, 38px); font-weight: 800; margin-bottom: 12px; }

/* mobile tab bar */
.d-tabbar { display: none; }

@media (max-width: 1000px) {
  .d-main { padding: 0 var(--d-s4) var(--d-s5); }
  .d-hero { grid-template-columns: 1fr; gap: 32px; padding: 36px 0 40px; }
  .d-hero::before { inset: 0 -16px auto -16px; height: 380px; }
}
@media (max-width: 900px) {
  body.daysty-site { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .d-tabbar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(16, 16, 20, .96); border-top: 1px solid var(--d-line); backdrop-filter: blur(8px); padding-bottom: env(safe-area-inset-bottom); }
  .d-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px; font-size: 11px; font-weight: 600; color: var(--d-muted); }
  .d-tabbar a[aria-current='page'] { color: var(--d-text); }
  .d-tabbar a[aria-current='page'] svg { stroke: var(--d-red-logo); }
  .d-tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .d-foot { padding: var(--d-s5) var(--d-s4); flex-direction: column; gap: var(--d-s3); }
}
@media (max-width: 760px) {
  .d-top { grid-template-columns: 1fr auto; grid-template-areas: 'brand actions' 'search search'; row-gap: 10px; min-height: 0; padding: 10px 16px 12px; }
  .d-top .d-logo { --w: 122px !important; }
  .d-nav { display: none; }
  .d-hide-sm { display: none; }
  .d-top .d-btn { min-height: 38px; padding: 0 14px; font-size: 14px; }
  .d-top .d-search input { height: 40px; }
  .d-age { padding: 8px 16px; font-size: 12px; align-items: flex-start; }
  .d-hero { padding: 28px 0 32px; }
  .d-hero h1 { font-size: 34px; }
  .d-hero__lede { font-size: 16px; margin: 16px 0 22px; }
  .d-hero .d-actions .d-btn { flex: 1 1 100%; }
  .d-head { align-items: flex-start; }
  .d-head h2 { font-size: 22px; }
  .d-empty--compact { padding: var(--d-s5); }
  .d-empty .d-actions .d-btn, .d-panel .d-actions .d-btn { width: 100%; }
  .d-panel { padding: var(--d-s5); }
  .d-split { margin-top: var(--d-s6); gap: var(--d-s4); }
  .d-page { padding: var(--d-s5) var(--d-s4) var(--d-s5); }
  .d-auth { gap: var(--d-s5); }
  .d-auth__intro h1 { font-size: 34px; margin-bottom: var(--d-s3); }
  .d-auth__intro p { font-size: 16px; }
  .d-auth__intro .d-ticks { display: none; }
  .d-auth__card { padding: var(--d-s5); }
  .d-filters { grid-template-columns: 1fr 1fr; }
  .d-pref__row { grid-template-columns: 1fr 1fr; }
}
/* ---------- creator onboarding (0.4.0) ---------- */
.d-onb { margin-top: var(--d-s5); scroll-margin-top: 90px; }
.d-onb__head { display: flex; justify-content: space-between; gap: var(--d-s4); align-items: flex-start; flex-wrap: wrap; margin-bottom: var(--d-s4); }
.d-onb__head p { max-width: 620px; margin: 0; }
.d-onb__status { display: flex; gap: var(--d-s3); align-items: center; flex-wrap: wrap; }
.d-onb__form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.d-onb__form fieldset[disabled] { opacity: .55; }
.d-onb__grid { display: grid; grid-template-columns: 260px 1fr; gap: var(--d-s6); }
.d-onb__preview { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--d-r-lg); background: var(--d-raised) center / cover no-repeat; border: 1px solid var(--d-line); display: grid; place-items: center; margin-bottom: var(--d-s4); }
.d-onb__preview span { font-family: var(--d-font-head); font-size: 72px; font-weight: 800; color: var(--d-muted); }
.d-onb__photo input[type=file] { min-height: 0; padding: 10px; font-size: 14px; }
.d-onb__photo input[type=file]::file-selector-button { background: var(--d-raised); color: var(--d-text); border: 1px solid var(--d-line); border-radius: 8px; padding: 6px 12px; margin-right: 10px; font: inherit; cursor: pointer; }
.d-onb__cats { border: 0; padding: 0; }
.d-onb__cats legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.d-onb__cats legend small { color: var(--d-muted); font-weight: 400; }
.d-onb__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.d-onb__chip { position: relative; cursor: pointer; }
.d-onb__chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.d-onb__chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--d-line); background: var(--d-bg); font-size: 14px; }
.d-onb__chip input:checked + span { border-color: var(--d-red); background: rgba(229, 23, 58, .14); }
.d-onb__chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--d-violet-soft); }
.d-onb__chip input:disabled + span { opacity: .45; cursor: not-allowed; }
.d-onb__declare { margin-top: var(--d-s5); padding-top: var(--d-s5); border-top: 1px solid var(--d-line); }
.d-onb__declare h3 { font-family: var(--d-font-head); font-size: 18px; margin: 0 0 var(--d-s2); }
.d-onb__declare p { max-width: 720px; }
.d-onb__actions { display: flex; gap: var(--d-s3); flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) {
  .d-onb__grid { grid-template-columns: 1fr; gap: var(--d-s4); }
  .d-onb__preview { max-width: 220px; }
  .d-onb__actions .d-btn { flex: 1 1 100%; }
}
.d-panel .d-field__err, .d-panel .d-alert { color: var(--d-alert); }
.d-panel .d-alert { color: var(--d-text); }
.d-panel p.d-field__err { color: var(--d-alert); }
