@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/rubik-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --ink: #161616;
  --soft: #393939;
  --grey: #666666;
  --bg: #f4f4f4;
  --card: #ffffff;
  --sunken: #eaeaea;
  --border: #e0e0e0;
  --accent: #f1c21b;
  --night: #0e0e0f;
  --night-card: #1c1c1e;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --text: "Rubik", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5.56vw, 80px);
  --inset: clamp(8px, 1.12vw, 16px);
  --panel-pad: clamp(16px, 4.45vw, 64px);
}

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

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

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

body {
  margin: 0;
  background: var(--bg) url("/assets/noise-dark.svg");
  color: var(--ink);
  font: 400 16px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

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

.panel-dark :focus-visible,
.cta :focus-visible {
  outline-color: var(--accent);
}

.steps:focus-visible {
  outline-offset: -2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-optical-sizing: auto;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: var(--pad);
}

.panel {
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--inset);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 999px;
  font: 500 16px/1.25 var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn svg {
  flex: none;
  width: 24px;
  height: 24px;
}

.btn-outline {
  padding: 13px 22px;
  border: 1px solid var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn-dark {
  gap: 42px;
  padding: 16px 32px;
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #333;
}

.btn-light {
  padding: 16px 24px 16px 28px;
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  background: var(--accent);
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 30px;
}

.site-header-left {
  display: flex;
  align-items: center;
  gap: 72px;
}

.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span {
  color: var(--grey);
}

.site-nav {
  display: flex;
  gap: 36px;
}

.site-nav a {
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}

.site-header .wordmark,
.site-nav a,
.footer-cols a,
.back-link {
  position: relative;
}

.site-header .wordmark::after,
.site-nav a::after,
.back-link::after {
  content: "";
  position: absolute;
  inset: -11px -8px;
}

.site-header .wordmark::after {
  inset: -10px -8px;
}

.footer-cols a::after {
  content: "";
  position: absolute;
  inset: -8px;
}

.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
  align-items: center;
  column-gap: 40px;
  min-height: min(730px, 50.7vw);
  padding-bottom: 30px;
}

.hero h1 {
  font-size: clamp(46px, 5.28vw, 76px);
  line-height: 1.06;
  text-wrap: balance;
}

.hero-lead {
  max-width: 540px;
  margin-top: 32px;
  color: var(--grey);
  font-size: 18px;
  line-height: 1.65;
}

.hero .btn {
  margin-top: 40px;
}

.hero-visual {
  justify-self: end;
}

main {
  overflow-x: clip;
}

@media (min-width: 1001px) {
  .hero {
    padding-bottom: 56px;
  }

  .hero-visual {
    width: min(742px, 116%);
    margin-right: calc(14px - var(--pad) - 0.066 * min(742px, 116%));
    position: relative;
    top: 36px;
  }
}

@media (min-width: 1001px) and (max-width: 1279px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .hero-visual {
    width: min(640px, 112%);
    margin-right: calc(var(--pad) * -0.5);
  }
}

/* About */

.about {
  padding-top: 70px;
  scroll-margin-top: 16px;
}

.about-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.about-head h2 {
  max-width: 660px;
  font-size: clamp(34px, 3.34vw, 48px);
  line-height: 1.12;
}

.about-head p {
  max-width: 540px;
  color: var(--grey);
  font-size: 17px;
  line-height: 1.75;
}

.about-cards {
  display: grid;
  grid-template-columns: minmax(0, 438fr) minmax(0, 818fr);
  gap: 24px;
  margin-top: 83px;
}

.card {
  position: relative;
  min-height: 382px;
  overflow: hidden;
  border-radius: 30px;
}

.card-worthy {
  display: flex;
  flex-direction: column;
  padding: 40px;
  background: var(--accent);
}

.card-worthy .app-icon {
  width: 162px;
  margin: -11px 0 -14px -23px;
}

/* Same as the app's WorthyWordmark: ExtraBold, tracked -4%, optical size follows the size. */
.worthy-wordmark {
  margin-top: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 28.5px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-optical-sizing: auto;
}

.card-worthy .card-note {
  margin-top: auto;
  padding-top: 32px;
  font-size: 17px;
  line-height: 1.6;
}

.card-profit {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 40px;
  background: var(--sunken);
}

.card-profit h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.card-profit p {
  margin-top: 16px;
  color: var(--grey);
  font-size: 17px;
  line-height: 1.65;
}

.card-profit img {
  justify-self: center;
  width: min(490px, 100%);
}

@media (min-width: 1001px) {
  .card-profit img {
    justify-self: start;
    width: min(460px, 109%);
    max-width: none;
    margin: -12px 0 -12px 8px;
    translate: 0 7.6%;
  }
}

/* How Worthy works */

.how {
  margin-top: 90px;
  scroll-margin-top: 0;
}

.panel-dark {
  padding: 80px var(--panel-pad);
  border-radius: 30px;
  background: var(--night) url("/assets/noise-light.svg");
  color: #fff;
}

.how h2 {
  text-align: center;
  font-size: clamp(34px, 3.34vw, 48px);
  line-height: 1.3;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 44px;
}

.pill {
  padding: 12px 32px;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pill:hover {
  border-color: var(--accent);
}

.pill[aria-current="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 400px));
  justify-content: center;
  gap: 40px;
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  height: 560px;
  overflow: hidden;
  padding: 36px 32px 0;
  border: 0;
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background: var(--night-card);
  scroll-margin-top: 24px;
}

.step-label {
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
}

.step-label::before {
  content: "";
  width: 54px;
  height: 1px;
  background: #fff;
}

.step-copy {
  min-height: 150px;
  margin-top: 18px;
}

.step h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.step-copy p {
  max-width: 330px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  line-height: 1.6;
}

.step img {
  flex: none;
  align-self: center;
  width: 307px;
  max-width: none;
  margin: 3px 0 0;
  translate: 20px 0;
}

/* Statement */

.statement {
  padding-block: 110px;
}

.statement-text {
  max-width: 1200px;
  font-size: clamp(26px, 2.78vw, 40px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.statement-signature {
  margin-top: 48px;
  font-weight: 500;
  font-size: 20px;
}

/* FAQ */

.faq {
  scroll-margin-top: 0;
}

.faq-card {
  display: grid;
  grid-template-columns: minmax(0, 531fr) minmax(0, 627fr);
  gap: 40px clamp(40px, 6.25vw, 90px);
  padding: 72px var(--pad);
  border-radius: 28px;
  background: var(--card);
}

.faq-card h2 {
  font-size: clamp(34px, 3.34vw, 48px);
  line-height: 1.12;
}

.faq-intro .btn {
  margin-top: 32px;
}

.faq-list {
  border-bottom: 1px solid var(--ink);
}

.faq-item {
  border-top: 1px solid var(--ink);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 26px 24px;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
}

.faq-item[open] summary::after {
  background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat;
}

.faq-item p {
  max-width: 580px;
  margin-top: -6px;
  padding: 0 24px 26px;
  color: var(--grey);
  font-size: 16px;
  line-height: 1.75;
}

.faq-item a {
  color: var(--ink);
  text-underline-offset: 3px;
}

/* Contact banner */

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px 48px;
  padding: 80px var(--panel-pad);
  border-radius: 30px;
  background: var(--night) url("/assets/noise-light.svg");
  color: #fff;
}

.cta h2 {
  max-width: 820px;
  font-size: clamp(34px, 4.45vw, 64px);
  line-height: 1.04;
  text-wrap: pretty;
}

/* Footer */

.site-footer {
  padding-top: 66px;
  padding-bottom: 40px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.wordmark-lg {
  font-size: 32px;
  margin-top: 6px;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 112px;
}

.footer-title {
  font-weight: 500;
  font-size: 17px;
}

.footer-cols ul {
  display: grid;
  gap: 10px;
  margin-top: 34px;
  padding: 0;
  list-style: none;
}

.footer-cols a {
  color: var(--grey);
  font-size: 15px;
  text-decoration: none;
}

.footer-cols a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--grey);
  font-size: 14px;
  line-height: 1.2;
}

/* Privacy policy */

.policy {
  max-width: 944px;
  margin: 0 auto;
  padding: 68px 24px 104px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}

.back-link svg {
  width: 18px;
  height: 18px;
}

.back-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.policy h1 {
  margin-top: 45px;
  font-size: clamp(40px, 4.45vw, 64px);
  line-height: 1.1;
}

.policy-updated {
  margin-top: 17px;
  color: var(--grey);
  font-size: 15px;
}

.policy-body {
  margin-top: 46px;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.7;
}

.policy-body p {
  margin: 0 0 16px;
}

.policy-body h2 {
  margin: 56px 0 16px;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.policy-body ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.policy-body li > p {
  margin: 0;
}

.policy-body strong {
  color: var(--ink);
  font-weight: 500;
}

.policy-body a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.page-policy .site-footer {
  border-top: 1px solid var(--border);
  padding-top: 45px;
}

/* Not found */

.not-found {
  min-height: 60vh;
  padding-block: 96px 120px;
}

.not-found h1 {
  font-size: clamp(40px, 5.28vw, 76px);
  line-height: 1.06;
}

.not-found p {
  margin-top: 24px;
  color: var(--grey);
  font-size: 18px;
}

.not-found .btn {
  margin-top: 40px;
}

/* Responsive */

@media (max-width: 1100px) {
  .steps {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, 380px);
    justify-content: start;
    margin-inline: calc(var(--panel-pad) * -1);
    padding-inline: var(--panel-pad);
    padding-bottom: 6px;
    overflow-x: auto;
    scroll-padding-inline: var(--panel-pad);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .steps::-webkit-scrollbar {
    display: none;
  }

  .step {
    scroll-snap-align: start;
  }
}

@media (min-width: 1001px) and (max-width: 1240px) {
  .about-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    row-gap: 24px;
    min-height: 0;
    padding-top: 32px;
  }

  .hero-visual {
    justify-self: center;
    width: min(640px, 112%);
    margin-right: 0;
  }

  .about-head {
    flex-direction: column;
    gap: 20px;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

  .card-profit {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .faq-card {
    grid-template-columns: 1fr;
    padding-block: 48px;
  }
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }

  .site-header {
    padding-block: 20px;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .about {
    padding-top: 48px;
  }

  .about-cards {
    margin-top: 40px;
  }

  .card {
    min-height: 0;
  }

  .card-worthy,
  .card-profit {
    padding: 28px;
  }

  .card-worthy .card-note {
    padding-top: 40px;
  }

  .card-profit h3 {
    font-size: 28px;
  }

  .how {
    margin-top: 48px;
  }

  .panel-dark,
  .cta {
    padding-block: 56px;
    border-radius: 24px;
  }

  .pills {
    gap: 10px;
    margin-top: 32px;
  }

  .pill {
    padding: 10px 20px;
    font-size: 15px;
  }

  .steps {
    margin-top: 40px;
    gap: 12px;
  }

  .step {
    height: 520px;
  }

  .statement {
    padding-block: 72px;
  }

  .faq-card {
    border-radius: 24px;
  }

  .faq-item summary {
    gap: 24px;
    padding: 22px 4px;
    font-size: 20px;
  }

  .faq-item p {
    padding: 0 4px 22px;
  }

  .site-footer {
    padding-top: 56px;
  }

  .footer-cols {
    gap: 32px 48px;
  }

  .policy {
    padding-top: 40px;
  }

  .policy-body h2 {
    margin-top: 44px;
    font-size: 24px;
  }
}

@media (max-width: 380px) {
  .cta .btn {
    max-width: 100%;
    gap: 10px;
    padding-inline: 20px 16px;
    font-size: 15px;
    white-space: normal;
    text-align: left;
  }
}
