:root {
  --navy: #1e3a8a;
  --navy-deep: #172e6e;
  --bg: #060b16;
  --surface: #0f1929;
  --elevated: #151e2e;
  --primary: #2563eb;
  --primary-bright: #3b82f6;
  --accent: #06b6d4;
  --accent-bright: #22d3ee;
  --accent-tint: rgba(34, 211, 238, 0.12);
  --text: #ffffff;
  --muted: #94a3b8;
  --faint: #475569;
  --border: rgba(255, 255, 255, 0.07);
  --premium: #e8c547;
  --live: #fb7185;
  --radius: 8px;
  --radius-xl: 12px;
  --wash: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --font: "Barlow", sans-serif;
  --font-display: "Barlow Condensed", sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--accent-bright);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 30;
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 11, 22, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand:hover {
  color: #fff;
}

.brand img,
.brand svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

nav a {
  color: rgba(248, 250, 252, 0.78);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 2px;
}

nav a:hover,
nav a[aria-current="page"] {
  color: #fff;
  background: var(--accent-tint);
}

.hero {
  background: var(--navy);
  padding: 64px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

.kicker,
.overline {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--accent-tint);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 4px 12px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(44px, 9vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  font-weight: 900;
  color: #fff;
}

.tagline {
  margin: 0 0 20px;
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lede {
  margin: 0 0 32px;
  max-width: 34em;
  color: rgba(248, 250, 252, 0.82);
  font-size: 18px;
  line-height: 1.55;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  border: 1px solid transparent;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--wash);
  color: #fff;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.25);
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.07);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.device {
  width: 240px;
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
  padding: 8px;
  background: #020617;
  border-radius: 36px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 24px 48px rgba(0, 0, 0, 0.4);
}

.device img {
  width: 100%;
  height: auto;
  max-width: 240px;
  display: block;
  border-radius: 28px;
}

/* —— App-chrome sections on dark slate —— */
.section {
  padding: 80px 0;
}

.section h2,
.board h2,
.posters h2 {
  margin: 0 0 8px;
  font-size: clamp(36px, 7vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 800;
}

.section-lead {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 17px;
  max-width: 38em;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 40px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px 16px;
  text-align: center;
}

.stat b {
  display: block;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stat span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* —— Navy feature boards (App Store screenshot language) —— */
.board {
  background: var(--navy);
  padding: 72px 0 0;
}

.board-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: end;
}

.board-inner > * {
  min-width: 0;
}

.board-copy {
  padding-bottom: 72px;
}

.board h2 {
  color: #fff;
}

.board .sub {
  margin: 0;
  color: rgba(248, 250, 252, 0.86);
  font-size: 20px;
}

.board .device {
  margin: 0 auto;
  transform: translateY(12px);
}

.board-flip .board-copy {
  order: 2;
}

.board-flip .device-wrap {
  order: 1;
}

.device-wrap {
  display: flex;
  justify-content: center;
}

/* —— Poster strip of store screenshots —— */
.posters {
  background: var(--navy-deep);
  padding: 56px 0 72px;
}

.poster-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.poster {
  margin: 0;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

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

/* —— KeepBook+ —— */
.plus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.plus-main {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(6, 182, 212, 0.12)),
    var(--surface);
}

.plus-main .overline {
  color: var(--premium);
}

.plus-main ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.plus-main li {
  position: relative;
  padding: 8px 0 8px 22px;
  color: var(--muted);
}

.plus-main li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* —— Support —— */
.support {
  background: var(--navy);
  padding: 80px 0;
}

.support h2,
.support .section-lead {
  color: #fff;
}

.support .section-lead {
  opacity: 0.86;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.support .card {
  background: rgba(11, 17, 32, 0.45);
  border-color: rgba(255, 255, 255, 0.1);
}

.email-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  gap: 24px;
}

.email-card a.email {
  color: #fff;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.03em;
  word-break: break-word;
}

.email-card a.email:hover {
  color: var(--accent-bright);
}

.faq details {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 0;
}

.faq details:first-child {
  border-top: 0;
  padding-top: 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  margin: 8px 0 0;
  color: var(--muted);
}

#support,
#features,
#keepy {
  scroll-margin-top: 72px;
}

/* —— Legal —— */
.legal-page {
  padding: 40px 0 88px;
  background: var(--bg);
}

.legal-page .wrap {
  width: min(760px, calc(100% - 40px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 36px 48px;
}

.legal-page h1 {
  font-size: 36px;
  letter-spacing: -0.03em;
}

.legal-page h2 {
  margin: 36px 0 12px;
  font-size: 20px;
  color: var(--text);
}

.legal-page h3 {
  margin: 24px 0 8px;
  font-size: 16px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.legal-page ul,
.legal-page ol {
  padding-left: 1.2em;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.legal-page th,
.legal-page td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-page th {
  background: var(--elevated);
  color: var(--text);
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  color: var(--accent-bright);
}

.site-footer {
  background: var(--navy-deep);
  padding: 28px 0 40px;
  color: rgba(248, 250, 252, 0.65);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer nav a {
  color: rgba(248, 250, 252, 0.78);
}

.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 20px;
  background: var(--navy);
}

@media (min-width: 861px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) 260px;
    gap: 40px;
  }

  .features,
  .support-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .board-inner {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 40px;
  }

  .plus-grid {
    grid-template-columns: 1.25fr 0.75fr;
  }

  .poster-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 860px) {
  .hero,
  .board-copy {
    padding-bottom: 40px;
  }

  .board {
    padding-top: 48px;
  }

  .board-flip .board-copy,
  .board-flip .device-wrap {
    order: unset;
  }

  .device {
    width: 220px;
  }

  .device img {
    max-width: 220px;
  }

  .legal-page .wrap {
    padding: 28px 20px 36px;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(var(--max), calc(100% - 28px));
  }

  .site-header .wrap {
    flex-wrap: wrap;
    padding: 8px 0;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
  }

  nav a {
    padding: 8px 10px 8px 0;
  }

  h1 {
    font-size: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

#plus,
#features,
#keepy,
#support {
  scroll-margin-top: 72px;
}

/* —— Keepy's Korner —— */
.keepy-korner {
  background: var(--navy);
  padding: 80px 0;
}

.keepy-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.keepy-inner > * {
  min-width: 0;
}

.keepy-korner h2,
.keepy-korner .section-lead {
  color: #fff;
}

.keepy-korner .section-lead {
  margin-bottom: 0;
  opacity: 0.9;
}

.keepy-quote {
  margin: 24px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(6, 11, 22, 0.35);
  color: rgba(248, 250, 252, 0.92);
  font-size: 17px;
  line-height: 1.5;
  font-style: italic;
}

.keepy-note {
  margin: 20px 0 0;
  color: var(--premium);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.keepy-art {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #dbeafe;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  width: min(100%, 280px);
  justify-self: start;
}

.keepy-art img {
  width: 100%;
  height: auto;
}

/* —— Cinematic hero —— */
.hero-cinematic {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: 72px 0 80px;
}

.hero-cinematic .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-cinematic .hero-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 11, 22, 0.92) 0%, rgba(6, 11, 22, 0.78) 46%, rgba(6, 11, 22, 0.45) 100%);
}

.hero-cinematic .wrap {
  position: relative;
  z-index: 1;
}

.hero-cinematic h1,
.hero-cinematic .lede {
  color: #fff;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.store-badges a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.store-badges img {
  height: 44px;
  width: auto;
}

.phone-bezel {
  width: 240px;
  max-width: 100%;
  margin-inline: auto;
  padding: 10px;
  background: #020617;
  border-radius: 36px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 24px 48px rgba(0, 0, 0, 0.45);
}

.phone-bezel img {
  width: 100%;
  height: auto;
  border-radius: 28px;
}

.proof-strip {
  background: var(--bg);
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.proof-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof-list li {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.feature-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  color: var(--accent);
}

.feature-icon img {
  width: 28px;
  height: 28px;
}

.poster-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.poster-scroll .poster {
  flex: 0 0 min(240px, 72vw);
  scroll-snap-align: start;
}

.cta-band {
  background: var(--navy);
  padding: 80px 0;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(28px, 4.5vw, 40px);
  letter-spacing: -0.035em;
}

.cta-band p {
  margin: 0 0 28px;
  color: rgba(248, 250, 252, 0.82);
}

.cta-band .store-badges {
  justify-content: center;
}

.studio-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--accent-bright);
  font-weight: 600;
  font-size: 14px;
}

.studio-link:hover {
  color: #fff;
}

@media (min-width: 861px) {
  .hero-cinematic .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) 260px;
    align-items: center;
  }

  .keepy-inner {
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    gap: 48px;
  }

  .proof-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .poster-scroll {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
  }

  .poster-scroll .poster {
    flex: unset;
  }
}

@media (max-width: 860px) {
  .hero-cinematic .hero-wash {
    background: linear-gradient(180deg, rgba(6, 11, 22, 0.9) 0%, rgba(6, 11, 22, 0.72) 100%);
  }

  .store-badges {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band .store-badges {
    align-items: center;
  }
}

/* Legal pages — same structure as Tracky, cyan accent */
.legal-main {
  padding: 96px 24px 80px;
}

.legal-container {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px 32px 36px;
}

.legal-container h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  margin: 0 0 1.25rem;
}

.legal-container h2 {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent-bright);
  margin: 2.25rem 0 0.75rem;
  text-transform: uppercase;
}

.legal-container h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 1.5rem 0 0.5rem;
}

.legal-container p,
.legal-container li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 1rem;
}

.legal-container ul,
.legal-container ol {
  padding-left: 1.2em;
  margin-bottom: 1rem;
}

.legal-container a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-container table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.legal-container th,
.legal-container td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-container th {
  background: var(--elevated);
  color: var(--text);
}

.legal-container hr {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid var(--border);
}

.legal-container code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  color: var(--accent-bright);
}

.legal-contact {
  background: var(--accent-tint);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
}

.legal-meta {
  margin-top: 2rem;
  font-size: 14px;
  color: var(--faint);
}

.legal-meta--lead {
  margin-top: 0;
  margin-bottom: 0;
}

.site-footer .wrap,
.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .legal-main {
    padding: 64px 20px 48px;
  }

  .legal-container {
    padding: 28px 20px 24px;
  }
}


