/* BookPledge – clean, minimal, teal accent */

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --accent: #0d9488;
  --accent-light: #2dd4bf;
  --cta-bg: #171717;
  --border: #e5e5e5;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

/* Header */
.header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-company {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

a.header-company {
  text-decoration: none;
}

a.header-company:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link--current {
  color: var(--accent);
  font-weight: 600;
}

/* Legal pages (Terms of Service, Privacy Policy) */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.legal-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
}

.legal-content {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 1.5rem 3.5rem;
  max-width: 520px;
  margin: 0 auto;
}

.hero-logo {
  display: block;
  margin: 0 auto 1rem;
  border-radius: 22px;
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.hero-slogan {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  font-weight: 500;
}

/* CTA Button – Google Play style */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--cta-bg);
  color: #fff;
  text-decoration: none;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-family: var(--font);
  font-weight: 500;
  transition: transform 0.15s, box-shadow 0.15s;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.cta-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.2;
}

.cta-line1 {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  opacity: 0.95;
}

.cta-line2 {
  font-size: 1.125rem;
  font-weight: 600;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 1.5rem 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
    padding: 3rem 1.5rem 5rem;
  }
}

.feature {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.75rem;
  border: 1px solid var(--border);
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature:hover {
  border-color: var(--accent-light);
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.08);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  color: var(--accent);
}

.feature-icon .material-symbols-outlined {
  font-size: 40px;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Modal (Terms / Privacy) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface);
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.modal-close:hover {
  color: var(--text);
  background: var(--border);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Contact dialog – small box */
.contact-dialog {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.contact-dialog.is-open {
  opacity: 1;
  visibility: visible;
}

.contact-dialog-box {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  max-width: 320px;
  width: 100%;
}

.contact-dialog-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.contact-email {
  font-size: 0.9375rem;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 1.25rem;
  word-break: break-all;
}

.contact-dialog-close {
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--surface);
  background: var(--cta-bg);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.contact-dialog-close:hover {
  opacity: 0.9;
}
