/* ===== Tokens =====
   Everything below is a variable — change a value here and it updates
   everywhere that variable is used on the page. Colors are hex codes
   (#RRGGBB); fonts are the Google Fonts family names loaded in index.html. */
:root {
  --paper:      #EDE7D6; /* main page background — the parchment color */
  --paper-dark: #E1DAC3; /* slightly darker paper, used behind cards */
  --ink:        #21241F; /* body text + all the black borders/outlines */
  --brass:      #A9834C; /* muted gold accent — hairline details, focus ring */
  --claim-red:  #C1443C; /* primary accent — buttons, the "Dibs!" sticker */
  --claim-teal: #3E6E77; /* secondary accent color */
  --claim-gold: #D9A441; /* third accent color */

  --font-display: "Lora", serif;       /* headlines + the wordmark */
  --font-body:    "Lora", serif;       /* paragraph text */
  --font-tag:     "Courier Prime", monospace; /* typewriter labels, eyebrows, buttons */
  --font-hand:    "Caveat", cursive;   /* handwritten sticker + signature text */

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 2.75rem;
  --space-5: 4.5rem;
  --space-6: 7rem;

  --radius: 3px;
  --hard-shadow: 4px 4px 0 var(--ink);
  --hard-shadow-sm: 2px 2px 0 var(--ink);
  --max: 74rem;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(169,131,76,0.08), transparent 45%),
    radial-gradient(circle at 82% 68%, rgba(62,110,119,0.07), transparent 40%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: var(--space-1) var(--space-2);
  z-index: 100;
}
.skip-link:focus {
  left: var(--space-2); top: var(--space-2);
}

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

.eyebrow {
  font-family: var(--font-tag);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--claim-red);
  margin: 0 0 var(--space-2);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.01em;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin: 0 0 var(--space-3);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-tag);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.9em 1.6em;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--hard-shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover, .btn:focus-visible { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(0,0); box-shadow: 1px 1px 0 var(--ink); }

.btn--primary { background: var(--claim-red); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.wordmark--small { font-size: 1.1rem; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-tag);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.primary-nav a { text-decoration: none; }
.primary-nav a:not(.nav-cta) { border-bottom: 2px solid transparent; }
.primary-nav a:not(.nav-cta):hover { border-color: var(--claim-red); }
.nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 0.5em 1em;
  border-radius: var(--radius);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.2rem; height: 2.2rem;
  background: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  width: 60%;
}

/* ===== Hero ===== */
.hero {
  padding: var(--space-6) 0 var(--space-5);
  overflow: hidden;
}
.hero__inner { max-width: 46rem; }

.hero__title {
  position: relative;
  margin: 0 0 var(--space-3);
  line-height: 0.95;
}
.stamp {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(2.8rem, 9vw, 5.6rem);
  letter-spacing: -0.01em;
  display: inline-block;
  color: var(--ink);
}

.hero__sticker {
  position: absolute;
  right: -0.5rem;
  bottom: -1.2rem;
}
@media (max-width: 640px) {
  .hero__sticker { position: static; display: inline-flex; margin-top: var(--space-2); }
}

.hero__sub {
  font-size: 1.15rem;
  max-width: 36rem;
}

/* ===== Claim sticker (signature element) ===== */
.claim-sticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6.5rem; height: 6.5rem;
  border-radius: 50%;
  border: 2px dashed var(--ink);
  transform: rotate(var(--rot, 0deg));
  box-shadow: var(--hard-shadow-sm);
  position: relative;
}
.claim-sticker--red  { background: var(--claim-red);  color: var(--paper); }
.claim-sticker--teal { background: var(--claim-teal); color: var(--paper); }
.claim-sticker--gold { background: var(--claim-gold); color: var(--ink); }

/* small version used as the logo mark, in the nav + footer */
.claim-sticker--sm {
  width: 2.1rem;
  height: 2.1rem;
  box-shadow: none;
  flex: none;
}
.claim-sticker--sm .claim-sticker__pin {
  width: 0.4rem;
  height: 0.4rem;
  top: -0.35rem;
  border-width: 1.5px;
}
.claim-sticker--sm .claim-sticker__text {
  font-size: 0.85rem;
  font-weight: 700;
}

.claim-sticker__pin {
  position: absolute;
  top: -0.6rem; left: 50%;
  transform: translateX(-50%);
  width: 0.7rem; height: 0.7rem;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
}
.claim-sticker__text {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  font-weight: 700;
  transform: rotate(-4deg);
}

/* ===== Features ===== */
.features { padding: var(--space-5) 0; }

.tag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4) var(--space-3);
}
.tag-grid--tight { gap: var(--space-3); }

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

.tag-card {
  background: var(--paper-dark);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--hard-shadow);
  padding: var(--space-3);
  position: relative;
  transform: rotate(var(--rot, 0deg));
}

.tag-card__no {
  display: block;
  font-family: var(--font-tag);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--claim-teal);
  margin-bottom: var(--space-2);
}

.tag-card__hole {
  position: absolute;
  top: 0.9rem; right: 0.9rem;
  width: 0.9rem; height: 0.9rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
}

.tag-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 0 0 var(--space-1);
  padding-right: 1.5rem;
}
.tag-card p { margin: 0; }

.tag-card--empty {
  text-align: center;
  border-style: dashed;
  box-shadow: none;
  background: transparent;
}
.placeholder-line {
  font-family: var(--font-tag);
  margin: 0.3em 0;
}
.placeholder-line--long {
  color: var(--brass);
  font-style: italic;
}

/* ===== Preview ===== */
.preview { padding: var(--space-5) 0; border-top: 2px solid var(--ink); }
.preview__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-4);
  align-items: center;
}
@media (max-width: 860px) {
  .preview__inner { grid-template-columns: 1fr; }
}

.preview__frames {
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.device__screen {
  background: var(--paper-dark);
  border: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-align: center;
  font-family: var(--font-tag);
  font-size: 0.85rem;
  color: var(--brass);
  position: relative;
}

.device--phone .device__screen {
  width: 10rem; height: 20rem;
  border-radius: 1.4rem;
  padding: 1.2rem;
}
.device--desktop {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.device--desktop .device__screen {
  width: 22rem; height: 13.5rem;
  border-radius: var(--radius);
  padding: 1rem;
}
.device__stand {
  width: 4rem; height: 0.6rem;
  background: var(--ink);
  border-radius: 0 0 4px 4px;
}

.device__sticker {
  width: 3.5rem; height: 3.5rem;
  position: absolute;
  top: -1.2rem; right: -1.2rem;
}
.device__sticker .claim-sticker__text { font-size: 0.9rem; }
.device__sticker .claim-sticker__pin { width: 0.5rem; height: 0.5rem; top: -0.45rem; }

/* ===== Trust ===== */
.trust {
  padding: var(--space-5) 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--paper-dark);
}
.trust__inner { max-width: 42rem; }
.trust__body { font-size: 1.05rem; }

/* ===== Statement ===== */
.statement { padding: var(--space-5) 0; }
.statement__inner {
  max-width: 40rem;
  border-left: 3px solid var(--brass);
  padding-left: var(--space-4);
}
.statement__inner p {
  font-size: 1.1rem;
}
.statement__sign {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  font-style: normal;
  color: var(--claim-teal);
  margin-top: var(--space-3);
}

/* ===== Testimonials ===== */
.testimonials { padding: var(--space-5) 0; }
.testimonials__lede { max-width: 38rem; margin-bottom: var(--space-4); }

/* ===== Get / Downloads ===== */
.get {
  padding: var(--space-5) 0 var(--space-6);
  border-top: 2px solid var(--ink);
}
.get__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
}
@media (max-width: 860px) {
  .get__inner { grid-template-columns: 1fr; }
}

.price-tag {
  background: var(--paper-dark);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--hard-shadow);
  padding: var(--space-4);
  position: relative;
  transform: rotate(-1deg);
}
.price-tag__hole {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  width: 1rem; height: 1rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
}
.price-tag__amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 1.8rem;
  margin: 0 0 var(--space-2);
}
.price-tag__note { margin: 0 0 var(--space-3); }

.download-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.download-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  background: var(--paper);
}
.download-badge__platform {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.download-badge__status {
  font-family: var(--font-tag);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--claim-red);
  border: 1px dashed var(--claim-red);
  padding: 0.2em 0.6em;
  border-radius: var(--radius);
  white-space: nowrap;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 2px solid var(--ink);
  padding: var(--space-4) 0;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.site-footer__tagline {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  margin: 0;
  color: var(--claim-teal);
}
.site-footer__contact {
  font-family: var(--font-tag);
  font-size: 0.85rem;
  text-decoration: underline;
}

/* ===== Reveal on scroll ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* ===== Mobile nav ===== */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    padding: var(--space-2) var(--space-3) var(--space-3);
    gap: var(--space-2);
    display: none;
  }
  .primary-nav.is-open { display: flex; }
}
