/* PocketLedger website — no external fonts, no JS. Colours from the logo. */
:root {
  --bg: #02122b;
  --bg-alt: #061c3d;
  --surface: #0b2650;
  --surface-2: #10305f;
  --border: rgba(120, 200, 255, 0.16);
  --text: #eaf4ff;
  --muted: #a9bdd8;
  --cyan: #22d3ee;
  --cyan-bright: #67e8f9;
  --blue: #3b82f6;
  --radius: 20px;
  --max: 1120px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans",
    "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--cyan-bright);
}

a:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--cyan-bright);
  outline-offset: 3px;
  border-radius: 8px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--cyan);
  color: #00121f;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 18, 43, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 0.6rem 0.8rem;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #00121f;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(34, 211, 238, 0.45);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  background: var(--surface);
}

.btn-play svg {
  flex: none;
}

.btn-soon {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: default;
}

.btn-label small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
  line-height: 1.1;
}

.btn-soon small {
  color: var(--muted);
  opacity: 1;
}

.btn-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(1000px 500px at 85% 10%, rgba(59, 130, 246, 0.22), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(34, 211, 238, 0.14), transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--cyan-bright);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 850;
}

.gradient-text {
  background: linear-gradient(90deg, var(--cyan-bright), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 36rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1.25rem;
}

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

.pill-list li {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(34, 211, 238, 0.07);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.glow {
  position: absolute;
  width: 120%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 62%);
  filter: blur(10px);
  animation: pulse 6s ease-in-out infinite;
}

/* ---------- Phone frames ---------- */
.phone {
  position: relative;
  margin: 0;
  padding: 10px;
  border-radius: 36px;
  background: linear-gradient(160deg, #1b3b6b, #071833);
  border: 1px solid rgba(120, 200, 255, 0.25);
  box-shadow: var(--shadow);
}

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

.phone-hero {
  width: min(320px, 72vw);
  animation: float 7s ease-in-out infinite;
}

/* ---------- Entrance animation ---------- */
.hero-copy > * {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-copy > :nth-child(5) { animation-delay: 0.32s; }

.hero-visual {
  animation: rise 1s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

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

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

/* ---------- Trust strip ---------- */
.trust {
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 2rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-item h2 {
  font-size: 1.05rem;
  margin: 0.5rem 0 0.25rem;
}

.trust-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.trust-icon {
  font-size: 1.6rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 5rem 0;
}

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

.section-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 3rem;
}

.section-head h2,
.privacy-grid h2,
.final-cta h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
}

.section-lead {
  color: var(--muted);
  font-size: 1.1rem;
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(11, 38, 80, 0.55));
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(103, 232, 249, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.feature h3 {
  font-size: 1.2rem;
  margin-top: 1rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 1.4rem;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

/* ---------- Gallery ---------- */
.gallery {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem max(1.25rem, calc((100% - var(--max)) / 2)) 1.5rem;
  scrollbar-color: var(--surface-2) transparent;
}

.shot {
  flex: 0 0 240px;
  scroll-snap-align: center;
  padding: 8px;
  border-radius: 30px;
  transition: transform 0.3s ease;
}

.shot img {
  border-radius: 23px;
}

.shot:hover {
  transform: translateY(-6px);
}

.shot figcaption {
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 0 0.25rem;
}

/* ---------- Privacy ---------- */
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.text-link {
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.check-list li {
  position: relative;
  padding: 0.75rem 0 0.75rem 2.25rem;
  color: var(--muted);
}

.check-list li + li {
  border-top: 1px solid var(--border);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0.25rem;
  top: 0.7rem;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  color: #00121f;
  background: var(--cyan);
}

.check-list strong {
  color: var(--text);
}

/* ---------- FAQ ---------- */
details {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}

details[open] {
  border-color: rgba(103, 232, 249, 0.4);
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3rem 1.1rem 1.25rem;
  font-weight: 700;
  position: relative;
  min-height: 44px;
}

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

summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--cyan-bright);
  transition: transform 0.2s;
}

details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

details p {
  padding: 0 1.25rem 1.1rem;
  margin: 0;
  color: var(--muted);
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 5rem 0;
  text-align: center;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(34, 211, 238, 0.18), transparent 70%);
}

.final-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-inner p {
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.final-logo {
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 10px 30px rgba(34, 211, 238, 0.35));
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--muted);
  display: inline-block;
  padding: 0.5rem 0;
}

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

.copyright {
  margin: 0;
}

/* ---------- Privacy page ---------- */
.prose h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: 2.25rem;
}

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

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.muted {
  color: var(--muted);
}

.callout {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(103, 232, 249, 0.35);
}

.callout h2 {
  margin-top: 0;
}

.callout p {
  margin: 0;
  color: var(--text);
}

/* ---------- 404 ---------- */
.not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.not-found p {
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
    text-align: center;
  }

  .lead {
    margin-inline: auto;
  }

  .cta-row,
  .pill-list {
    justify-content: center;
  }

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

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

@media (max-width: 600px) {
  .nav-links li:nth-child(n + 2) {
    display: none;
  }

  .feature-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }

  .shot {
    flex-basis: 200px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
