@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Inter:wght@300;400;500&display=swap');

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

:root {
  --bg:           #0d0b08;
  --surface:      #141008;
  --surface-2:    #1c1610;
  --border:       #2a2018;
  --accent:       #c4853a;
  --accent-hover: #d4954a;
  --text:         #e0d4c4;
  --text-muted:   #7a6c5e;
  --text-dim:     #3a3028;
  --max-width:    1100px;
  --nav-height:   64px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p {
  color: var(--text-muted);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--accent-hover);
}

/* ── Layout ── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

/* ── Navigation ── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.nav-logo:hover {
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

/* ── Footer ── */

footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 2rem;
}

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

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--text-dim);
}

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

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 3px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #0d0b08;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #0d0b08;
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* ── Hero ── */

.hero {
  padding: 7rem 0 6rem;
  border-bottom: 1px solid var(--border);
}

.hero-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  max-width: 18ch;
}

.hero > .container > p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Page header (inner pages) ── */

.page-header {
  padding: 5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
}

.page-header .hero-label {
  margin-bottom: 1rem;
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.05rem;
  max-width: 54ch;
}

/* ── Section label ── */

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  max-width: 52ch;
}

/* ── Features grid ── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
}

.feature {
  border-top: 1px solid var(--border);
  padding: 2rem 2rem 2rem 0;
}

.feature-number {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  font-family: 'Inter', monospace;
}

.feature h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.feature p {
  font-size: 0.875rem;
  max-width: none;
}

/* ── App listing on home ── */

.app-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.app-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.app-row h2 {
  margin-bottom: 1rem;
}

.app-row p {
  margin-bottom: 1.75rem;
  max-width: 52ch;
}

.app-icon-placeholder {
  width: 96px;
  height: 96px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.7rem;
  text-align: center;
}

/* ── Screenshots ── */

.screenshots-row {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.screenshots-row::-webkit-scrollbar {
  display: none;
}

.screenshot-placeholder {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 200px;
  aspect-ratio: 9/19.5;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.screenshot-img {
  width: 200px;
  border-radius: 20px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
}

/* ── App icon ── */

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  display: block;
}

.app-icon-img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  flex-shrink: 0;
  object-fit: cover;
}

/* ── App Store badge ── */

.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.4rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
}

.appstore-btn:hover {
  opacity: 0.88;
  color: var(--bg);
}

.appstore-btn .appstore-label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.appstore-btn .appstore-sub {
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0.04em;
}

.appstore-btn .appstore-main {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ── Contact form ── */

.form-wrap {
  max-width: 560px;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

input,
textarea,
select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.7rem 1rem;
  border-radius: 3px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem; /* must be ≥16px to prevent iOS auto-zoom */
  transition: border-color 0.15s;
  -webkit-appearance: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-dim);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

/* ── Prose (privacy, terms) ── */

.prose {
  max-width: 720px;
  padding: 4rem 0;
}

.prose h2 {
  font-size: 1.4rem;
  margin-top: 3rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1rem;
  max-width: 68ch;
}

.prose ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.prose th {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prose td {
  padding: 1rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}

.prose .last-updated {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
}

/* ── About ── */

.about-body {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 6rem;
  align-items: start;
  padding: 4rem 0;
}

.about-body p {
  margin-bottom: 1.25rem;
  max-width: 62ch;
}

.about-stats .stat {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}

.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ── CTA strip ── */

.cta-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
  text-align: center;
}

.cta-strip h2 {
  margin-bottom: 0.75rem;
}

.cta-strip p {
  margin: 0 auto 2rem;
  max-width: 44ch;
}

/* ── Support grid ── */

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  /* Nav */
  .nav-links { gap: 1.5rem; }
  .nav-links a { padding: 0.5rem 0; } /* larger touch target */

  /* Layouts */
  .app-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .app-row .app-icon-img {
    order: -1;
  }

  .app-icon-placeholder { display: none; }

  .about-body {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .support-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  /* Spacing */
  section { padding: 3rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .page-header { padding: 3rem 0 2.5rem; }
  .section-header { margin-bottom: 2.5rem; }
  .cta-strip { padding: 3rem 0; }

  /* Buttons full-width on mobile */
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }

  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.72rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  /* Tighten prose on small screens */
  .prose { padding: 2.5rem 0; }
}
