/*
 * Pliego Mail — landing & legal pages
 * Visual language pulled from the iOS app icon: deep blue
 * gradient backdrop, soft glass cards, white type, subtle
 * accent halos.
 */

:root {
  --blue-light: #0A8DFC;
  --blue-mid:   #1A52EB;
  --blue-deep:  #1234C7;
  --blue-night: #0A1F8A;
  --ink:        #0E1530;
  --ink-soft:   #4A5478;
  --ink-mute:   #6B7390;
  --paper:      #FFFFFF;
  --paper-soft: #F5F7FB;
  --border:     rgba(15, 36, 90, 0.10);
  --shadow-lg:  0 24px 60px -16px rgba(15, 36, 90, 0.30);
  --shadow-md:  0 12px 32px -10px rgba(15, 36, 90, 0.18);
  --radius-lg:  24px;
  --radius-md:  16px;
  --radius-sm:  12px;
  --max-width:  1080px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter",
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper-soft);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--blue-mid);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--blue-deep); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Top bar ─────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(15, 36, 90, 0.18);
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav a {
  font-size: 15px;
  color: var(--ink-soft);
  font-weight: 500;
}
.nav a:hover { color: var(--ink); }

/* Language switcher pill: small ES | EN toggle that swaps the
 * current page for its sibling in the other locale. The
 * `aria-current` attribute on the active language picks up the
 * accent fill below.
 */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
}
.lang-switch a {
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] {
  background: var(--blue-mid);
  color: var(--paper);
}

@media (max-width: 600px) {
  .nav { gap: 14px; }
  .nav a { font-size: 14px; }
  .lang-switch a { padding: 4px 9px; font-size: 11px; }
}

/* ─── Hero ────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 80px 0 100px;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(180deg, var(--blue-light) 0%, var(--blue-mid) 55%, var(--blue-deep) 100%);
  color: var(--paper);
  overflow: hidden;
}

.hero::after {
  /* Soft halo behind the icon. */
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255,255,255,0.20), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-icon {
  width: 124px;
  height: 124px;
  border-radius: 28px;
  box-shadow:
    0 20px 50px rgba(0, 20, 80, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.22) inset;
  animation: floatIn 0.9s cubic-bezier(0.2, 0.7, 0.2, 1.1) 0.05s both;
}

@keyframes floatIn {
  from { transform: scale(0.86) translateY(8px); opacity: 0; }
  to   { transform: scale(1)    translateY(0);   opacity: 1; }
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-shadow: 0 2px 10px rgba(0, 12, 50, 0.18);
}

.hero p {
  font-size: clamp(16px, 1.7vw, 19px);
  color: rgba(255, 255, 255, 0.86);
  max-width: 620px;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--paper);
  color: var(--blue-deep);
  box-shadow: 0 8px 20px rgba(0, 12, 50, 0.22);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(0,12,50,0.28); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.20); }

/* ─── Sections ─────────────────────────────────────────────── */

section {
  padding: 80px 0;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-mid);
}

.section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 8px;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 680px;
}

/* ─── Feature grid ─────────────────────────────────────────── */

.features {
  background: var(--paper);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.feature-card {
  background: var(--paper-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
  color: var(--paper);
  box-shadow: 0 6px 14px rgba(26, 82, 235, 0.30);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.feature-card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ─── Privacy callout ──────────────────────────────────────── */

.privacy-callout {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-deep));
  color: var(--paper);
}

.privacy-callout .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

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

.privacy-callout h2 {
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.privacy-callout p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.privacy-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.privacy-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.privacy-point .check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.privacy-point strong { display: block; }
.privacy-point span { color: rgba(255, 255, 255, 0.78); font-size: 15px; }

/* ─── Legal pages ──────────────────────────────────────────── */

.legal {
  background: var(--paper);
  flex: 1;
}

.legal-hero {
  background: linear-gradient(180deg, var(--blue-light) 0%, var(--blue-deep) 100%);
  color: var(--paper);
  padding: 70px 0 80px;
  text-align: center;
}

.legal-hero h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-hero p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.legal-content h2:first-of-type { margin-top: 0; }

.legal-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--ink);
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 22px;
}

.legal-content li { margin-bottom: 6px; }

.legal-content strong { color: var(--ink); }

.legal-content .toc {
  background: var(--paper-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 40px;
}

.legal-content .toc strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-mid);
  margin-bottom: 8px;
}

.legal-content .toc ol {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
}

.legal-content .toc a {
  color: var(--ink-soft);
  font-weight: 500;
}
.legal-content .toc a:hover { color: var(--blue-mid); }

.callout-box {
  background: rgba(26, 82, 235, 0.06);
  border: 1px solid rgba(26, 82, 235, 0.18);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 15px;
}

.callout-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-deep);
}

/* ─── Footer ───────────────────────────────────────────────── */

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.66);
  padding: 36px 0;
  font-size: 14px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer .brand { color: rgba(255, 255, 255, 0.92); }

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.66);
}
.footer-links a:hover { color: var(--paper); }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
}
