/* tapincard.com — one page, in the TapIn design system.
   The palette is for fields; the ink comes from outside it. No borders, no
   shadows: things separate by sitting on different grounds. Values are the
   system's own tokens (design-preview/_ds/tapin-design-system-*/tokens). */

@font-face {
  font-family: "Poppins";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/poppins-bold.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/poppins-extrabold.woff2") format("woff2");
}

:root {
  color-scheme: light;

  --field-skobeloff: #006a6a;
  --field-viridian: #009d96;
  --field-orchid: #f1a2e1;
  --field-cotton: #ffc5f5;
  --field-ghost: #f4f4fe;
  --ghost-sunken: #e4e4f0;

  --ink: #1c1c1c;
  --ink-secondary: #4e4e4e;
  --ink-paper: #f4f4fe;
  --ink-paper-secondary: #d2e1e9;
  --ink-a16: rgba(28, 28, 28, 0.16);
  --paper-a16: rgba(244, 244, 254, 0.16);

  --font-display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-core: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;

  --radius-chip: 12px;
  --radius-control: 16px;
  --radius-card: 22px;
  --radius-pill: 999px;

  --gutter: 20px;
  --wrap: 1120px;
}
@media (min-width: 720px) {
  :root { --gutter: 26px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--field-ghost);
  color: var(--ink);
  font-family: var(--font-core);
  font-size: 17px;
  line-height: 1.45;
}
@media (min-width: 720px) { body { font-size: 19px; } }
img, svg { display: block; }
p, h1, h2, h3, figure, ul { margin: 0; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  background: var(--ink);
  color: var(--ink-paper);
  padding: 10px 16px;
  border-radius: var(--radius-control);
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---- Type ------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}
.h1 { font-size: 44px; }
.h2 { font-size: 36px; }
.h3 { font-size: 23px; letter-spacing: -0.03em; line-height: 1.08; }
@media (min-width: 720px) {
  .h1 { font-size: 72px; }
  .h2 { font-size: 44px; }
  .h3 { font-size: 29px; }
}
.label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lede { font-size: 19px; line-height: 1.45; max-width: 34ch; }
@media (min-width: 720px) { .lede { font-size: 23px; } }

/* ---- The mark and the word --------------------------------------------- */
.logo {
  --s: 26px;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--s) * 0.34);
  text-decoration: none;
  color: inherit;
}
.logo__mark { width: var(--s); height: var(--s); fill: currentColor; flex: none; }
.logo__word {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--s);
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.logo__i {
  height: calc(var(--s) * 0.7);
  width: calc(var(--s) * 0.7 * 0.56667);
  margin: 0 calc(var(--s) * 0.03);
  fill: currentColor;
}

/* ---- Actions ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-core);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn--paper { background: var(--ink-paper); color: var(--ink); }
.btn--paper:hover { background: #ffffff; }
.btn--ink { background: var(--ink); color: var(--ink-paper); }
.btn--ink:hover { background: #000000; }
.btn--quiet { color: inherit; padding: 0; text-decoration: underline; text-underline-offset: 4px; }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* ---- Hero: a skobeloff field, paper ink -------------------------------- */
/* No overflow clipping here: the curve has to reach 1px past the hero, or its
   antialiased edge lands on skobeloff and leaves a hairline (fields.css). */
.hero {
  position: relative;
  background: var(--field-skobeloff);
  color: var(--ink-paper);
}
.scatter {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
}
/* Dots stay in the card's column: a mark must never change the ground under text. */
@media (min-width: 960px) { .scatter { display: block; left: auto; width: 40%; } }
.scatter circle { fill: var(--paper-a16); }
.scatter .ring { fill: none; stroke: var(--paper-a16); stroke-width: 2.8; }

.bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.bar__end { display: flex; align-items: center; gap: 14px; }
.bar__lang { font-size: 15px; font-weight: 600; text-underline-offset: 4px; }
.bar__talk { display: none; }
@media (min-width: 560px) { .bar__talk { display: inline-flex; } }

.hero__body {
  position: relative;
  display: grid;
  gap: 44px;
  padding-top: 34px;
  padding-bottom: 76px;
}
@media (min-width: 960px) {
  .hero__body {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: center;
    gap: 58px;
    padding-top: 56px;
    padding-bottom: 110px;
  }
}
.hero__text { display: grid; gap: 26px; justify-items: start; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }

/* The member's card, drawn from the app: a cotton surface on the field. */
.card {
  justify-self: start;
  width: 100%;
  max-width: 360px;
  background: var(--field-cotton);
  color: var(--ink);
  border-radius: var(--radius-card);
  padding: 22px 22px 24px;
  display: grid;
  gap: 14px;
}
@media (min-width: 960px) { .card { justify-self: end; } }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card__kicker { color: var(--ink-secondary); }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--field-skobeloff);
  color: var(--ink-paper);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.card__title { font-family: var(--font-display); font-weight: 700; font-size: 23px; letter-spacing: -0.03em; line-height: 1.08; }
.stamps { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.stamp { aspect-ratio: 1; border-radius: 50%; background: var(--ink-a16); }
.stamp.is-on { background: var(--field-skobeloff); }
.card__line { color: var(--ink-secondary); font-size: 15px; }

/* The boundary bends both ways: a crest of ghost, then a trough. */
.curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 36px;
  fill: var(--field-ghost);
}
@media (min-width: 720px) { .curve { height: 56px; } }

/* ---- What it does ------------------------------------------------------ */
.section { padding-top: 76px; padding-bottom: 76px; }
@media (min-width: 720px) { .section { padding-top: 100px; padding-bottom: 100px; } }
.section__head { display: grid; gap: 16px; max-width: 760px; margin-bottom: 44px; }
.tiles { display: grid; gap: 16px; padding: 0; list-style: none; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile {
  border-radius: var(--radius-card);
  padding: 26px;
  display: grid;
  align-content: start;
  gap: 14px;
}
@media (min-width: 720px) { .tile { padding: 34px 30px; } }
.tile--viridian { background: var(--field-viridian); color: var(--ink); }
.tile--skobeloff { background: var(--field-skobeloff); color: var(--ink-paper); }
.tile--cotton { background: var(--field-cotton); color: var(--ink); }
.tile p { font-size: 17px; }
.status {
  margin-top: 34px;
  max-width: 62ch;
  color: var(--ink-secondary);
}

/* ---- Class passes: a viridian field (one text tier) -------------------- */
.band { background: var(--field-viridian); color: var(--ink); }
.band__inner {
  display: grid;
  gap: 20px;
  padding-top: 76px;
  padding-bottom: 76px;
}
@media (min-width: 900px) {
  .band__inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 58px; align-items: start; padding-top: 100px; padding-bottom: 100px; }
}
.band p { max-width: 52ch; }
.band__text { display: grid; gap: 16px; }

/* ---- Contact ----------------------------------------------------------- */
.contact { display: grid; gap: 22px; justify-items: start; }
.contact p { max-width: 46ch; }

/* ---- Footer: ink ground ------------------------------------------------ */
.foot { background: var(--ink); color: var(--ink-paper); }
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 34px;
  padding-top: 34px;
  padding-bottom: 34px;
  font-size: 15px;
}
.foot .logo { --s: 20px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; list-style: none; }
.foot__links a { color: var(--ink-paper-secondary); text-underline-offset: 4px; }
.foot__links a:hover { color: var(--ink-paper); }
.foot__small { color: var(--ink-paper-secondary); }

/* ---- Legal pages: ghost, ink, one readable column ---------------------- */
.page-bar { background: var(--field-ghost); color: var(--ink); }
.legal { padding-top: 34px; padding-bottom: 100px; }
.legal__body { max-width: 68ch; display: grid; gap: 18px; }
.legal__body h1 { margin-bottom: 8px; }
.legal__body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-top: 22px;
}
.legal__body ul { padding-left: 1.2em; display: grid; gap: 6px; }
.legal__body .muted { color: var(--ink-secondary); }
.legal__body a { color: #004e4e; text-underline-offset: 3px; }
.legal__body a:hover { color: var(--ink); }
.legal address { font-style: normal; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
