@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans-latin.7c87a648293f.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.938c6e8019b6.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #101b17;
  --panel: #16231d;
  --line: rgba(203, 220, 202, 0.15);
  --muted: #a5b1a8;
  --text: #f1f3e9;
  --green: #afe4a9;
  --page-width: 1600px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 5px;
}
::selection {
  color: var(--bg);
  background: var(--green);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -2px;
}
h1 em,
h2 em {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--green);
}
.container {
  width: min(var(--page-width), calc(100% - clamp(32px, 7vw, 112px)));
  margin-inline: auto;
}
.homepage {
  max-width: var(--page-width);
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  z-index: 100;
  background: var(--green);
  color: var(--bg);
  padding: 10px 20px;
}
.skip-link:focus {
  top: 10px;
}
.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: #10201b;
}
.header-inner {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-family: "Manrope", var(--sans);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1.2px;
}
.brand img {
  display: block;
}
.brand-dot {
  color: var(--green);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 29px;
  font-size: 13px;
}
.site-nav > a:not(.button) {
  transition: color 0.2s;
}
.site-nav > a:hover {
  color: var(--green);
}
.nav-divider {
  height: 23px;
  width: 1px;
  background: var(--line);
  margin-inline: 6px;
}
.site-nav form {
  margin: 0;
}
.member-greeting {
  max-width: 180px;
  overflow-wrap: anywhere;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  min-height: 52px;
  padding: 13px 23px;
  border: 1px solid var(--green);
  border-radius: 5px;
  background: var(--green);
  color: #14231a;
  font-weight: 700;
  font-size: 14px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button:hover {
  background: #c8f1c2;
  border-color: #c8f1c2;
  transform: translateY(-2px);
}
.button span {
  font-size: 20px;
  line-height: 1;
}
.button-small {
  min-height: 42px;
  padding: 9px 17px;
  gap: 15px;
  font-size: 12px;
}
.button-outline {
  background: transparent;
  color: var(--green);
}
.button-outline:hover {
  color: #14231a;
}
.menu-toggle,
.mobile-racecards {
  display: none;
}
.hero {
  background:
    linear-gradient(
      90deg,
      #101e18 0%,
      rgba(14, 29, 21, 0.92) 30%,
      rgba(14, 29, 21, 0.35) 63%,
      transparent 100%
    ),
    linear-gradient(0deg, var(--bg), transparent 32%),
    url("../images/racing-hero.ec3f315892db.webp") center 46% / cover no-repeat #10201b;
}
.hero-inner {
  min-height: clamp(490px, 41vw, 655px);
  display: flex;
  align-items: center;
  padding-block: clamp(52px, 6vw, 94px);
}
.hero-copy {
  width: min(100%, 40rem);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.6;
  color: var(--green);
}
.hero h1 {
  font-size: clamp(2rem, 5.6vw, 5.1rem);
  letter-spacing: -0.045em;
  margin: 15px 0 21px;
  line-height: 1.08;
}
.hero h1 em {
  display: block;
}
.hero-description {
  max-width: 39ch;
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  line-height: 1.65;
  color: #e2e9dd;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 25px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-link:hover {
  color: var(--green);
}
.text-link span {
  display: inline-block;
  font-size: 19px;
  line-height: 1;
}
.racecard-views {
  padding-block: clamp(44px, 6.3vw, 92px);
}
.racecard-views h2,
.racecard-value h2 {
  font-size: clamp(1.9rem, 3.9vw, 3.5rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
}
.racecard-views h2 {
  max-width: 24ch;
  margin-bottom: clamp(24px, 3vw, 40px);
  text-wrap: balance;
}
.racecard-views-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 22px);
}
.racecard-view {
  padding: clamp(23px, 3.2vw, 45px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.racecard-view-glance {
  border-color: #4b6951;
  background: #1c2e23;
}
.racecard-view h3 {
  margin-bottom: 10px;
  color: var(--green);
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  font-weight: 600;
  line-height: 1.3;
}
.racecard-view p {
  max-width: 49ch;
  color: #d0dbd0;
  font-size: clamp(1rem, 1.15vw, 1.125rem);
}
.racecard-value {
  background: #dbe9d2;
  color: #162b1d;
}
.racecard-value-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 82px);
  padding-block: clamp(35px, 5vw, 75px);
}
.racecard-value p {
  max-width: 46ch;
  margin-block: 15px 21px;
  color: #324c39;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
}
.racecard-value a:focus-visible {
  outline-color: #15271b;
}
.price-example {
  width: min(100%, 30rem);
  justify-self: end;
  margin: 0;
  padding: clamp(17px, 2.4vw, 32px);
  border: 1px solid #abc3a4;
  border-radius: 8px;
  background: #eff6e9;
}
.price-example figcaption {
  margin-bottom: 12px;
  color: #415848;
  font-size: 0.875rem;
  font-weight: 600;
}
.price-example dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}
.price-example dl > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  padding: 12px;
}
.price-example dl > div:last-child {
  border-radius: 5px;
  background: #20573b;
  color: #fff;
}
.price-example dt {
  font-size: 0.875rem;
  line-height: 1.35;
}
.price-example dd {
  margin: 0;
  font-family: "Manrope", var(--sans);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.button-dark {
  background: #14291e;
  border-color: #14291e;
  color: #e8f4e1;
}
.button-dark:hover {
  background: #244631;
  border-color: #244631;
}
.site-footer {
  background: #0e1914;
  padding-block: 38px 24px;
}
.footer-top {
  display: flex;
  align-items: center;
  gap: 30px;
}
.footer-top .brand {
  font-size: 20px;
}
.age-mark {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border: 1px solid #56634f;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #aab8a4;
  font-size: 10px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 26px;
  font-size: 9px;
  color: #8d9f8d;
}
.notifications {
  padding-block: 18px;
  color: var(--green);
}
.auth-section {
  min-height: calc(100vh - 260px);
  padding: 64px 24px 85px;
  background: radial-gradient(ellipse at top right, #213d29, transparent 60%);
}
.auth-card {
  max-width: 560px;
  margin: auto;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #16241c;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.1);
}
.auth-card h1 {
  font-size: 42px;
  margin-top: 15px;
  line-height: 1.12;
  letter-spacing: -1.5px;
}
.auth-intro {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}
.member-form {
  margin-top: 28px;
}
.form-field {
  margin-bottom: 19px;
}
.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 7px;
}
.form-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #40523f;
  background: #111e17;
  color: var(--text);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
}
.form-field input:focus {
  border-color: var(--green);
}
.has-errors input {
  border-color: #e4a090;
}
.field-help {
  font-size: 10px;
  line-height: 1.7;
  color: #a4b19f;
  margin-top: 6px;
}
.field-help ul {
  padding-left: 16px;
  margin-block: 5px;
}
.field-errors,
.form-errors {
  color: #ffc5b7;
  font-size: 12px;
  margin-block: 8px;
}
.field-errors ul,
.form-errors ul {
  padding-left: 17px;
  margin: 0;
}
.form-errors {
  padding: 12px;
  border: 1px solid #764c3d;
  border-radius: 4px;
  background: #332b22;
  margin-bottom: 20px;
}
.member-form > .button {
  width: 100%;
  margin-top: 6px;
}
.auth-switch {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.auth-switch a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.account-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.account-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.account-links h2,
.import-history-row {
  width: 100%;
}
.account-links h2 {
  font-size: 1.25rem;
  letter-spacing: 0;
}
.import-history-row {
  display: grid;
  gap: 2px;
  padding-block: 7px;
  overflow-wrap: anywhere;
}
.import-history-row span {
  color: var(--muted);
  font-size: 0.875rem;
}
@media (max-width: 900px) {
  .site-nav {
    gap: 17px;
  }
  .nav-divider {
    margin-inline: 0;
  }
  .brand {
    font-size: 23px;
  }
  .site-nav > a:not(.button) {
    font-size: 12px;
  }
}
@media (max-width: 800px) {
  .header-inner {
    height: 68px;
    gap: 8px;
  }
  .header-inner .brand {
    font-size: clamp(1.1rem, 4.8vw, 1.5rem);
    gap: 7px;
  }
  .header-inner .brand img {
    width: 31px;
    height: 31px;
  }
  .mobile-racecards {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-inline-start: auto;
    padding-inline: 7px;
    color: var(--green);
    font-size: 0.8125rem;
    font-weight: 700;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: transparent;
    color: var(--text);
  }
  .menu-toggle span {
    width: 19px;
    height: 1px;
    background: currentColor;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 68px);
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 20px 24px;
    background: #10201b;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav > a:not(.button),
  .member-greeting {
    padding: 11px 0;
    font-size: 14px;
  }
  .site-nav .button {
    min-height: 44px;
    margin-top: 12px;
    justify-content: space-between;
  }
  .site-nav .nav-divider,
  .site-nav .nav-racecards {
    display: none;
  }
  .site-nav form > .button {
    width: 100%;
  }
  .footer-top {
    flex-wrap: wrap;
    gap: 15px;
  }
  .footer-bottom {
    display: block;
    font-size: 10px;
  }
  .footer-bottom p {
    margin-top: 9px;
  }
  .auth-section {
    padding: 35px 20px 50px;
  }
  .auth-card {
    padding: 28px 23px;
  }
  .auth-card h1 {
    font-size: 36px;
  }
  .auth-card .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
}
@media (max-width: 740px) {
  .hero {
    background-position: center, center, 59% 40%;
  }
  .hero-inner {
    min-height: clamp(365px, 64svh, 490px);
    padding-block: clamp(28px, 7vw, 56px);
  }
  .hero h1 {
    font-size: clamp(2.2rem, 7.7vw, 3.55rem);
  }
  .hero-description {
    max-width: 35ch;
  }
  .racecard-value-inner {
    grid-template-columns: 1fr;
  }
  .price-example {
    justify-self: start;
  }
}
@media (max-width: 540px) {
  .hero {
    background-image:
      linear-gradient(90deg, rgba(14, 29, 21, 0.96), rgba(14, 29, 21, 0.7)),
      linear-gradient(0deg, var(--bg), transparent 72%),
      url("../images/racing-hero.ec3f315892db.webp");
  }
  .racecard-views-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    display: grid;
    justify-items: start;
    gap: 5px;
    margin-top: 21px;
  }
  .homepage main .button {
    width: min(100%, 22rem);
    justify-content: space-between;
    font-size: 1rem;
  }
}
@media (max-height: 470px) and (orientation: landscape) {
  .hero-inner {
    min-height: 0;
    padding-block: 18px 25px;
  }
  .hero h1 {
    font-size: clamp(2rem, 6vw, 2.65rem);
    margin-block: 9px 12px;
  }
  .hero-description {
    max-width: 53ch;
    font-size: 1rem;
    line-height: 1.5;
  }
  .hero-actions {
    margin-top: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
