/* =========================================================
   Carve Moto – shared styles
   ========================================================= */

/* -- Google Fonts are loaded inline per page for CSP safety -- */

:root {
  --bg:        #242424;
  --bg-mid:    #2d2d2d;
  --bg-card:   #363636;
  --border:    rgba(255,255,255,0.12);
  --accent:    #f5821f;
  --accent-hov:#e06b0a;
  --text:      #ffffff;
  --text-muted:#9a9a9a;
  --radius:    12px;
  --max:       860px;
  --nav-h:     64px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: linear-gradient(150deg, #242424 0%, #1a2236 55%, #0d1a30 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

/* ---- Nav ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(30,30,30,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.18s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--accent); }

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text);
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* mobile nav open */
.nav-links.open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(28,28,28,0.98);
  padding: 20px 24px 28px;
  border-bottom: 1px solid var(--border);
  gap: 18px;
}
.nav-links a { padding: 4px 0; }

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ---- Main content wrapper ---- */
main {
  flex: 1;
  position: relative;
  z-index: 1;
}

/* ---- Hero (shared) ---- */
.hero {
  text-align: center;
  padding: 80px 24px 72px;
  max-width: var(--max);
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 28px;
  color: var(--text);
}
.hero-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin: 0 auto 16px;
}
.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  max-width: 540px;
  margin: 0 auto 40px;
}

/* ---- Social icons ---- */
.social-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--accent);
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
}
.social-link:hover { background: var(--accent); color: #fff; transform: scale(1.08); text-decoration: none; }
.social-link svg { width: 22px; height: 22px; }

/* ---- Signup form ---- */
.signup-form {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.signup-form input[type="email"] {
  width: 100%;
  padding: 18px 24px;
  font-size: 1rem;
  border-radius: 40px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  outline: none;
  transition: border-color 0.18s, background 0.18s;
}
.signup-form input[type="email"]::placeholder { color: var(--text-muted); }
.signup-form input[type="email"]:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.1);
}
.btn-signup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 40px;
  border-radius: 40px;
  border: 2px solid var(--text);
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  margin: 0 auto;
  min-width: 220px;
}
.btn-signup:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-signup svg { width: 18px; height: 18px; }
.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}
.form-success {
  display: none;
  text-align: center;
  color: var(--accent);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 20px;
}

/* ---- Section layout ---- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px;
}
.section + .section { padding-top: 0; }
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}
.section-sub {
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 40px;
}

/* ---- App card ---- */
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 640px) {
  .app-card { grid-template-columns: 1fr; }
}
.app-card-text h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.app-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.app-desc {
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  font-size: 0.97rem;
}
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.82);
}
.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background: var(--accent);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
}
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-mid);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.87rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.18s, background 0.18s;
}
.btn-store:hover { border-color: var(--accent); background: rgba(245,130,31,0.1); text-decoration: none; }
.btn-store svg { width: 20px; height: 20px; }
.btn-store-label { display: flex; flex-direction: column; }
.btn-store-label small { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.btn-store-label strong { font-size: 0.92rem; font-weight: 600; }

.app-card-screens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.screen-mock {
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.screen-mock-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  text-align: center;
}
.screen-mock-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.77rem;
  color: rgba(255,255,255,0.7);
}
.screen-mock-item::before {
  content: '';
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 3px;
}

/* ---- Privacy / Support content ---- */
.prose-section {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 24px;
}
.prose-section h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.prose-section .updated {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}
.prose-section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 12px;
}
.prose-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 24px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.prose-section p { color: rgba(255,255,255,0.82); margin-bottom: 16px; }
.prose-section ul {
  color: rgba(255,255,255,0.82);
  padding-left: 24px;
  margin-bottom: 16px;
}
.prose-section ul li { margin-bottom: 6px; }
.prose-section a { color: var(--accent); }
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ---- Support page ---- */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin: 32px 0;
  text-align: center;
}
.contact-card .email-link {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin: 8px 0 4px;
}
.contact-card .email-link:hover { text-decoration: underline; }
.contact-card p { color: var(--text-muted); font-size: 0.9rem; }

.tip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.tip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.tip-card h3 {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tip-icon {
  width: 28px;
  height: 28px;
  background: rgba(245,130,31,0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tip-icon svg { width: 16px; height: 16px; color: var(--accent); }
.tip-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ---- Footer ---- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  background: rgba(20,20,20,0.6);
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
  list-style: none;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}
