/* Landing page for fifteen.app.
   The legal documents keep their own stylesheet (legal.css); this one is only
   loaded by index.html. No JavaScript — the site's CSP forbids it — so every
   effect here is CSS. */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #09090b;
  --bg-raised: #0e0e11;
  --bg-hover: #131317;
  --border: #27272a;
  --border-soft: #1c1c1f;
  --fg: #fafafa;
  --fg-muted: #a1a1aa;
  --fg-dim: #52525b;
  --accent: #1baf68;
  --accent-light: #4bd795;

  --page: 68rem;
  --prose: 34rem;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--fg-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding-inline: 1.5rem;
}

/* ---------------------------------------------------------------- topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--fg);
  font-size: 0.9375rem;
  font-weight: 550;
  letter-spacing: -0.015em;
}

.brand img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.1875rem 0.5625rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--bg-raised);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
  white-space: nowrap;
}

.pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(27, 175, 104, 0.15);
}

.topbar nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.8125rem;
  color: var(--fg-dim);
}

.topbar nav a { transition: color 0.15s; }
.topbar nav a:hover { color: var(--fg); }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.8125rem;
  font-weight: 550;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.btn svg { width: 14px; height: 14px; flex: none; }

.btn-primary { background: var(--fg); color: #09090b; }
.btn-primary:hover { background: #fff; transform: translateY(-1px); }

.btn-ghost {
  background: var(--bg-raised);
  border-color: var(--border-soft);
  color: var(--fg-muted);
}

.btn-ghost:hover { background: var(--bg-hover); border-color: var(--border); color: var(--fg); }

.btn-lg { padding: 0.6875rem 1.375rem; font-size: 0.875rem; border-radius: 9px; }

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

.hero {
  position: relative;
  padding-top: 6.5rem;
  text-align: center;
  isolation: isolate;
}

/* Soft brand-green wash behind the headline. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -14rem;
  left: 50%;
  width: min(60rem, 130vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(27, 175, 104, 0.13) 0%, rgba(27, 175, 104, 0.04) 38%, transparent 68%);
  pointer-events: none;
}

h1 {
  max-width: 20ch;
  margin-inline: auto;
  font-size: clamp(2.25rem, 6.2vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--fg);
  text-wrap: balance;
}

h1 em {
  font-style: normal;
  background: linear-gradient(170deg, var(--fg) 25%, #6d6d76);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  max-width: 40rem;
  margin: 1.5rem auto 0;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-meta {
  margin-top: 1.125rem;
  font-size: 0.75rem;
  color: var(--fg-dim);
}

.hero-shot { margin-top: 4.5rem; }

/* -------------------------------------------------------- platform strip */

.platforms {
  margin-top: 5.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--border-soft);
}

.platforms h2 {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-align: center;
}

.platform-list {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  list-style: none;
}

.platform-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4375rem 0.875rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--bg-raised);
  font-size: 0.8125rem;
  color: var(--fg-muted);
  transition: border-color 0.15s, color 0.15s;
}

.platform-list li:hover { border-color: var(--border); color: var(--fg); }

.platform-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot);
}

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

section { scroll-margin-top: 4.5rem; }

.band { padding-block: 7rem; }
.band + .band { padding-top: 0; }

.eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
}

h2.title {
  margin-top: 0.875rem;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--fg);
  text-wrap: balance;
}

.band p.body {
  margin-top: 1rem;
  max-width: var(--prose);
  text-wrap: pretty;
}

/* Alternating feature rows: copy on one side, screenshot on the other. */

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

.feature + .feature { margin-top: 7rem; }
.feature.flip .feature-copy { order: 2; }

.feature ul {
  margin-top: 1.75rem;
  list-style: none;
  font-size: 0.875rem;
}

.feature li {
  position: relative;
  padding-left: 1.375rem;
  margin-top: 0.75rem;
}

.feature li::before {
  content: "";
  position: absolute;
  left: 0.1875rem;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fg-dim);
}

.feature li strong { color: var(--fg); font-weight: 550; }

/* ------------------------------------------------- app window / mockups */

.shot {
  position: relative;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--bg-raised);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 24px 64px -16px rgba(0, 0, 0, 0.8),
    0 4px 16px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

/* The hero window sits over its own glow and gets a little more presence. */
.shot-hero {
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 40px 120px -24px rgba(0, 0, 0, 0.9),
    0 8px 32px rgba(0, 0, 0, 0.6);
}

.shot-body {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0b0b0e;
}

/* Once a screenshot is in, it decides the height — a real capture rarely lands
   on exactly the placeholder ratio, and letterboxing it would look worse. */
.shot-body:has(img) { aspect-ratio: auto; background: none; }
.shot-body img { display: block; width: 100%; height: auto; }

/* A frame holding a real capture draws no box of its own: the PNG already has
   the macOS window's rounded corners, hairline edge and traffic lights baked
   in, with transparency outside them. `drop-shadow` rather than `box-shadow`
   so the shadow follows the window's actual silhouette instead of the
   element's square bounds. */
.shot:has(img) {
  border: none;
  border-radius: 0;
  background: none;
  overflow: visible;
  box-shadow: none;
  filter:
    drop-shadow(0 24px 56px rgba(0, 0, 0, 0.7))
    drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
}

.shot-hero:has(img) {
  filter:
    drop-shadow(0 40px 100px rgba(0, 0, 0, 0.8))
    drop-shadow(0 8px 28px rgba(0, 0, 0, 0.5));
}

/* Placeholder state. An empty .shot-body draws the dashed frame and its label;
   paste an <img> inside and :empty stops matching, so the placeholder is gone
   without touching this stylesheet. */

.shot-body:empty {
  display: grid;
  place-content: center;
  gap: 0.375rem;
  text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0.012)),
    repeating-linear-gradient(-45deg, transparent 0 10px, rgba(255, 255, 255, 0.014) 10px 20px);
  outline: 1px dashed var(--border);
  outline-offset: -14px;
}

.shot-body:empty::before {
  content: attr(data-shot);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg-muted);
}

.shot-body:empty::after {
  content: attr(data-size);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.6875rem;
  color: var(--fg-dim);
}

/* ------------------------------------------------------------ bento grid */

.grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--bg-raised);
  transition: border-color 0.2s, background 0.2s;
}

.card:hover { border-color: var(--border); background: var(--bg-hover); }

.card h3 {
  font-size: 0.9375rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.card p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.6; }

.card-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  background: #131317;
  color: var(--fg-muted);
}

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

/* -------------------------------------------------------------- security */

.security {
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(27, 175, 104, 0.07), transparent 55%),
    var(--bg-raised);
}

.security-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.security-grid h3 {
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--fg);
}

.security-grid p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.6; }

.security a.inline { color: var(--fg); border-bottom: 1px solid var(--border); }
.security a.inline:hover { border-bottom-color: var(--fg-dim); }

/* ------------------------------------------------------------ closing CTA */

.closer {
  padding-block: 7rem;
  text-align: center;
  border-top: 1px solid var(--border-soft);
}

.closer h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--fg);
  text-wrap: balance;
}

.closer p { margin: 1rem auto 0; max-width: 32rem; }
.closer .hero-actions { margin-top: 2rem; }

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

footer { border-top: 1px solid var(--border-soft); }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding-block: 2rem 4rem;
  font-size: 0.8125rem;
  color: var(--fg-dim);
}

.footer-inner a { transition: color 0.15s; }
.footer-inner a:hover { color: var(--fg-muted); }
.footer-inner .spacer { margin-left: auto; }

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

/* Scroll-driven reveal where the browser supports it; everywhere else the
   page just renders, since there is no script to fall back on. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 26%;
    }

    @keyframes reveal {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: none; }
    }
  }
}

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

@media (max-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .feature.flip .feature-copy { order: 0; }
  .grid, .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .band { padding-block: 4.5rem; }
  .hero { padding-top: 4rem; }
  .hero-shot { margin-top: 3rem; }
  .platforms { margin-top: 4rem; }
  .closer { padding-block: 4.5rem; }
  .grid, .security-grid { grid-template-columns: minmax(0, 1fr); }
  .topbar nav a.nav-hide { display: none; }
  .feature + .feature { margin-top: 4.5rem; }
}
