body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0b0f14;
  color: #e6edf3;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.header {
  background: #111827;
  padding: 20px 0;
}

.hero-logo {
  display: block;
  margin: 0 auto 20px auto;
  width: clamp(220px, 34vw, 460px);
  max-width: min(90vw, 460px);
  height: auto;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.4));
}

.logo {
  margin: 0;
  font-weight: 700;
}

.logo-link {
  color: inherit;
  text-decoration: none;
}

a {
  color: #32ff7e;
}

a:hover {
  color: #7dffab;
}

.logo span {
  color: #32ff7e;
}

nav a {
  color: #32ff7e;
  margin-left: 0;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 2px solid #1f2937;
  border-radius: 10px;
  background: #0b0f14;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #e6edf3;
  border-radius: 2px;
}

.hero {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #111827, #0b0f14);
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  max-width: 60ch;
  margin: 0 auto;
}

.eyebrow {
  margin-bottom: 10px;
  color: #32ff7e;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-legal {
  text-align: left;
}

.hero-actions-inline {
  margin-top: 24px;
}

.legal-container {
  max-width: 820px;
}

.store-badges {
  --badge-height: 40px;
  margin: 14px 0 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}

.store-badges a {
  display: inline-flex;
  align-items: center;
  height: var(--badge-height);
}

.store-badge {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
}

.app-store-badge {
  transform: translateY(1px);
}

.google-play-badge {
  height: 92%;
}

.btn {
  display: inline-block;
  box-sizing: border-box;
  padding: 12px 24px;
  background: #32ff7e;
  color: #0b0f14;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
}

.hero-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-app-icon {
  width: clamp(116px, 18vw, 144px);
  height: clamp(116px, 18vw, 144px);
  object-fit: contain;
  border-radius: 16px;
}

.hero-app-icon-ledger {
  transform: scale(1.02);
  transform-origin: center;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ledger-back-btn {
  margin-top: 20px;
}

.section {
  padding: 5px 0;
}

.index-about {
  padding-top: 2.5px;
}

.section-tight {
  padding: 5px 0;
}

.core-features h3 {
  margin-top: 0;
}

.section.alt {
  background: #111827;
}

.legal-content section + section {
  margin-top: 32px;
}

.legal-content h2 {
  margin-bottom: 12px;
}

.legal-content p,
.legal-content li {
  max-width: 68ch;
}

.legal-form {
  margin-top: 16px;
}

.footer {
  padding: 20px 0;
  text-align: center;
  background: #0b0f14;
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer a {
  color: #32ff7e;
  text-decoration: none;
}

.footer a:hover {
  color: #7dffab;
}

a[href^="mailto:"] {
  color: #32ff7e;
}

a[href^="mailto:"]:hover {
  color: #7dffab;
}


/* --- Added in v2: contact form + screenshots + store buttons --- */
.muted { color: #94a3b8; }

.form {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.grid-2 {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

label span {
  display: block;
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 8px;
}

input, textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid #1f2937;
  background: #0b0f14;
  color: #e6edf3;
  outline: none;
}
input:focus, textarea:focus { border-color: #32ff7e; }

.form-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.status { color: #cbd5e1; }

.fineprint {
  margin-top: 14px;
  font-size: 0.9rem;
  color: #94a3b8;
}
code {
  background: #0b0f14;
  border: 1px solid #1f2937;
  padding: 2px 6px;
  border-radius: 8px;
  color: #cbd5e1;
}

.shots {
  margin-top: 18px;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  justify-items: center;
}
@media (min-width: 720px) {
  .shots { grid-template-columns: 1fr 1fr; }
}
.shot {
  margin: 0;
  background: #111827;
  border: 2px solid #1f2937;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  width: 100%;
  max-width: 420px;
}
.shot img {
  width: 84%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.shot figcaption {
  padding: 12px 14px;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.store-buttons {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid #1f2937;
  background: #0b0f14;
  color: #e6edf3;
  text-decoration: none;
  font-weight: 650;
}
.store-btn:hover { border-color: #32ff7e; }


/* --- v3 iPad & tablet layout fixes --- */
.header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.header nav{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.site-nav{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.header nav a{
  margin-left:0; /* avoid overflow on iPad */
  padding:8px 10px;
  border-radius:10px;
}
.header nav a:hover{
  background:#0b0f14;
}

.hero{
  padding:64px 0;
}
.hero h2{
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.container{
  width: min(92%, 1100px);
}

.grid-2{
  grid-template-columns: 1fr; /* default */
}
@media (min-width: 600px){
  .grid-2{ grid-template-columns: 1fr 1fr; } /* kicks in earlier for iPad */
}

.shots{
  grid-template-columns: 1fr;
}
@media (min-width: 640px){
  .shots{ grid-template-columns: 1fr 1fr; }
  .shot{ max-width: none; }
}
@media (min-width: 1024px){
  .shots{ grid-template-columns: 1fr 1fr 1fr; } /* 3-up layout on desktop */
}

.store-buttons{
  justify-content:center;
}
.store-btn{
  min-width: 160px;
}

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

/* Prevent long words/URLs from breaking layout */
*{
  overflow-wrap:anywhere;
}


/* --- v4 Mobile (iPhone) fixes --- */
:root { --pad: 16px; }

/* Make nav + header reliably stack on small screens */
@media (max-width: 520px){
  .header { padding: 14px 0; }
  .header .container{
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
}

/* Typography + spacing tuned for phones */
@media (max-width: 520px){
  .hero{ padding: 44px 0; }
  .hero h2{ font-size: 1.75rem; line-height: 1.15; }
  .hero p{ font-size: 1rem; line-height: 1.5; }
  .hero-logo{
    width: min(92vw, 420px);
    max-width: 92vw;
    margin-bottom: 16px;
  }
  .store-badges{
    --badge-height: 36px;
    gap: 8px;
  }
  .section{ padding: 22px 0; }
  .index-about{ padding-top: 11px; }
  .section-tight{ padding: 10px 0; }
  .container{ width: min(92%, 1100px); }

  /* Buttons should not overflow */
  .btn{
    width: min(100%, 420px);
    text-align: center;
  }

  .store-buttons{
    flex-direction: column;
    align-items: stretch;
  }
  .store-btn{
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  .form-row{
    flex-direction: column;
    align-items: stretch;
  }
  .status{ min-height: 1.2em; }

  .hero-legal {
    text-align: left;
  }
}

/* Make lists and long text nicer on mobile */
ul{ padding-left: 18px; }
li{ margin: 6px 0; }

.legacy-store-section {
  display: none;
}

@media (max-width: 780px){
  .header .container{
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .logo{
    justify-self: start;
  }

  .nav-toggle{
    display: inline-block;
    justify-self: end;
  }

  .header nav.site-nav{
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #1f2937;
  }

  .header nav.site-nav.open{
    display: flex;
  }

  .site-nav a{
    display: block;
    padding: 10px 12px;
    border: 2px solid #1f2937;
    border-radius: 10px;
    background: #0b0f14;
  }
}
