@font-face {
  font-family: "NHG Display";
  src: url("/assets/marketing/fonts/neuehaasgrotdisp-65medium-trial.otf") format("opentype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rhymes Display";
  src: url("/assets/marketing/fonts/Rhymes Display Light Italic.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

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

:root {
  --background: #fbfaf8;
  --canvas: #fbfaf8;
  --foreground: #202020;
  --muted: #868686;
  --accent: #fd5319;
  --border: rgba(0, 0, 0, 0.08);
}

html {
  background: var(--background);
  overflow-x: hidden;
}

body {
  min-width: 320px;
  min-height: 100svh;
  background: var(--background);
  color: var(--foreground);
  font-family: "NHG Display", Arial, Helvetica, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

em {
  font-family: "Rhymes Display", Georgia, serif;
  font-style: italic;
  font-weight: 300;
}

.page {
  position: relative;
  isolation: isolate;
  display: flex;
  height: 100svh;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--canvas);
  padding: clamp(28px, 2vw, 32px) clamp(32px, 3.1vw, 52px)
    clamp(32px, 3vw, 48px) clamp(32px, 3.75vw, 62px);
}

.hero-shell {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 0.75vw, 12px);
  color: var(--foreground);
  font-size: clamp(42px, 3.05vw, 52px);
  font-weight: 700;
  line-height: 1;
}

.logo-icon {
  width: clamp(34px, 2.55vw, 42px);
  height: auto;
  flex: 0 0 auto;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: 0;
  padding: clamp(36px, min(5.4vw, 6svh), 86px) 0 clamp(24px, min(4.5vw, 5svh), 66px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(100%, 730px);
  margin-left: clamp(0px, 1.5vw, 26px);
  transform: translateY(-1.65vh);
}

h1 {
  max-width: 730px;
  margin-bottom: clamp(34px, 3.1vw, 46px);
  color: var(--foreground);
  font-size: clamp(72px, min(8.65vw, 16svh), 144px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.9;
}

h1 em {
  display: block;
  margin-top: 0.02em;
  color: var(--foreground);
  font-size: 0.91em;
  line-height: 0.92;
}

.lede {
  max-width: 500px;
  transform: none;
  color: var(--muted);
  font-size: clamp(26px, 2vw, 34px);
  font-weight: 700;
  line-height: 1.2;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(50px, 3.2vw, 54px);
  padding: 0 clamp(24px, 1.8vw, 30px);
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: clamp(17px, 1.12vw, 20px);
  font-weight: 700;
  line-height: 1;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.button:hover {
  opacity: 0.84;
  transform: translateY(-1px);
}

.button-nav {
  min-width: clamp(132px, 8.7vw, 146px);
}

.hero-cta {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: clamp(22px, 1.9vw, 30px);
}

.hero-art {
  justify-self: center;
  width: min(50vw, 72svh, 810px);
  min-width: 0;
  transform: translate(1.2vw, -4.4vh);
  transform-origin: center;
  user-select: none;
  pointer-events: none;
}

.product-section,
.apply-section {
  width: min(100%, 1540px);
  margin: 0 auto;
  padding: clamp(72px, 8vw, 128px) 0;
}

.product-section {
  border-top: 1px solid rgba(0, 0, 0, 0.14);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 92px);
  align-items: start;
  margin-bottom: clamp(36px, 5vw, 72px);
}

.section-heading > *,
.apply-section > *,
.product-grid article,
.field,
.form-intro {
  min-width: 0;
}

.section-kicker {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: clamp(14px, 1vw, 17px);
  font-weight: 700;
}

.section-heading h2,
.apply-copy h2 {
  width: 100%;
  max-width: 760px;
  color: var(--foreground);
  font-size: clamp(38px, 4.9vw, 82px);
  font-weight: 700;
  line-height: 0.95;
  overflow-wrap: break-word;
}

.section-heading > p:last-child,
.apply-copy p:last-child {
  width: 100%;
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(19px, 1.55vw, 25px);
  font-weight: 600;
  line-height: 1.34;
  overflow-wrap: break-word;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(0, 0, 0, 0.13);
  border: 1px solid rgba(0, 0, 0, 0.13);
}

.product-grid article {
  min-height: 280px;
  background: rgba(251, 250, 248, 0.96);
  padding: clamp(24px, 2.3vw, 38px);
}

.product-grid span {
  display: block;
  margin-bottom: clamp(48px, 5vw, 86px);
  color: #a7a7a7;
  font-size: 14px;
  font-weight: 700;
}

.product-grid h3 {
  margin-bottom: 16px;
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.02;
}

.product-grid p {
  color: var(--muted);
  font-size: clamp(16px, 1.15vw, 19px);
  font-weight: 600;
  line-height: 1.45;
}

.apply-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 0.92fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: start;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
}

.apply-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: -10px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(0, 0, 0, 0.14);
  background:
    radial-gradient(circle at 90% 8%, rgba(245, 121, 39, 0.2), transparent 26%),
    rgba(255, 255, 255, 0.55);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.07);
}

.form-intro {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.form-intro span {
  color: var(--foreground);
  font-size: clamp(21px, 1.85vw, 30px);
  font-weight: 700;
  line-height: 1;
}

.form-intro p {
  max-width: 245px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-wide,
.form-button,
.form-status {
  grid-column: 1 / -1;
}

.field label {
  color: #5c5751;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.72);
  color: var(--foreground);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  padding: 16px 15px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder {
  color: rgba(32, 32, 32, 0.42);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(245, 121, 39, 0.13);
}

.field-hidden {
  display: none;
}

.form-button {
  width: fit-content;
  min-width: 190px;
  margin-top: 8px;
  border: 0;
  cursor: pointer;
}

.form-button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.form-status {
  min-height: 1.4em;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.footer-legal {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: clamp(32px, 2.7vw, 46px);
}

.footer-legal a {
  color: #202020;
  font-size: clamp(13px, 0.93vw, 16px);
  font-weight: 700;
}

.footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex: 0 0 auto;
  margin-top: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.16);
  padding-top: clamp(26px, 2.3vw, 34px);
  color: #202020;
  font-size: clamp(13px, 0.93vw, 16px);
  font-weight: 700;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 12px;
}

.footer a:hover {
  color: var(--foreground);
}

.brand-note {
  max-width: 640px;
  color: #202020;
  font-size: clamp(13px, 0.93vw, 16px);
}

.legal-modal[hidden] {
  display: none;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 42px);
}

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(251, 250, 248, 0.72);
  backdrop-filter: blur(18px);
}

.legal-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 1040px);
  height: min(100%, 900px);
  max-height: calc(100svh - clamp(32px, 6vw, 84px));
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fbfaf8;
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.18);
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  padding: 18px clamp(18px, 3vw, 32px);
}

.legal-modal-header h2 {
  color: var(--foreground);
  font-size: clamp(20px, 1.7vw, 28px);
  font-weight: 700;
  line-height: 1;
}

.legal-modal-close {
  border: 0;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.legal-modal-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fbfaf8;
}

.legal-modal-open {
  overflow: hidden;
}

.legal-page {
  min-width: 320px;
  background: #fbfaf8;
}

.legal-page-main {
  padding: clamp(34px, 6vw, 72px) 24px;
}

.legal-article {
  width: min(100%, 760px);
  margin: 0 auto;
}

.legal-article h1 {
  max-width: 720px;
  margin: 0 0 8px;
  color: var(--foreground);
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
}

.legal-article h2 {
  margin: 40px 0 12px;
  color: var(--foreground);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.18;
}

.legal-article h3 {
  margin: 24px 0 8px;
  color: var(--foreground);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.legal-article p,
.legal-article li {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
}

.legal-article p {
  margin-bottom: 14px;
}

.legal-article > p:first-of-type {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 13px;
}

.legal-article ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal-article ul ul {
  margin-top: 8px;
  margin-bottom: 4px;
  list-style: circle;
}

.legal-article span {
  color: var(--foreground);
  font-weight: 700;
}

.legal-article a {
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-article > div {
  margin-bottom: 20px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
  padding: 16px 20px;
  color: var(--foreground);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

@media (max-width: 980px) and (min-height: 760px) {
  .hero-shell {
    min-height: auto;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: clamp(58px, 10vw, 110px);
  }

  .hero-art {
    order: -1;
    width: min(62vw, 440px);
    min-width: 0;
    transform: translateY(2%);
  }

  .section-heading,
  .apply-section {
    grid-template-columns: 1fr;
  }

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

  .product-grid article {
    min-height: 0;
  }

  .product-grid span {
    margin-bottom: 36px;
  }
}

@media (min-width: 761px) and (max-height: 760px) {
  .page {
    padding-top: clamp(20px, 3.2svh, 28px);
    padding-bottom: clamp(18px, 3svh, 24px);
  }

  .logo {
    font-size: clamp(34px, min(3.05vw, 7svh), 44px);
  }

  .logo-icon {
    width: clamp(28px, min(2.55vw, 5.5svh), 36px);
  }

  .hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    padding: clamp(16px, 4svh, 28px) 0 clamp(14px, 3.6svh, 24px);
  }

  .hero-copy {
    transform: none;
  }

  h1 {
    margin-bottom: clamp(14px, 2.7svh, 22px);
    font-size: clamp(58px, min(8vw, 14.2svh), 108px);
  }

  .hero-cta {
    min-height: clamp(40px, 7svh, 48px);
    margin-bottom: clamp(12px, 2.5svh, 18px);
    padding: 0 clamp(20px, 1.7vw, 26px);
    font-size: clamp(14px, min(1.1vw, 2.7svh), 17px);
  }

  .lede {
    font-size: clamp(20px, min(2vw, 4.5svh), 28px);
  }

  .hero-art {
    width: min(44vw, 60svh, 560px);
    transform: none;
  }

  .footer {
    padding-top: clamp(14px, 2.7svh, 20px);
  }
}

@media (min-width: 561px) and (max-width: 980px) and (max-height: 759px) {
  .hero {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  }

  .hero-art {
    order: 0;
  }
}

@media (max-width: 560px) {
  .page {
    padding: 24px 24px 18px;
  }

  .hero-shell {
    flex: 1 1 auto;
    min-height: 0;
  }

  .site-header {
    gap: 12px;
    max-width: calc(100vw - 48px);
  }

  .logo {
    gap: 7px;
    font-size: 34px;
  }

  .logo-icon {
    width: 28px;
  }

  .button-nav {
    display: none;
  }

  .hero {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: clamp(22px, 4.8svh, 36px);
    padding: clamp(18px, 4.5svh, 40px) 0 clamp(22px, 5svh, 46px);
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    transform: none;
    text-align: left;
  }

  .hero-art {
    order: -1;
    align-self: center;
    width: clamp(198px, 55vw, 254px);
    transform: none;
  }

  h1 {
    margin-bottom: 20px;
    font-size: clamp(49px, 13.9vw, 59px);
  }

  .lede {
    margin-top: 18px;
    margin-bottom: 0;
    transform: none;
    font-size: clamp(21px, 5.9vw, 25px);
    line-height: 1.1;
  }

  .hero-cta {
    align-self: flex-start;
    margin-bottom: 0;
    min-height: 48px;
    padding: 0 25px;
    font-size: 16px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    flex: 0 0 auto;
    padding-top: 22px;
  }

  .footer-legal {
    width: 100%;
    justify-content: flex-start;
    gap: 28px;
  }

  .apply-form {
    grid-template-columns: 1fr;
  }

  .form-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-intro p {
    max-width: none;
    text-align: left;
  }

  .product-section,
  .apply-section {
    padding: 56px 0;
  }
}

@media (max-width: 560px) and (max-height: 740px) {
  .page {
    padding-top: 22px;
    padding-bottom: 18px;
  }

  .logo {
    font-size: 31px;
  }

  .logo-icon {
    width: 25px;
  }

  .hero {
    gap: 18px;
    padding: 16px 0 20px;
  }

  .hero-art {
    width: clamp(176px, 49vw, 214px);
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(44px, 13vw, 52px);
  }

  .lede {
    margin-top: 13px;
    margin-bottom: 0;
    font-size: 20px;
  }

  .hero-cta {
    min-height: 44px;
    padding: 0 22px;
    font-size: 15px;
  }

  .footer {
    gap: 12px;
    padding-top: 18px;
  }
}

@media (max-width: 560px) and (max-height: 620px) {
  .page {
    padding: 18px 22px 14px;
  }

  .logo {
    font-size: 29px;
  }

  .logo-icon {
    width: 24px;
  }

  .hero {
    gap: 14px;
    padding: 12px 0 16px;
  }

  .hero-art {
    width: clamp(146px, 43vw, 178px);
  }

  h1 {
    margin-bottom: 10px;
    font-size: clamp(38px, 12vw, 46px);
  }

  .lede {
    margin-top: 10px;
    font-size: 18px;
  }

  .hero-cta {
    min-height: 40px;
    padding: 0 20px;
    font-size: 14px;
  }

  .footer {
    gap: 10px;
    padding-top: 15px;
  }

  .footer,
  .brand-note,
  .footer-legal a {
    font-size: 12px;
  }
}

@media (max-width: 760px) and (max-height: 430px) and (orientation: landscape) {
  .page {
    padding: 14px 20px 10px;
  }

  .hero-shell {
    min-height: 0;
  }

  .site-header {
    gap: 10px;
  }

  .logo {
    gap: 6px;
    font-size: clamp(24px, 7.8svh, 31px);
  }

  .logo-icon {
    width: clamp(20px, 6.4svh, 25px);
  }

  .hero {
    display: grid;
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 0.82fr);
    align-items: center;
    gap: 10px;
    padding: 6px 0 10px;
  }

  .hero-copy {
    width: 100%;
    margin-left: 0;
    transform: none;
  }

  .hero-art {
    order: 0;
    justify-self: center;
    width: min(30vw, 42svh, 150px);
    transform: none;
  }

  h1 {
    margin-bottom: 8px;
    font-size: clamp(34px, min(7.3vw, 14svh), 48px);
    line-height: 0.88;
  }

  .hero-cta {
    min-height: clamp(34px, 10svh, 40px);
    margin-bottom: 8px;
    padding: 0 17px;
    font-size: clamp(12px, 3.8svh, 14px);
  }

  .lede {
    margin: 0;
    font-size: clamp(15px, 4.6svh, 18px);
    line-height: 1.05;
  }

  .footer {
    align-items: flex-end;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    padding-top: 9px;
    font-size: 11px;
  }

  .brand-note {
    max-width: 54%;
    font-size: 11px;
    line-height: 1.18;
  }

  .footer-legal {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: clamp(16px, 4.4vw, 28px);
  }

  .footer-legal a {
    font-size: 11px;
  }
}
