/* getkrampo.com. Colours, type sizes and spacing come from tokens.css (generated from the design
   tokens, shared with the app). Flat print look: no gradients, blur or glass; one shadow. */

@font-face {
  font-family: "League Gothic";
  src: url("/assets/fonts/LeagueGothic-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/assets/fonts/WorkSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/assets/fonts/WorkSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/assets/fonts/WorkSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--type-body-size);
  line-height: 1.5;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--ink);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--terracotta-deep);
}
:focus-visible {
  outline: 3px solid var(--floodlight);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  padding: var(--space-2) var(--space-4);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-pill);
  z-index: 10;
}
.skip:focus {
  top: var(--space-4);
  color: var(--paper);
}

/* League Gothic headings, trimmed to the design line height. */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin: 0;
}
.dot {
  color: var(--terracotta);
}
.meta {
  font-size: var(--type-meta-size);
  line-height: var(--type-meta-line);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* Header and footer */

.site-header {
  padding: var(--space-5) 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.logo {
  display: inline-flex;
  min-height: var(--hit-min);
  align-items: center;
}
.logo img {
  height: 28px;
  width: auto;
}
.logo .on-dark {
  display: none;
}
.site-nav {
  display: flex;
  gap: var(--space-4);
  font-size: var(--type-label-size);
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--hit-min);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover {
  text-decoration: underline;
}

.site-footer {
  margin-top: 72px;
  padding: var(--space-8) 0 40px;
  border-top: 1px solid var(--rule);
  font-size: var(--type-label-size);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: var(--hit-min);
}
.site-footer small {
  color: var(--ink-muted);
  font-size: var(--type-caption-size);
}

/* Landing: the Welcome collage on pitch green */

.hero {
  background: var(--pitch);
  overflow: hidden;
  position: relative;
}
.hero .studs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero .studs pattern rect {
  fill: var(--on-pitch);
  opacity: 0.07;
}
.collage {
  position: relative;
  width: 390px;
  height: 450px;
  margin: 0 auto;
  transform-origin: top center;
}
@media (max-width: 389px) {
  .collage {
    transform: scale(0.85);
    margin-bottom: -70px;
  }
}
.collage > * {
  position: absolute;
  margin: 0;
}
.polaroid .meta {
  margin: 0;
}
.polaroid {
  padding: 8px 8px 0;
  background: var(--sticker-paper);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
.polaroid .meta {
  height: 26px;
  display: flex;
  align-items: center;
  color: var(--sticker-ink);
}
.p1 {
  left: 22px;
  top: 40px;
  z-index: 1;
  rotate: -5deg;
}
.p2 {
  left: 196px;
  top: 114px;
  z-index: 2;
  rotate: 6deg;
}
.score {
  left: 18px;
  top: 262px;
  z-index: 3;
  rotate: -3deg;
  padding: 7px 12px 5px;
  background: var(--sticker-ink);
  color: var(--sticker-paper);
  font-size: 30px;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
.goal {
  left: 300px;
  top: 240px;
  z-index: 4;
  width: 62px;
  height: 62px;
  border-radius: 31px;
  background: var(--floodlight);
  color: var(--on-floodlight);
  rotate: 10deg;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.note-card {
  left: 62px;
  top: 322px;
  z-index: 3;
  rotate: 2deg;
  width: 262px;
  margin: 0;
  padding: 12px 14px 12px 36px;
  background: var(--sticker-paper);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-print);
  color: var(--sticker-ink);
  font-size: var(--type-note-size);
  line-height: 1.4;
}
.note-card::before {
  content: "\201C";
  position: absolute;
  left: 12px;
  top: 6px;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  color: var(--stamp);
}
.was-there {
  left: 134px;
  top: 26px;
  z-index: 6;
  rotate: -12deg;
  padding: 5px 12px 3px;
  background: var(--sticker-paper);
  border: 3px double var(--stamp);
  color: var(--stamp);
  font-size: 26px;
  letter-spacing: 0.06em;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes drop {
    from {
      opacity: 0;
      translate: 0 -28px;
      scale: 1.12;
    }
    65% {
      opacity: 1;
      translate: 0 0;
      scale: 0.97;
    }
    to {
      opacity: 1;
      translate: 0 0;
      scale: 1;
    }
  }
  @keyframes stamp {
    from {
      opacity: 0;
      scale: 1.8;
    }
    55% {
      opacity: 1;
      scale: 0.92;
    }
    to {
      opacity: 1;
      scale: 1;
    }
  }
  .p1,
  .p2,
  .score,
  .note-card {
    animation: drop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .p1 {
    animation-delay: 0.15s;
  }
  .p2 {
    animation-delay: 0.4s;
  }
  .score {
    animation-delay: 0.7s;
  }
  .note-card {
    animation-delay: 1s;
  }
  .goal {
    animation: stamp 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) 1.5s both;
  }
  .was-there {
    animation: stamp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 1.9s both;
  }
}

.pitch-intro {
  padding-top: 40px;
  padding-bottom: var(--space-8);
}
.pitch-intro h1 {
  font-size: clamp(64px, 17vw, 132px);
}
.pitch-intro p {
  max-width: 34ch;
  margin: var(--space-4) 0 0;
  font-size: 19px;
  line-height: 1.45;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  min-height: var(--button-height);
  padding: 0 var(--space-6) 0 var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}
.store svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.store small {
  display: block;
  font-size: var(--type-meta-size);
  font-weight: 500;
  letter-spacing: 0.14em;
}

.screens {
  margin-top: var(--space-8);
}
.screens h2 {
  font-size: var(--type-display-m-size);
  margin-bottom: var(--space-6);
}
.screens ol {
  display: grid;
  gap: var(--space-8);
  margin: 0;
  padding: 0;
  list-style: none;
}
.screens li {
  display: grid;
  gap: var(--space-4);
  justify-items: center;
  text-align: center;
}
.phone {
  width: min(100%, 300px);
  aspect-ratio: 390 / 844;
  height: auto;
  border: 10px solid var(--ink);
  border-radius: 44px;
  background: var(--paper-raised);
  box-shadow: var(--shadow-print);
  object-fit: cover;
  object-position: top;
}
.screens h3 {
  margin: 0;
  font-size: var(--type-body-size);
  font-weight: 600;
}
.screens p {
  margin: 0;
  max-width: 30ch;
  color: var(--ink-muted);
  font-size: var(--type-label-size);
}

@media (min-width: 900px) {
  .hero {
    padding: var(--space-8) 0 var(--space-6);
  }
  .collage {
    scale: 1.15;
    transform-origin: top center;
    margin-bottom: 70px;
  }
  .pitch-intro {
    padding-top: 56px;
  }
  .screens ol {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Long-form pages: terms, privacy, support */

.doc {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-5) 0;
}
.doc h1 {
  font-size: clamp(48px, 12vw, 72px);
}
.doc .updated {
  margin: var(--space-3) 0 0;
}
.doc h2 {
  margin: 48px 0 var(--space-3);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  scroll-margin-top: var(--space-5);
}
.doc h3 {
  margin: var(--space-6) 0 var(--space-2);
  font-size: var(--type-body-size);
  font-weight: 600;
}
.doc p,
.doc li {
  line-height: 1.6;
}
.doc ul,
.doc ol {
  padding-left: 1.3em;
}
.doc li + li {
  margin-top: var(--space-1);
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--type-label-size);
  margin: var(--space-4) 0;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: var(--space-2) var(--space-3) var(--space-2) 0;
  border-bottom: 1px solid var(--rule);
}
.doc th {
  font-weight: 600;
}
.table-scroll {
  overflow-x: auto;
}
.summary {
  margin: var(--space-6) 0 0;
  padding: var(--space-5);
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
}
.summary h2 {
  margin-top: 0;
  font-size: var(--type-meta-size);
  letter-spacing: 0.14em;
}
.summary ul {
  margin: 0;
}
.toc {
  margin: var(--space-6) 0 0;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.toc h2 {
  margin: 0 0 var(--space-2);
  font-size: var(--type-meta-size);
  letter-spacing: 0.14em;
}
.toc ol {
  margin: 0;
  columns: 2 220px;
  column-gap: var(--space-8);
}
.toc a {
  display: inline-block;
  padding: 2px 0;
}

.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  min-height: var(--hit-min);
  padding: var(--space-4) 0;
  font-weight: 600;
  cursor: pointer;
}
.faq details p,
.faq details ol {
  margin-top: 0;
}
.contact {
  margin-top: var(--space-8);
  padding: var(--space-5);
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
}
.contact p {
  margin: 0;
}

/* Small centered pages: auth callback, 404 */

.message {
  max-width: 520px;
  margin: 0 auto;
  padding: 64px var(--space-5) 0;
  text-align: center;
}
.message h1 {
  font-size: clamp(56px, 16vw, 96px);
}
.message p {
  margin: var(--space-4) auto 0;
  max-width: 36ch;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--button-height);
  margin-top: var(--space-6);
  padding: 0 var(--space-6);
  border-radius: var(--radius-pill);
  background: var(--terracotta-deep);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(43, 36, 32, 0.18);
}
.button:hover {
  color: var(--on-accent);
}

@media (prefers-color-scheme: dark) {
  .logo .on-light {
    display: none;
  }
  .logo .on-dark {
    display: block;
  }
}
