/* Cubacel Roaming – mobile-first */
:root {
  --color-bg: #f8f9fa;
  --color-surface: #fff;
  --color-text: #1a1a1a;
  --color-muted: #555;
  --color-accent: #0d6efd;
  --color-accent-hover: #0a58ca;
  --color-border: #dee2e6;
  --font-sans: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --space: 1rem;
  --max-width: 42rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: var(--space);
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  z-index: 200;
  transition: top 0.2s;
}

.skip-link:focus {
  top: var(--space);
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space);
}

.site-logo {
  display: block;
  line-height: 0;
}

.site-logo img {
  display: block;
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  padding: 0 var(--space);
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-link {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link-active {
  text-decoration: underline;
}

.nav-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space) 3rem;
}

.hero {
  padding: 2.5rem 0;
  text-align: center;
}

.hero-logo {
  display: block;
  margin: 0 auto 1rem;
  max-width: 180px;
  height: auto;
  width: 100%;
  object-fit: contain;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.hero-tagline {
  margin: 0 0 1.5rem;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.cta:hover,
.cta:focus-visible {
  background: var(--color-accent-hover);
  color: #fff;
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.section {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
}

.section h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.section p,
.section ul {
  margin: 0 0 1rem;
}

.section ul {
  padding-left: 1.25rem;
}

.section h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.1rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  background: var(--color-surface);
}

.plans-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.plans-table th,
.plans-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.plans-table th {
  background: var(--color-bg);
  font-weight: 600;
}

.plans-table tbody tr:last-child td {
  border-bottom: none;
}

.plans-table td:nth-child(2) {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .plans-table th,
  .plans-table td {
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
  }
}

.ussd {
  font-size: 1.25rem;
  padding: 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  margin: 1rem 0;
}

.cta-mid {
  margin-top: 1rem;
}

.faq {
  margin-top: 1rem;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
  background: var(--color-surface);
  overflow: hidden;
}

.faq-item summary {
  padding: 0.75rem 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-size: 1.25rem;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
  margin-top: 0;
}

.disclaimer {
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: 0.375rem;
  border: 1px solid var(--color-border);
}

.site-footer {
  text-align: center;
  padding: 2rem var(--space);
  color: var(--color-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--color-border);
}

.site-footer a {
  color: var(--color-accent);
}

.last-update {
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 2rem;
  }
}
