/* ScoreCounter Website — style.css */

:root {
  --bg:             #f5f5f7;
  --card:           #ffffff;
  --text:           #1d1d1f;
  --text-2:         #6e6e73;
  --accent:         #0071e3;
  --accent-h:       #0077ed;
  --border:         rgba(0, 0, 0, 0.08);
  --shadow:         0 2px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover:   0 8px 32px rgba(0, 0, 0, 0.14);
  --radius:         18px;
  --radius-sm:      12px;
  --font:           -apple-system, BlinkMacSystemFont, "SF Pro Display",
                    "Helvetica Neue", Arial, sans-serif;
  --max-w:          1080px;
  --hero-bg:        #1d1d1f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:     #000000;
    --card:   #1c1c1e;
    --text:   #f5f5f7;
    --text-2: #98989d;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }

/* ── NAV ────────────────────────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  nav {
    background: rgba(29, 29, 31, 0.82);
  }
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-logo {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.3px;
  flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; }

.nav-links {
  display: flex;
  gap: 20px;
  flex: 1;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.lang-switcher select {
  font-family: var(--font);
  font-size: 13px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  outline: none;
}
.lang-switcher select:focus {
  border-color: var(--accent);
}

/* ── HERO ───────────────────────────────────────────────────── */

.hero {
  background: var(--hero-bg);
  color: #f5f5f7;
  text-align: center;
  padding: 80px 24px 96px;
}

.hero-content {
  max-width: 680px;
  margin: 0 auto;
}

.app-icon-wrap {
  margin-bottom: 32px;
}

.app-icon-wrap img {
  width: 120px;
  height: 120px;
  border-radius: 27px;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.app-icon-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 27px;
  margin: 0 auto;
  background: linear-gradient(145deg, #0a84ff, #5856d6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: #f5f5f7;
}

.hero p.hero-desc {
  font-size: clamp(16px, 2vw, 20px);
  color: #a1a1a6;
  margin-bottom: 40px;
  line-height: 1.5;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f5f5f7;
  color: #1d1d1f;
  border-radius: 14px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}

.btn-appstore:hover {
  background: #ffffff;
  transform: scale(1.03);
  text-decoration: none;
}

.btn-appstore .as-icon {
  font-size: 28px;
  line-height: 1;
}

.btn-appstore .as-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.btn-appstore .as-label small {
  font-size: 11px;
  font-weight: 400;
  color: #6e6e73;
}
.btn-appstore .as-label strong {
  font-size: 17px;
  font-weight: 700;
}

.hero-free {
  margin-top: 16px;
  font-size: 13px;
  color: #636366;
}

/* ── SECTION COMMON ─────────────────────────────────────────── */

.section {
  padding: 80px 24px;
}

.section-alt {
  background: var(--card);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto;
}

/* ── FEATURES GRID ──────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.section-alt .feature-card {
  background: var(--bg);
}

.feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
  line-height: 1;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── IAP SECTION ────────────────────────────────────────────── */

.iap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .iap-grid { grid-template-columns: 1fr; }
}

.iap-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
}

.section-alt .iap-card {
  background: var(--bg);
}

.iap-card .iap-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.iap-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.iap-card p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
}

.iap-badge {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 12px;
  background: rgba(0, 113, 227, 0.1);
  color: var(--accent);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

/* ── LANGUAGE BADGES ────────────────────────────────────────── */

.lang-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.lang-badge {
  padding: 8px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 40px;
  font-size: 15px;
  font-weight: 500;
  transition: box-shadow 0.2s;
}

.section-alt .lang-badge {
  background: var(--bg);
}

.lang-badge:hover {
  box-shadow: var(--shadow-hover);
}

/* ── PLATFORMS ──────────────────────────────────────────────── */

.platforms {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-2);
}

.platform-item .pl-icon {
  font-size: 40px;
}

/* ── DOWNLOAD CTA ───────────────────────────────────────────── */

.download-cta {
  background: linear-gradient(135deg, #0071e3 0%, #5e5ce6 100%);
  color: white;
  text-align: center;
  padding: 80px 24px;
}

.download-cta h2 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.download-cta p {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 36px;
}

.btn-appstore-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #1d1d1f;
  border-radius: 14px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}

.btn-appstore-white:hover {
  background: #f5f5f7;
  transform: scale(1.03);
  text-decoration: none;
}

.btn-appstore-white .as-icon {
  font-size: 28px;
  line-height: 1;
}

.btn-appstore-white .as-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.btn-appstore-white .as-label small {
  font-size: 11px;
  font-weight: 400;
  color: #6e6e73;
}
.btn-appstore-white .as-label strong {
  font-size: 17px;
  font-weight: 700;
}

/* ── FOOTER ─────────────────────────────────────────────────── */

footer {
  background: var(--hero-bg);
  color: #636366;
  padding: 48px 24px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-links a {
  font-size: 13px;
  color: #636366;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #ebebf0; }

.footer-copy {
  font-size: 12px;
  color: #48484a;
}

/* ── PRIVACY / SUPPORT PAGES ────────────────────────────────── */

.page-content {
  max-width: 760px;
  margin: 60px auto;
  padding: 0 24px 80px;
}

.page-content h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.page-content .last-updated {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 48px;
}

.page-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 40px 0 12px;
  letter-spacing: -0.3px;
}

.page-content p, .page-content li {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 12px;
}

.page-content ul, .page-content ol {
  padding-left: 24px;
}

.page-content li { margin-bottom: 6px; }

.page-content strong { color: var(--text); }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item h3::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.open h3::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  padding-top: 4px;
}

.faq-item.open .faq-answer { display: block; }

/* Contact block */
.contact-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  margin-top: 48px;
  text-align: center;
}

.contact-block h2 {
  margin-top: 0;
}

.contact-block .contact-email {
  display: inline-block;
  margin-top: 16px;
  font-size: 17px;
  font-weight: 500;
  color: var(--accent);
}

/* ── UTILITIES ──────────────────────────────────────────────── */

.text-center { text-align: center; }

@media (max-width: 600px) {
  .nav-links { display: none; }
  .section { padding: 56px 16px; }
}
