/* The Swap Society website. Plain CSS, no build step. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  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 {
  --pink: #a63f77;
  --pink-deep: #8a2f60;
  --ink: #302336;
  --ink-soft: #5a4d5f;
  --paper: #fcf9fa;
  --pale: #f9e9f1;
  --line: #e6d5de;
  --green: #256b57;
  --green-pale: #e2f1ec;
  --white: #ffffff;
  --on-ink-soft: #e4d9e6;
  --line-ink: #5b4b62;
  --line-pale: #e3c9d7;

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --band: clamp(4rem, 9vw, 8rem);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--pink) var(--pale);
}

/* Language switch: the page carries both languages; html[lang] shows one. */
html[lang="en"] [lang="es"],
html[lang="es"] [lang="en"] { display: none !important; }
/* The switch names the other language, in that language. */
html[lang="en"] [data-show="es"],
html[lang="es"] [data-show="en"] { display: none !important; }
html[lang="en"] [lang][data-show="en"],
html[lang="es"] [lang][data-show="es"] { display: inline !important; }
html:not(.js) .lang { display: none; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 450;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--pink); color: var(--white); }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--pink); }

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}
.band-ink :focus-visible, .band-pink :focus-visible { outline-color: var(--white); }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}
h2 { font-size: clamp(2.1rem, 5vw, 3.75rem); max-width: 18ch; }
h3 { font-size: 1.5rem; letter-spacing: -0.025em; line-height: 1.1; }

.wrap {
  width: 100%;
  max-width: 82rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

p { text-wrap: pretty; }

.lede {
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 34em;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  z-index: 10;
}
.skip:focus { top: 0.75rem; color: var(--white); }

/* Header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: clamp(1.25rem, 3vw, 2.25rem);
}

.wordmark {
  display: inline-block;
  padding-block: 0.45rem;
  font-weight: 800;
  font-size: clamp(1.375rem, 2.2vw, 1.5rem);
  letter-spacing: -0.04em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: inherit; }
.wordmark b { font-weight: inherit; color: var(--pink); }

.top-links { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.5rem); }
.top-links a { font-weight: 700; padding-block: 0.7rem; }

.lang {
  font: inherit;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--pink-deep);
  background: var(--pale);
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  min-height: 44px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.lang:hover { background: var(--pink); color: var(--white); }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100svh - 6.5rem);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(3.5rem, 7vw, 6rem);
}

.hero h1 {
  font-size: clamp(2.75rem, 4.9vw, 5.25rem);
  letter-spacing: -0.04em;
  line-height: 0.96;
  max-width: 14ch;
}
html[lang="es"] .hero h1 { max-width: 16ch; font-size: clamp(2.75rem, 4.3vw, 5.25rem); }
.hero .lede { margin-top: 1.5rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.5rem;
  margin-top: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--pink);
  color: var(--white);
  font-weight: 800;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
.btn svg { width: 1.1em; height: 1.1em; }

.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: var(--ink);
}
.soon svg { width: 1.25rem; height: 1.25rem; color: var(--pink); flex: none; }

/* The two example slips */

.hero-photo { margin: 0; }
.hero-photo img, .how-photo img, .gallery img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--pale);
}
.hero-photo img {
  aspect-ratio: 2 / 3;
  border-radius: 32px;
  max-height: min(84svh, 52rem);
  object-position: 50% 50%;
}

.how-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.how-head .lede { margin-top: 1.25rem; }
.how-head .pair { max-width: 24rem; margin: 1.5rem 0 0; }
.how-head .slip dd { font-size: clamp(1.375rem, 2vw, 1.5rem); }

.how-photo img { aspect-ratio: 1; border-radius: 32px; object-position: 23% 50%; }
.how-photo figcaption { margin-top: 0.9rem; color: var(--ink-soft); }

.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.2vw, 1rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.gallery img { aspect-ratio: 1; border-radius: 22px; }

.pair {
  position: relative;
  display: grid;
  gap: 0;
  justify-items: start;
  padding-block: 1rem;
  max-width: 30rem;
  margin-inline: auto;
  width: 100%;
}

.slip {
  width: 82%;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  border-radius: 28px;
  color: var(--white);
}
.slip-a { background: var(--pink); transform: rotate(-4deg); padding-bottom: calc(clamp(1.25rem, 2.4vw, 2rem) + 2rem); }
.slip-b { background: var(--ink); transform: rotate(3deg); justify-self: end; box-shadow: 0 -14px 34px -16px rgb(48 35 54 / 0.55); padding-top: calc(clamp(1.25rem, 2.4vw, 2rem) + 2rem); }

.slip .who { font-size: 0.9375rem; font-weight: 600; opacity: 0.92; }
.slip dl { margin-top: 0.9rem; display: grid; gap: 0.8rem; }
.slip dt { font-size: 0.9375rem; font-weight: 600; opacity: 0.92; }
.slip dd {
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.mark {
  --size: clamp(4rem, 7vw, 5.5rem);
  position: relative;
  justify-self: center;
  width: var(--size);
  height: var(--size);
  margin-block: calc(var(--size) / -2 - 0.5rem);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--pink);
  border: 4px solid var(--pink);
  z-index: 2;
  transition: transform 0.6s var(--ease);
}
.mark svg { width: 46%; height: 46%; }
.pair:hover .mark { transform: rotate(180deg); }

@media (prefers-reduced-motion: no-preference) {
  .slip-a { animation: settle-a 0.9s var(--ease) backwards; }
  .slip-b { animation: settle-b 0.9s 0.08s var(--ease) backwards; }
  .mark { animation: turn 1s 0.35s var(--ease) backwards; }
  @keyframes settle-a {
    from { transform: translate(-2.5rem, -1.5rem) rotate(-12deg); }
    to { transform: rotate(-4deg); }
  }
  @keyframes settle-b {
    from { transform: translate(2.5rem, 1.5rem) rotate(11deg); }
    to { transform: rotate(3deg); }
  }
  @keyframes turn {
    from { transform: rotate(-180deg) scale(0.4); }
    to { transform: rotate(0) scale(1); }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Bands */

.band { padding-block: var(--band); }
.band-pale { background: var(--pale); }
.band-ink { background: var(--ink); color: var(--white); }
.band-pink { background: var(--pink); color: var(--white); }
.band-ink a:hover, .band-pink a:hover { color: var(--white); text-decoration-thickness: 0.14em; }
.band-ink .lede { color: var(--on-ink-soft); }
.band-pink .lede { color: var(--white); }

.band-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* Steps */

.steps-band { padding-block: var(--band); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  border-top: 3px solid var(--ink);
  padding-top: 1.75rem;
  counter-reset: step;
}
.step { display: grid; grid-row: span 3; grid-template-rows: subgrid; gap: 0.6rem; counter-increment: step; }
.step h3::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 1.75rem; height: 1.75rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 0.9375rem;
  letter-spacing: 0;
  vertical-align: 0.18em;
}
.step p { color: var(--ink-soft); max-width: 30ch; text-wrap: pretty; }

.shot {
  align-self: stretch;
  margin-top: 1.1rem;
  padding: 1rem;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.6rem;
  font-size: 0.9375rem;
  line-height: 1.3;
  min-height: 9.5rem;
  align-content: center;
}

.mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: var(--pink);
  color: var(--white);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  transform: rotate(-2deg);
}
.mini small, .specimen small { display: block; font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; margin-bottom: 0.2rem; }
.liked {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: var(--white);
  color: var(--pink);
}
.liked svg { width: 1.3rem; height: 1.3rem; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  justify-self: start;
  padding: 0.5rem 0.85rem;
  border-radius: 18px;
  background: var(--pale);
  color: var(--pink-deep);
  font-weight: 700;
}
.pill svg, .chip svg { width: 1rem; height: 1rem; flex: none; }

.bubble {
  max-width: 88%;
  padding: 0.55rem 0.85rem;
  border-radius: 18px 18px 18px 6px;
  background: var(--pale);
  color: var(--ink);
  justify-self: start;
  font-weight: 500;
}
.bubble.me { background: var(--pink); color: var(--white); border-radius: 18px 18px 6px 18px; justify-self: end; }

.deal { font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.02em; line-height: 1.2; }
.deal small { display: block; font-weight: 500; font-size: 0.9375rem; letter-spacing: 0; color: var(--ink-soft); margin-top: 0.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--green-pale);
  color: var(--green);
  font-weight: 700;
}
.stars { display: flex; gap: 0.2rem; color: var(--pink); }
.stars svg { width: 1.5rem; height: 1.5rem; }

/* Services index */

.index { border-top: 1px solid var(--line); }
.index > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: 0.5rem 2rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.band-pale .index, .band-pale .index > div { border-color: var(--line-pale); }
.index dt { font-weight: 800; font-size: clamp(1.375rem, 2.4vw, 2.1rem); letter-spacing: -0.03em; line-height: 1.1; }
.index dd ul { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; font-size: 1.125rem; }
.index li { display: inline-flex; align-items: center; gap: 0.35rem; }
.index li svg, .key svg { width: 1.05rem; height: 1.05rem; color: var(--pink); flex: none; }

.key {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  color: var(--ink-soft);
  max-width: 62ch;
}
.key svg { margin-top: 0.3em; }
.note { margin-top: 1.5rem; color: var(--ink-soft); max-width: 62ch; }

/* Trust */

.trust {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.trust-main h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.035em; }
.trust-main p { margin-top: 1rem; color: var(--on-ink-soft); max-width: 34em; }
.trust-main p strong { color: var(--white); font-weight: 700; }

.specimen {
  display: inline-grid;
  gap: 0.8rem;
  justify-items: start;
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  transform: rotate(-2deg);
}
.specimen small { color: var(--ink-soft); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  background: var(--green-pale);
  color: var(--green);
  font-weight: 800;
  font-size: 1.125rem;
}
.badge svg { width: 1.3rem; height: 1.3rem; }

.facts { border-top: 1px solid var(--line-ink); }
.facts li { padding-block: 1.25rem; border-bottom: 1px solid var(--line-ink); }
.facts h3 { font-size: 1.375rem; }
.facts p { margin-top: 0.4rem; color: var(--on-ink-soft); max-width: 38em; }

/* Plans */

.plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: stretch;
}
.plan { border-radius: 32px; padding: clamp(1.75rem, 3.5vw, 3rem); }
.plan-free { background: var(--pink); color: var(--white); }
.plan-plus { background: var(--white); border: 2px solid var(--ink); }
.plan .price {
  font-weight: 800;
  font-size: clamp(2.75rem, 6vw, 3.75rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: 0.5rem;
}
.plan .price small { font-size: 1.125rem; font-weight: 600; letter-spacing: 0; margin-left: 0.3rem; }
.plan ul { margin-top: 1.5rem; display: grid; gap: 0.7rem; font-size: 1.125rem; }
.plan li { display: grid; grid-template-columns: 1.3rem 1fr; gap: 0.6rem; align-items: start; }
.plan li svg { width: 1.2rem; height: 1.2rem; margin-top: 0.22em; color: var(--pink); }
.plan-free li svg { color: var(--white); }
.plan .also { margin-top: 1.5rem; font-weight: 700; }

/* Closing */

.closing h2 { font-size: clamp(2.75rem, 7vw, 5.25rem); max-width: 14ch; letter-spacing: -0.04em; line-height: 0.96; }
.closing .lede { margin-top: 1.5rem; }
.contact {
  scroll-margin-top: 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 2px solid rgb(255 255 255 / 0.55);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 3rem;
}
.contact h3 { font-size: 1.375rem; }
.contact p { margin-top: 0.4rem; max-width: 36em; }

/* Footer */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2rem;
  font-size: 1.0625rem;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.foot nav a { padding-block: 0.6rem; }
.foot small { font-size: 1.0625rem; color: var(--ink-soft); }

/* Simple text pages (privacy, terms) */

.page { padding-block: clamp(2rem, 6vw, 5rem) var(--band); }
.page h1 { font-size: clamp(2.75rem, 6vw, 3.75rem); letter-spacing: -0.04em; max-width: 14ch; }
.page p { margin-top: 1.25rem; max-width: 62ch; font-size: 1.125rem; color: var(--ink-soft); }
.page p a { color: var(--pink-deep); font-weight: 700; }

/* Smaller screens */

@media (max-width: 62rem) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .trust { grid-template-columns: 1fr; }
}

@media (max-width: 48rem) {
  .hero, .how-head { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-photo img { aspect-ratio: 4 / 5; max-height: none; object-position: 50% 50%; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how-photo img { aspect-ratio: 3 / 2; }
  .hero h1 { max-width: none; }
  .pair { max-width: 24rem; margin-inline: 0 auto; }
  .plans, .contact { grid-template-columns: 1fr; }
  .index > div { grid-template-columns: 1fr; }
  .index dd ul { font-size: 1.0625rem; }
}

@media (max-width: 34rem) {
  .steps { grid-template-columns: 1fr; row-gap: 0.6rem; }
  .step { margin-bottom: 1.75rem; }
  .shot { min-height: 0; }
  .step p { max-width: none; }
  .btn { width: 100%; justify-content: center; }
}
