/* Palette: Sorted brand tokens (docs/brand/brand-tokens.md). Orange shades and
   tints are brand-permitted derivatives of Sorted Orange #F0610F. */
:root {
  color-scheme: light;
  --orange: #f0610f;
  --orange-deep: #c24e0c;
  --orange-soft: #fdebdd;
  --peach: #f79e5c;
  --ink: #000000;
  --body: #3f3f46;
  --muted: #6e6e78;
  --line: #cfcfdb;
  --surface: #ffffff;
  --canvas: #ededf5;
}

@font-face {
  font-family: "VC Henrietta";
  src: url("/assets/VCHenrietta-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body {
  min-height: 100vh;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  min-height: 72px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

nav a[aria-current="page"],
nav a:hover {
  color: var(--ink);
}

.hero {
  min-height: calc(100vh - 72px);
  padding: 40px 28px 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  align-items: center;
  gap: 56px;
  max-width: 1120px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange-deep);
  font-size: 12px;
  line-height: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  font-family: "VC Henrietta", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: 64px;
  line-height: 68px;
}

h2 {
  font-size: 24px;
  line-height: 30px;
}

.lede {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--body);
  font-size: 19px;
  line-height: 30px;
  font-weight: 520;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 850;
}

.button.primary {
  background: var(--orange);
  color: var(--surface);
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
}

.phone-visual {
  min-height: 560px;
  border: 1px solid #d7d7dc;
  border-radius: 34px;
  background: #f2f2f4;
  box-shadow: 0 24px 70px rgba(20, 20, 20, 0.16);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.phone-top {
  width: 82px;
  height: 6px;
  border-radius: 999px;
  background: #cbcbcf;
  align-self: center;
  margin-bottom: 28px;
}

.phone-card {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.phone-card.active {
  border-color: var(--orange);
}

.step {
  width: 34px;
  height: 34px;
  border-radius: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-size: 11px;
  font-weight: 900;
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: #d9d9de;
  margin-top: 24px;
  overflow: hidden;
}

.progress span {
  display: block;
  width: 34%;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
}

.status-band {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 34px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 32px;
  align-items: start;
}

.status-list {
  margin: 0;
  padding-left: 18px;
  color: var(--body);
  font-size: 14px;
  line-height: 24px;
  font-weight: 650;
}

.home-hero {
  max-width: 760px;
  min-height: calc(100vh - 72px - 220px);
  padding: 96px 28px 72px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home-hero h1 {
  font-size: 56px;
  line-height: 62px;
}

.home-hero .lede {
  margin-left: auto;
  margin-right: auto;
}

.store-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 36px;
}

.store-badges a {
  display: inline-flex;
}

.store-badges img {
  display: block;
}

.badge-apple {
  height: 54px;
  width: auto;
}

/* The official Play badge PNG carries built-in padding, so it renders taller
   to match the Apple badge's visible height. */
.badge-play {
  height: 81px;
  width: auto;
}

.app-icon {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(20, 20, 20, 0.18);
  margin-bottom: 30px;
}

.byline {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 24px;
  font-weight: 650;
}

.byline a {
  color: var(--orange);
}

.byline a:hover {
  color: var(--orange-deep);
}

.site-footer {
  padding: 20px 28px 40px;
  text-align: center;
}

.site-footer p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 21px;
}

.site-footer .small {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 17px;
}

@media (max-width: 640px) {
  .home-hero h1 {
    font-size: 40px;
    line-height: 46px;
  }
}

.plain-page {
  max-width: 760px;
  padding: 72px 28px 120px;
  margin: 0 auto;
}

.plain-page p:not(.eyebrow) {
  color: var(--body);
  font-size: 18px;
  line-height: 29px;
}

.plain-page .small {
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.legal-page {
  max-width: 860px;
}

.legal-meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 23px;
  font-weight: 650;
}

.legal-sections {
  margin-top: 42px;
}

.legal-section {
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  font-size: 22px;
  line-height: 28px;
}

.legal-section p {
  margin: 16px 0 0;
}

.legal-section ul {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--body);
  font-size: 17px;
  line-height: 28px;
  font-weight: 520;
}

.legal-section li + li {
  margin-top: 4px;
}

.legal-section strong {
  color: var(--ink);
}

.info-page {
  max-width: 900px;
}

.info-panel,
.info-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.info-panel {
  margin-top: 30px;
  padding: 24px;
}

.info-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.info-card {
  padding: 20px;
}

.info-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-size: 12px;
  font-weight: 900;
}

.info-card p,
.info-panel p {
  margin: 12px 0 0;
}

.text-link {
  color: var(--orange);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--orange-deep);
}

/* Partner co-brand lockup: app icon + partner logo in matching tiles, the
   partner's single config colour drives the chip via --partner-* vars set
   inline by build-partners.mjs. CTAs stay Sorted orange on purpose. */
.partner-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}

.partner-lockup .app-icon {
  margin-bottom: 0;
}

.lockup-plus {
  color: var(--muted);
  font-size: 26px;
  font-weight: 700;
}

.partner-logo-tile {
  height: 96px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  padding: 0 30px;
  box-shadow: 0 10px 28px rgba(20, 20, 20, 0.1);
}

.partner-logo-tile img {
  display: block;
  height: 24px;
  width: auto;
  max-width: 200px;
}

.partner-chip {
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
  border-radius: 999px;
  padding: 7px 16px;
  background: var(--partner-soft, var(--orange-soft));
  color: var(--partner-deep, var(--orange-deep));
  font-size: 12px;
  line-height: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

/* Partner hero doesn't fill the viewport like the share page: the feature
   cards below are part of the pitch, so let them peek above the fold. */
.home-hero.partner-hero {
  min-height: auto;
  padding: 72px 28px 56px;
}

.partner-cards {
  max-width: 820px;
  padding: 0 28px 96px;
  margin: 0 auto;
  text-align: center;
}

.partner-cards .info-card {
  text-align: left;
}

.partner-cards-title {
  font-size: 32px;
  line-height: 38px;
}

.partner-cards .info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
}

/* Password lock screen + pitch page (build-pitch.mjs) */
.lock-screen {
  max-width: 560px;
  min-height: calc(100vh - 220px);
  padding: 96px 28px 72px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.lock-screen h1 {
  font-size: 44px;
  line-height: 50px;
}

.lock-screen form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  width: 100%;
}

.lock-input {
  flex: 1 1 220px;
  max-width: 300px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
}

.lock-input:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  border-color: var(--orange);
}

.lock-error {
  margin: 16px 0 0;
  color: var(--orange-deep);
  font-size: 14px;
  font-weight: 650;
}

.pitch-page .stat-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
}

/* p.-qualified to outrank the .plain-page p rule */
.pitch-page p.stat-num {
  margin: 0;
  font-family: "VC Henrietta", Georgia, serif;
  font-size: 38px;
  line-height: 44px;
  color: var(--ink);
}

.pitch-page p.stat-label {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 19px;
  font-weight: 650;
}

@media (max-width: 820px) {
  .pitch-page .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* "Powered by" attribution band: mirrors the app splash footer (orange
   gradient, white CAP mark + Sorted wordmark). Logo PNGs are white on
   transparent, so they only work on this band. */
.partner-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.partner-page .powered-band {
  margin-top: auto;
}

.powered-band {
  background: linear-gradient(180deg, var(--peach, #f79e5c), var(--orange));
  padding: 40px 28px 44px;
  text-align: center;
  color: #ffffff;
}

.powered-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.powered-label {
  font-size: 13px;
  font-weight: 650;
  opacity: 0.9;
  margin-right: 4px;
}

.powered-row a {
  display: inline-flex;
}

.powered-row img {
  display: block;
}

.powered-band p {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 21px;
}

.powered-band a {
  color: #ffffff;
}

.powered-band p a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.powered-band .small {
  margin-top: 12px;
  font-size: 11px;
  line-height: 17px;
  opacity: 0.75;
}

@media (max-width: 820px) {
  .partner-cards .info-grid {
    grid-template-columns: 1fr;
  }

  .partner-lockup .app-icon,
  .partner-logo-tile {
    height: 72px;
  }

  .partner-lockup .app-icon {
    width: 72px;
    border-radius: 17px;
  }

  .partner-logo-tile {
    padding: 0 22px;
    border-radius: 17px;
  }

  .partner-logo-tile img {
    height: 19px;
  }

  .site-header {
    padding: 14px 18px;
  }

  nav {
    gap: 12px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 30px 18px 56px;
    gap: 34px;
  }

  h1 {
    font-size: 42px;
    line-height: 46px;
  }

  .lede {
    font-size: 16px;
    line-height: 25px;
  }

  .phone-visual {
    min-height: 420px;
    border-radius: 24px;
  }

  .status-band {
    grid-template-columns: 1fr;
    padding: 28px 18px;
  }

  .plain-page {
    padding-top: 48px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}
