/* Word Words Fan — SEO Site Styles
   Dark theme with Wordle-inspired green/yellow/gray tile palette */

/* Self-hosted fonts */
@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;
}

@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;
}

@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;
}

@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;
}

@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: #e4e4e7;
  background: #121213;
  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;
  color: #ffffff;
}

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: #e4e4e7; text-decoration: none; }
a:hover { color: #6aaa64; }

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

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

section { padding: 80px 20px; }

/* Tile colors (Wordle palette) */
:root {
  --tile-green: #6aaa64;
  --tile-yellow: #c9b458;
  --tile-gray: #787c7e;
  --tile-dark: #3a3a3c;
  --bg: #121213;
  --bg-soft: #1a1a1b;
  --surface: #272729;
  --border: #3a3a3c;
  --text: #e4e4e7;
  --text-soft: #a1a1aa;
  --text-dim: #71717a;
  --accent: #6aaa64;
  --accent-hover: #7dbd76;
}

/* Hero */
.hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px 48px;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(106,170,100,0.08) 0%, transparent 60%),
              radial-gradient(ellipse 60% 40% at 80% 80%, rgba(201,180,88,0.05) 0%, transparent 50%),
              var(--bg);
}

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

.hero .subtitle {
  font-size: 1.15em;
  color: var(--text-soft);
  max-width: 560px;
  margin-bottom: 32px;
}

/* Tile decoration — small letter squares used as visual accents */
.tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.2em;
  color: #fff;
  text-transform: uppercase;
}

.tile--green { background: var(--tile-green); }
.tile--yellow { background: var(--tile-yellow); }
.tile--gray { background: var(--tile-gray); }
.tile--empty { background: var(--surface); border: 2px solid var(--border); }

.tile-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 6px;
}

/* 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: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
}

.card--accent-green { border-left: 3px solid var(--tile-green); }
.card--accent-yellow { border-left: 3px solid var(--tile-yellow); }

/* 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--dark { background: var(--bg); }

.section--surface {
  background: var(--bg-soft);
}

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

.section--green {
  background: var(--tile-green);
  color: #fff;
}

.section--green h2,
.section--green h3 { color: #fff; }
.section--green p { color: rgba(255,255,255,0.9); }
.section--green a { color: #fff; text-decoration: underline; }

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 80px 20px;
  background: var(--tile-green);
  color: #fff;
}

.cta-section h2 { margin-bottom: 12px; color: #fff; }
.cta-section .subtitle { color: rgba(255,255,255,0.85); margin-bottom: 32px; }

/* Primary button */
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--tile-green);
  color: #fff;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--accent-hover); color: #fff; }

/* Feature list */
.feature-list { list-style: none; padding: 0; }

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

.feature-list li::before {
  content: '✦';
  color: var(--tile-green);
  position: absolute;
  left: 0;
}

/* Tags */
.tag {
  display: inline-block;
  background: var(--surface);
  color: var(--text-soft);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  margin: 4px;
  border: 1px solid var(--border);
}

/* 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 var(--border);
  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: #fff;
  background: var(--surface);
}

.comparison-table .check { color: var(--tile-green); font-weight: 600; }
.comparison-table .cross { color: var(--tile-gray); }

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

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

.faq-item p {
  color: var(--text-soft);
  font-size: 0.92em;
  margin-bottom: 0;
}

/* Word list (for word database pages) */
.word-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin: 24px 0;
}

.word-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Inter', monospace;
  font-size: 0.95em;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
}

/* Meta strip */
.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: center;
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 0.85em;
}

/* Footer */
footer {
  background: #0a0a0a;
  color: var(--text-dim);
  padding: 40px 20px;
  text-align: center;
  font-size: 0.85em;
}

footer a { color: var(--text-soft); }
footer a:hover { color: var(--tile-green); }

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

/* Trust note */
.trust-note {
  max-width: 760px;
  margin: 20px auto;
  padding: 18px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--text-soft);
  font-size: 0.92em;
  line-height: 1.6;
}

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

.callout-list li {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

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

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85em;
  color: var(--text-dim);
  padding: 16px 0;
}

.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--tile-green); }

/* 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;
  }

  .tile { width: 36px; height: 36px; font-size: 1em; }

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

  .word-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }

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