/* Fairway marketing site. Colours are lifted from app/styles/theme.ts so the
   site and the app read as one brand - change them there first. */

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #2a2a2c;
  --text-secondary: #6e6e73;
  --border: #e5e5ea;
  --accent: #2ea66d;
  --tile: #1e2917;
  --fairway: #6b8f47;
  --fairway-shade: #587a3a;
}

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

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

/* ---------- Hero ---------- */

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) clamp(16px, 5vw, 64px);
}

.headline {
  margin: 0;
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.headline .accent,
.subhead .accent {
  color: var(--accent);
}

.subhead {
  margin: 20px 0 0;
  font-size: clamp(19px, 2vw, 28px);
  line-height: 1.3;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(32px, 4vw, 48px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 60px;
  padding: 0 20px 0 16px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid #a6a6a6;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.badge:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.badge svg {
  flex: none;
}

.badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.badge-small {
  font-size: 11px;
  letter-spacing: 0.02em;
}

.badge-large {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 3px;
}

/* The tall card on the right, standing in for the orange panel. */
.showcase {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: 78vh;
  width: 100%;
  max-width: 440px;
  justify-self: end;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(160deg, var(--fairway) 0%, var(--fairway-shade) 45%, var(--tile) 100%);
}

.phone {
  position: relative;
  width: 58%;
  aspect-ratio: 9 / 19.5;
  border-radius: 14% / 6.5%;
  background: #111;
  padding: 3.2%;
  box-shadow:
    0 0 0 1.5px #3a3a3c,
    30px 40px 60px rgba(0, 0, 0, 0.45),
    10px 14px 20px rgba(0, 0, 0, 0.25);
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 11.5% / 5.3%;
  overflow: hidden;
  background: var(--tile);
}

.screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.island {
  position: absolute;
  top: 2.2%;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 4.2%;
  border-radius: 999px;
  background: #000;
  z-index: 2;
}

.screen-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0 9% 12%;
  color: #fff;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.72), transparent);
  padding-top: 40%;
}

.screen-copy strong {
  display: block;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.screen-button {
  margin-top: 10%;
  height: clamp(28px, 2.6vw, 38px);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: clamp(9px, 0.8vw, 12px);
  font-weight: 600;
  display: grid;
  place-items: center;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 24px 16px 32px;
  text-align: center;
  font-size: 15px;
  color: var(--text-secondary);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
}

.site-footer nav a {
  text-decoration: none;
  padding: 0 14px;
  position: relative;
}

.site-footer nav a + a::before {
  content: "•";
  position: absolute;
  left: -3px;
  color: var(--text-secondary);
}

.site-footer nav a:hover {
  color: var(--ink);
}

.site-footer p {
  margin: 12px 0 0;
}

/* ---------- Legal pages ---------- */

.site-header {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px clamp(16px, 5vw, 64px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.legal {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) 16px 64px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.legal h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.legal .updated {
  margin: 12px 0 40px;
  color: var(--text-secondary);
  font-size: 15px;
}

.legal h2 {
  margin: 44px 0 8px;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.legal h3 {
  margin: 24px 0 4px;
  color: var(--ink);
  font-size: 17px;
}

.legal ul,
.legal ol {
  padding-left: 22px;
}

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

.legal a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 16px 0;
  display: block;
  overflow-x: auto;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border);
}

.legal th {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .showcase {
    justify-self: center;
    max-width: 360px;
    max-height: none;
  }

  .screen-copy strong {
    font-size: 26px;
  }

  .screen-button {
    height: 30px;
    font-size: 10px;
  }
}

@media (max-width: 420px) {
  .badge {
    height: 54px;
    padding: 0 16px 0 12px;
  }

  .badge-large {
    font-size: 20px;
  }
}
