/* Triq eSIM – Theme aligned to brand palette
   Brand (Primary): #FFBD04, #191919
   Secondary: #FFFFFF
   Accents: #eaeaea, #d8d8d8, #f21d46 (alert), #6dd47e (CTA)
*/

:root {
  --bg: #191919;           /* dark canvas */
  --bg-2: #1f1f1f;
  --text: #ffffff;         /* secondary white as text on dark */
  --muted: #d8d8d8;        /* muted text from palette */
  --brand: #FFBD04;        /* brand yellow */
  --primary: #6dd47e;      /* CTA (WhatsApp-like green) */
  --accent: #FFBD04;       /* accent lines/badges */
  --danger: #f21d46;       /* error/warning red */
  --border: rgba(255,255,255,0.12);
  --card: rgba(255,255,255,0.05);
  --glass: rgba(255,255,255,0.08);
  --shadow: rgba(0,0,0,0.4);
}

/* REMOVED: @media (prefers-color-scheme: light) block 
   This ensures the site stays dark regardless of phone settings.
*/

* { box-sizing: border-box; }

html {
  /* Fixes the "white gap" when pulling down/overscrolling on mobile */
  background-color: var(--bg);
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh; /* Ensures background covers full height even with little content */
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  
  /* Background Setup */
  background-color: var(--bg); /* Fallback */
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(255,189,4,0.12) 0%, transparent 60%),
    radial-gradient(800px 600px at 120% 10%, rgba(255,189,4,0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { width: min(1120px, 92vw); margin: 0 auto; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  background: linear-gradient(180deg, rgba(25, 25, 25, 0.85), rgba(25, 25, 25, 0.6));
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .3px;
  text-decoration: none; color: var(--text);
}

.brand .logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: conic-gradient(from 210deg, var(--brand), #e0aa03, #ffd75a, var(--brand));
  box-shadow: 0 6px 20px var(--shadow), inset 0 0 0 2px rgba(255,255,255,.08);
}

.menu a {
  color: var(--muted); text-decoration: none; margin-left: 18px; font-weight: 600;
  transition: color 0.2s ease;
}
.menu a:hover { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 32px; }
.grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; }

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 24px; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 30px var(--shadow);
}

.hero .card { padding: 28px; }

.h1 { font-size: clamp(28px, 4vw, 48px); line-height: 1.05; margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 24px; }

.row { display: flex; gap: 12px; flex-wrap: wrap; }

.input, .select, .textarea {
  width: 100%; padding: 14px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.04); color: var(--text);
  font-size: 16px; outline: none;
}
.input:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,189,4,.2); }
.textarea { min-height: 120px; resize: vertical; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.06); color: var(--text); text-decoration: none; font-weight: 700;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(180deg, var(--primary), #48c86a);
  color: #0a1b11; border-color: rgba(0,0,0,0.05);
}
.btn-outline { background: transparent; border-color: var(--border); }

.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 999px;
  background: rgba(255,189,4,.15); color: #ffdf74; font-weight: 700; border: 1px solid rgba(255,189,4,.35);
  width: fit-content;
  margin-bottom: 20px;
}

/* Features */
.features { padding: 22px; display: grid; gap: 16px; }
.feature {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 14px; background: var(--glass); border: 1px solid var(--border);
}
.feature .ic {
  width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(180deg, var(--brand), #e0aa03);
}

/* Footer */
.footer { padding: 36px 0 60px; color: var(--muted); font-size: 14px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Doc page shared styles */
.page { padding: 48px 0; }
.prose {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 28px;
  box-shadow: 0 8px 28px var(--shadow);
}
.prose h1 { margin-top: 0; font-size: clamp(24px,3.5vw,36px); }
.prose h2 { margin-top: 28px; font-size: 22px; border-left: 4px solid var(--accent); padding-left: 10px; }
.prose p, .prose li { color: var(--muted); line-height: 1.65; }
.prose ul { padding-left: 18px; }
.small { font-size: 12px; color: var(--muted); }

/* Utility */
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.center { text-align: center; }
hr.sep { border: none; height: 1px; background: var(--border); margin: 20px 0; }

/* Alert helpers */
.alert { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); }
.alert-danger { background: rgba(242,29,70,.12); color: #ffc2cf; border-color: rgba(242,29,70,.35); }

/* === Mobile nav (hamburger) === */
.hamburger {
  display: none;
  align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.06);
  cursor: pointer;
}
.hamburger:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.hamburger .bar { display: block; width: 20px; height: 2px; margin: 3px 0; background: var(--text); border-radius: 2px; }

@media (max-width: 900px) {
  .nav { position: relative; }
  .hamburger { display: inline-flex; }
  .menu {
    position: absolute; right: 0; top: 56px;
    background: #191919; /* Force solid dark bg for dropdown */
    border: 1px solid var(--border);
    border-radius: 14px; padding: 10px;
    box-shadow: 0 12px 30px var(--shadow);
    display: none; flex-direction: column; min-width: 220px;
    z-index: 50;
  }
  .menu.open { display: flex; }
  .menu a { margin: 6px 8px; }
}