/* FarWay website: black and white, with a touch of the logo's green. */
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans_500Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/SpaceGrotesk_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --soft: #f3f3f3;
  --line: #dddddd;
  --muted: #555555;
  --grey: #9a9a9a;
  --green: #5ec26a; /* the dot in the logo: fills and accents, never body text on white */
  --max: 1280px;
  --display: "Space Grotesk", "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 14px; }
h2 { font-size: clamp(36px, 5.4vw, 64px); }
h3 { font-size: clamp(26px, 3vw, 40px); }
p { margin: 0 0 14px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.muted { color: var(--muted); }
.g { color: var(--green); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 50; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 22px; }
.brand img { width: 38px; height: 38px; border-radius: 50%; transition: transform .5s ease; }
.brand:hover img { transform: rotate(-12deg); }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: 15px; }
.nav a { text-decoration: none; position: relative; }
.nav a:not(.signin)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav a:not(.signin):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .signin { font-weight: 700; border: 2px solid var(--ink); border-radius: 999px; padding: 8px 18px; transition: background .2s, color .2s; }
.nav .signin:hover { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; background: none; border: 2px solid var(--ink); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 15px; font-weight: 700; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid var(--ink); transition: transform .15s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-green { background: var(--green); border-color: var(--green); color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.ios { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.ios a { font-weight: 700; }

/* Hero: NEAR. FAR. FARWAY. */
.hero { padding: 40px 0 80px; }
.stop { display: flex; align-items: center; gap: 28px; }
.stop .dot { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 3px solid var(--ink); }
.stop .dot.on { background: var(--green); border-color: var(--green); }
.stop .word { font-family: var(--display); font-weight: 700; font-size: clamp(64px, 12vw, 172px); line-height: .88; letter-spacing: -0.05em; color: var(--grey); }
.stop .word.on { color: var(--ink); }
.leg { margin-left: 13px; width: 2px; height: 48px; background: var(--ink); transform-origin: top; }
.hero h1 { margin: 0; font: inherit; letter-spacing: inherit; }
.intro { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; margin-top: 56px; border-top: 2px solid var(--ink); padding-top: 28px; }
.intro p { margin: 0; font-size: 22px; line-height: 1.45; max-width: 640px; }

/* Moving strip */
.strip { background: var(--ink); color: var(--paper); overflow: hidden; padding: 18px 0; white-space: nowrap; }
.strip .track { display: inline-flex; gap: 36px; padding-right: 36px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .02em; animation: slide 28s linear infinite; }
.strip .track span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--green); margin-right: 36px; vertical-align: middle; }

/* Photo */
.photo { overflow: hidden; background: var(--ink); }
.photo img { width: 100%; height: clamp(320px, 46vw, 640px); object-fit: cover; }
.js .photo img { filter: grayscale(1); transform: scale(1.12); transition: filter 1.6s ease .2s, transform 2.4s cubic-bezier(.2,.7,.2,1); }
.js .photo.in img { filter: grayscale(0); transform: scale(1); }

/* Sections */
section { padding: 110px 0; }
.dark { background: var(--ink); color: var(--paper); }
.dark .muted { color: #bbbbbb; }
.label { font-family: var(--display); font-size: 18px; letter-spacing: .14em; color: var(--muted); margin: 0 0 28px; }
.dark .label { color: var(--green); }

/* What we do: numbered rows */
.rows { border-bottom: 1px solid #333; }
.row { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 24px; align-items: baseline; padding: 30px 0; border-top: 1px solid #333; transition: padding-left .3s ease; }
.row .num { font-family: var(--display); font-size: 22px; color: #777; transition: color .3s; }
.row h3 { margin: 0; }
.row p { margin: 0; color: #bbbbbb; font-size: 18px; line-height: 1.5; }
.row:hover { padding-left: 16px; }
.row:hover .num { color: var(--green); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; padding-top: 34px; }
.steps::before { content: ""; position: absolute; top: 13px; left: 14px; right: 14px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.4s ease; }
.steps.in::before { transform: scaleX(1); }
.step { position: relative; }
.step::before { content: ""; position: absolute; top: -34px; left: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); box-sizing: border-box; }
.step:last-child::before { background: var(--green); border-color: var(--green); }
.step .n { font-family: var(--display); font-weight: 700; font-size: 56px; line-height: 1; letter-spacing: -0.04em; margin: 18px 0 10px; display: block; }
.step h3 { font-size: 24px; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }

/* Two columns */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.lead { font-size: 22px; line-height: 1.5; }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); margin: 6px 0 22px; }
.values span { padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.more { font-weight: 700; font-size: 18px; text-underline-offset: 6px; text-decoration-color: var(--green); text-decoration-thickness: 3px; }
.more .arrow, .bigsign .arrow { display: inline-block; transition: transform .25s ease; }
.more:hover .arrow, .bigsign:hover .arrow { transform: translateX(8px); }

/* FAQ */
.faq { max-width: 860px; border-top: 2px solid var(--ink); }
details { border-bottom: 1px solid var(--line); padding: 22px 0; }
details summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 22px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 28px; line-height: 1; transition: transform .25s ease; }
details[open] summary::after { transform: rotate(45deg); color: var(--green); }
details p { margin: 12px 0 0; color: var(--muted); max-width: 720px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); }
.contact a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.02em; }
.contact a:nth-child(odd) { padding-right: 32px; }
.contact a small { font-family: "DM Sans", sans-serif; font-weight: 500; font-size: 15px; color: var(--muted); letter-spacing: 0; }
.contact a:hover { color: var(--muted); }

/* Footer */
footer { background: var(--ink); color: #bbbbbb; padding: 80px 0 40px; font-size: 15px; }
footer .wrap { display: flex; flex-direction: column; gap: 48px; }
.bigsign { color: var(--paper); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: clamp(56px, 9vw, 128px); line-height: 1; letter-spacing: -0.045em; }
.bigsign .arrow { color: var(--green); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 32px; border-top: 1px solid #333; padding-top: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px 24px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--paper); }

/* About page */
.page-head { padding: 56px 0 72px; }
.page-head .wrap > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.page-head .wrap > :nth-child(2) { animation-delay: .15s; }
.page-head .wrap > :nth-child(3) { animation-delay: .3s; }
.page-head h1 { font-size: clamp(48px, 8vw, 112px); line-height: .92; letter-spacing: -0.05em; max-width: 1100px; margin-bottom: 28px; }
.prose p { font-size: 19px; line-height: 1.7; color: #333; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #333; }
.cards > div { padding: 36px 36px 36px 0; border-bottom: 1px solid #333; }
.cards > div:nth-child(even) { padding: 36px 0 36px 36px; border-left: 1px solid #333; }
.cards h3 { font-size: 28px; }
.cards h3::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--green); margin-right: 14px; vertical-align: middle; }
.cards p { color: #bbbbbb; margin: 0; }
.tagline { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 6vw, 80px); line-height: 1; letter-spacing: -0.04em; }

/* Legal pages */
.doc { max-width: 820px; padding: 56px 40px 96px; margin: 0 auto; }
.doc .eyebrow { font-family: var(--display); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; font-size: 14px; margin-bottom: 10px; }
.doc h1 { font-size: clamp(40px, 6vw, 72px); line-height: .98; letter-spacing: -0.04em; }
.doc h2 { font-size: 26px; margin-top: 44px; letter-spacing: -0.02em; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc .box { background: var(--soft); border-left: 4px solid var(--green); padding: 22px 24px; margin: 24px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--soft); }
.table-scroll { overflow-x: auto; }
.doc .btns { margin-top: 24px; }

/* Animations: everything shows without JavaScript or with reduced motion. */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.hero .stop, .hero .leg, .hero .intro { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero .leg { animation-name: grow; animation-duration: .5s; }
.hero > .wrap > :nth-child(2) { animation-delay: .25s; }
.hero > .wrap > :nth-child(3) { animation-delay: .4s; }
.hero > .wrap > :nth-child(4) { animation-delay: .65s; }
.hero > .wrap > :nth-child(5) { animation-delay: .8s; }
.hero > .wrap > :nth-child(6) { animation-delay: 1.1s; }
.stop .dot.on { animation: pulse 2.4s ease-out 1.8s infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(94,194,106,.55); } 70% { box-shadow: 0 0 0 22px rgba(94,194,106,0); } 100% { box-shadow: 0 0 0 0 rgba(94,194,106,0); } }
@keyframes slide { to { transform: translateX(-100%); } }

@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 80px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav a:not(.signin)::after { display: none; }
  .nav .signin { margin-top: 14px; text-align: center; }
  .intro, .two, .row { grid-template-columns: 1fr; }
  .row { gap: 8px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .steps::before { display: none; }
  .contact { grid-template-columns: 1fr; }
  .contact a:nth-child(odd) { padding-right: 0; }
  .cards { grid-template-columns: 1fr; }
  .cards > div, .cards > div:nth-child(even) { padding: 28px 0; border-left: 0; }
  section { padding: 72px 0; }
  .stop { gap: 16px; }
  .stop .dot { width: 20px; height: 20px; }
  .leg { margin-left: 9px; height: 32px; }
  .doc { padding: 40px 20px 72px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .btns .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .photo img { filter: none; transform: none; }
}

/* Inner pages: services, drive, contact */
.ticks { list-style: none; padding: 0; margin: 0 0 8px; border-top: 2px solid currentColor; }
.ticks li { position: relative; padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line); font-size: 18px; }
.dark .ticks li { border-bottom-color: #333; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 24px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.join { list-style: none; counter-reset: j; padding: 0; margin: 0; border-top: 2px solid currentColor; }
.join li { counter-increment: j; display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid #333; font-size: 19px; }
.join li::before { content: "0" counter(j); font-family: var(--display); font-weight: 700; font-size: 32px; color: var(--green); }
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.figs > div { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.figs b { display: block; font-family: var(--display); font-size: clamp(48px, 6vw, 80px); line-height: 1; letter-spacing: -0.04em; margin-bottom: 8px; }
.figs b .g { font-size: .6em; }
.next { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 36px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: clamp(32px, 5vw, 64px); letter-spacing: -0.03em; }
.next .arrow { color: var(--green); display: inline-block; transition: transform .25s ease; }
.next:hover .arrow { transform: translateX(10px); }
.join.earn li::before { content: none; }
@media (max-width: 900px) { .figs { grid-template-columns: 1fr; } .join li { grid-template-columns: 56px 1fr; } }
