
/* Shared SEO subpages chrome */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #f3f3f3;
  color: #333;
  line-height: 1.5;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: #c61d23;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px 0 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.site-header .header-left {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 6px 8px;
  border-radius: 8px;
}
.site-header .brand:hover { background: rgba(255,255,255,0.12); }
.site-header .brand img { height: 36px; width: auto; }
.site-header .header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-back {
  appearance: none;
  border: 0;
  background: rgba(255,255,255,0.18);
  color: #fff;
  height: 40px;
  padding: 0 14px 0 10px;
  border-radius: 20px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.page-back:hover { background: rgba(255,255,255,0.3); }
.page-back svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}
.lang-switch a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.lang-switch a.is-active { background: #fff; color: #111; }
.register-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.register-btn:hover { background: #000; }

.site-main { min-height: calc(100vh - 64px - 180px); }

.site-footer {
  background: #0b0b0b;
  color: #9a9a9a;
  border-top: 1px solid #1a1a1a;
  margin-top: 40px;
}
.site-footer .footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 20px 20px;
  display: grid;
  gap: 24px;
}
@media (min-width: 720px) {
  .site-footer .footer-inner { grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
}
.site-footer h3 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: #9a9a9a; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-bottom {
  border-top: 1px solid #1a1a1a;
  text-align: center;
  padding: 16px 20px;
  font-size: 0.75rem;
  color: #555;
  background: #080808;
}

/* standalone pages: no fixed overlay */
.page-doc { display: block !important; padding-bottom: 8px; }

/* Legal / company page overlay (Dream11-style document view) */
    .page-overlay {
      position: fixed;
      inset: 0;
      z-index: 1000;
      background: #f5f5f5;
      display: none;
      flex-direction: column;
      overflow: hidden;
    }
    .page-overlay.is-open {
      display: flex;
    }
    body.page-open {
      overflow: hidden;
    }

    .page-overlay-header {
      flex-shrink: 0;
      height: 64px;
      background: #c61d23;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 0 12px 0 8px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    .page-overlay-header .header-left {
      display: flex;
      align-items: center;
      gap: 4px;
      min-width: 0;
    }
    .page-overlay-header .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      color: #fff;
      font-weight: 700;
      font-size: 1.05rem;
      letter-spacing: 0.02em;
      background: none;
      border: 0;
      cursor: pointer;
      padding: 6px 8px;
      border-radius: 8px;
      font-family: inherit;
    }
    .page-overlay-header .brand:hover {
      background: rgba(255,255,255,0.12);
    }
    .page-overlay-header .brand img {
      height: 36px;
      width: auto;
    }
    .page-back {
      appearance: none;
      border: 0;
      background: rgba(255,255,255,0.18);
      color: #fff;
      height: 40px;
      padding: 0 14px 0 10px;
      border-radius: 20px;
      font-size: 0.92rem;
      font-weight: 600;
      font-family: inherit;
      line-height: 1;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
      transition: background 0.15s;
    }
    .page-back:hover {
      background: rgba(255,255,255,0.3);
    }
    .page-back svg {
      width: 18px;
      height: 18px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2.2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .page-overlay-body {
      flex: 1;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      background: #f3f3f3;
    }
    .page-doc {
      display: block;
      color: #333;
      font-size: 15px;
      line-height: 1.65;
      padding-bottom: 48px;
    }
    
    /* Full-bleed hero */
    .doc-hero {
      position: relative;
      min-height: 220px;
      display: flex;
      align-items: flex-end;
      overflow: hidden;
      background: #1a1a1a;
    }
    @media (min-width: 768px) {
      .doc-hero { min-height: 300px; }
    }
    .doc-hero img.hero-bg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }
    .doc-hero::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.75) 100%);
    }
    .doc-hero-inner {
      position: relative;
      z-index: 1;
      width: 100%;
      max-width: 1040px;
      margin: 0 auto;
      padding: 28px 24px 32px;
      color: #fff;
    }
    .doc-hero-inner .eyebrow {
      display: inline-block;
      background: rgba(198,29,35,0.92);
      color: #fff;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      padding: 5px 10px;
      border-radius: 4px;
      margin-bottom: 12px;
    }
    .doc-hero-inner h1 {
      font-size: clamp(1.6rem, 4vw, 2.35rem);
      font-weight: 800;
      line-height: 1.15;
      margin: 0 0 10px;
      color: #fff;
      text-shadow: 0 2px 16px rgba(0,0,0,0.4);
    }
    .doc-hero-inner .lead {
      margin: 0;
      color: rgba(255,255,255,0.88);
      font-size: clamp(0.95rem, 2vw, 1.1rem);
      max-width: 560px;
    }

    .doc-wrap {
      max-width: 1040px;
      margin: 0 auto;
      padding: 0 20px;
    }

    /* Intro card under hero */
    .doc-intro {
      margin-top: -28px;
      position: relative;
      z-index: 2;
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 10px 40px rgba(0,0,0,0.1);
      padding: 24px 22px;
      display: grid;
      gap: 20px;
    }
    @media (min-width: 800px) {
      .doc-intro {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: center;
        padding: 28px;
        gap: 32px;
      }
    }
    .doc-intro h2 {
      margin: 0 0 10px;
      font-size: 1.2rem;
      color: #111;
    }
    .doc-intro p {
      margin: 0 0 10px;
      color: #444;
    }
    .doc-intro p:last-child { margin-bottom: 0; }
    .doc-intro-media {
      border-radius: 14px;
      overflow: hidden;
      background: #0d0d0d;
      box-shadow: 0 8px 28px rgba(0,0,0,0.18);
    }
    .doc-intro-media img {
      width: 100%;
      height: auto;
      display: block;
      max-height: 340px;
      object-fit: cover;
      object-position: top center;
    }
    .doc-intro-media.phone img {
      max-height: 420px;
      object-fit: contain;
      background: linear-gradient(180deg, #1a1a1a, #0a0a0a);
      padding: 12px 12px 0;
    }

    .doc-section {
      margin-top: 28px;
      background: #fff;
      border-radius: 16px;
      padding: 24px 22px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    }
    @media (min-width: 800px) {
      .doc-section { padding: 28px 32px; }
    }
    .doc-section h2 {
      font-size: 1.15rem;
      font-weight: 800;
      color: #111;
      margin: 0 0 14px;
      padding-bottom: 10px;
      border-bottom: 2px solid #f0f0f0;
    }
    .doc-section h3 {
      font-size: 0.98rem;
      font-weight: 700;
      color: #1a1a1a;
      margin: 18px 0 8px;
    }
    .doc-section p {
      margin: 0 0 12px;
      color: #444;
    }
    .doc-section ul, .doc-section ol {
      margin: 0 0 12px;
      padding-left: 20px;
      color: #444;
    }
    .doc-section li { margin-bottom: 8px; }
    .doc-section a {
      color: #c61d23;
      text-decoration: none;
      font-weight: 600;
    }
    .doc-section a:hover { text-decoration: underline; }
    .doc-updated {
      color: #888;
      font-size: 0.82rem;
      margin: 0 0 14px;
    }

    /* Feature cards */
    .feature-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 14px;
      margin-top: 8px;
    }
    @media (min-width: 640px) {
      .feature-grid { grid-template-columns: 1fr 1fr; }
    }
    .feature-card {
      border: 1px solid #eee;
      border-radius: 14px;
      overflow: hidden;
      background: #fafafa;
      display: flex;
      flex-direction: column;
    }
    .feature-card img {
      width: 100%;
      height: 140px;
      object-fit: cover;
      display: block;
    }
    .feature-card .fc-body {
      padding: 14px 16px 16px;
    }
    .feature-card h3 {
      margin: 0 0 6px;
      font-size: 0.98rem;
      color: #111;
    }
    .feature-card p {
      margin: 0;
      font-size: 0.88rem;
      color: #555;
      line-height: 1.5;
    }

    /* How-to steps */
    .step-grid {
      display: grid;
      gap: 16px;
      counter-reset: step;
    }
    @media (min-width: 720px) {
      .step-grid { grid-template-columns: 1fr 1fr; }
    }
    .step-card {
      position: relative;
      border-radius: 14px;
      border: 1px solid #eee;
      background: #fff;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      min-height: 100%;
      box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    }
    .step-card .step-media {
      height: 130px;
      background: #111;
      position: relative;
      overflow: hidden;
    }
    .step-card .step-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.9;
    }
    .step-card .step-num {
      position: absolute;
      top: 12px;
      left: 12px;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: #c61d23;
      color: #fff;
      font-weight: 800;
      font-size: 0.9rem;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 12px rgba(198,29,35,0.45);
      z-index: 1;
    }
    .step-card .step-body {
      padding: 14px 16px 18px;
      flex: 1;
    }
    .step-card h3 {
      margin: 0 0 6px;
      font-size: 1rem;
      color: #111;
    }
    .step-card p {
      margin: 0;
      font-size: 0.9rem;
      color: #555;
    }

    /* Stats row */
    .stat-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-top: 8px;
    }
    .stat-pill {
      text-align: center;
      background: linear-gradient(180deg, #fff 0%, #f8f8f8 100%);
      border: 1px solid #eee;
      border-radius: 12px;
      padding: 14px 8px;
    }
    .stat-pill strong {
      display: block;
      font-size: 1.25rem;
      color: #c61d23;
      font-weight: 800;
    }
    .stat-pill span {
      font-size: 0.75rem;
      color: #666;
    }

    /* Download CTA */
    .cta-banner {
      margin-top: 28px;
      border-radius: 16px;
      overflow: hidden;
      position: relative;
      background: #111;
      color: #fff;
      display: grid;
      gap: 0;
    }
    @media (min-width: 800px) {
      .cta-banner { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
    }
    .cta-banner .cta-copy {
      padding: 28px 24px;
      position: relative;
      z-index: 1;
    }
    .cta-banner h2 {
      margin: 0 0 8px;
      font-size: 1.35rem;
      color: #fff;
      border: 0;
      padding: 0;
    }
    .cta-banner p {
      margin: 0 0 18px;
      color: rgba(255,255,255,0.8);
    }
    .cta-banner .store-btn img {
      height: 48px;
      width: auto;
      border-radius: 8px;
    }
    .cta-banner .cta-media {
      min-height: 180px;
      position: relative;
    }
    .cta-banner .cta-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      min-height: 180px;
      max-height: 260px;
    }

    /* FAQ */
    .faq-item {
      border: 1px solid #eee;
      border-radius: 12px;
      padding: 14px 16px;
      margin-bottom: 10px;
      background: #fafafa;
    }
    .faq-item strong {
      display: block;
      color: #1a1a1a;
      margin-bottom: 6px;
      font-size: 0.95rem;
    }
    .faq-item p {
      margin: 0;
      color: #555;
      font-size: 0.9rem;
    }

    /* Contact chips */
    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }
    @media (min-width: 640px) {
      .contact-grid { grid-template-columns: repeat(4, 1fr); }
    }
    .contact-chip {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 16px 10px;
      border-radius: 12px;
      border: 1px solid #eee;
      background: #fff;
      color: #222 !important;
      text-decoration: none !important;
      font-weight: 700;
      font-size: 0.85rem;
      transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
    }
    .contact-chip:hover {
      border-color: #c61d23;
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    }
    .contact-chip .chip-icon {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: #111;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .contact-chip .chip-icon svg {
      width: 18px;
      height: 18px;
      fill: currentColor;
    }

    /* Legal pages keep readable prose */
    .legal-banner {
      position: relative;
      height: 140px;
      overflow: hidden;
      background: #c61d23;
    }
    .legal-banner img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.35;
    }
    .legal-banner .legal-title {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 20px 24px;
      max-width: 1040px;
      margin: 0 auto;
      width: 100%;
      box-sizing: border-box;
      color: #fff;
    }
    .legal-banner h1 {
      margin: 0 0 4px;
      font-size: 1.6rem;
      font-weight: 800;
      color: #fff;
    }
    .legal-banner .doc-updated {
      color: rgba(255,255,255,0.85);
      margin: 0;
    }
    .legal-body {
      max-width: 860px;
      margin: -20px auto 0;
      position: relative;
      z-index: 1;
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 8px 30px rgba(0,0,0,0.08);
      padding: 28px 22px 36px;
    }
    @media (min-width: 800px) {
      .legal-body { padding: 36px 40px 48px; }
    }
    .legal-body h2 {
      font-size: 1.08rem;
      font-weight: 800;
      color: #111;
      margin: 26px 0 10px;
    }
    .legal-body h3 {
      font-size: 0.95rem;
      font-weight: 700;
      margin: 16px 0 8px;
      color: #222;
    }
    .legal-body p, .legal-body li {
      color: #444;
      font-size: 0.92rem;
    }
    .legal-body p { margin: 0 0 12px; }
    .legal-body ul, .legal-body ol {
      margin: 0 0 12px;
      padding-left: 20px;
    }
    .legal-body li { margin-bottom: 7px; }
    .legal-body a {
      color: #c61d23;
      font-weight: 600;
      text-decoration: none;
    }
    .legal-body a:hover { text-decoration: underline; }
    .legal-body table {
      width: 100%;
      border-collapse: collapse;
      margin: 12px 0 18px;
      font-size: 0.88rem;
    }
    .legal-body th, .legal-body td {
      border: 1px solid #e8e8e8;
      padding: 11px 12px;
      text-align: left;
    }
    .legal-body th {
      background: #f7f7f7;
      color: #222;
      font-weight: 700;
    }
    .rule-grid {
      display: grid;
      gap: 10px;
    }
    @media (min-width: 640px) {
      .rule-grid { grid-template-columns: 1fr 1fr; }
    }
    .rule-card {
      border: 1px solid #eee;
      border-radius: 12px;
      padding: 14px;
      background: #fafafa;
    }
    .rule-card h3 {
      margin: 0 0 6px;
      font-size: 0.92rem;
      color: #c61d23;
    }
    .rule-card p, .rule-card ul {
      margin: 0;
      font-size: 0.85rem;
      color: #555;
    }
    .rule-card ul { padding-left: 16px; margin-top: 6px; }

    .footer-links a {
      cursor: pointer;
    }

/* Blog */
.blog-grid {
  display: grid;
  gap: 18px;
  margin: 28px 0 40px;
}
@media (min-width: 720px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.1);
}
.blog-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.blog-card-body { padding: 16px 18px 20px; }
.blog-card-body h2 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: #111;
  line-height: 1.35;
}
.blog-card-body p {
  margin: 0 0 12px;
  color: #555;
  font-size: 0.9rem;
}
.blog-card-cta {
  color: #c61d23;
  font-weight: 700;
  font-size: 0.88rem;
}
.blog-meta p { margin-bottom: 10px; }
