/* Membership Gap: a sheet of member decals on its gridded backing liner.
   Two vinyls only: dues-year lime #a8cc3c and vinyl navy #22337a. */

@font-face {
  font-family: "Lexend Giga";
  src: url("fonts/lexend-giga-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lexend Giga";
  src: url("fonts/lexend-giga-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --liner: #edf1f3;          /* backing liner (background) */
  --grid: #d3dde5;           /* the liner's printed grid */
  --liner-back: #c4cfd9;     /* underside of a lifted corner */
  --ink: #17203f;            /* body text */
  --navy: #22337a;           /* vinyl navy */
  --lime: #a8cc3c;           /* dues-year lime vinyl */
  --vinyl: #fbfcfd;          /* white vinyl */
  --ink-soft: #3a4566;
  --cut: rgba(34, 51, 122, 0.38);
  --module: 24px;
  --display: "Lexend Giga", "Arial Black", sans-serif;
  --text: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --radius: 22px;
}

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

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

body {
  margin: 0;
  background-color: var(--liner);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--module) var(--module);
  background-position: -1px 0;
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

::selection { background: var(--lime); color: var(--ink); }

a {
  color: var(--navy);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
}
a:hover { text-decoration-thickness: 3px; }
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--display);
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: 1.85rem; line-height: 1.3; }
h2 { font-size: 1.45rem; line-height: 1.3; margin-bottom: 0.9rem; }
h3 { font-size: 1.02rem; line-height: 1.35; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
p { margin: 0 0 0.9rem; }
p:last-child { margin-bottom: 0; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--navy);
  color: var(--liner);
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  font-family: var(--display);
  font-size: 0.8rem;
  z-index: 5;
}
.skip:focus { top: 12px; }

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

/* Masthead: the wordmark decal and small cut labels */
.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: var(--module);
  padding-bottom: var(--module);
}
.masthead .mark { display: inline-block; line-height: 0; }
.masthead .mark img { height: 30px; width: auto; display: block; }
.masthead nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
}
.masthead nav a {
  display: inline-block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0;
  text-decoration: none;
  color: var(--navy);
  padding: 0.4rem 0.7rem;
  border: 1.5px dashed var(--cut);
  border-radius: 10px;
  background: var(--vinyl);
}
.masthead nav a:hover { border-style: solid; border-color: var(--navy); }
.masthead nav a[aria-current="page"] { background: var(--navy); color: var(--liner); border-color: var(--navy); border-style: solid; }

/* A decal: white vinyl, kiss-cut line inset */
.decal {
  position: relative;
  background: var(--vinyl);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 1px rgba(23, 32, 63, 0.06), 0 10px 24px -14px rgba(23, 32, 63, 0.35);
}
.decal::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1.5px dashed var(--cut);
  border-radius: calc(var(--radius) - 7px);
  pointer-events: none;
}
.decal--lime { background: var(--lime); }
.decal--lime::before { border-color: rgba(23, 32, 63, 0.4); }
.decal--navy { background: var(--navy); color: var(--liner); }
.decal--navy::before { border-color: rgba(237, 241, 243, 0.4); }
.decal--navy h2, .decal--navy h3 { color: var(--liner); }
.decal--navy a { color: var(--liner); }
.decal--navy :focus-visible { outline-color: var(--lime); }

/* The action: a navy decal whose corner peels */
.action {
  --behind: var(--liner);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0.95rem 2.6rem 0.95rem 1.4rem;
  background: var(--navy);
  color: var(--liner);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 14px 0 14px 14px;
  box-shadow: 0 8px 18px -10px rgba(23, 32, 63, 0.7);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.action::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 34px;
  transform: scale(0.6);
  transform-origin: top right;
  background: linear-gradient(225deg, var(--behind) 0 50%, var(--liner-back) 50% 100%);
  border-bottom-left-radius: 6px;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.action:hover, .action:focus-visible {
  color: var(--liner);
  transform: translateY(-2px);
  box-shadow: 0 14px 24px -12px rgba(23, 32, 63, 0.75);
}
.action:hover::after, .action:focus-visible::after { transform: scale(1); }
.decal--lime .action { --behind: var(--lime); }
.decal--lime .action:focus-visible { outline-color: var(--navy); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--module);
  padding-top: calc(var(--module) * 1);
  padding-bottom: calc(var(--module) * 3);
}
.hero h1 { max-width: 20ch; }
.hero .offer p { font-size: 1.12rem; line-height: 1.55; max-width: 48ch; margin-bottom: 1.4rem; }
.sheet {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 16px);
  padding: clamp(18px, 2.6vw, 30px);
  align-content: start;
  width: 100%;
  max-width: 384px;
  border-radius: var(--radius);
  border: 2px solid var(--navy);
}
.sheet i {
  display: block;
  position: relative;
  aspect-ratio: 1;
  border: 2px dashed var(--navy);
  border-radius: 9px 0 9px 9px;
}
.sheet i::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 34%;
  height: 34%;
  background: linear-gradient(225deg, var(--liner) 0 50%, var(--liner-back) 50% 100%);
  border-bottom-left-radius: 3px;
}
.sheet::before, .sheet::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--navy);
  border-style: solid;
}
.sheet::before { top: -8px; left: -8px; border-width: 2px 0 0 2px; }
.sheet::after { bottom: -8px; right: -8px; border-width: 0 2px 2px 0; }

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    align-items: stretch;
    column-gap: calc(var(--module) * 2);
    row-gap: calc(var(--module) * 1.5);
    padding-top: calc(var(--module) * 2);
  }
  .hero h1 { grid-column: 1 / -1; max-width: none; font-size: 4.25rem; line-height: 1.25; }
  .hero .offer { grid-column: 1; align-self: start; }
  .sheet { grid-column: 2; justify-self: end; align-self: center; max-width: 336px; }
  .price .rate { position: sticky; top: 24px; }
}

/* Sections */
.band { padding-top: calc(var(--module) * 2); padding-bottom: calc(var(--module) * 2); }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--module); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: calc(var(--module) * 2); align-items: start; }
}
.measure { max-width: 66ch; }

.cutlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cutlist li {
  position: relative;
  padding: 0.7rem 0.9rem 0.7rem 2.6rem;
  background: var(--vinyl);
  border-radius: 12px;
  box-shadow: 0 1px 1px rgba(23, 32, 63, 0.06);
}
.cutlist li::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 1.05rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 4px;
  background: var(--navy);
}
.decal--lime .cutlist { gap: 0; }
.decal--lime .cutlist li { background: transparent; box-shadow: none; border-radius: 0; border-top: 1.5px dashed var(--ink); }
.decal--lime .cutlist li:last-child { border-bottom: 1.5px dashed var(--ink); }
.cutlist--limits li::before { background: transparent; border: 1.5px dashed var(--navy); }
.cutlist--out li::before {
  background: transparent;
  border: 0;
  border-radius: 0;
  height: 2px;
  top: 1.45rem;
  background-color: var(--navy);
  transform: rotate(-35deg);
}

/* Free unit: the lime decal */
.free .decal { display: grid; gap: var(--module); }
@media (min-width: 900px) {
  .free .decal { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: calc(var(--module) * 2); }
  .free .decal > h2, .free .ask { grid-column: 1 / -1; }
}
.free .ask { font-weight: 700; font-size: 1.12rem; margin: 0; padding-top: 1.1rem; border-top: 1.5px dashed rgba(23, 32, 63, 0.4); }

/* How it works: numbered decals in sequence */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.steps li {
  counter-increment: step;
  position: relative;
  background: var(--vinyl);
  border-radius: 16px;
  padding: 3.6rem 1.1rem 1.2rem;
  box-shadow: 0 1px 1px rgba(23, 32, 63, 0.06), 0 8px 18px -14px rgba(23, 32, 63, 0.35);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 1rem;
  left: 1.1rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: var(--liner);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
}
.steps p { font-size: 0.98rem; color: var(--ink-soft); }

/* Price */
.price .decal--navy { display: grid; gap: var(--module); }
.price .rate {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.35;
  letter-spacing: -0.03em;
  max-width: 34ch;
  margin: 0;
}
.price .terms { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.price .terms li { padding: 0.75rem 0; border-top: 1.5px dashed rgba(237, 241, 243, 0.35); }
@media (min-width: 900px) {
  .price .decal--navy { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: calc(var(--module) * 2); }
  .price .decal--navy > h2 { grid-column: 1 / -1; }
}
.out { margin-top: calc(var(--module) * 1.5); }
.out h3 { margin-bottom: 0.8rem; }
.out .cutlist { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* FAQ */
.faq-list { display: grid; gap: 0; }
.faq-list .qa { padding: 1.2rem 0; border-top: 1.5px dashed var(--cut); }
@media (min-width: 900px) {
  .faq-list .qa { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: calc(var(--module) * 2); }
}

/* Close */
.close .decal { text-align: left; }
.close p { font-size: 1.12rem; max-width: 52ch; margin-bottom: 1.4rem; }

/* Plain pages and policies: long reading on one vinyl sheet */
.page { padding-top: var(--module); padding-bottom: calc(var(--module) * 3); }
.sheet-page { max-width: 820px; }
.policy h1 { font-size: 1.85rem; margin-bottom: 1.2rem; }
.policy h2 { font-size: 1.3rem; margin-top: 2.4rem; margin-bottom: 0.7rem; }
.policy h3 { margin-top: 1.6rem; }
.policy p, .policy ul { max-width: 70ch; }
.policy ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.policy li { margin-bottom: 0.45rem; }
.policy li::marker { color: var(--navy); }
.policy .meta { color: var(--ink-soft); font-size: 0.95rem; }
.policy a { overflow-wrap: anywhere; }
.policy section.update { margin-top: 2rem; padding-top: 1.2rem; border-top: 1.5px dashed var(--cut); }
.policy time { font-family: var(--display); font-weight: 500; font-size: 0.85rem; color: var(--navy); }

.plain h1 { margin-bottom: 1.2rem; }
.plain p { font-size: 1.12rem; max-width: 60ch; }
.plain .action { margin-top: 0.6rem; font-size: 0.85rem; max-width: 100%; overflow-wrap: anywhere; padding-left: 1rem; }

/* Footer: the sheet's trim edge */
.foot {
  margin-top: calc(var(--module) * 2);
  border-top: 2px dashed var(--navy);
  background: var(--liner);
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  justify-content: space-between;
  align-items: baseline;
  padding-top: var(--module);
  padding-bottom: calc(var(--module) * 2);
  font-size: 0.95rem;
}
.foot p { margin: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { font-family: var(--display); font-weight: 500; font-size: 0.8rem; }

@media (min-width: 900px) {
  h1 { font-size: 4rem; line-height: 1.3; }
  h2 { font-size: 2rem; }
  .decal { padding: 40px; }
  .price .rate { font-size: 1.7rem; }
  .policy h1 { font-size: 2.6rem; }
  .policy h2 { font-size: 1.45rem; }
}

@media (min-width: 1248px) {
  body { background-position: calc(50% + 11px) 0; }
}

@media (prefers-reduced-motion: reduce) {
  .action, .action::after { transition: none; }
  .action:hover, .action:focus-visible { transform: none; }
}
