/* SEE Change Happen – connect pages */

/* Figtree is self-hosted, not fetched from Google: no third-party request from a page that
   promises no trackers, and one less round trip on mobile data right after a card is scanned.
   One variable file covers 400–800 (SIL Open Font Licence; see fonts/OFL.txt). */
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-variable.woff2") format("woff2-variations");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  --violet: #3a1a6e;
  --ink: #2a0f55;
  --muted: #5a4a78;
  --line: #e3daf0;
  --paper: #fbf8f4;
  --orange: #f7931e;
  --teal: #1fc2b0;
  --pink: #e0409f;
  --gold: #ffb547;
  --mint: #7fe6da;
  --accent: #c0268f;
  --cta: #0e8074;
  --radius: 14px;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: "Figtree", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.4;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
.wrap {
  max-width: 480px;
  margin: 0 auto;
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
@media (min-width: 520px) {
  body {
    background: #ece6f4;
  }
  .wrap {
    box-shadow:
      0 0 0 1px var(--line),
      0 20px 60px rgba(42, 15, 85, 0.12);
  }
}

/* Header */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--violet);
  color: #fff;
  padding: 40px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.9;
}
.hero::before {
  width: 170px;
  height: 170px;
  right: -60px;
  top: -60px;
  background: var(--orange);
}
.hero::after {
  width: 110px;
  height: 110px;
  left: -50px;
  top: 150px;
  background: var(--pink);
}
.hero > * {
  position: relative;
  z-index: 1;
}
.photo {
  width: 136px;
  height: 136px;
  border-radius: 50%;
  border: 5px solid var(--teal);
  background: #f3eef9;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}
.sig {
  width: 230px;
  height: auto;
  margin-top: 18px;
}
.hero h1 {
  margin: 6px 0 0;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
}
.role {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: var(--gold);
  text-transform: uppercase;
}
.sub {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
}
.pronouns {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
}
.pronouns svg {
  width: 22px;
  height: 14px;
}
.creds {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.creds span {
  padding: 4px 10px;
  border-radius: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}
.motto {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: var(--mint);
}
.stripe {
  height: 8px;
  display: flex;
}
.stripe i {
  flex: 1;
}
.stripe i:nth-child(1) {
  background: var(--orange);
}
.stripe i:nth-child(2) {
  background: var(--teal);
}
.stripe i:nth-child(3) {
  background: var(--pink);
}

/* Sections */
section {
  padding: 24px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
section:last-of-type {
  padding-bottom: 32px;
}
h2 {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: var(--muted);
  text-transform: uppercase;
}
.btn {
  border-radius: var(--radius);
  background: #fff;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.btn:hover,
.btn:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.btn svg {
  flex: none;
}
.save {
  height: 58px;
  justify-content: center;
  gap: 10px;
  background: var(--cta);
  border-color: var(--cta);
  color: #fff;
  font-size: 17px;
}
.save:hover,
.save:focus-visible {
  border-color: var(--ink);
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.tile {
  height: 60px;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
}
.tile svg {
  stroke: var(--accent);
}
.row {
  min-height: 56px;
  padding: 12px 18px;
  font-size: 16px;
}
.row svg {
  stroke: var(--violet);
}
/* Social links: compact 4-up boxes, personal first then company */
.grid4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.soc {
  height: 74px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px 4px;
  font-size: 12px;
  letter-spacing: 0.2px;
}
.soc svg {
  stroke: var(--accent);
}
.soc.co svg {
  stroke: var(--violet);
}
.soc span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-height: 64px;
  padding: 10px 14px;
}
.site .t {
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}
.site .d {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
/* An odd box out at the end of a 2-up grid spans both columns, so it reads as intended */
.grid2 > .site:last-child:nth-child(odd) {
  grid-column: 1/-1;
}
.card {
  padding: 16px 18px;
}
.card .txt {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.card .t {
  font-size: 17px;
}
.card .d {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.card .go {
  stroke: var(--cta);
}
.feature {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.feature .d {
  color: #fff;
  opacity: 0.92;
}
.feature .go {
  stroke: #fff;
}
.feature:hover,
.feature:focus-visible {
  border-color: var(--ink);
}
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.services div {
  height: 92px;
  border-radius: var(--radius);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}
.services div:nth-child(1) {
  background: var(--orange);
}
.services div:nth-child(2) {
  background: var(--teal);
}
.services div:nth-child(3) {
  background: var(--pink);
}

/* Footer */
footer {
  flex-grow: 1;
  background: var(--violet);
  color: #fff;
  padding: 32px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
footer img {
  width: 170px;
}
footer .tag {
  font-size: 14px;
  font-weight: 800;
  color: var(--mint);
}
footer .bars {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
footer .bars i {
  width: 28px;
  height: 4px;
  border-radius: 2px;
}
footer .bars i:nth-child(1) {
  background: var(--orange);
}
footer .bars i:nth-child(2) {
  background: var(--teal);
}
footer .bars i:nth-child(3) {
  background: var(--pink);
}
footer small {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 8px;
}
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}

/* "Show my QR code": for when the cards have run out, or on a video call — the other person
   scans the screen. <details> so it works with no JavaScript and is keyboard-operable. */
.qr {
  border-radius: var(--radius);
  border: 1.5px dashed var(--line);
  background: #fff;
}
.qr summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 16px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}
.qr summary::-webkit-details-marker {
  display: none;
}
.qr summary svg {
  stroke: var(--accent);
}
.qr summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.qr[open] summary {
  border-bottom: 1.5px dashed var(--line);
}
.qr img {
  width: 208px;
  max-width: 76%;
  margin: 18px auto 10px;
}
.qr .u {
  display: block;
  padding: 0 16px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  word-break: break-all;
}

/* 404: the page a mistyped card URL lands on. */
.oops {
  padding: 40px 24px 8px;
  text-align: center;
}
.oops h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
}
.oops p {
  margin: 0 auto 22px;
  max-width: 24em;
  color: var(--muted);
  font-weight: 600;
}

footer .legal {
  opacity: 0.72;
  line-height: 1.5;
  margin-top: 4px;
}
footer .legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
footer .legal .nb {
  white-space: nowrap;
}

/* Proof: three numbers, and one voice that is not ours. */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  text-align: center;
}
.stats div {
  padding: 12px 6px;
  border-radius: var(--radius);
  background: #fff;
  border: 1.5px solid var(--line);
}
.stats b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}
.stats span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.quote {
  margin: 0;
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1.5px solid var(--line);
  border-left: 5px solid var(--accent);
}
.quote blockquote {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}
.quote blockquote::before {
  content: open-quote;
}
.quote blockquote::after {
  content: close-quote;
}
.quote figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.quote figcaption b {
  display: block;
  font-weight: 800;
  color: var(--ink);
}
