/* ========== App theme (Swipe to Clean — classic/warm) ========== */
:root {
  /* Brand — from AppTheme BrandPalette & classic theme */
  --garnet: #c81c48;
  --garnet-dark: #8c0c2d;
  --gold: #e6b441;
  --gold-light: #ffeba6;
  --neutral-light: #fffaf5;
  --neutral-medium: #faf0e6;
  --ink: #1f1218;

  /* Surfaces */
  --bg: #fffaf0;
  --bg-end: #fcf5eb;
  --surface: #fffaf5;
  --surface-alt: #fdf8f3;
  --card-shadow: rgba(0, 0, 0, 0.06);
  --card-shadow-strong: rgba(0, 0, 0, 0.08);

  /* Text */
  --text: #1f1218;
  --text-muted: rgba(31, 18, 24, 0.68);
  --text-subtle: rgba(31, 18, 24, 0.55);

  /* Accent — warm brown from theme, links/CTA use garnet or gold */
  --accent: #c81c48;
  --accent-hover: #a0173a;
  --accent-soft: rgba(200, 28, 72, 0.12);
  --gold-accent: #b8922e;
  --gold-soft: rgba(230, 180, 65, 0.2);

  /* Semantic (keep/delete from app) */
  --keep: #38c785;
  --delete: #d9528c;
  --border: rgba(31, 18, 24, 0.08);
  --border-strong: rgba(31, 18, 24, 0.12);

  /* Layout — match app rounded corners */
  --radius: 16px;
  --radius-card: 20px;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-end) 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
}

/* ========== Legal pages (privacy, terms, contact) ========== */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  min-height: 100vh;
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.02em;
  color: var(--text);
}

.tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent-hover);
}

.content-page {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem;
  box-shadow: 0 4px 24px var(--card-shadow);
  border: 1px solid var(--border);
}

.content-page h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem 0;
  color: var(--text);
}

.content-page h2:first-of-type {
  margin-top: 0;
}

.content-page h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem 0;
  color: var(--text);
}

.content-page p,
.content-page ul {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1rem 0;
  line-height: 1.65;
}

.content-page ul {
  padding-left: 1.5rem;
}

.content-page a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.content-page a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.contact-options a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.contact-options a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.contact-options p {
  margin: 0;
}

/* Cards for index when used as link grid (e.g. old index) */
.nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.card {
  display: block;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px var(--card-shadow);
}

.card:hover {
  border-color: var(--gold);
  background: var(--surface-alt);
  box-shadow: 0 8px 24px var(--card-shadow);
}

.card-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.card h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.35rem 0;
  color: var(--text);
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ========== Homepage ========== */
.home {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  min-height: 100vh;
}

/* Site header */
.site-header {
  padding: 1.75rem 0 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.site-logo-img {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 0.75rem;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  object-fit: contain;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--text);
}

/* Hero */
.hero {
  text-align: center;
  padding: 2.5rem 0 3rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem 0;
  color: var(--text);
  line-height: 1.15;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 1.25rem 0;
  letter-spacing: -0.01em;
}

.hero-desc {
  font-size: 1.06rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 auto 1.75rem;
  max-width: 34rem;
}

.cta-appstore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(200, 28, 72, 0.3);
}

.cta-appstore:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(200, 28, 72, 0.35);
}

.cta-appstore:active {
  transform: scale(0.98);
}

.cta-appstore-secondary {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--border-strong);
  box-shadow: 0 2px 12px var(--card-shadow);
}

.cta-appstore-secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 16px var(--card-shadow);
}

.hero-note {
  font-size: 0.9rem;
  color: var(--text-subtle);
  margin: 1.25rem 0 0 0;
}

/* Sections */
.section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.section-alt {
  background: var(--surface);
  margin: 0 -1.5rem;
  padding: 2.5rem 1.5rem;
  border-top-color: var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  box-shadow: 0 2px 0 var(--card-shadow);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1.25rem 0;
}

/* Feature list — card-style items */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  background: var(--surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  box-shadow: 0 2px 12px var(--card-shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-item:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 20px var(--card-shadow);
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
}

.feature-item strong {
  color: var(--text);
  font-weight: 700;
}

.trust-list {
  color: var(--text-muted);
  font-size: 1rem;
  padding-left: 1.5rem;
  margin: 0;
  line-height: 2;
}

.trust-list li {
  margin-bottom: 0.25rem;
}

/* Footer home */
.footer-home {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.75rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

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

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin: 0;
}

/* Screenshots section */
.section-screenshots .section-desc {
  margin-bottom: 2rem;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 0;
}

@media (min-width: 560px) {
  .screenshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 820px) {
  .screenshot-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.5rem;
  }
}

.screenshot-item {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.screenshot-img-wrap {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px var(--card-shadow);
  max-width: 280px;
  margin: 0 auto;
  aspect-ratio: 9 / 19.5;
  background: var(--surface);
}

.screenshot-img-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* Hide the top status bar (time, battery, signal) */
  object-position: 0 -10%;
}

.screenshot-item figcaption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 300px;
}

.screenshot-item figcaption strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}
