/* BURNITERR website: the app's look (cream canvas, Nunito, tactile buttons and cards). Light only, like the app. */

@font-face {
  font-family: 'Nunito';
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/nunito-700Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/nunito-800ExtraBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-weight: 900;
  font-display: swap;
  src: url('/assets/fonts/nunito-900Black.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --cream: #fffbf2;
  --white: #ffffff;
  --sand: #f5efe2;
  --ink900: #2b2d33;
  --ink600: #646873;
  --ink400: #a9acb6;
  --line: #e5e1d6;
  --line-edge: #d6d1c4;
  --green100: #e3f8d2;
  --green500: #4fc81e;
  --green600: #3aa10f;
  --green700: #2c7d0a;
  --green800: #287509;
  --blue100: #ddf2fd;
  --blue900: #135e8c;
  --yellow100: #fff3d1;
  --yellow500: #ffc93c;
  --yellow800: #7a5a00;
  --orange700: #b35e00;
  --radius-button: 20px;
  --radius-card: 28px;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink900);
  font-family: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green800);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid #25a9f0;
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-wide {
  max-width: 880px;
}

/* ───────── header & footer ───────── */

.top {
  padding: 18px 0 6px;
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink900);
  text-decoration: none;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.6px;
}

.brand svg {
  width: 36px;
  height: 36px;
  flex: none;
}

.foot {
  margin-top: 56px;
  padding: 28px 0 40px;
  border-top: 2px solid var(--line);
  color: var(--ink600);
  font-size: 15px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 10px;
}

.foot nav a {
  color: var(--ink900);
  text-decoration: none;
}

.foot nav a:hover {
  text-decoration: underline;
}

.foot p {
  margin: 4px 0;
}

/* ───────── type ───────── */

.headline {
  margin: 0;
  font-weight: 800;
  font-size: 32px;
  line-height: 38px;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
}

.headline-xl {
  font-weight: 900;
  font-size: clamp(36px, 9vw, 52px);
  line-height: 1.08;
}

.lede {
  margin: 10px auto 0;
  max-width: 420px;
  color: var(--ink600);
  font-size: 19px;
  line-height: 26px;
  text-align: center;
  text-wrap: pretty;
}

h2 {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 24px;
  line-height: 30px;
}

h3 {
  margin: 0 0 4px;
  font-weight: 800;
  font-size: 19px;
  line-height: 24px;
}

p {
  margin: 0 0 12px;
}

.muted {
  color: var(--ink600);
}

.small {
  font-size: 15px;
  line-height: 20px;
}

.center {
  text-align: center;
}

/* ───────── tags ───────── */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.tag svg {
  width: 16px;
  height: 16px;
}

.tag-yellow {
  background: var(--yellow100);
  color: var(--yellow800);
}

.tag-green {
  background: var(--green100);
  color: var(--green800);
}

.tag-blue {
  background: var(--blue100);
  color: var(--blue900);
}

.tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* ───────── buttons: a face on a solid edge, pressed down on tap ───────── */

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  margin: 0 0 6px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-button);
  background: var(--green600);
  box-shadow: 0 6px 0 var(--green700);
  color: var(--white);
  font: inherit;
  font-weight: 900;
  font-size: 19px;
  line-height: 24px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transform: translateY(0);
  transition:
    transform 60ms ease-out,
    box-shadow 60ms ease-out;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 var(--green700);
}

.btn svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.btn-secondary {
  background: var(--white);
  color: var(--ink900);
  border: 2px solid var(--line);
  box-shadow: 0 6px 0 var(--line);
}

.btn-secondary:active {
  box-shadow: 0 1px 0 var(--line);
}

.btn-off,
.btn-off:active {
  background: var(--line);
  color: var(--ink600);
  box-shadow: 0 6px 0 var(--line-edge);
  transform: none;
  cursor: default;
}

.btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  background: none;
  color: var(--green800);
  font: inherit;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn-text svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.actions .btn-text {
  justify-self: center;
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .rise {
    transition: none !important;
    animation: none !important;
  }
}

/* ───────── cards ───────── */

.card {
  position: relative;
  margin: 0 0 4px;
  padding: 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: 0 4px 0 var(--line);
}

.card-sunken {
  border-color: var(--sand);
  background: var(--sand);
  box-shadow: none;
}

.stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

/* ───────── art ───────── */

.art {
  display: flex;
  justify-content: center;
  margin: 18px 0 18px;
}

.art img {
  width: auto;
  height: auto;
}

.art-duo img {
  width: min(100%, 400px);
}

.art-pip img {
  width: 190px;
}

.art-envelope svg {
  width: 112px;
  height: 96px;
}

.rise {
  animation: rise 520ms cubic-bezier(0.25, 1, 0.5, 1) both;
}

.rise-2 {
  animation-delay: 80ms;
}

.rise-3 {
  animation-delay: 160ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ───────── home ───────── */

.hero {
  padding: 8px 0 8px;
}

.features {
  display: grid;
  gap: 18px;
  margin-top: 40px;
}

.feature {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
}

.feature .icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--green100);
  color: var(--green800);
}

.feature .icon svg {
  width: 28px;
  height: 28px;
}

.feature p {
  margin: 0;
  color: var(--ink600);
}

@media (min-width: 760px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
  .feature {
    grid-template-columns: 1fr;
  }
}

/* ───────── invite ───────── */

.code {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 8px 0 4px;
}

.code span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 54px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 4px 0 var(--line);
  font-weight: 900;
  font-size: 28px;
}

.code .gap {
  width: 4px;
  border: 0;
  background: none;
  box-shadow: none;
}

.code-card {
  text-align: center;
}

.code-card .label {
  margin: 0 0 6px;
  color: var(--ink600);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  min-height: 34px;
  margin: 0 0 14px;
  padding-left: 48px;
  counter-increment: step;
}

.steps li:last-child {
  margin-bottom: 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: -2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--green100);
  color: var(--green800);
  font-weight: 900;
}

.note {
  margin: 10px 0 0;
  color: var(--ink600);
  font-size: 15px;
  line-height: 20px;
  text-align: center;
}

.test-note {
  margin: 4px 0 0;
  color: var(--orange700);
  font-size: 15px;
  line-height: 20px;
  text-align: center;
}

[hidden] {
  display: none !important;
}

/* ───────── legal & help ───────── */

.page-title {
  margin: 18px 0 6px;
  font-weight: 800;
  font-size: 32px;
  line-height: 38px;
  text-transform: uppercase;
}

.doc section {
  margin-top: 26px;
}

.doc ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

.doc li {
  margin: 0 0 6px;
}

.doc .updated {
  color: var(--ink600);
  font-size: 15px;
}

details.faq {
  margin: 0 0 12px;
  padding: 0;
}

details.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  font-weight: 800;
  font-size: 19px;
  line-height: 24px;
  list-style: none;
  cursor: pointer;
}

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

details.faq summary::after {
  content: '+';
  flex: none;
  color: var(--green700);
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
}

details.faq[open] summary::after {
  content: '−';
}

details.faq .a {
  padding: 0 20px 18px;
  color: var(--ink600);
}

details.faq .a p:last-child {
  margin-bottom: 0;
}

.spaced {
  margin-top: 24px;
}
