@font-face {
  font-family: 'T26 Carbon';
  src: url('./public/fonts/CarbonBold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Departure Mono';
  src: url('./public/fonts/DepartureMono-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #ffffff;
  --fg: #050505;
  --muted: #7a7a7a;
  --grid: #d9d7d1;
  --accent: #000;
  --surface: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Departure Mono', 'Inter', monospace;
  letter-spacing: 0.02em;
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: 'Departure Mono', 'T26 Carbon', 'Inter', monospace;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

p {
  margin: 0 0 1.25rem;
}

ul, ol {
  margin: 0 0 1.25rem 0;
  padding: 0;
  list-style-position: inside;
}

li {
  margin-bottom: 0.5rem;
}

a {
  color: inherit;
  text-decoration: none;
}

.mono {
  font-family: 'Departure Mono', 'T26 Carbon', 'JetBrains Mono', monospace;
  letter-spacing: 0;
}

.label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.label-nav {
  letter-spacing: 0;
}

.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--grid);
  padding: 6rem clamp(1.5rem, 5vw, 4rem) 4rem;
}

.hero-flag {
  font-size: 0.85rem;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  margin: 0 0 3rem;
  line-height: 1.1;
}

.tagline {
  font-size: 1.1rem;
  max-width: 760px;
  margin-bottom: 6rem;
}

.tagline-meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3rem;
}

.tagline-meta a {
  color: inherit;
}

.hero-grid,
.simulator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

@media (min-width: 1025px) {
  .simulator-grid {
    grid-template-columns: 1fr 1fr;
  }
  .simulator-grid > :first-child {
    order: 1;
  }
  .simulator-grid > :last-child {
    order: 2;
  }
}

@media (max-width: 1024px) {
  .simulator-grid {
    grid-template-columns: 1fr;
  }
}

.receipt-preview {
  border: 1px solid var(--grid);
  padding: 4.5rem;
  background: var(--surface);
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.receipt-top p {
  margin: 0;
  line-height: 1.8;
}

.receipt-lines {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.receipt-lines li {
  display: flex;
  justify-content: space-between;
  padding: 0.375rem 0;
  line-height: 1.8;
  font-family: 'Departure Mono', monospace;
}
.receipt-lines li:last-child {
  padding-bottom: 1rem;
}

.receipt-summary {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.receipt-summary > div {
  display: flex;
  justify-content: space-between;
  padding: 0;
  font-family: 'Departure Mono', monospace;
  line-height: 1.8;
}

.receipt-summary-pnl {
  margin-top: 0;
  padding-top: 0;
}

.receipt-thank-you {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.2rem;
  margin-top: 3rem;
  line-height: 1.8;
}

.receipt-footer {
  padding: 2rem 0 1.5rem;
  border-top: 1px dashed var(--fg);
}

.receipt-footer-message {
  line-height: 1.8;
  margin-bottom: 3rem; /* Increased space below message */
}

.receipt-seed {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.receipt-seed li {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: 'Departure Mono', monospace;
}

.receipt-seed li span:first-child {
  text-align: left;
  flex: 0 0 3rem;
}

.receipt-seed li span:last-child {
  text-align: right;
  flex: 1;
  display: block;
}

.scoreboard-card {
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.scoreboard-content-top {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .scoreboard-content-top {
    position: sticky;
    top: 1.5rem;
    background: var(--fg);
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .receipt-readout {
    position: sticky;
    bottom: 0;
    background: var(--fg);
    z-index: 10;
    margin-top: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
}

.scoreboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--bg);
}

.badge {
  border: 1px solid var(--bg);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
}

.scoreboard-value {
  font-size: 2.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  word-break: break-word;
}

.scoreboard-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.contribution-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

.contribution-form label {
  grid-column: span 2;
  font-size: 0.75rem;
  color: var(--bg);
}

.contribution-form input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--bg);
  font-family: inherit;
  text-transform: uppercase;
  grid-column: span 2;
}

.tip-presets {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.tip-presets button {
  padding: 0.6rem 0.5rem;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--bg);
  cursor: pointer;
  font-family: 'Departure Mono', monospace;
  text-align: center;
  width: 100%;
}

.tip-presets button:hover {
  background: var(--bg);
  color: var(--fg);
}

.receipt-readout {
  display: flex;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  font-size: 0.95rem;
  background: transparent;
  color: var(--bg);
}

.receipt-readout p {
  margin-bottom: 0.4rem;
}

.receipt-length-warning {
  color: #d50000;
}

.page-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  max-width: 1400px;
  margin: 0 auto;
  gap: 2rem;
  padding: 4rem clamp(1.5rem, 5vw, 4rem);
}

.nav-panel {
  position: sticky;
  top: 1.5rem;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-panel nav {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--fg);
}

.nav-link {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--grid);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0;
}

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

.nav-link:hover,
.nav-link.active {
  background: var(--fg);
  color: #fff;
}

.nav-cta {
  border: 1px solid var(--grid);
  padding: 1rem;
}

.caption {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section-block {
  padding: 4rem 0;
  border-bottom: 1px solid var(--grid);
  scroll-margin-top: 3rem;
}

.section-block:last-of-type {
  border-bottom: none;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.cards-grid,
.split-grid,
.triple-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.card,
.split-grid > div,
.pill {
  border-top: 1px solid var(--grid);
  padding: 1.5rem 0;
}

.image-gallery {
  display: flex;
  flex-direction: column;
}

.image-frame {
  border-top: 1px solid var(--grid);
  padding: 1.5rem 0 2rem;
}

.image-frame img {
  width: 100%;
  display: block;
  border: 1px solid var(--grid);
  background: var(--surface);
}

.image-frame video {
  width: 100%;
  display: block;
  border: 1px solid var(--grid);
  background: #000;
}

.image-frame figcaption {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 720px;
}

.image-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.download-button {
  align-self: flex-start;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--fg);
}

.download-button:hover {
  text-decoration: underline;
}

.outcome {
  border-color: var(--grid);
}

.long-list {
  list-style: none;
  margin-left: 0;
}

.long-list li {
  border-bottom: 1px solid var(--grid);
  padding: 1rem 0;
}

.expenses-list {
  margin-top: 2rem;
  border-top: 1px solid var(--grid);
}

.expenses-list h3 {
  padding: 1.5rem 0;
  margin: 0;
}

.site-footer {
  padding: 2rem;
  border-top: 1px solid var(--grid);
  text-align: center;
  background: var(--surface);
}

.site-footer a {
  text-transform: uppercase;
  font-size: 0.85rem;
}

@media (max-width: 1024px) {
  .page-grid {
    grid-template-columns: 1fr;
  }

  .nav-panel {
    position: static;
  }
  
  .receipt-preview {
      padding: 2rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 0.82rem;
  }

  .hero {
      padding: 3rem 1.5rem;
  }
  
  .page-grid {
      padding: 3rem 1.5rem;
  }

  .contribution-form {
    grid-template-columns: 1fr;
  }

  .receipt-readout {
    flex-direction: column;
  }
  
  .receipt-preview {
      padding: 1.5rem;
  }
  
  .scoreboard-value {
      font-size: 2rem;
  }
}

.press-kit {
  display: none;
  padding: 4rem clamp(1.5rem, 5vw, 4rem);
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--grid);
}

.press-kit-header h1 {
  margin: 0.5rem 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.press-kit-header p {
  margin: 0 0 1.5rem;
}

.press-kit-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.press-kit-meta .label {
  display: block;
  margin-bottom: 0.75rem;
  letter-spacing: 0.08em;
}

.press-kit-meta ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--grid);
}

.press-kit-meta li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--grid);
}

/* Press kit mode */
body.press-mode {
  background: #fff;
  color: var(--fg);
  font-family: 'Inter', 'Departure Mono', monospace;
}

body.press-mode .hero,
body.press-mode .page-grid,
body.press-mode .site-footer {
  display: none;
}

body.press-mode .press-kit {
  display: block;
}

body.press-mode [data-download] {
  display: none !important;
}

@media print {
  body {
    background: #fff;
    color: var(--fg);
    font-family: 'Inter', 'Departure Mono', monospace;
  }

  .hero,
  .page-grid,
  .site-footer {
    display: none;
  }

  .press-kit {
    display: block;
  }

  [data-download] {
    display: none !important;
  }
}
