/* ============================================================
   Notcoin-style monochrome tokens
   Pure-black canvas, white type, one muted opacity tier.
   Mobile-first, fluid clamp() type + spacing, safe-area aware.
   ============================================================ */

:root {
  /* Color: strict binary + muted tier */
  --color-bg: #000000;
  --color-fg: #ffffff;
  --color-muted: rgba(235, 235, 245, 0.6); /* white ~60% */
  --color-cta-bg: #ffffff;
  --color-cta-fg: #000000;
  --color-accent: #ffce4e; /* single warm-gold accent (Notcoin footer links) */

  /* Fluid type scale (rem term included for zoom/WCAG 1.4.4) */
  --fs-base: clamp(1rem, 0.208vw + 0.958rem, 1.125rem);   /* 16-18px */
  --fs-lg:   clamp(1.25rem, 0.417vw + 1.167rem, 1.5rem);  /* 20-24px subtext */
  --fs-3xl:  clamp(2.441rem, 1.856vw + 2.071rem, 3.552rem); /* headline */

  /* Fluid spacing tokens */
  --space-sm: clamp(12px, 2.5vw, 20px);
  --space-md: clamp(16px, 4vw, 28px);
  --space-lg: clamp(24px, 5vw, 40px);
  --space-xl: clamp(32px, 6vw, 56px);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Tourney", var(--font-sans);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--color-bg);
  background-image: url("assets/1kk-background.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  background-attachment: fixed;
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Header / brand mark */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding-top: max(var(--space-md), env(safe-area-inset-top));
  padding-left: max(var(--space-md), env(safe-area-inset-left));
  padding-right: max(var(--space-md), env(safe-area-inset-right));
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  display: block;
  height: 28px;
  width: auto;
}

/* Hero: single-screen, centered, safe-area aware */
.hero {
  min-height: 100vh;   /* fallback */
  min-height: 100svh;  /* modern override */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
  max-width: 40rem;
  margin-inline: auto;
  padding-top: max(var(--space-xl), env(safe-area-inset-top));
  padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom));
  padding-left: max(var(--space-md), env(safe-area-inset-left));
  padding-right: max(var(--space-md), env(safe-area-inset-right));
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-subtext {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 400;
  color: var(--color-muted);
  text-wrap: balance;
}

/* Inverted white-pill CTA */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-sm);
  padding: 0.9rem 2rem;
  border-radius: 999px;
  background-color: var(--color-cta-bg);
  color: var(--color-cta-fg);
  font-size: var(--fs-lg);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.cta:hover {
  opacity: 0.9;
}

.cta:active {
  transform: scale(0.98);
}

.cta:focus-visible {
  outline: 2px solid var(--color-fg);
  outline-offset: 3px;
}

/* Footer: legal/consent links + business stub */
.site-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding-bottom: max(var(--space-md), env(safe-area-inset-bottom));
  padding-left: max(var(--space-md), env(safe-area-inset-left));
  padding-right: max(var(--space-md), env(safe-area-inset-right));
  font-size: 0.8125rem;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-link {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* "Manage Cookies" is a <button> styled to match the text links. */
.footer-link--button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.footer-sep {
  color: var(--color-muted);
}

.footer-business {
  margin: 0;
  color: var(--color-muted);
  text-align: center;
}

/* Cookie consent banner: fixed bottom, monochrome, safe-area aware */
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.19); /* #fff3 */
  backdrop-filter: blur(6px);
  padding: var(--space-md);
  padding-bottom: max(var(--space-md), env(safe-area-inset-bottom));
  padding-left: max(var(--space-md), env(safe-area-inset-left));
  padding-right: max(var(--space-md), env(safe-area-inset-right));
}

.consent-banner[hidden] {
  display: none;
}

.consent-inner {
  max-width: 60rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.consent-heading {
  margin: 0 0 0.25rem;
  font-size: var(--fs-base);
  font-weight: 700;
}

.consent-desc {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.consent-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.consent-btn {
  flex: 1 1 auto;
  min-width: 8rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.consent-btn:focus-visible {
  outline: 2px solid var(--color-fg);
  outline-offset: 2px;
}

.consent-btn--accept {
  border: 1px solid var(--color-cta-bg);
  background-color: var(--color-cta-bg);
  color: var(--color-cta-fg);
}

.consent-btn--reject {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background-color: transparent;
  color: var(--color-fg);
}

/* On wider screens, sit copy and actions side-by-side. */
@media (min-width: 40rem) {
  .consent-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .consent-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
  }
}

/* ============================================================
   Privacy page: left-aligned readable prose (reuses tokens)
   ============================================================ */
.legal {
  max-width: 44rem;
  margin-inline: auto;
  padding-top: max(var(--space-xl), env(safe-area-inset-top));
  padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom));
  padding-left: max(var(--space-md), env(safe-area-inset-left));
  padding-right: max(var(--space-md), env(safe-area-inset-right));
  text-align: left;
}

.legal-title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.legal-updated {
  margin: 0 0 var(--space-lg);
  color: var(--color-muted);
  font-size: 0.875rem;
}

.legal h2 {
  margin: var(--space-lg) 0 var(--space-sm);
  font-size: var(--fs-lg);
  font-weight: 700;
}

.legal p,
.legal li {
  color: var(--color-muted);
  line-height: 1.6;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal a {
  color: var(--color-accent);
  text-decoration: none;
}

.legal a:hover {
  text-decoration: underline;
}

.legal a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.legal .back-link {
  display: inline-block;
  margin-top: var(--space-lg);
}
