/* Range Freely — rangefreely.app
   Palette carried over from the brand sheet and the apps' own dark chrome. */

:root {
  --ink:      #0A0A0A;   /* app background, near-black */
  --navy:     #0B1D2D;
  --steel:    #143E5E;
  --teal:     #1EA5A9;
  --sage:     #6BA27A;
  --orange:   #F07A3E;
  --amber:    #FFC25C;
  --paper:    #E6E9EE;
  --text:     #E9EDF2;
  --muted:    #94A3B2;
  --hairline: rgba(255,255,255,0.14);
  --card:     rgba(255,255,255,0.035);
  --maxw:     1080px;
  --radius:   14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; margin-top: 0; }
h3 { font-size: 1.1rem; font-weight: 700; }

p { margin: 0 0 1em; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10,10,10,0.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 20px;
}
header.site img { height: 30px; width: auto; display: block; }
nav.site a {
  color: var(--text); font-size: 0.95rem; margin-left: 22px; opacity: 0.82;
}
nav.site a:hover { opacity: 1; text-decoration: none; }
nav.site a.current { color: var(--teal); opacity: 1; }

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(1200px 520px at 50% -10%, rgba(30,165,169,0.16), transparent 65%),
    linear-gradient(180deg, var(--navy) 0%, var(--ink) 100%);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}
.hero img.mark { width: min(340px, 74vw); height: auto; margin-bottom: 28px; }
.hero .tagline { font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--text); margin-bottom: 8px; }
.hero .sub { color: var(--muted); max-width: 62ch; margin: 0 auto 28px; }

.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.72rem; font-weight: 700; color: var(--amber); margin-bottom: 14px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; border: 1px solid transparent;
}
.btn-primary { background: var(--teal); color: #05131A; }
.btn-primary:hover { background: #24bcc0; text-decoration: none; }
.btn-ghost { border-color: var(--hairline); color: var(--text); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }
.btn + .btn { margin-left: 10px; }

/* ---------- sections ---------- */
section { padding: 72px 0; border-bottom: 1px solid var(--hairline); }
section:last-of-type { border-bottom: 0; }
.lead { color: var(--muted); max-width: 68ch; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .status {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.status.soon { background: rgba(255,194,92,0.14); color: var(--amber); }
.status.dev  { background: rgba(107,162,122,0.16); color: var(--sage); }

/* ---------- feature list ---------- */
ul.features { list-style: none; padding: 0; margin: 0; }
ul.features li {
  padding: 16px 0; border-bottom: 1px solid var(--hairline);
}
ul.features li:last-child { border-bottom: 0; }
ul.features strong { display: block; margin-bottom: 3px; }
ul.features span { color: var(--muted); }

/* ---------- screenshots ---------- */
.shots {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-items: start;
}
figure.shot { margin: 0; text-align: center; }
figure.shot .frame {
  border: 1px solid var(--hairline);
  border-radius: 30px;
  padding: 8px;
  background: #000;
  display: inline-block;
  max-width: 260px;
}
figure.shot img { width: 100%; height: auto; display: block; border-radius: 23px; }
figure.shot figcaption { color: var(--muted); font-size: 0.88rem; margin-top: 12px; }

.disclaimer-inline {
  display: block; color: var(--amber); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px;
}

/* ---------- notes / callouts ---------- */
.note {
  border-left: 3px solid var(--steel);
  background: rgba(20,62,94,0.18);
  padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
}
.note strong { color: var(--text); }

/* ---------- footer ---------- */
footer.site {
  padding: 48px 0 64px; color: var(--muted); font-size: 0.9rem;
  border-top: 1px solid var(--hairline);
}
footer.site img { height: 22px; width: auto; opacity: 0.75; margin-bottom: 18px; display: block; }
footer.site nav a { color: var(--muted); margin-right: 18px; }
footer.site .legal { margin-top: 20px; max-width: 78ch; }

/* ---------- prose pages (support / privacy) ---------- */
.prose { max-width: 76ch; }
.prose h2 { margin-top: 44px; }
.prose h3 { margin-top: 28px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose .updated { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 640px) {
  .hero { padding: 68px 0 56px; }
  section { padding: 56px 0; }
  nav.site a { margin-left: 14px; font-size: 0.88rem; }
  .btn + .btn { margin-left: 0; margin-top: 10px; }
}

/* ---------- photographic hero + bands ---------- */
.hero.photo {
  background:
    linear-gradient(180deg, rgba(10,10,10,0.58) 0%, rgba(10,10,10,0.28) 45%, rgba(10,10,10,0.88) 100%),
    url("../img/photo/hero-mountain.jpg") center 42% / cover no-repeat;
  padding: 140px 0 110px;
}
.hero.photo .sub { color: #D6DDE5; }
.hero.photo .tagline { text-shadow: 0 1px 22px rgba(0,0,0,0.55); }
.hero.photo img.mark { filter: drop-shadow(0 2px 26px rgba(0,0,0,0.55)); }
.photo-credit {
  display: block; margin-top: 42px; color: rgba(255,255,255,0.42);
  font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase;
}

section.band {
  background:
    linear-gradient(180deg, rgba(10,10,10,0.86) 0%, rgba(10,10,10,0.66) 50%, rgba(10,10,10,0.92) 100%),
    url("../img/photo/glade.jpg") center 40% / cover no-repeat;
}

@media (max-width: 640px) {
  .hero.photo { padding: 96px 0 76px; }
}

/* The ECG lockup (mountains + trace + wordmark) runs wider than the plain mark, so it wants
   a little more room and a smaller cap on the product page where a headline follows it. */
.hero img.mark { width: min(420px, 82vw); }
.hero.photo img.mark { width: min(440px, 84vw); }
.hero:not(.photo) img.mark { margin-bottom: 22px; }
.hero img.mark { display: block; margin-left: auto; margin-right: auto; margin-bottom: 26px; }
