/* SubLingo site styles. Generated pages link this file (scripts/build-site.mjs). */
/* Outfit and Inter, self-hosted variable fonts (SIL OFL 1.1, see /fonts/OFL-*.txt). */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/outfit-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/outfit-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: 100 900;
  font-display: swap;
  src: url(/fonts/inter-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  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: 100 900;
  font-display: swap;
  src: url(/fonts/inter-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/inter-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
  --bg: #0c0e14;
  --surface: #141822;
  --surface-border: rgba(255, 255, 255, 0.08);
  --text: #f0f2f5;
  --text-muted: #8b949e;
  --cue: #F2C14E;
  --cue-glow: rgba(242, 193, 78, 0.25);
  --accent: #5CC8E8;
  --success: #3fb950;
  --font-display: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(242, 193, 78, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 90% 40%, rgba(92, 200, 232, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(155, 114, 203, 0.06) 0%, transparent 50%);
}

a { color: inherit; text-decoration: none; }

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--cue) 0%, #d99a18 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--cue-glow);
}

.brand-icon svg { width: 22px; height: 22px; fill: #0c0e14; }

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
}

nav a:hover { color: var(--text); }

.btn-header {
  background: linear-gradient(135deg, var(--cue), #e6a817);
  color: #0c0e14;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--cue-glow);
}

/* Hero */
.hero {
  max-width: 960px;
  margin: 60px auto 40px;
  text-align: center;
  padding: 0 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(242, 193, 78, 0.1);
  border: 1px solid rgba(242, 193, 78, 0.3);
  color: var(--cue);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 62px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-bottom: 22px;
}

h1 span {
  background: linear-gradient(135deg, #ffffff 40%, var(--cue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--cue), #e6a817);
  color: #0c0e14;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  box-shadow: 0 8px 28px var(--cue-glow);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(242, 193, 78, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Platforms bar */
.platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 18px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
  max-width: 900px;
  margin: 0 auto 70px;
}

.platforms span { display: flex; align-items: center; gap: 6px; }

/* Features Grid */
.features {
  max-width: 1100px;
  margin: 0 auto 90px;
  padding: 0 20px;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 580px;
  margin: 0 auto;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.25s ease;
}

.card:hover {
  border-color: rgba(242, 193, 78, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.card-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: inline-block;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Pricing Section */
.pricing {
  max-width: 1240px;
  margin: 0 auto 100px;
  padding: 0 20px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured {
  border-color: rgba(242, 193, 78, 0.5);
  background: linear-gradient(180deg, rgba(242, 193, 78, 0.05) 0%, var(--surface) 100%);
  box-shadow: 0 12px 40px rgba(242, 193, 78, 0.12);
}

.price-card .badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--cue), #e6a817);
  color: #0c0e14;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-note {
  max-width: 760px;
  margin: 32px auto 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.price-note p + p {
  margin-top: 10px;
}

.price-note a {
  color: var(--cue);
}

.price-card p a {
  color: var(--cue);
}

.purchase-terms {
  color: var(--text);
}

.price-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1;
}

.price-amount span {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
}

.price-features {
  list-style: none;
  margin: 24px 0 32px;
  padding: 0;
  flex: 1;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  margin-bottom: 12px;
  color: #d1d5db;
  line-height: 1.45;
  text-align: start;
}

.price-features li svg {
  width: 16px;
  height: 16px;
  fill: var(--cue);
  flex-shrink: 0;
  margin-top: 2px;
}

.price-features li span {
  flex: 1;
}

/* Footer */
footer {
  border-top: 1px solid var(--surface-border);
  padding: 40px 20px;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-muted);
  font-size: 13.5px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-links a:hover { color: var(--text); }
  

/* ---------------------------------------------------------------- languages */
/* Scripts Inter/Outfit don't cover use the system's fonts; Vietnamese stays on Inter (whole words in one font). */
:lang(ar) { --font-display: system-ui, 'Segoe UI', 'Noto Sans Arabic', Tahoma, sans-serif; --font-body: system-ui, 'Segoe UI', 'Noto Sans Arabic', Tahoma, sans-serif; }
:lang(hi) { --font-display: system-ui, 'Nirmala UI', 'Noto Sans Devanagari', sans-serif; --font-body: system-ui, 'Nirmala UI', 'Noto Sans Devanagari', sans-serif; }
:lang(ja) { --font-display: system-ui, 'Hiragino Sans', 'Yu Gothic UI', 'Noto Sans JP', sans-serif; --font-body: system-ui, 'Hiragino Sans', 'Yu Gothic UI', 'Noto Sans JP', sans-serif; }
:lang(ko) { --font-display: system-ui, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif; --font-body: system-ui, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif; }
:lang(zh) { --font-display: system-ui, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; --font-body: system-ui, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; }
:lang(vi) { --font-display: 'Inter', system-ui, sans-serif; }

.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; color: var(--text-muted); font-weight: 500; font-size: 14px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { color: var(--text); }
.lang-menu ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 20; list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 2px 12px;
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: 12px; padding: 12px 14px;
  max-height: 70vh; overflow: auto; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.lang-menu ul a { display: block; padding: 4px 2px; color: var(--text-muted); text-decoration: none; font-size: 14px; }
.lang-menu ul a:hover, .lang-menu ul a[aria-current="page"] { color: var(--cue); }
.footer-langs { max-width: 1100px; margin: 0 auto; padding: 0 24px 40px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.footer-langs h2 { width: 100%; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.footer-langs a { color: var(--text-muted); text-decoration: none; }
.footer-langs a:hover, .footer-langs a[aria-current="page"] { color: var(--cue); }
[dir="rtl"] .card, [dir="rtl"] .section-head, [dir="rtl"] .price-card { text-align: start; }
