/* Reach — reachforit.app
   One stylesheet for the landing page and the legal/support pages.
   The hero band and the closing bands stay dark in both themes: they are the
   app icon's own colors, and the icon is the only fixed thing on the page. */

:root {
  color-scheme: light dark;

  /* Sampled from the app icon. */
  --navy: #01133a;
  --navy-deep: #08090e;
  --cream: #fdf2df;
  --amber: #f6b645;

  /* Light theme */
  --bg: #fbfaf7;
  --bg-alt: #f4f2ec;
  --surface: #ffffff;
  --ink: #0c1120;
  --ink-soft: #55607a;
  --line: rgba(12, 17, 32, 0.1);
  --line-soft: rgba(12, 17, 32, 0.06);
  --accent: #1b3b8f;

  /* On dark bands */
  --on-dark: var(--cream);
  --on-dark-soft: rgba(253, 242, 223, 0.7);
  --on-dark-line: rgba(253, 242, 223, 0.16);

  --shadow-sm: 0 1px 2px rgba(12, 17, 32, 0.06), 0 8px 24px rgba(12, 17, 32, 0.06);
  --shadow-lg: 0 40px 80px rgba(3, 8, 24, 0.22);

  --wrap: 74rem;
  --measure: 40rem;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08090e;
    --bg-alt: #0d0f17;
    --surface: #12141d;
    --ink: #f3f1ec;
    --ink-soft: #9aa2b6;
    --line: rgba(243, 241, 236, 0.12);
    --line-soft: rgba(243, 241, 236, 0.07);
    --accent: #9db4f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 40px 90px rgba(0, 0, 0, 0.65);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

img,
svg { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  margin: 0 0 0.5em;
  line-height: 1.08;
  letter-spacing: -0.028em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4.25rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); letter-spacing: -0.02em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: min(var(--wrap), 100% - 3rem);
  margin-inline: auto;
}

@media (max-width: 600px) {
  .wrap { width: min(var(--wrap), 100% - 2.25rem); }
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

.lede {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 36rem;
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.92rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}

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

@media (max-width: 520px) {
  .site-nav { gap: 1.1rem; font-size: 0.88rem; }
  .brand span { display: none; }
}

/* ------------------------------------------------------------------ hero */

.hero-band {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(90rem 44rem at 50% 118%, #062056 0%, transparent 62%),
    linear-gradient(180deg, var(--navy-deep) 0%, #030b26 46%, var(--navy) 100%);
  color: var(--on-dark);
  overflow: hidden;
}

/* The amber point where the hands meet, thrown across the band. */
.hero-band::before {
  content: "";
  position: absolute;
  inset: auto 0 -30% 0;
  height: 70%;
  background: radial-gradient(38rem 26rem at 50% 50%, rgba(246, 182, 69, 0.28), transparent 70%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.hero h1 { color: var(--cream); }

.hero .lede {
  color: var(--on-dark-soft);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
}

.hero-shot {
  justify-self: center;
  position: relative;
}

.hero-shot::after {
  content: "";
  position: absolute;
  inset: 12% -18% -6% -18%;
  background: radial-gradient(50% 45% at 50% 55%, rgba(246, 182, 69, 0.22), transparent 70%);
  z-index: -1;
}

/* ------------------------------------------------------------- CTA / pill */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.1rem;
  margin-top: 1.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--cream);
  color: #071026;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s var(--ease);
}

a.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.button-soon {
  cursor: default;
  background: rgba(253, 242, 223, 0.1);
  color: var(--cream);
  border-color: var(--on-dark-line);
}

.button-soon::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(246, 182, 69, 0.2);
}

.cta-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--on-dark-soft);
}

/* ---------------------------------------------------------------- device */

.device {
  --frame: 10px;
  width: min(262px, 72vw);
  padding: var(--frame);
  border-radius: 3.1rem;
  background:
    linear-gradient(150deg, #8f939d 0%, #3a3e47 22%, #16181d 48%, #5b606b 72%, #1c1e24 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07) inset,
    var(--shadow-lg);
}

.device-screen {
  border-radius: 2.35rem;
  overflow: hidden;
  background: #000;
  aspect-ratio: 900 / 1957;
}

.device-screen img { width: 100%; }

.device.device-lg { width: min(296px, 76vw); }

/* --------------------------------------------------------------- section */

.section {
  padding: clamp(5rem, 10vw, 8.5rem) 0;
}

.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.section-head .lede { margin-inline: auto; }

/* Three steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
}

.step {
  padding-top: 1.4rem;
  border-top: 2px solid var(--ink);
}

.step-num {
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}

.step h3 { margin-bottom: 0.35em; }
.step p { color: var(--ink-soft); }

/* Alternating feature rows */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.feature + .feature { border-top: 1px solid var(--line-soft); }

.feature-shot { justify-self: center; }

.feature:nth-child(even) .feature-copy { order: 2; }
.feature:nth-child(even) .feature-shot { order: 1; }

.feature-copy h2 { font-size: clamp(1.6rem, 2.9vw, 2.25rem); }
.feature-copy p { color: var(--ink-soft); max-width: 32rem; }

.tag {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.tag-further {
  color: #7a5310;
  border-color: rgba(246, 182, 69, 0.55);
  background: rgba(246, 182, 69, 0.14);
}

@media (prefers-color-scheme: dark) {
  .tag-further { color: var(--amber); }
}

.pull {
  margin: 1.5rem 0 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--amber);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 32rem;
}

.pull cite {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--ink-soft);
}

/* Further band */

.further-band {
  border-top: 1px solid rgba(253, 242, 223, 0.08);
  background:
    radial-gradient(60rem 30rem at 78% 12%, rgba(246, 182, 69, 0.2), transparent 62%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--on-dark);
}

.further-band h2 { color: var(--cream); }
.further-band .lede { color: var(--on-dark-soft); }

.further {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.further-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
  max-width: 32rem;
}

.further-list li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.9rem;
  align-items: start;
}

.further-list svg {
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.15rem;
  color: var(--amber);
}

.further-list strong {
  display: block;
  color: var(--cream);
  font-weight: 600;
}

.further-list span { color: var(--on-dark-soft); }

.price {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--on-dark-line);
  color: var(--on-dark-soft);
  font-size: 0.95rem;
  max-width: 32rem;
}

.price strong { color: var(--cream); font-weight: 600; }

/* Detail grid */

.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.grid-cards article {
  background: var(--bg);
  padding: clamp(1.5rem, 2.5vw, 2rem);
}

.section-alt .grid-cards article { background: var(--bg-alt); }

.grid-cards h3 { margin-bottom: 0.35em; font-size: 1.05rem; }
.grid-cards p { color: var(--ink-soft); font-size: 0.97rem; }

.card-icon {
  width: 1.6rem;
  height: 1.6rem;
  margin-bottom: 0.9rem;
  color: var(--amber);
}

/* Privacy band */

.quiet-band {
  border-top: 1px solid rgba(253, 242, 223, 0.08);
  background:
    radial-gradient(50rem 20rem at 50% 0%, rgba(246, 182, 69, 0.09), transparent 65%),
    linear-gradient(180deg, #05070f 0%, var(--navy) 100%);
  color: var(--on-dark);
  text-align: center;
}

.quiet-band h2 { color: var(--cream); }

.quiet-band p {
  color: var(--on-dark-soft);
  max-width: 40rem;
  margin-inline: auto;
  font-size: 1.08rem;
}

.quiet-band a { color: var(--amber); text-underline-offset: 3px; }

.quiet-mark {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 2.5rem 0 3rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------- legal / support docs */

.doc {
  max-width: var(--measure);
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem);
}

.doc h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); margin-bottom: 0.35em; }
.doc h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-top: 2.6rem; }
.doc h3 { margin-top: 1.8rem; }
.doc p, .doc li { text-wrap: pretty; }
.doc .meta { color: var(--ink-soft); margin-bottom: 2.5rem; font-size: 0.95rem; }
.doc ul { padding-left: 1.15rem; }
.doc li { margin-bottom: 0.5rem; }
.doc a { text-underline-offset: 3px; }

.doc .summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin: 0 0 2.5rem;
  box-shadow: var(--shadow-sm);
}

.doc dl { margin: 0; }

.doc dl dt {
  font-weight: 600;
  margin-top: 1.7rem;
  letter-spacing: -0.01em;
}

.doc dl dd { margin: 0.4rem 0 0; color: var(--ink-soft); }

.doc-nav {
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.doc-nav a {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--ink-soft);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.doc-nav a:hover { color: var(--ink); border-color: var(--ink-soft); }

/* -------------------------------------------------------------- 404 page */

.notfound {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 5rem 0;
}

.notfound .button { background: var(--ink); color: var(--bg); margin-top: 1.5rem; }

/* --------------------------------------------------------------- motion */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    padding-top: clamp(2.5rem, 7vw, 4rem);
  }
  .hero .lede, .hero .cta-row { margin-inline: auto; }
  .hero .cta-row { justify-content: center; }

  .steps { grid-template-columns: minmax(0, 1fr); }

  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .feature,
  .further {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }
  .feature-copy p { max-width: none; }
  .feature:nth-child(even) .feature-copy { order: 0; }
  .feature:nth-child(even) .feature-shot { order: 0; }
  .further-list, .price { max-width: none; }
}

@media (max-width: 560px) {
  .grid-cards { grid-template-columns: minmax(0, 1fr); }
}
