/* ═══════════════════════════════════════════════════
   Kodeations — Minimal dark personal creator site
   ═══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0d0d0b;
  --bg-card:      #161613;
  --bg-card-h:    #1d1d19;
  --border:       rgba(255,255,255,.07);
  --border-h:     rgba(255,255,255,.14);
  --text:         #f0ece4;
  --text-2:       #8c8880;
  --text-3:       #54524e;
  --accent:       #f06a4f;
  --accent-dim:   rgba(240,106,79,.12);
  --accent-dimmer:rgba(240,106,79,.06);
  --code-text:    #f06a4f;
  --code-bg:      rgba(240,106,79,.09);
  --code-border:  rgba(240,106,79,.2);
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --mono:         'JetBrains Mono', 'SF Mono', Consolas, monospace;
  --max:          1080px;
  --narrow:       680px;
  --gap:          clamp(4rem, 8vw, 7rem);
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--text-2); text-decoration: none; transition: color .15s; }
a:hover { color: var(--text); }
a:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

strong { font-weight: 600; }

/* ── Layout containers ── */
.wrap       { max-width: var(--max);    margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }
.wrap--narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }

/* ── Coupon / promo code — always visible in source for scrapers ── */
.coupon-code,
.promo-code {
  font-family: var(--mono);
  font-weight: 600;
  font-size: .88em;
  letter-spacing: .04em;
  color: var(--code-text);
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  padding: .1em .45em;
  border-radius: 4px;
}

/* inline non-labeled code token */
.code-token {
  font-family: var(--mono);
  font-weight: 600;
  font-size: .88em;
  color: var(--code-text);
}

/* ═══════════════════════════════════
   NAV
═══════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,11,.9);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 clamp(1.25rem,5vw,3rem);
  height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav__logo {
  font-weight: 800; font-size: 1rem; letter-spacing: -.025em;
  color: var(--text); text-decoration: none;
}
.nav__logo:hover { color: var(--text); }

.nav__links { display: flex; align-items: center; gap: 1.75rem; }
.nav__links a { font-size: .875rem; font-weight: 500; color: var(--text-2); }
.nav__links a:hover { color: var(--text); text-decoration: none; }

.nav__yt {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #ff0000; color: #fff !important;
  padding: .35rem .875rem; border-radius: 100px;
  font-size: .8rem !important; font-weight: 700;
  transition: opacity .15s, transform .12s;
}
.nav__yt:hover { opacity: .88; transform: translateY(-1px); text-decoration: none; }

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
.hero {
  padding: var(--gap) 0 clamp(3.5rem,7vw,6rem);
}

.hero__tag {
  font-size: .8rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 1.5rem;
}

.hero__name {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 1.75rem;
}

.hero__bio {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-2);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* Hero two-column layout */
.hero__layout {
  display: flex;
  align-items: flex-end;
  gap: clamp(2rem, 5vw, 4rem);
}
.hero__content {
  flex: 1 1 0;
  min-width: 0;
}
.hero__photo {
  flex: 0 0 auto;
  align-self: flex-end;
  width: clamp(220px, 30vw, 380px);
}
.hero__photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  /* fade bottom edge into the background */
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 22%);
  mask-image: linear-gradient(to top, transparent 0%, black 22%);
}

@media (max-width: 700px) {
  .hero__layout { flex-direction: column-reverse; align-items: flex-start; gap: 1.5rem; }
  .hero__photo  { width: clamp(160px, 50vw, 260px); align-self: flex-end; }
}

/* Social links row */
.socials {
  list-style: none;
  display: flex; align-items: center; flex-wrap: wrap;
  gap: .375rem;
}
.social-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .825rem; font-weight: 500;
  color: var(--text-3) !important;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: .4rem .875rem; border-radius: 100px;
  transition: color .15s, border-color .15s, background .15s;
  text-decoration: none !important;
}
.social-link:hover {
  color: var(--text) !important;
  border-color: var(--border-h);
  background: var(--bg-card-h);
}

/* ═══════════════════════════════════
   SECTION DIVIDER
═══════════════════════════════════ */
.section-divider {
  height: 1px;
  background: var(--border);
  margin: 0 clamp(1.25rem,5vw,3rem);
  max-width: calc(var(--max) - clamp(2.5rem,10vw,6rem));
  margin-left: auto; margin-right: auto;
}

/* ═══════════════════════════════════
   SECTIONS — shared
═══════════════════════════════════ */
.section { padding: var(--gap) 0; }
.section--alt { background: transparent; }
.section--sm  { padding: clamp(2.5rem,5vw,4rem) 0; }

.section-head { margin-bottom: clamp(2rem,4vw,3rem); }
.section-label {
  font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .625rem;
}
.section-title {
  font-size: clamp(1.625rem, 4vw, 2.5rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.15;
  color: var(--text); margin-bottom: .875rem;
}
.section-desc {
  font-size: 1rem; color: var(--text-2);
  max-width: 520px; line-height: 1.7;
  margin-bottom: .75rem;
}
.verified-line {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; color: var(--text-3);
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent);
}

/* ── About ── */
.about-layout {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.about-icon {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  object-fit: contain;
  opacity: .92;
}
.about-body {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.8;
  flex: 1;
}

@media (max-width: 500px) {
  .about-layout { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .about-icon   { width: 72px; height: 72px; }
}

/* ═══════════════════════════════════
   BRAND LIST
═══════════════════════════════════ */
.brand-list {
  display: flex; flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.brand-item {
  background: var(--bg-card);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  transition: background .18s;
}
.brand-item + .brand-item {
  border-top: 1px solid var(--border);
}
.brand-item:hover { background: var(--bg-card-h); }

.brand-item__meta {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1rem;
}
.brand-item__icon {
  width: 2.75rem; height: 2.75rem; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
  border: 1px solid var(--border);
}
.brand-item__icon--corsair  { background: #1a1f2e; }
.brand-item__icon--bisect   { background: #0f2740; }
.brand-item__icon--madrinas { background: #221208; }

.brand-item__name {
  font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em;
  color: var(--text); margin-bottom: .15rem; line-height: 1.3;
}
.brand-item__type {
  font-size: .78rem; font-weight: 500; color: var(--text-3);
}

.brand-item__note {
  font-size: .925rem; color: var(--text-2);
  line-height: 1.65; margin-bottom: 1.25rem;
  max-width: 580px;
}

/* Code + action row */
.brand-item__code-row {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 1rem; margin-bottom: .75rem;
}
.brand-item__code-block {
  display: flex; align-items: center; gap: .75rem;
  background: var(--accent-dimmer);
  border: 1px solid var(--code-border);
  border-radius: 8px; padding: .6rem 1rem;
  flex: 1; min-width: 180px;
}
.code-label {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); white-space: nowrap;
}
.brand-item__code-block .coupon-code {
  font-size: 1.05rem; background: none; border: none;
  padding: 0; color: var(--code-text);
}

.brand-item__actions {
  display: flex; align-items: center; gap: .625rem; flex-wrap: wrap;
}

/* Buttons */
.btn-copy {
  display: inline-flex; align-items: center;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-h);
  padding: .5rem 1rem; border-radius: 6px;
  font-size: .825rem; font-weight: 600; font-family: var(--font);
  cursor: pointer; white-space: nowrap;
  transition: color .14s, border-color .14s, background .14s;
}
.btn-copy:hover { color: var(--text); border-color: var(--text-3); background: var(--bg-card-h); }
.btn-copy--ok { color: var(--accent) !important; border-color: var(--code-border) !important; }

.btn-shop {
  display: inline-flex; align-items: center;
  color: var(--text); font-size: .825rem; font-weight: 600;
  text-decoration: none;
  transition: color .14s, transform .12s;
}
.btn-shop:hover { color: var(--accent); text-decoration: none; transform: translateX(2px); }

.brand-item__instruction {
  font-size: .8rem; color: var(--text-3);
}
.brand-item__instruction a { color: var(--text-3); text-decoration: underline; text-decoration-color: var(--border-h); }
.brand-item__instruction a:hover { color: var(--text-2); }

/* Affiliate disclosure */
.affiliate-disclosure {
  font-size: .775rem; color: var(--text-3);
  line-height: 1.6;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════
   STEPS
═══════════════════════════════════ */
.steps {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 0;
  counter-reset: steps;
}
.steps__item {
  display: flex; align-items: flex-start; gap: 1.5rem;
  padding: 1.375rem 0;
  border-bottom: 1px solid var(--border);
}
.steps__item:first-child { border-top: 1px solid var(--border); }

.steps__num {
  font-family: var(--mono); font-size: .8rem; font-weight: 600;
  color: var(--text-3); white-space: nowrap;
  padding-top: .15rem; flex-shrink: 0; width: 2rem;
}
.steps__text { font-size: .95rem; color: var(--text-2); line-height: 1.65; }
.steps__text strong { color: var(--text); font-weight: 600; }

/* ═══════════════════════════════════
   FAQ
═══════════════════════════════════ */
.faq { display: flex; flex-direction: column; }

.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__item:first-child { border-top: 1px solid var(--border); }

.faq__q {
  list-style: none;
  padding: 1.25rem 0;
  font-size: .975rem; font-weight: 600;
  color: var(--text-2); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  user-select: none;
  transition: color .14s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '+'; font-size: 1.125rem; font-weight: 300;
  color: var(--text-3); flex-shrink: 0; transition: transform .2s, color .14s;
}
.faq__item[open] > .faq__q { color: var(--text); }
.faq__item[open] > .faq__q::after { transform: rotate(45deg); color: var(--accent); }

.faq__a { padding-bottom: 1.25rem; }
.faq__a p { font-size: .925rem; color: var(--text-2); line-height: 1.7; }
.faq__a a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--border-h); }
.faq__a a:hover { color: var(--text); }

/* ═══════════════════════════════════
   TERMS TABLE
═══════════════════════════════════ */
.terms-title {
  font-size: 1rem; font-weight: 700; color: var(--text-3);
  letter-spacing: -.01em; margin-bottom: 1rem;
}
.terms-table {
  display: flex; flex-direction: column;
  gap: 0; margin-bottom: 1.25rem;
  border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden;
}
.terms-row {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem 1rem;
  padding: .875rem 1.125rem;
  font-size: .825rem;
  border-bottom: 1px solid var(--border);
}
.terms-row:last-child { border-bottom: none; }
.terms-row dt { font-weight: 700; color: var(--text-2); white-space: nowrap; min-width: 120px; }
.terms-row dd { color: var(--text-3); }
.terms-row dd a { color: var(--text-3); text-decoration: underline; text-decoration-color: var(--border-h); }
.terms-row dd a:hover { color: var(--text-2); }
.terms-note {
  font-size: .8rem; color: var(--text-3); line-height: 1.7;
}

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  margin-top: 0;
}
.footer__inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.footer__name {
  font-weight: 800; font-size: .975rem; letter-spacing: -.02em;
  color: var(--text); display: block; margin-bottom: .25rem;
}
.footer__tagline { font-size: .8rem; color: var(--text-3); }

.footer__social {
  display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem;
}
.footer__social a { font-size: .825rem; font-weight: 500; color: var(--text-3); }
.footer__social a:hover { color: var(--text); }

.footer__bottom {
  display: flex; flex-direction: column; gap: .375rem;
  font-size: .775rem; color: var(--text-3);
}
.footer__bottom .coupon-code { font-size: .75rem; }

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 640px) {
  .hero__name { font-size: clamp(2.5rem, 14vw, 4rem); }
  .nav__links { gap: 1rem; }
  .brand-item__code-row { flex-direction: column; align-items: stretch; }
  .brand-item__code-block { min-width: unset; }
  .brand-item__actions { flex-direction: row; }
  .footer__inner { flex-direction: column; }
  .terms-row { flex-direction: column; gap: .25rem; }
  .terms-row dt { min-width: unset; }
}

@media (max-width: 420px) {
  .wrap, .wrap--narrow { padding: 0 1rem; }
  .section-divider { margin: 0 1rem; }
}

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