/* EarForge — shared styles */

:root {
  --bg: #ffffff;
  --bg-soft: #f8f8f8;
  --ink: #1a1a2e;
  --ink-soft: #5b5b73;
  --accent: #6c5ce7;
  --accent-2: #00b894;
  --accent-grad: linear-gradient(135deg, #6c5ce7 0%, #8e7bff 60%, #00cec9 100%);
  --border: #ececf3;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(28, 22, 60, 0.08);
  --maxw: 980px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-grad);
  display: grid; place-items: center;
  color: #fff; flex: none;
}
.brand .logo-img {
  width: 36px; height: 36px; border-radius: 10px; flex: none; display: block;
}
.brand small { display: block; font-weight: 500; font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.02em; }
.nav { display: flex; gap: 22px; font-size: 0.95rem; }
.nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--accent); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  padding: 80px 0 90px;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 50% -10%, rgba(108,92,231,0.18), transparent 70%),
    radial-gradient(500px 260px at 85% 120%, rgba(0,206,201,0.16), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  text-align: left;
}
.hero-grid .store-badges { justify-content: flex-start; }
.hero-art { display: flex; justify-content: center; }
.hero-art img {
  width: 100%; max-width: 360px; height: auto;
  filter: drop-shadow(0 18px 40px rgba(28, 22, 60, 0.18));
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-grid .store-badges { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 240px; }
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.02em;
}
.hero h1 .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  max-width: 620px; margin: 0 auto 32px;
  font-size: 1.18rem; color: var(--ink-soft);
}

/* ---------- Buttons / store badges ---------- */
.store-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: 12px;
  font-weight: 600; min-width: 180px;
}
.store-badge:hover { text-decoration: none; transform: translateY(-2px); }
.store-badge { transition: transform 0.15s ease; }
.store-badge svg { flex: none; }
.store-badge small { display: block; font-size: 0.68rem; font-weight: 500; opacity: 0.8; }
.store-badge span b { font-size: 1.05rem; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 12px; letter-spacing: -0.01em; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(108, 92, 231, 0.1); color: var(--accent);
}
.card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* PRO section */
.pro { background: var(--bg-soft); }
.pro .badge-pro {
  display: inline-block; background: var(--accent-grad); color: #fff;
  font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.pro-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px 32px; max-width: 760px; margin: 8px auto 0; text-align: left;
}
.pro-item { display: flex; gap: 12px; align-items: flex-start; }
.pro-item .check {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-2); color: #fff; display: grid; place-items: center;
  font-size: 0.8rem; margin-top: 2px;
}
.pro-item h4 { margin: 0 0 2px; font-size: 1rem; }
.pro-item p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.fineprint { max-width: 700px; margin: 36px auto 0; font-size: 0.82rem; color: var(--ink-soft); text-align: center; }

/* CTA */
.cta { text-align: center; }
.cta h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0 0 24px; }

/* contact strip */
.contact { text-align: center; }
.contact .socials { display: flex; gap: 18px; justify-content: center; margin-top: 14px; }
.contact .socials a {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--ink-soft);
}
.contact .socials a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 6px; }
.legal .updated { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 36px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.legal p { color: #36364a; margin: 0 0 16px; }
.legal .back { display: inline-block; margin-bottom: 28px; font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #c9c9d6;
  padding: 40px 0; font-size: 0.92rem;
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer a { color: #c9c9d6; }
.site-footer a:hover { color: #fff; }
.site-footer .foot-nav { display: flex; gap: 22px; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #9a9ab0; }

@media (max-width: 600px) {
  .nav { gap: 14px; font-size: 0.88rem; }
  .brand small { display: none; }
  section { padding: 56px 0; }
  .site-footer .container { flex-direction: column; text-align: center; }
}
