/* landing.css — marketing/showcase page for justlayers.com root.
   Redesigned 2026-09-10 toward a cleaner, more restrained, "Apple-like"
   dark aesthetic (explicit user request: "very black and flashy... should
   be clean and modern" — see ideas-and-plans/PLANS.md for the full
   reasoning behind the choices below). Still the same dark palette as
   before — this isn't a light-mode redesign, and it still matches the
   app's general dark, nautical feel — but the base tones are now neutral
   rather than blue-tinted, the teal accent is desaturated and used more
   sparingly (that near-neon teal against near-black was doing most of the
   "flashy" work), borders are softer, and there's more breathing room
   between elements. Pulls the app's shared visual language (Space Grotesk
   + Inter, soft corners) but this file has its own tokens/layout — it's
   not a copy of app/style.css, and doesn't touch it. */

:root {
  /* Neutral near-black rather than the previous blue-black (#0A0E14) — a
     cooler blue-black reads more like a glowing screen; a slightly warmer,
     more neutral gray-black reads calmer and more considered, closer to
     how Apple's own dark surfaces are toned. */
  --bg: #0D0E11;
  --bg-2: #131417;
  --panel: #17181C;
  --border: #26272C;
  /* Desaturated from the app's own #14E8C4 — per the brief, the original
     near-neon teal against near-black was probably the single biggest
     contributor to "flashy." Kept clearly teal (still the brand color),
     just calmer, and used more sparingly below (primary CTA, focus/hover
     states, a couple of small pills) rather than tinting every icon. */
  --accent: #2FBFA6;
  --amber: #E2A550;
  --text: #F2F3F5;
  --muted: #8B93A0;
  --btn-ink: #04231E;
  --radius: 12px;
  --radius-sm: 10px;
  /* New token: cards/panels get a slightly larger, softer radius than
     buttons and inputs — a small deliberate hierarchy cue. Buttons keep
     --radius-sm exactly as before, per the explicit instruction to leave
     their shape alone. */
  --radius-lg: 16px;
  --container: 1120px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 14, 17, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  overflow: hidden;
  flex: none;
  background: var(--bg-2);
  border: 1px solid var(--border);
}

.brand-mark svg { width: 100%; height: 100%; }

.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

/* Shape/padding/interaction pattern kept identical to the pre-redesign
   version, per explicit instruction ("I do like the general style of the
   buttons though") — only the color tokens they reference changed above,
   plus a transition so hover/press reads a touch smoother/more considered
   without changing what the hover/press states actually do. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--btn-ink);
}

.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { padding: 14px 26px; font-size: 1rem; }

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

.hero {
  padding: clamp(64px, 11vw, 112px) 0 clamp(56px, 9vw, 88px);
  text-align: center;
  /* Much lower-opacity, desaturated glow than before (was 0.10 of the old
     neon teal) — enough to keep some depth behind the hero mark without
     reading as a colored spotlight. */
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(47, 191, 166, 0.06), transparent 70%),
    var(--bg);
}

.hero-mark {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
}

.hero-mark svg { width: 100%; height: 100%; }

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1.05;
  /* Tighter than the shared h1/h2/h3 default at this large a size — reads
     more deliberate/crafted than the generic -0.01em everything else uses. */
  letter-spacing: -0.025em;
}

.hero .tagline {
  margin: 20px auto 0;
  max-width: 46ch;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--muted);
  line-height: 1.6;
}

.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}

.hero .fine-print {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--muted);
}

.page-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.page-tabs span {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
}

/* ---------- sections ---------- */

section { padding: clamp(56px, 9vw, 96px) 0; }

.section-head {
  max-width: 60ch;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  letter-spacing: -0.015em;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.features { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.feature-card .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  /* Same restrained accent tint as the rest of the page, at slightly lower
     opacity than before (0.12 -> 0.10) — seven identical bright icon chips
     in one grid is exactly the kind of "everywhere" accent use the brief
     called out, so this leans quieter than a first pass might. */
  background: rgba(47, 191, 166, 0.10);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card .icon svg { width: 20px; height: 20px; }

.feature-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- download ---------- */

.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}

@media (min-width: 760px) {
  .download-grid { grid-template-columns: 1fr 1fr; }
}

.download-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.status-pill {
  align-self: flex-start;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 11px;
}

.status-pill.live { background: rgba(47, 191, 166, 0.14); color: var(--accent); }
.status-pill.soon { background: rgba(226, 165, 80, 0.14); color: var(--amber); }

.download-card h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

.download-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

.download-card .btn { margin-top: 6px; align-self: flex-start; }

.download-card ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
}

.download-card ol li::marker { color: var(--accent); font-weight: 700; }

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 28px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--text);
}

.footer-brand svg {
  width: 24px;
  height: 24px;
  display: block;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  font-size: 0.8rem;
  color: var(--muted);
}
