/* One Stroke SEO Site — Shared Styles
   Matching official site aesthetic: one-stroke.cybergame.ai */

/* Self-hosted fonts — eliminates render-blocking Google Fonts request chain */

/* Inter (variable weight 400-600, latin) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter (variable weight 400-600, latin-ext — de/fr/es/pt-br) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* DM Serif Display (latin) */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-serif-display-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* DM Serif Display (latin-ext) */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-serif-display-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Fallback font metrics — reduce CLS from font swap */
@font-face {
  font-family: 'Inter Fallback';
  src: local('BlinkMacSystemFont'), local('Segoe UI'), local('Arial');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'DM Serif Display Fallback';
  src: local('Georgia'), local('Times New Roman');
  size-adjust: 105%;
  ascent-override: 95%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #2a2a2a;
  background: #f5f3ee;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3 {
  font-family: 'DM Serif Display', 'DM Serif Display Fallback', Georgia, serif;
  font-weight: 400;
  line-height: 1.3;
}

h1 { font-size: 3.2em; letter-spacing: -1px; }
h2 { font-size: 2em; margin-bottom: 16px; }
h3 { font-size: 1.4em; }

p { margin-bottom: 12px; }

a { color: #2a2a2a; text-decoration: none; }
a:hover { color: #ff6b35; }

/* Layout */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: 740px;
}

section {
  padding: 80px 20px;
}

/* Hero */
.hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px 48px;
  background: linear-gradient(180deg, #f5f3ee 0%, #ebe8e1 55%, #f5f3ee 100%);
}

.hero h1 {
  margin-bottom: 16px;
}

.hero .subtitle {
  font-size: 1.15em;
  color: #666;
  max-width: 560px;
  margin-bottom: 32px;
}

.hero .meta-strip {
  margin-top: 4px;
}

/* App Icon */
.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  margin-bottom: 24px;
}

/* App Store Badge */
.store-badge {
  display: inline-block;
  transition: transform 0.2s ease;
}

.store-badge:hover {
  transform: scale(1.05);
}

.store-badge img {
  height: 54px;
  width: auto;
  aspect-ratio: 3 / 1;
}

/* Cards */
.card {
  background: #f9f8f5;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 28px 32px;
}

.card--white {
  background: #fff;
  border-color: #e8e6e1;
}

/* Grid */
.grid {
  display: grid;
  gap: 32px;
}

.grid--features {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--modes {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* Section Alternating BG */
.section--white { background: #fff; }
.section--beige { background: #f5f3ee; }
.section--cream { background: #ebe8e1; }

.section--dark {
  background: #1a1a1a;
  color: #fff;
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section--dark .subtitle,
.section--dark p {
  color: #ccc;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 80px 20px;
}

.cta-section h2 {
  margin-bottom: 12px;
}

.cta-section .subtitle {
  color: #999;
  margin-bottom: 32px;
}

/* Bullet lists with accent */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.95em;
}

.feature-list li::before {
  content: '\2726';
  color: #ff6b35;
  position: absolute;
  left: 0;
}

/* Ratings / Stars */
.stars {
  color: #ff6b35;
  font-size: 1.2em;
  letter-spacing: 2px;
}

/* Tags */
.tag {
  display: inline-block;
  background: #ebe8e1;
  color: #555;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  margin: 4px;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: 0.9em;
}

.comparison-table th {
  font-family: 'DM Serif Display', 'DM Serif Display Fallback', Georgia, serif;
  font-weight: 400;
  font-size: 0.95em;
  color: #1a1a1a;
  background: #f9f8f5;
}

.comparison-table .check { color: #ff6b35; font-weight: 600; }
.comparison-table .cross { color: #ccc; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}

.faq-item h3 {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.faq-item p {
  color: #555;
  font-size: 0.92em;
  margin-bottom: 0;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85em;
  color: #999;
  padding: 16px 0;
}

.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: #ff6b35; }

/* Footer */
footer {
  background: #111;
  color: #888;
  padding: 40px 20px;
  text-align: center;
  font-size: 0.85em;
}

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

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: center;
  margin-top: 14px;
  color: #999;
  font-size: 0.85em;
  letter-spacing: 0.01em;
}

.trust-note {
  max-width: 760px;
  margin: 20px auto 20px;
  padding: 18px 24px;
  border: 1px solid #e8e1d7;
  border-radius: 14px;
  background: #fffaf5;
  color: #5a524b;
  font-size: 0.92em;
  line-height: 1.6;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 18px;
  font-size: 0.92em;
}

.sticky-cta {
  position: sticky;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 12px 16px 16px;
  background: linear-gradient(180deg, rgba(245,243,238,0) 0%, rgba(245,243,238,0.92) 35%, rgba(245,243,238,1) 100%);
}

.callout-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.callout-list li {
  padding: 16px 18px;
  border-radius: 14px;
  background: #f9f8f5;
  border: 1px solid #ece7df;
}

footer a { color: #ccc; }
footer a:hover { color: #ff6b35; }

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

/* Sticky CTA Bar (mobile) */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  padding: 12px 20px;
  z-index: 100;
  text-align: center;
}

.sticky-cta .store-badge img {
  height: 44px;
}

/* Responsive */
@media (max-width: 640px) {
  h1 { font-size: 2em; }
  h2 { font-size: 1.5em; }
  h3 { font-size: 1.15em; }

  .hero {
    min-height: auto;
    padding: 40px 16px 24px;
  }

  .hero .subtitle { font-size: 1em; }

  section { padding: 48px 16px; }

  .container { padding: 0 16px; }

  .card { padding: 20px 24px; }

  .grid--features,
  .grid--modes {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .app-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
  }

  .trust-note {
    margin-left: 16px;
    margin-right: 16px;
  }

  .store-badge img { height: 44px; }

  .sticky-cta { display: block; }

  /* Add bottom padding so content isn't hidden behind sticky CTA */
  body { padding-bottom: 70px; }
}
