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

html { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #1a1a1a;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* main grows to push footer to bottom on short pages */
body > main { flex: 1 0 auto; }
body > .site-footer { flex-shrink: 0; }

a { color: #1565c0; }
a:hover { color: #0d47a1; }

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Header ===== */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid #e6e8eb;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  font-size: 0;
}

.header-logo::before {
  content: "M";
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
  box-shadow: 0 1px 2px rgba(13,71,161,0.2);
  transition: transform 0.15s, box-shadow 0.15s;
}

.header-logo:hover::before {
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(13,71,161,0.28);
}

/* Header title: per-page H1 + subtitle inline with logo */
.header-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.header-title .page-h1 {
  font-size: 0.98rem;
  font-weight: 600;
  color: #0d1b2a;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-title .page-sub {
  font-size: 0.72rem;
  color: #6b7785;
  margin: 1px 0 0;
  line-height: 1.3;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 1px;
  flex-shrink: 0;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.lang-switch a,
.lang-switch strong {
  padding: 4px 7px;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
}

.lang-switch a {
  color: #8a96a3;
  font-weight: 500;
}

.lang-switch a:hover {
  color: #0d47a1;
  background: #f1f5fb;
}

.lang-switch strong {
  color: #0d47a1;
  background: #eaf2fc;
  font-weight: 600;
}

.lang-switch .sep {
  color: #d6dae0;
  font-size: 0.7rem;
  padding: 0 1px;
}

/* ===== Google Play Badge ===== */
.gplay-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #0d1b2a;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.005em;
}

.gplay-badge:hover { background: #1a2e44; color: #fff; transform: translateY(-1px); }
.gplay-badge svg { flex-shrink: 0; }

/* Badge variant inside header — slim outlined */
.header-btns .gplay-badge,
.site-header .gplay-badge {
  background: #fff;
  border: 1px solid #d6dae0;
  color: #0d1b2a;
  font-size: 0.78rem;
  padding: 6px 11px;
  gap: 6px;
  transform: none;
}

.header-btns .gplay-badge:hover,
.site-header .gplay-badge:hover {
  border-color: #1a73e8;
  color: #0d47a1;
  background: #f7faff;
  transform: none;
}

.header-btns .gplay-badge svg {
  color: #1a73e8;
}

/* ===== Navigation ===== */
.site-nav {
  background: #fff;
  border-bottom: 1px solid #e6e8eb;
}

.nav-list {
  display: flex;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0;
  padding: 0;
}

.nav-list::-webkit-scrollbar { display: none; }

.nav-list li { margin: 0; }

.nav-list a {
  display: block;
  padding: 11px 14px;
  color: #5f6c7b;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}

.nav-list a:hover {
  color: #0d47a1;
}

.nav-list a.active {
  color: #0d47a1;
  border-bottom-color: #1a73e8;
  font-weight: 600;
}

/* ===== Main Content ===== */
main { padding: 24px 0 52px; }

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.page-subtitle {
  font-size: 0.95rem;
  color: #607d8b;
  margin-bottom: 24px;
}

h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 28px 0 10px;
  color: #0d1b2a;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 18px 0 6px;
}

p { margin-bottom: 10px; }

ul, ol { margin: 6px 0 14px 20px; }
li { margin-bottom: 5px; }

/* ===== Standard Switcher (tabs) ===== */
.std-switcher {
  display: inline-flex;
  background: #f0f3f7;
  border: 1px solid #e1e5ea;
  border-radius: 8px;
  padding: 3px;
  margin: 18px 0 14px;
  gap: 2px;
  flex-wrap: wrap;
  max-width: 100%;
}

.std-tab {
  background: transparent;
  border: none;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #5f6c7b;
  cursor: pointer;
  border-radius: 6px;
  white-space: nowrap;
  font-family: inherit;
  transition: color 0.12s, background 0.12s;
}

.std-tab:hover { color: #0d47a1; }

.std-tab.active {
  background: #fff;
  color: #0d47a1;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(13,71,161,0.08), 0 0 0 1px rgba(13,71,161,0.06);
}

.std-pane { display: none; }
.std-pane.active { display: block; }

/* ===== Popular size pills ===== */
.popular-sizes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 6px 0 14px;
}


.popular-label {
  font-size: 0.8rem;
  color: #6b7785;
  margin-right: 4px;
  font-weight: 500;
}

.size-pill {
  background: #fff;
  border: 1px solid #d6dae0;
  color: #1a2332;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.12s;
}

.size-pill:hover {
  border-color: #1a73e8;
  color: #0d47a1;
  background: #f7faff;
}

.size-pill.active {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #fff;
}

/* ===== Tables ===== */
.table-wrap {
  overflow-x: auto;
  margin: 12px 0 20px;
  border-radius: 8px;
  border: 1px solid #dde3e8;
  -webkit-overflow-scrolling: touch;
}

table { border-collapse: collapse; width: 100%; min-width: 300px; }

thead th {
  background: #1565c0;
  color: #fff;
  text-align: left;
  padding: 10px 13px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

tbody tr:nth-child(even) { background: #f7f9fb; }
tbody td { padding: 8px 13px; border-bottom: 1px solid #eaeef2; font-size: 0.88rem; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #eef4fb; }

/* Continuation row: same thread family as the row above */
tbody tr.row-cont td:nth-child(2) {
  position: relative;
  padding-left: 28px;
  color: #5f6c7b;
}
tbody tr.row-cont td:nth-child(2)::before {
  content: "↳";
  position: absolute;
  left: 12px;
  color: #b6becc;
  font-size: 0.95em;
  line-height: 1;
  top: 50%;
  transform: translateY(-50%);
}
/* Soften horizontal divider above a continuation row (group visually) */
tbody tr:has(+ tr.row-cont) td { border-bottom-color: #f1f4f7; }

tbody tr.highlight {
  background: #fff8c5 !important;
  box-shadow: inset 3px 0 0 #f59f00;
  animation: rowFlash 0.4s ease-out;
}

@keyframes rowFlash {
  0% { background: #fff3a3; }
  100% { background: #fff8c5; }
}

.table-note { font-size: 0.78rem; color: #90a4ae; margin-top: -12px; margin-bottom: 20px; }

/* ===== CTA Block (compact horizontal) ===== */
.cta-block {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f5f7fa;
  border: 1px solid #dde3e8;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.cta-block-title {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a2332;
  min-width: 180px;
}

.cta-block-text { display: none; }

/* btn-group inside cta-block is a passthrough */
.btn-group { display: contents; }

/* CTA Card — standout block under the table */
.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 10px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #f0f6ff 0%, #e7f0fb 100%);
  border: 1px solid #c5d8f5;
  border-radius: 10px;
  flex-wrap: wrap;
  box-shadow: 0 1px 2px rgba(13,71,161,0.04);
}

.cta-card-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0d1b2a;
  line-height: 1.4;
  flex: 1;
  min-width: 200px;
  letter-spacing: -0.005em;
}

.cta-card .gplay-badge.cta-card-btn {
  background: #1a73e8;
  color: #fff;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 18px;
  gap: 8px;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(26,115,232,0.25);
}

.cta-card .gplay-badge.cta-card-btn:hover {
  background: #1558b0;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(26,115,232,0.32);
}

.cta-card .gplay-badge.cta-card-btn svg { color: #fff; }

@media (max-width: 480px) {
  .cta-card { padding: 14px 14px; }
  .cta-card-text { font-size: 0.88rem; min-width: 0; }
  .cta-card .gplay-badge.cta-card-btn { width: 100%; justify-content: center; }
}

/* ===== Feature Grid ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 16px 0 28px;
}

.feature-card {
  background: #f8f9fa;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  padding: 14px;
}

.feature-icon { display: none; }
.feature-title { font-weight: 600; font-size: 0.88rem; margin-bottom: 3px; }
.feature-text { font-size: 0.8rem; color: #607d8b; line-height: 1.5; }

/* ===== FAQ ===== */
.faq-list { margin: 12px 0; }

.faq-item {
  border: 1px solid #dde3e8;
  border-radius: 7px;
  margin-bottom: 6px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: #f8f9fa;
  border: none;
  text-align: left;
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #0d1b2a;
  gap: 8px;
}

.faq-question:hover { background: #eef4fb; }

.faq-toggle {
  color: #1565c0;
  font-size: 1.2rem;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s;
}

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

.faq-answer {
  display: none;
  padding: 12px 14px;
  font-size: 0.85rem;
  color: #37474f;
  border-top: 1px solid #e8eaed;
  line-height: 1.6;
}

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

/* ===== Misc ===== */
.disclaimer {
  background: #fffde7;
  border-left: 3px solid #ffc107;
  padding: 12px 14px;
  margin: 24px 0;
  font-size: 0.82rem;
  color: #5d4037;
  border-radius: 0 6px 6px 0;
}

.intro-box {
  background: #f5f7fa;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  font-size: 0.92rem;
}

/* ===== Sticky CTA (mobile) ===== */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a2332;
  padding: 8px 16px;
  z-index: 150;
  box-shadow: 0 -1px 6px rgba(0,0,0,0.2);
}

/* sticky-inner is a layout passthrough */
.sticky-inner { display: contents; }

.sticky-cta .gplay-badge {
  width: 100%;
  justify-content: center;
  background: #1a73e8;
  padding: 10px 16px;
  font-size: 0.88rem;
  border: none;
}

.sticky-cta .gplay-badge:hover { background: #1558b0; }

/* ===== Footer ===== */
.site-footer {
  background: #1a2332;
  color: #90a4ae;
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  font-size: 0.84rem;
}

.footer-col h4 { color: #eceff1; font-size: 0.84rem; font-weight: 600; margin-bottom: 8px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 5px; }
.footer-col a { color: #78909c; text-decoration: none; font-size: 0.84rem; }
.footer-col a:hover { color: #90caf9; }

.footer-bottom {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #263238;
  font-size: 0.78rem;
  color: #546e7a;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .page-title { font-size: 1.35rem; }
  h2 { font-size: 1.05rem; }
  .sticky-cta { display: block; }
  main { padding-bottom: 64px; }
  .cta-block { flex-direction: column; align-items: flex-start; gap: 10px; }
  .features { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; gap: 14px; }
  .header-inner { gap: 10px; padding: 10px 0; }
  .header-title .page-h1 { font-size: 0.9rem; }
  .header-title .page-sub { display: none; }
  .lang-switch { font-size: 0.7rem; }
}

@media (max-width: 420px) {
  .features { grid-template-columns: 1fr; }
  .gplay-badge { width: 100%; justify-content: center; }
  .header-btns .gplay-badge,
  .site-header .gplay-badge { width: auto; }
}
