:root {
  --ink: #1c1a15;
  --ink-soft: #4a463c;
  --paper: #fffdf8;
  --cream: #faf6ec;
  --gold: #e6a817;
  --gold-dark: #c98d0a;
  --card-border: #ece5d3;
  --radius: 14px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--card-border);
}

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

.brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.brand:hover { text-decoration: none; }

.brand .accent { color: var(--gold-dark); }

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

.nav-links a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

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

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 16px;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero .tagline {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-note {
  max-width: 560px;
  color: var(--ink-soft);
  margin: 0;
}

.hero-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.phone-frame {
  position: relative;
  width: 240px;
  aspect-ratio: 9 / 19.5;
  background: var(--ink);
  border-radius: 32px;
  padding: 10px;
  box-shadow: 0 24px 48px rgba(28, 26, 21, 0.22);
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 14px;
  background: var(--ink);
  border-radius: 0 0 12px 12px;
  z-index: 2;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #0c0b09;
}

.phone-screen .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.phone-screen .slide.active {
  opacity: 1;
}

.slide-dots {
  display: flex;
  gap: 8px;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--card-border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slide-dot.active {
  background: var(--gold-dark);
  transform: scale(1.25);
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy { text-align: center; }
  .hero .tagline { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-note { margin-left: auto; margin-right: auto; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: #21190a;
  box-shadow: 0 6px 18px rgba(230, 168, 23, 0.35);
}

.btn-primary:hover {
  background: var(--gold-dark);
  box-shadow: 0 8px 22px rgba(201, 141, 10, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: var(--card-border);
  color: var(--ink);
}

.btn-outline:hover { border-color: var(--gold-dark); color: var(--gold-dark); }

/* Sections */
section { padding: 64px 0; }

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

h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-align: center;
}

.section-lead {
  text-align: center;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 40px;
}

/* Feature cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(28, 26, 21, 0.08);
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Trust / privacy section */
.trust-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trust-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-soft);
}

.trust-list li::before {
  content: "\2713";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: #21190a;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Links row (privacy/terms/ads.txt) */
.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.link-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
  font-weight: 700;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.link-card:hover {
  text-decoration: none;
  border-color: var(--gold-dark);
  transform: translateY(-3px);
}

.link-card span {
  display: block;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 6px;
}

/* Footer */
footer {
  border-top: 1px solid var(--card-border);
  padding: 32px 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* Legal content pages */
.legal {
  padding: 56px 0 80px;
}

.legal .wrap { max-width: 780px; }

.legal h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal h2 {
  text-align: left;
  font-size: 1.4rem;
  margin-top: 44px;
  padding-top: 12px;
  border-top: 1px solid var(--card-border);
}

.legal h2:first-of-type { border-top: none; margin-top: 0; }

.legal p, .legal li { color: var(--ink-soft); }

.legal code {
  background: var(--cream);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.toc {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 40px;
}

.toc p { margin: 0 0 8px; font-weight: 700; color: var(--ink); }

.toc ul { margin: 0; padding-left: 20px; }

pre.code-block {
  background: var(--ink);
  color: #f5e9c8;
  padding: 18px 20px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.85rem; }
  section { padding: 48px 0; }
}
