* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #f5f5f7;
  margin: 0;
  padding: 1rem;
}

/* —— Splash homepage —— */
body.splash-page {
  min-height: 100vh;
  padding: 0;
  background: linear-gradient(165deg, #0a7ea4 0%, #1cb87a 45%, #34c759 100%);
}

.splash {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.splash-card {
  width: 100%;
  max-width: 28rem;
  text-align: center;
  padding: 2.5rem 1.75rem 2rem;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  animation: splash-in 0.7s ease-out both;
}

@keyframes splash-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  margin-bottom: 1rem;
}

.splash-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0a7ea4;
  margin: 0 0 0.35rem;
}

.splash-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.splash-lead {
  font-size: 1.05rem;
  color: #444;
  margin: 0 0 1.25rem;
  text-align: left;
}

.app-store-download {
  margin: 0 0 1.75rem;
  text-align: center;
}

.app-store-download a {
  display: inline-block;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.app-store-download a:hover {
  transform: scale(1.03);
  opacity: 0.92;
}

.app-store-download img {
  display: block;
  height: 54px;
  width: auto;
}

.splash-card .platform a {
  color: #007aff;
  font-weight: 500;
  text-decoration: none;
}

.splash-card .platform a:hover {
  text-decoration: underline;
}

.splash-card .about,
.splash-card .platform,
.splash-card .support {
  text-align: left;
  margin-bottom: 1.5rem;
}

.splash-card h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: #1a1a1a;
}

.splash-card .about p,
.splash-card .platform p,
.splash-card .support p {
  font-size: 0.95rem;
  color: #444;
  margin: 0;
}

.splash-card .support a {
  color: #007aff;
  font-weight: 500;
  text-decoration: none;
}

.splash-card .support a:hover {
  text-decoration: underline;
}

.feature-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  color: #333;
}

.feature-list li {
  margin-bottom: 0.5rem;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #ff9500, #ff6b00);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  vertical-align: middle;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  padding-top: 0.5rem;
  border-top: 1px solid #e5e5ea;
  margin-bottom: 1rem;
}

.legal-links a {
  color: #007aff;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.legal-links a:hover {
  text-decoration: underline;
}

.splash-footer {
  margin: 0;
}

.splash-footer p {
  font-size: 0.8rem;
  color: #888;
  margin: 0;
}

/* —— Legal pages (privacy, terms) —— */
body:not(.splash-page) main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

body:not(.splash-page) h1 {
  font-size: 1.5rem;
  margin-top: 0;
}

body:not(.splash-page) h2 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

body:not(.splash-page) p,
body:not(.splash-page) li {
  font-size: 1rem;
}

body:not(.splash-page) ul {
  padding-left: 1.25rem;
}

a {
  color: #007aff;
}

.meta {
  color: #666;
  font-size: 0.9rem;
}

/* —— Contact form —— */
.contact-form {
  margin-top: 1.25rem;
}

.contact-form .field {
  margin-bottom: 1.1rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d1d1d6;
  border-radius: 10px;
  background: #fafafa;
  color: #1a1a1a;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #0a7ea4;
  box-shadow: 0 0 0 3px rgba(10, 126, 164, 0.15);
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form .hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #666;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-primary {
  display: inline-block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #0a7ea4, #1cb87a);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.05);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
}

.form-status--success {
  background: #e8f8ee;
  color: #1a5c34;
}

.form-status--error {
  background: #fdecea;
  color: #8b2e24;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e5ea;
}

.page-nav a {
  font-weight: 500;
  text-decoration: none;
}

.page-nav a:hover {
  text-decoration: underline;
}
