/* ── DIEZ Mobile demo site — shared styles ──
   Structure/content pattern modeled on Reach's Slate Mobile demo (slate-mobile.com),
   reskinned with DIEZ brand colors, type, and logo. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { width: 100%; }

:root {
  --pink: #E91E63;
  --purple: #8E2DC0;
  --gradient: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);
  --ink: #2B2B2B;
  --ink-soft: #4A4240;
  --stone: #8A7F76;
  --stone-light: #B5ADA8;
  --bg-warm-1: #F7F3EF;
  --bg-warm-2: #EFE7E1;
  --sand: #EDE4DC;
  --white: #FFFFFF;
  --wa: #25D366;
  --wa-dark: #128C7E;
  --border: rgba(43, 43, 43, 0.1);
  --radius-pill: 999px;
  --radius-card: 20px;
  --shadow-card: 0 10px 30px rgba(43, 27, 41, 0.06);
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink-soft);
  background: var(--bg-warm-1);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  line-height: 1.15;
  font-weight: 600;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gradient); color: var(--white); box-shadow: 0 8px 20px rgba(233, 30, 99, 0.25); }
.btn-secondary { background: var(--white); color: var(--ink); border: 1px solid var(--border); }
.btn-outline { background: transparent; color: var(--pink); border: 1.5px solid var(--pink); }
.btn-whatsapp { background: var(--wa); color: var(--white); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand-word { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 1.35rem; color: var(--ink); letter-spacing: 0.5px; }
.brand-word span { color: var(--pink); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-size: 0.92rem; font-weight: 500; color: var(--ink-soft);
  padding-bottom: 4px; border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--pink); border-color: var(--pink); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.signin-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.92rem; color: var(--ink); }

.nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: 10px;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.site-header.nav-open .nav-toggle .icon-open { display: none; }
.site-header.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 860px) {
  .main-nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-warm-1); border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }
  .main-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .site-header.nav-open .main-nav { max-height: 400px; opacity: 1; }
  .nav-toggle { display: inline-flex; }
  .site-header .wrap { position: relative; }
}

/* ── Hero ── */
.hero {
  padding: 64px 0 56px;
  background: linear-gradient(160deg, var(--bg-warm-1) 0%, var(--bg-warm-2) 100%);
  position: relative; overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--pink); margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--pink); }
.hero p.lead { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 28px; max-width: 460px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-fineprint { font-size: 0.8rem; color: var(--stone); }
.hero-art {
  aspect-ratio: 4/3; border-radius: 28px;
  background: linear-gradient(160deg, #1E1A2E 0%, #3A1F42 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-art::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 30% 20%, rgba(233,30,99,0.35) 0, transparent 45%),
                     radial-gradient(circle at 80% 80%, rgba(142,45,192,0.35) 0, transparent 45%);
}
.hero-art .mark { width: 34%; position: relative; z-index: 1; filter: drop-shadow(0 16px 32px rgba(0,0,0,0.35)); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; aspect-ratio: 16/10; }
}

/* ── Section shells ── */
section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); font-size: 1.02rem; }
.section-tag {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--pink); margin-bottom: 10px; display: block;
}

/* ── Plan cards ── */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 32px 28px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; position: relative;
}
.plan-card.featured { border: 2px solid var(--pink); transform: translateY(-8px); }
.plan-card.featured::before {
  content: 'Most Popular'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: var(--white); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.5px; padding: 5px 16px; border-radius: var(--radius-pill);
}
.plan-name { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 1.15rem; color: var(--ink); margin-bottom: 4px; }
.plan-data { font-size: 2.6rem; font-weight: 700; color: var(--pink); font-family: 'Playfair Display', serif; margin-bottom: 2px; }
.plan-data span { font-size: 1rem; font-weight: 600; color: var(--stone); margin-left: 4px; }
.plan-price-row { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 4px; padding-top: 18px; border-top: 1px dashed var(--border); }
.plan-strike { text-decoration: line-through; color: var(--stone-light); font-size: 0.95rem; }
.plan-price { font-size: 1.9rem; font-weight: 700; color: var(--ink); }
.plan-price span { font-size: 0.95rem; font-weight: 500; color: var(--stone); }
.plan-fee-note { font-size: 0.78rem; color: var(--stone); margin-bottom: 22px; }
.plan-features { flex: 1; margin-bottom: 24px; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--ink-soft); padding: 8px 0; }
.plan-features li::before { content: '✓'; color: var(--pink); font-weight: 700; flex-shrink: 0; }
.plan-broadband { text-align: center; font-size: 0.78rem; color: var(--stone); margin-top: 14px; }

@media (max-width: 900px) {
  .plans-grid { grid-template-columns: 1fr; }
  .plan-card.featured { transform: none; }
}

/* ── Two-column feature rows (BYOD, network) ── */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-row.reverse .feature-media { order: 2; }
.feature-media {
  aspect-ratio: 4/3; border-radius: var(--radius-card);
  background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.feature-media.tint-pink { background: linear-gradient(160deg, #FCE4EC 0%, #F3D9F7 100%); }
.feature-media .glyph { font-size: 4rem; opacity: 0.35; }
.feature-copy h2 { margin-bottom: 14px; }
.feature-copy p { margin-bottom: 24px; font-size: 1.02rem; }

@media (max-width: 860px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-media { order: -1; }
}

/* ── Steps ── */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step-card { text-align: center; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--gradient); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem;
  margin: 0 auto 16px;
}
.step-card h4 { font-size: 1rem; font-family: 'DM Sans', sans-serif; font-weight: 600; color: var(--ink); }

@media (max-width: 760px) {
  .steps-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Email signup ── */
.signup-band {
  background: var(--gradient); color: var(--white); border-radius: 28px;
  padding: 56px 40px; text-align: center;
}
.signup-band h2 { color: var(--white); margin-bottom: 10px; }
.signup-band p { color: rgba(255,255,255,0.9); margin-bottom: 28px; }
.signup-form { display: flex; gap: 12px; max-width: 440px; margin: 0 auto; }
.signup-form input {
  flex: 1; padding: 14px 18px; border-radius: var(--radius-pill); border: none; font-size: 0.95rem;
}
.signup-form button {
  background: var(--ink); color: var(--white); padding: 14px 26px; border-radius: var(--radius-pill);
  font-weight: 600; white-space: nowrap;
}

@media (max-width: 520px) {
  .signup-form { flex-direction: column; }
}

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 4px; font-weight: 600; color: var(--ink); font-size: 1rem; text-align: left;
}
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--pink); transition: transform 0.2s ease; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; font-size: 0.94rem; color: var(--ink-soft); }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 4px 20px; }

/* ── Footer ── */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 56px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-brand .brand-word { color: var(--white); }
.footer-brand .brand-word span { color: var(--pink); }
.footer-brand p { margin-top: 14px; font-size: 0.88rem; color: rgba(255,255,255,0.55); max-width: 260px; }
.footer-col h5 { color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 0.85rem; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.92rem; color: rgba(255,255,255,0.65); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
}

@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ── Generic page header (non-home pages) ── */
.page-hero {
  padding: 56px 0 40px;
  background: linear-gradient(160deg, var(--bg-warm-1) 0%, var(--bg-warm-2) 100%);
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 10px; }
.page-hero p { color: var(--ink-soft); max-width: 520px; margin: 0 auto; }

/* ── Support cards ── */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.support-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 30px 26px; box-shadow: var(--shadow-card); text-align: center;
}
.support-card .icon-circle {
  width: 52px; height: 52px; border-radius: 50%; background: var(--sand);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1.4rem;
}
.support-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.support-card p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 4px; }
.support-card .meta { font-size: 0.8rem; color: var(--stone); }

@media (max-width: 860px) {
  .support-grid { grid-template-columns: 1fr; }
}

/* ── Simple form pages (sign-in, coverage) ── */
.form-card {
  max-width: 440px; margin: 0 auto; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 36px 32px; box-shadow: var(--shadow-card);
}
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-field input { width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border); font-size: 0.95rem; }
.form-note { text-align: center; font-size: 0.85rem; color: var(--stone); margin-top: 18px; }

.coverage-search { display: flex; gap: 12px; max-width: 440px; margin: 0 auto 40px; }
.coverage-search input { flex: 1; padding: 14px 18px; border-radius: var(--radius-pill); border: 1px solid var(--border); font-size: 0.95rem; }
.coverage-map-placeholder {
  max-width: 900px; margin: 0 auto; aspect-ratio: 16/8; border-radius: var(--radius-card);
  background: repeating-linear-gradient(45deg, #f2ece7, #f2ece7 10px, #ece3db 10px, #ece3db 20px);
  display: flex; align-items: center; justify-content: center; color: var(--stone); font-size: 0.95rem;
  border: 1px dashed var(--stone-light);
}

/* ── Legal stub pages ── */
.legal-body { max-width: 720px; margin: 0 auto; }
.legal-body p { margin-bottom: 16px; line-height: 1.7; }

/* ── Placeholder banner note (dev-only marker) ── */
.demo-note {
  background: #FFF7E6; border: 1px solid #F3D08A; color: #7A5A00;
  font-size: 0.8rem; text-align: center; padding: 8px 16px;
}
