/* Quarter Hunter site. Coin-folder blue and foil gold on a cool paper white. */

:root {
  --folder: #1e3a6e;
  --folder-deep: #142849;
  --foil: #d2ae4f;
  --paper: #f6f7f9;
  --ink: #1a1d23;
  --nickel: #b9bec6;
  --muted: #5b6270;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Public Sans", system-ui, sans-serif;

  --measure: 36rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--folder);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--folder-deep);
}

:focus-visible {
  outline: 3px solid var(--foil);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0;
}

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

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font: 800 1.5rem/1 var(--display);
  text-decoration: none;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.55rem;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem);
}

.hero h1 {
  font-size: clamp(2.9rem, 7vw, 5.25rem);
  max-width: 19ch;
}

.hero .lede {
  max-width: var(--measure);
  margin: 1rem 0 1.75rem;
  font-size: 1.2rem;
  color: var(--muted);
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.35rem;
  border-radius: 0.6rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.store-button:hover {
  color: #fff;
  background: #000;
}

.store-button svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.hero .fine {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- The coin folder ---------- */

.folder {
  background:
    radial-gradient(120% 90% at 20% 0%, #274a86 0%, transparent 60%),
    var(--folder);
  color: var(--foil);
  box-shadow: inset 0 -6px 0 var(--folder-deep);
}

.folder .wrap {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.folder-title {
  font: 700 clamp(1.4rem, 3vw, 2rem)/1.1 var(--display);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.folder-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.75rem, 2.5vw, 2rem);
}

.slot {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  text-align: center;
}

/* A punched hole: dark rim and inner shadow, as in a cardboard folder. */
.hole {
  position: relative;
  width: 100%;
  max-width: 11rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--folder-deep);
  box-shadow:
    inset 0 5px 10px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.12);
}

.hole img {
  position: absolute;
  inset: 4%;
  width: 92%;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.hole.empty {
  display: grid;
  place-items: center;
  padding: 18%;
}

.hole.empty span {
  font: 600 clamp(0.7rem, 1.6vw, 0.95rem)/1.2 var(--body);
  color: rgba(210, 174, 79, 0.85);
}

.slot-label {
  font: 600 clamp(0.72rem, 1.5vw, 0.95rem)/1.25 var(--body);
  color: var(--foil);
}

.slot-label small {
  display: block;
  font-weight: 400;
  opacity: 0.8;
}

.slot:nth-child(2) { --i: 1; }
.slot:nth-child(3) { --i: 2; }
.slot:nth-child(4) { --i: 3; }

/* The one motion: coins press into their holes, in release order. */
@media (prefers-reduced-motion: no-preference) {
  .hole img {
    animation: seat 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: calc(var(--i, 0) * 140ms + 250ms);
  }

  @keyframes seat {
    from {
      transform: translateY(-22%) scale(1.12);
      opacity: 0;
      box-shadow: 0 18px 22px rgba(0, 0, 0, 0.35);
    }
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.section + .section {
  border-top: 1px solid #e3e6eb;
}

.section h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 22ch;
}

.section .intro {
  max-width: var(--measure);
  margin: 1rem 0 0;
  color: var(--muted);
}

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 52rem) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .split.reverse > :first-child {
    order: 2;
  }
}

/* Program index: a list, like the index printed inside a folder. */
.programs {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  max-width: 44rem;
}

.programs li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid #e3e6eb;
}

.programs .name {
  font-weight: 600;
}

.programs .years {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.programs .note {
  grid-column: 1 / -1;
  font-size: 0.92rem;
  color: var(--muted);
}

.free-tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.05rem 0.5rem;
  border-radius: 1rem;
  background: #e5ecf7;
  color: var(--folder);
  font-size: 0.8rem;
  font-weight: 600;
  vertical-align: 0.1em;
}

/* Phone screenshots */
.phone {
  justify-self: center;
  width: min(100%, 17rem);
  border-radius: 2.2rem;
  border: 0.55rem solid var(--ink);
  background: var(--ink);
  box-shadow: 0 24px 40px -18px rgba(20, 40, 73, 0.45);
  overflow: hidden;
}

.phone img {
  border-radius: 1.65rem;
}

.phones {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.phones .phone {
  width: min(48%, 15rem);
}

.phones .phone:nth-child(2) {
  margin-top: 3rem;
}

/* Scarce find callout */
.find {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.75rem;
  max-width: var(--measure);
}

.find img {
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--nickel);
}

.find p {
  margin: 0;
}

.checks {
  margin: 1.5rem 0 0;
  padding-left: 1.2rem;
  max-width: var(--measure);
}

.checks li + li {
  margin-top: 0.4rem;
}

/* Pricing: two columns, the paid one on folder blue. */
.plans {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 46rem) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}

.plan {
  padding: 1.75rem;
  border: 1px solid #dde1e7;
  border-radius: 0.9rem;
  background: #fff;
}

.plan.paid {
  border-color: var(--folder);
  background: var(--folder);
  color: #fff;
}

.plan h3 {
  font-size: 2rem;
}

.plan .price {
  margin: 0.35rem 0 1rem;
  font: 700 1.25rem/1.3 var(--body);
}

.plan.paid .price {
  color: var(--foil);
}

.plan ul {
  margin: 0;
  padding-left: 1.2rem;
}

.plan li + li {
  margin-top: 0.35rem;
}

.plan .aside {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  opacity: 0.85;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--folder-deep);
  color: #c9d2e3;
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: grid;
  gap: 1rem;
  padding-block: 2.5rem;
}

.site-footer a {
  color: #fff;
}

.site-footer p {
  margin: 0;
  max-width: 48rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* ---------- Document pages (privacy, support) ---------- */

/* Same left edge as the header; the measure limits the text itself. */
.doc {
  padding-block: clamp(2rem, 6vw, 4rem);
}

.doc > * {
  max-width: 44rem;
}

.doc h1 {
  font-size: clamp(2.6rem, 7vw, 4rem);
}

.doc .updated {
  margin: 0.75rem 0 2rem;
  color: var(--muted);
}

.doc h2 {
  font-size: 1.75rem;
  margin: 2.25rem 0 0.5rem;
}

.doc h3 {
  font: 600 1.1rem/1.4 var(--body);
  margin: 1.5rem 0 0.25rem;
}

.doc p,
.doc li {
  max-width: var(--measure);
}

.doc summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.6rem 0;
}

.doc details {
  border-bottom: 1px solid #e3e6eb;
}

.doc details p {
  margin-top: 0;
}

/* ---------- Small screens ---------- */

@media (max-width: 40rem) {
  .site-nav {
    gap: 0.9rem;
    font-size: 0.9rem;
  }

  .folder-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Keep the empty Gettysburg hole visible: hide two filled ones instead. */
  .folder-row .slot:nth-child(2),
  .folder-row .slot:nth-child(3) {
    display: none;
  }

  .find {
    grid-template-columns: 5rem 1fr;
  }
}
