/* Hallmark · checked: 2026-12-05 · genre: editorial (inferred)
 * floor: 0 FAIL · fixed: 7 (7a, 18, 20, 26a, 34, 39a, 48, 63) · structural: 4 printed (6b, 8, 42, 77)
 * built: the project · redesign: polish · v2.0.0 */
/* Hallmark · answered F24 · the owner asked for both a border and a drop shadow on the sign-up panel */
/* Hallmark · answered F1 · the owner asked for big issues only; the copy stays exactly as written */
/* Hallmark · answered F3 · the one-line headline is nowrap by the owner's ask, so balance has nothing to do */
/* MKT-002: Wildervia landing page, one light centred column like a classic app page.
   Colours and type from assets/brand/README.md */

@font-face {
  font-family: "Overpass";
  src: url("/fonts/Overpass-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Overpass";
  src: url("/fonts/Overpass-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Overpass";
  src: url("/fonts/Overpass-800.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --ink: #092328;
  --muted: #4a6461;
  --emerald: #2a835f;
  --lime: #c6f432;
  --lime-hover: #d8ff5c;
  --paper: #f3f7f1;
  --surface: #fdfefc; /* panels, fields and cards: a sage-tinted white */
  --line: #cfdccd;
  --line-strong: #b9cbbb;
  --shade: rgb(9 35 40 / 18%);
  --shade-md: rgb(9 35 40 / 15%);
  --shade-sm: rgb(9 35 40 / 8%);
  --shadow-icon: 0 6px 20px var(--shade);
  --shadow-panel: 0 10px 30px rgb(9 35 40 / 14%), 0 2px 6px var(--shade-sm);
  --shadow-field: 0 4px 14px rgb(9 35 40 / 16%);
  --shadow-card: 0 2px 10px var(--shade-sm);
  --shadow-button: 0 2px 8px var(--shade-md);
  --font: "Overpass", system-ui, sans-serif;
  --control-h: 52px;
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip; /* the card row is wider than the column; never let it scroll the page */
}

body {
  margin: 0;
  /* The card row sizes itself to the page width (100cqw) without the scrollbar, unlike 100vw */
  container-type: inline-size;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 var(--font);
}

.col {
  max-width: 440px;
  margin: 0 auto;
  padding: 48px 16px 32px;
  text-align: center;
}

.icon {
  display: block;
  margin: 0 auto 12px;
  border-radius: 22%;
  box-shadow: var(--shadow-icon);
}

h1 {
  margin: 0;
  line-height: 0;
}

.wordmark {
  width: 200px;
  height: auto;
}

/* One line at every width: the size shrinks on narrow phones instead of wrapping */
.headline {
  font-weight: 800;
  font-size: clamp(1.125rem, 6.2vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  white-space: nowrap;
  margin: 12px 0 8px;
}

.sub {
  color: var(--muted);
  margin: 0 0 28px;
}

a {
  color: var(--emerald);
}

:focus-visible {
  outline: 3px solid var(--emerald);
  outline-offset: 2px;
}

/* Form */

/* The sign-up sits in its own white panel with a border and drop shadow */
.signup {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-panel);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.row input {
  flex: 1 1 150px;
  min-width: 0;
}

@media (max-width: 480px) {
  .signup {
    padding: 16px;
  }
}

input[type="email"],
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

/* The one thing to fill in, so it stands out */
input[type="email"] {
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-field);
}

/* The email field and its button share one height in every state */
input[type="email"],
.signup button {
  height: var(--control-h);
}

button {
  flex: 0 0 auto;
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--lime);
  color: var(--ink);
  font: 600 1rem/1.5 var(--font);
  cursor: pointer;
}

button:hover {
  background: var(--lime-hover);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

a:active {
  opacity: 0.7;
}

.check {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 14px 0 10px;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--emerald);
}

.heard {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.heard span,
.fine,
.founder,
footer {
  color: var(--muted);
}

.fine {
  font-size: 0.8125rem;
  margin: 10px 0 0;
}

/* Hidden from people, filled in by naive bots */
.hp,
.sr {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Features, founder, footer */

.features {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  font-size: 0.875rem;
  text-align: left;
}

.features strong {
  display: block;
}

/* Phones: one feature per line rather than wrapping two and one */
@media (max-width: 480px) {
  .features {
    grid-template-columns: 1fr;
  }

  .features strong {
    display: inline;
  }
}

/* Card carousel: wider than the column, scrolls sideways, edges fade out */
.carousel {
  position: relative;
  width: min(100cqw, 1180px);
  left: 50%;
  transform: translateX(-50%);
  margin-top: 32px;
}

.track {
  position: relative; /* card offsets are measured from here (carousel.js) */
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 0 10px;
  scrollbar-width: none;
  /* Only the mask's opacity matters; any opaque token works */
  -webkit-mask-image: linear-gradient(to right, transparent, var(--ink) 14%, var(--ink) 86%, transparent);
  mask-image: linear-gradient(to right, transparent, var(--ink) 14%, var(--ink) 86%, transparent);
}

/* Without the script there are no loop copies, so leave room to centre the ends */
.carousel:not(.ready) .track {
  padding-inline: calc(50% - min(39vw, 140px));
}

/* With the script, carousel.js does the snapping, dragging and throwing; touch
   keeps vertical page scrolling (pan-y) and hands sideways swipes to the script */
.carousel.ready .track {
  scroll-snap-type: none;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.track::-webkit-scrollbar {
  display: none;
}

.card {
  flex: 0 0 min(78vw, 280px);
  scroll-snap-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  text-align: left;
  box-shadow: var(--shadow-card);
}

.row-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.carousel + .carousel {
  margin-top: 28px;
}

.card h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.card p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0;
}

/* Arrows sit on the faded edges; shown only once carousel.js has run */
.carousel .nav {
  display: none;
  position: absolute;
  top: calc(50% - 2px); /* centred on the cards: below the row title, above the pause button */
  transform: translateY(-50%);
  z-index: 1;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-button);
}

.carousel.ready .nav {
  display: grid;
}

.carousel .nav:active {
  transform: translateY(-50%) scale(0.94);
}

/* Pause/play for the auto-moving row: small, centred under the cards */
.carousel .pause {
  position: static;
  transform: none;
  width: 32px;
  height: 32px;
  margin: 4px auto 0;
}

.carousel .pause[hidden] {
  display: none;
}

.carousel .pause:active {
  transform: scale(0.94);
}

.pause .icon-play,
.pause[aria-pressed="true"] .icon-pause {
  display: none;
}

.pause[aria-pressed="true"] .icon-play {
  display: block;
}

.carousel .prev {
  left: 8px;
}

.carousel .next {
  right: 8px;
}

.carousel .nav:hover {
  background: var(--paper);
}

/* Mouse users can drag the row */
@media (pointer: fine) {
  .track {
    cursor: grab;
  }
}

.track.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.founder {
  font-size: 0.875rem;
  margin: 32px 0 0;
}

.social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
}

.social a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--muted);
  border-radius: 50%;
}

.social a:hover {
  color: var(--ink);
  background: var(--surface);
}

/* Footer links part by space alone (no dot separators) */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  font-size: 0.8125rem;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Result pages */

.result h1 {
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 8px 0;
}

.result p {
  color: var(--muted);
}
