/* DirtyTinder — mobile-first (base = phones 320px+) */

:root {
  --ink: #0e0f0c;
  --surface: #171a14;
  --surface-2: #1f241c;
  --gold: #d4a853;
  --gold-dim: #a8843f;
  --rose: #e85d8a;
  --cream: #f2ebe0;
  --ash: #9a958a;
  --line: rgba(212, 168, 83, 0.22);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --pad-x: 1rem;
  --section-y: 1.5rem;
  --max: 1040px;
  --touch: 2.75rem;
  --header-h: 3.25rem;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--cream);
  background: var(--ink);
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: var(--gold); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* —— Header (mobile) —— */
.masthead {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 15, 12, 0.98);
  padding-top: env(safe-area-inset-top);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.masthead__wrap {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--header-h);
  padding: 0.5rem 0;
}

.brand {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand em {
  font-style: normal;
  color: var(--rose);
}

.masthead__tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.menu-btn {
  min-height: var(--touch);
  min-width: var(--touch);
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--cream);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.menu-btn:active {
  background: var(--surface-2);
}

.btn-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  padding: 0 1rem;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(105deg, var(--gold), #f0c878);
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn-enter:active {
  filter: brightness(0.95);
}

.btn-enter--header {
  padding-inline: 0.85rem;
}

.btn-enter--lg {
  width: 100%;
  min-height: 3rem;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  border-radius: 10px;
}

.btn-enter--ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
}

.btn-enter--ghost:active {
  background: rgba(212, 168, 83, 0.08);
}

.main-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  flex-basis: 100%;
  width: 100%;
  order: 10;
  margin: 0 calc(-1 * var(--pad-x));
  padding: 0.35rem var(--pad-x) max(0.85rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.main-nav.is-open {
  display: flex;
}

.main-nav a {
  display: flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0 0.25rem;
  color: var(--ash);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid rgba(212, 168, 83, 0.12);
  -webkit-tap-highlight-color: transparent;
}

.main-nav a:last-child {
  border-bottom: none;
}

.main-nav a:active {
  color: var(--cream);
}

.main-nav__cta {
  margin-top: 0.65rem;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-backdrop.is-visible {
  display: block;
}

/* —— Hero (mobile: copy first, then image) —— */
.intro {
  padding: var(--section-y) 0;
}

.intro__layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.1rem;
}

.intro__copy {
  order: 1;
  width: 100%;
  text-align: left;
}

.intro__visual {
  order: 2;
  flex: 0 0 auto;
  width: min(9.5rem, 38vw);
  max-width: 100%;
  margin: 0 auto;
}

.intro__visual img {
  width: 100%;
  aspect-ratio: 1;
  max-height: none;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.intro__eyebrow {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  border-radius: 6px;
  line-height: 1.2;
}

.intro__copy h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.28rem, 5.8vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.intro__lead {
  margin: 0 0 1rem;
  color: var(--ash);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.intro__lead strong {
  color: var(--cream);
}

.intro__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill-row li {
  padding: 0.38rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ash);
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--surface);
}

/* —— Sections (mobile) —— */
.section-block {
  padding: var(--section-y) 0;
}

.section-block h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.15rem, 4.5vw, 1.5rem);
  font-weight: 700;
  text-align: left;
  line-height: 1.25;
}

.section-block > p.sub {
  margin: 0 0 1rem;
  text-align: left;
  color: var(--ash);
  font-size: 0.9rem;
  line-height: 1.5;
}

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.bento__cell {
  padding: 1rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.bento__cell h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.3;
}

.bento__cell p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ash);
  line-height: 1.5;
}

.bento__cell--accent {
  background: var(--surface-2);
  border-color: rgba(232, 93, 138, 0.28);
}

.pull-cta {
  padding-block: var(--section-y);
  padding-bottom: max(var(--section-y), env(safe-area-inset-bottom));
  text-align: center;
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}

.pull-cta__text {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

.faq-list {
  width: 100%;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--touch);
  padding: 0.65rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  list-style: none;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
  color: var(--gold);
  font-size: 1.1rem;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0 0 0.85rem;
  padding-bottom: 0.25rem;
  font-size: 0.875rem;
  color: var(--ash);
  text-align: left;
  line-height: 1.55;
}

.legal-page {
  padding: var(--section-y) 0 max(2rem, env(safe-area-inset-bottom));
}

.legal-page h1 {
  font-size: clamp(1.25rem, 5vw, 1.45rem);
  font-weight: 700;
  margin-top: 0;
  line-height: 1.25;
}

.legal-box {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ash);
  font-size: 0.9rem;
  line-height: 1.55;
}

.legal-box p {
  margin: 0 0 0.65rem;
}

.site-foot {
  padding: 1.35rem var(--pad-x) max(1.75rem, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.78rem;
  color: var(--ash);
  border-top: 1px solid var(--line);
}

.foot-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0 0.5rem;
  color: var(--ash);
  text-decoration: none;
}

.site-foot p {
  margin: 0;
  line-height: 1.45;
}

/* —— Larger phones (375px+) —— */
@media (min-width: 375px) {
  :root {
    --pad-x: 1.125rem;
    --section-y: 1.65rem;
  }

  .brand {
    font-size: 1.05rem;
  }

  .intro__visual {
    width: min(10rem, 36vw);
  }
}

/* —— Tablet (640px+) —— */
@media (min-width: 640px) {
  :root {
    --pad-x: 1.35rem;
    --section-y: 2rem;
    --header-h: 3.5rem;
  }

  .intro__visual {
    width: 11.5rem;
    margin-inline: auto;
  }

  .section-block h2,
  .section-block > p.sub {
    text-align: center;
  }

  .bento {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .bento__cell--wide {
    grid-column: 1 / -1;
  }

  .foot-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
  }

  .foot-links a {
    min-height: auto;
    padding: 0.25rem 0.5rem;
  }
}

/* —— Desktop (768px+) —— */
@media (min-width: 768px) {
  :root {
    --section-y: 2.35rem;
  }

  body.nav-open {
    overflow: auto;
    touch-action: auto;
  }

  .nav-backdrop {
    display: none !important;
  }

  .masthead__wrap {
    flex-wrap: nowrap;
    gap: 1rem;
    padding: 0.55rem 0;
  }

  .brand {
    flex: 0 0 auto;
  }

  .menu-btn {
    display: none;
  }

  .main-nav {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 1rem;
    flex-basis: auto;
    width: auto;
    order: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
  }

  .main-nav a {
    display: inline;
    min-height: 0;
    padding: 0.25rem 0;
    border: none;
    font-size: 0.9rem;
  }

  .main-nav__cta {
    display: none;
  }

  .intro__layout {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    max-width: 920px;
    margin-inline: auto;
  }

  .intro__copy,
  .intro__visual {
    order: unset;
  }

  .intro__visual {
    flex-shrink: 0;
    width: 12.5rem;
    margin: 0;
  }

  .intro__visual img {
    max-height: 12.5rem;
  }

  .intro__copy {
    flex: 1;
    min-width: 0;
    text-align: left;
  }

  .intro__copy h1 {
    font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  }

  .intro__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .btn-enter--lg {
    width: auto;
    min-width: 11rem;
  }

  .faq-list {
    max-width: 40rem;
    margin-inline: auto;
  }
}

/* —— Wide desktop (960px+) —— */
@media (min-width: 960px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }

  .bento__cell--wide {
    grid-column: span 2;
  }
}
