/* Brand tokens, matching pulpscale-digital/src/app/globals.css */
:root {
  --pulp: #ff5a1f;
  --pulp-100: #ffe8de;
  --pulp-300: #ffa77f;
  --pulp-700: #c23806;
  --ink: #111111;
  --ink-soft: #52525b;
  --cream: #faf7f2;
  --leaf: #2e7d32;
  --white: #ffffff;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

/* Variable fonts: one file covers every weight used. Licenses in assets/fonts/. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/assets/fonts/bricolage-latin.woff2) format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url(/assets/fonts/dmsans-latin.woff2) format("woff2");
}

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

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Halftone "pulp" dot texture */
  background-color: var(--cream);
  background-image: radial-gradient(rgba(255, 90, 31, 0.16) 1.2px, transparent 1.4px);
  background-size: 18px 18px;
}

.page {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}
@media (min-width: 640px) {
  .page { padding-top: 4rem; padding-bottom: 4rem; }
}

/* ---------------------------------------------------------- Profile ---- */
.profile { text-align: center; }

.logo {
  display: block;
  width: 14rem;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

h1 {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.tagline {
  max-width: 24rem;
  margin: 0.75rem auto 0;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--ink-soft);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 0.25rem 0.75rem;
  border: 2px solid var(--ink);
  border-radius: 9999px;
  background: var(--white);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--ink);
  border-radius: 9999px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 3px 3px 0 0 var(--ink);
}
.icon-btn svg { width: 1.25rem; height: 1.25rem; }

/* ------------------------------------------------------------ Links ---- */
.links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

.card {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  border: 3px solid var(--ink);
  border-radius: 1rem;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 5px 5px 0 0 var(--ink);
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.25;
  font-weight: 800;
}
.title-lg { margin-top: 0.25rem; font-size: 1.25rem; }

.desc {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  overflow-wrap: anywhere;
}
.muted { color: var(--ink-soft); }

.arrow {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--pulp-700);
  transition: transform 0.15s ease;
}

/* Featured CTA. Ink on brand orange: white text fails contrast at this size. */
.card-audit { background: var(--pulp); }
.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  background: var(--ink);
  color: var(--pulp-300);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.arrow-circle {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--ink);
  border-radius: 9999px;
  background: var(--white);
  color: var(--ink);
  transition: transform 0.15s ease;
}

.card-whatsapp { background: var(--leaf); color: var(--white); }
.card-whatsapp .arrow { color: var(--white); }

.card-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-style: dashed;
  background: var(--pulp-100);
  box-shadow: 3px 3px 0 0 var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.copy-label {
  flex-shrink: 0;
  padding: 0.25rem 0.75rem;
  border: 2px solid var(--ink);
  border-radius: 9999px;
  background: var(--white);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
}

/* ----------------------------------------------------- Interactions ---- */
.pop-btn {
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
}
/* hover-only devices, so taps on phones don't leave cards stuck "lifted" */
@media (hover: hover) {
  .pop-btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 0 var(--ink); }
  .icon-btn:hover { background: var(--pulp-100); }
  .pop-btn:hover .arrow { transform: translateX(0.25rem); }
  .pop-btn:hover .arrow-circle { transform: rotate(45deg); }
}
.pop-btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 0 var(--ink); }

.pop-btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

/* ----------------------------------------------------------- Footer ---- */
.footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--ink-soft);
}
.footer-bar {
  width: 4rem;
  height: 0.25rem;
  margin: 0 auto 0.75rem;
  border-radius: 9999px;
  background: var(--pulp);
}
.copyright { margin-top: 0.5rem; }

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

/* -------------------------------------------------------- Entrance ---- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { opacity: 0; animation: rise 0.55s cubic-bezier(.2, .8, .2, 1) forwards; }
.d1 { animation-delay: 120ms; }
.d2 { animation-delay: 200ms; }
.d3 { animation-delay: 280ms; }
.d4 { animation-delay: 360ms; }
.d5 { animation-delay: 440ms; }
.d6 { animation-delay: 520ms; }
.d7 { animation-delay: 600ms; }
.d8 { animation-delay: 680ms; }

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; }
  .pop-btn, .arrow, .arrow-circle { transition: none; }
}
