:root {
  --apps-ink: #1c1814;
  --apps-muted: #655d54;
  --apps-paper: #fffdf8;
  --apps-sand: #f5ead8;
  --apps-border: #ddd0bd;
  --apps-blue: #1559c7;
  --apps-blue-dark: #0b3e95;
  --apps-green: #147a4b;
  --apps-amber: #945500;
  --apps-purple: #6843a5;
  --apps-error: #9f1d2f;
  --apps-focus: #0b63ce;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--apps-ink);
  background: var(--apps-paper);
}

.apps-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 132px) 0 clamp(62px, 8vw, 108px);
  background:
    radial-gradient(circle at 86% 16%, rgba(255, 190, 72, .34), transparent 26%),
    radial-gradient(circle at 4% 100%, rgba(45, 115, 210, .18), transparent 32%),
    linear-gradient(145deg, #fffaf0 0%, #f6ead7 58%, #f8dfb4 100%);
}

.apps-hero::after {
  content: "";
  position: absolute;
  width: min(42vw, 540px);
  aspect-ratio: 1;
  right: -13vw;
  bottom: -62%;
  border: clamp(32px, 6vw, 76px) solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  pointer-events: none;
}

.apps-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, .72fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: center;
}

.apps-hero h1 {
  max-width: 16ch;
  margin: 0 0 22px;
  font-size: clamp(44px, 7.4vw, 88px);
  line-height: .98;
  letter-spacing: -.047em;
}

.apps-lede {
  max-width: 660px;
  margin: 0 0 28px;
  color: #4e473f;
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.55;
}

.availability-note {
  max-width: 620px;
  margin: 24px 0 0;
  color: #61584d;
  font-size: 13px;
}

.apps-proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.apps-proof > div {
  min-height: 142px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(255, 253, 248, .88);
  border: 1px solid rgba(132, 102, 57, .19);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(83, 58, 25, .08);
  backdrop-filter: blur(10px);
}

.apps-proof strong {
  font-family: "Caprasimo", Georgia, serif;
  font-size: clamp(36px, 5vw, 55px);
  line-height: 1;
  color: #b95822;
}

.apps-proof span {
  margin-top: 9px;
  color: #5f5548;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.apps-portfolio {
  background: #fffdf8;
}

.apps-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 440px);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.apps-section-head h2 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.04;
}

.apps-section-head > p {
  margin: 0 0 7px;
  color: var(--apps-muted);
  font-size: 16px;
  line-height: 1.6;
}

.app-toolbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  width: fit-content;
  margin: 0 0 20px auto;
  padding: 8px 10px 8px 15px;
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--apps-border);
  border-radius: 999px;
  background: rgba(255, 253, 248, .94);
  box-shadow: 0 10px 28px rgba(70, 52, 29, .1);
  backdrop-filter: blur(12px);
}

.app-toolbar p {
  margin: 0 5px 0 0;
  font-size: 13px;
  color: var(--apps-muted);
}

.app-toolbar strong {
  color: var(--apps-blue-dark);
}

.text-button {
  min-height: 38px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--apps-blue-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.text-button:hover {
  background: #d9e8ff;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.app-card {
  position: relative;
  min-height: 296px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--apps-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 11px 32px rgba(67, 49, 26, .055);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
  scroll-margin-top: 86px;
}

.app-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(67, 49, 26, .1);
}

.app-card.is-selected {
  border-color: var(--apps-blue);
  background: #f6f9ff;
  box-shadow: 0 0 0 3px rgba(21, 89, 199, .12), 0 18px 42px rgba(21, 89, 199, .12);
}

.app-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.app-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .04em;
}

.app-mark.tone-public {
  color: #075b35;
  background: #dff7ea;
}

.app-mark.tone-mixed {
  color: #0b459c;
  background: #e4efff;
}

.app-mark.tone-early {
  color: #674100;
  background: #fff0ca;
}

.app-choice {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid #d9e4f6;
  border-radius: 999px;
  background: #fff;
  color: #244263;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.app-choice input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--apps-blue);
}

.app-card h3 {
  margin: 20px 0 8px;
  font-size: 25px;
  line-height: 1.1;
}

.app-description {
  margin: 0;
  color: var(--apps-muted);
  font-size: 15px;
  line-height: 1.52;
}

.availability {
  width: fit-content;
  margin: 18px 0 0;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.availability-public {
  color: #075b35;
  background: #e6f7ed;
}

.availability-mixed {
  color: #0b459c;
  background: #eaf2ff;
}

.availability-early {
  color: #704700;
  background: #fff3d7;
}

.store-links {
  min-height: 26px;
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
}

.store-links a {
  color: var(--apps-blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.store-links span {
  color: var(--apps-muted);
}

.join-card {
  margin-top: clamp(46px, 7vw, 84px);
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  overflow: hidden;
  border: 1px solid #cdbb9f;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 28px 75px rgba(65, 47, 24, .12);
  scroll-margin-top: 80px;
}

.join-copy {
  padding: clamp(30px, 5.5vw, 64px);
  color: #fff;
  background:
    radial-gradient(circle at 18% 5%, rgba(255, 210, 103, .28), transparent 32%),
    linear-gradient(150deg, #183e7a 0%, #0b2b60 72%, #09244f 100%);
}

.join-copy .bh-kicker {
  color: #ffd76f;
}

.join-copy h2 {
  max-width: 10ch;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.04;
}

.join-copy > p {
  color: #dbe8ff;
  font-size: 17px;
  line-height: 1.6;
}

.join-copy ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
}

.join-copy li {
  position: relative;
  padding-left: 28px;
  color: #eff5ff;
  line-height: 1.45;
}

.join-copy li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #ffd76f;
  font-weight: 900;
}

.join-form-panel {
  padding: clamp(30px, 5.5vw, 64px);
  background: #fffdf8;
}

.form-row {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 14px;
}

.field {
  margin-bottom: 18px;
}

.field label,
.platform-fieldset legend {
  display: block;
  margin-bottom: 7px;
  color: #39322b;
  font-size: 13px;
  font-weight: 800;
}

.field label span {
  color: var(--apps-muted);
  font-weight: 600;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cfc4b4;
  border-radius: 12px;
  background: #fff;
  color: var(--apps-ink);
  font: inherit;
  font-size: 16px;
}

.platform-fieldset {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.platform-fieldset legend {
  padding: 0;
}

.platform-choice {
  min-height: 48px;
  margin: 0 7px 8px 0;
  padding: 10px 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cfc4b4;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.platform-choice:has(input:checked) {
  border-color: var(--apps-blue);
  background: #edf4ff;
  color: var(--apps-blue-dark);
}

.platform-choice input,
.consent-choice input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--apps-blue);
}

.consent-choice {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 4px 0 20px;
  padding: 14px;
  border: 1px solid #d8cdbd;
  border-radius: 14px;
  background: #fff;
  color: #514a42;
  font-size: 13px;
  line-height: 1.5;
}

.consent-choice input {
  margin-top: 2px;
}

.consent-choice a {
  color: var(--apps-blue-dark);
  font-weight: 800;
}

.submit-button {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
}

.form-footnote {
  margin: 13px 0 0;
  color: var(--apps-muted);
  font-size: 12px;
  line-height: 1.45;
}

.form-success,
.form-error {
  margin: 0 0 18px;
  padding: 15px 16px;
  border-radius: 14px;
  line-height: 1.5;
}

.selection-error {
  margin: -6px 0 18px;
  padding: 11px 14px;
  border: 1px solid #e8a6af;
  border-radius: 12px;
  background: #fff0f2;
  color: var(--apps-error);
  font-size: 14px;
  font-weight: 800;
}

.form-success {
  border: 1px solid #9bd6b5;
  background: #eaf8f0;
  color: #075b35;
}

.form-success strong {
  font-size: 17px;
}

.form-success p {
  margin: 5px 0 0;
}

.form-error {
  border: 1px solid #e8a6af;
  background: #fff0f2;
  color: var(--apps-error);
  font-weight: 700;
}

.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.privacy-shell {
  padding: clamp(54px, 8vw, 100px) 0;
  background:
    radial-gradient(circle at 88% 5%, rgba(255, 190, 72, .22), transparent 24%),
    linear-gradient(180deg, #fffaf0 0, #fffdf8 40%);
}

.privacy-card {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 6vw, 68px);
  border: 1px solid var(--apps-border);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 22px 65px rgba(67, 49, 26, .1);
}

.privacy-card h1 {
  margin: 0 0 8px;
  font-size: clamp(42px, 7vw, 70px);
  line-height: 1;
}

.privacy-updated {
  margin: 0 0 24px;
  color: var(--apps-muted);
  font-size: 13px;
  font-weight: 700;
}

.privacy-summary {
  margin: 0 0 38px;
  padding: 20px 22px;
  border-left: 5px solid var(--apps-blue);
  border-radius: 0 15px 15px 0;
  background: #edf4ff;
  color: #173a68;
  font-size: 18px;
  line-height: 1.6;
}

.privacy-card section {
  padding: 28px 0;
  border-top: 1px solid #e8dfd2;
}

.privacy-card section h2 {
  margin: 0 0 12px;
  font-size: 25px;
}

.privacy-card section p,
.privacy-card section li {
  color: #514a42;
  line-height: 1.68;
}

.privacy-card section ul {
  padding-left: 22px;
}

.privacy-card a {
  color: var(--apps-blue-dark);
  font-weight: 700;
}

.privacy-table-wrap {
  overflow-x: auto;
}

.privacy-card table {
  width: 100%;
  border-collapse: collapse;
  color: #514a42;
  font-size: 14px;
}

.privacy-card th,
.privacy-card td {
  padding: 13px 14px;
  border: 1px solid #ddd2c2;
  text-align: left;
  vertical-align: top;
}

.privacy-card th {
  background: #f8f1e5;
  color: #302a24;
}

.privacy-actions {
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--apps-focus);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .apps-hero-grid,
  .join-card {
    grid-template-columns: 1fr;
  }

  .apps-proof {
    max-width: 640px;
  }

  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apps-section-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 660px) {
  .apps-hero {
    padding-top: 54px;
  }

  .apps-hero h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .apps-proof {
    grid-template-columns: 1fr 1fr;
  }

  .apps-proof > div {
    min-height: 118px;
    padding: 18px 15px;
  }

  .app-toolbar {
    position: relative;
    top: auto;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    border-radius: 17px;
  }

  .app-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .app-card {
    min-height: 0;
  }

  .app-card-top {
    align-items: flex-start;
  }

  .app-choice span {
    max-width: 92px;
  }

  .join-card {
    border-radius: 22px;
  }

  .platform-choice {
    width: 100%;
    margin-right: 0;
  }
}

@media (max-width: 420px) {
  .apps-proof {
    grid-template-columns: 1fr;
  }

  .apps-proof > div {
    min-height: 98px;
  }

  .app-toolbar {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .app-card {
    transition: none;
  }

  .app-card:hover {
    transform: none;
  }
}
