/* FarReach website. Colors, type and spacing follow the FarReach design system. */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../fonts/sora-latin-wght-normal.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: "DM Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url("../fonts/dm-sans-latin-wght-normal.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: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../fonts/jetbrains-mono-latin-wght-normal.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 {
  --surface-100: #F6F9F7;
  --surface-200: #E9F0EC;
  --surface-0: #FFFFFF;
  --line: #D2DDD7;
  --line-strong: #7A8B84;
  --ink: #0E1A16;
  --ink-muted: #4A5A54;
  --jade: #0F7B5F;
  --jade-hover: #0B6650;
  --on-jade: #FFFFFF;
  --jade-mark: #12956D;
  --jade-soft: #D7EDE4;
  --font-display: "Sora", "DM Sans", system-ui, sans-serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius-md: 10px;
  --radius-lg: 16px;
  --section-space: clamp(64px, 8vw, 104px);
  color-scheme: light;
}

*,
*::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(--surface-100);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
}

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

img,
svg {
  display: block;
}

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

a {
  color: var(--jade);
}

a:hover {
  color: var(--ink);
}

a:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--surface-0);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
  color: var(--surface-0);
}

/* Layout */

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section {
  padding-block: var(--section-space);
}

.section-flush-top {
  padding-top: 0;
}

.rule-top {
  border-top: 1px solid var(--line);
}

.stack-40 {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.stack-12 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Type */

.display-xl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.display-l {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.lead {
  max-width: 34em;
  color: var(--ink-muted);
  font-size: 20px;
  line-height: 30px;
  text-wrap: pretty;
}

.lead-sm {
  max-width: 36em;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 28px;
  text-wrap: pretty;
}

.caption {
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  text-decoration: none;
}

.btn-primary {
  background: var(--jade);
  color: var(--on-jade);
}

.btn-primary:hover {
  background: var(--jade-hover);
  color: var(--on-jade);
}

.btn-secondary {
  padding: 0 22px;
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--surface-200);
  color: var(--ink);
}

.btn-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}

/* Header */

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 28px;
  letter-spacing: -0.01em;
}

.brand-sm {
  gap: 8px;
}

.brand-sm svg {
  width: 24px;
  height: 24px;
}

.brand-sm .brand-name {
  font-size: 17px;
  line-height: 24px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
}

.site-nav a:not(.btn) {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:not(.btn):hover {
  color: var(--jade);
}

.site-nav a[aria-current="page"] {
  color: var(--jade);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Home: hero */

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  align-items: center;
  gap: clamp(48px, 6vw, 72px);
  padding-top: clamp(32px, 6vw, 72px);
  padding-bottom: var(--section-space);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 560px;
}

.hero-copy .actions {
  padding-top: 8px;
}

.hero-figure {
  position: relative;
  width: 100%;
  max-width: 580px;
  justify-self: center;
  padding: 0 44px 56px 0;
}

.hero-frame {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--surface-200);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
}

.hero-pointer {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 23%;
  height: auto;
  overflow: visible;
}

/* Home: everyday uses */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 40px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.feature .title,
.step .title {
  margin-top: 4px;
}

.feature p,
.step p,
.point-text p {
  max-width: 30em;
  color: var(--ink-muted);
}

.obj-40 {
  object-position: 40% 50%;
}

.obj-68 {
  object-position: 68% 50%;
}

.obj-72 {
  object-position: 72% 50%;
}

/* Home: how it works */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--jade-soft);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}

/* Home: private by design */

.band {
  background: var(--surface-200);
}

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 36px 56px;
}

.point {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.point-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--surface-0);
  color: var(--ink);
}

.point-icon svg {
  width: 22px;
  height: 22px;
}

.point-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Home: demo request */

.demo-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-0);
}

.demo-panel img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: 62% 40%;
}

.demo-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: clamp(28px, 5vw, 56px);
}

.demo-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.note {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 22px;
}

.note a {
  font-weight: 600;
}

/* FAQ */

.faq-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px 72px;
  padding-top: clamp(32px, 6vw, 72px);
  padding-bottom: var(--section-space);
}

.faq-intro {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-intro h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.faq-intro .actions {
  padding-top: 4px;
}

.faq-groups {
  flex: 2 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.faq-group h2 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.01em;
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}

.faq-item h3 {
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
}

.faq-item p {
  max-width: 38em;
  color: var(--ink-muted);
}

/* Privacy Policy and Terms of Service */

.legal {
  max-width: 760px;
  padding-top: clamp(32px, 6vw, 72px);
  padding-bottom: var(--section-space);
}

.legal h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.legal .updated {
  margin-top: 12px;
}

.legal .intro {
  margin-top: 24px;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 28px;
}

.legal h2 {
  margin-top: 44px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 30px;
  letter-spacing: -0.01em;
}

.legal h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 26px;
  font-weight: 600;
}

.legal p,
.legal li {
  font-size: 16px;
  line-height: 26px;
}

.legal p + p {
  margin-top: 14px;
}

.legal ul {
  margin: 12px 0 0;
  padding-left: 1.25em;
}

.legal ul + p {
  margin-top: 14px;
}

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

.legal li::marker {
  color: var(--jade-mark);
}

.legal .strong {
  font-weight: 600;
}

/* 404 */

.notfound {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
  padding-top: clamp(48px, 8vw, 120px);
  padding-bottom: var(--section-space);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 28px;
  padding-bottom: 40px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
}

.footer-links a {
  color: var(--ink-muted);
}

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

@media (max-width: 600px) {
  .site-nav {
    gap: 8px 20px;
  }

  .hero-figure {
    padding: 0 28px 40px 0;
  }
}
