/* pubgists.com — Readwise-inspired, candy bubble aesthetic */

:root {
  --blue: #4AADE0;
  --blue-light: #7CC8ED;
  --blue-dark: #2E8BC0;
  --green: #7BC142;
  --green-light: #9DD66B;
  --green-dark: #5A9E2E;
  --bg: #FDFBF7;
  --bg-alt: #F5F0E8;
  --text: #1a1a2e;
  --text-muted: #5a5a7a;
  --text-light: #8a8aaa;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 50px;
  --shadow: 0 4px 20px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 8px 40px rgba(26, 26, 46, 0.12);
  --shadow-bubble: 0 6px 24px rgba(74, 173, 224, 0.15), 0 2px 8px rgba(123, 193, 66, 0.1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1120px;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('assets/candy-backdrop.jpg') center center / cover no-repeat;
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

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

.hidden { display: none !important; }

/* Header */
.header {
  position: sticky;
  top: 0;
  background: rgba(74, 173, 224, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 100;
  padding: 16px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link { text-decoration: none; }
.logo { height: 36px; display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-link:hover { color: #ffffff; }

.lang-switch {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}
.lang-switch:hover { background: rgba(255, 255, 255, 0.3); }

.lang-option {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.15s;
}
.lang-option.active { color: #ffffff; }
.lang-divider { color: rgba(255, 255, 255, 0.4); font-weight: 300; }

/* Hero */
.hero {
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 480px;
}

.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 10%;
  right: 10%;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.05) 100%);
  border-radius: 50px;
  pointer-events: none;
  z-index: 1;
  filter: blur(1px);
}
.btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(0deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0) 100%);
  border-radius: 0 0 var(--radius-pill) var(--radius-pill);
  pointer-events: none;
  filter: blur(1px);
}

.btn-primary {
  background: linear-gradient(180deg, #72C9F0 0%, #4AADE0 30%, #2E8BC0 70%, #1F6E9E 100%);
  color: var(--white);
  box-shadow:
    0 6px 20px rgba(74, 173, 224, 0.4),
    0 2px 6px rgba(74, 173, 224, 0.25),
    inset 0 -3px 6px rgba(0, 0, 0, 0.15),
    inset 0 2px 3px rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 8px 28px rgba(74, 173, 224, 0.45),
    0 4px 8px rgba(74, 173, 224, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.12),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}
.btn-primary:active {
  transform: translateY(0px) scale(0.98);
  box-shadow:
    0 2px 8px rgba(74, 173, 224, 0.3),
    inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  background: linear-gradient(180deg, #ffffff 0%, #f4f9fd 40%, #e8f1f8 100%);
  color: var(--blue-dark);
  border: 2px solid var(--blue);
  box-shadow:
    0 4px 14px rgba(74, 173, 224, 0.15),
    inset 0 -2px 4px rgba(0, 0, 0, 0.05),
    inset 0 2px 3px rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(74, 173, 224, 0.5);
}
.btn-outline:hover {
  background: linear-gradient(180deg, #72C9F0 0%, #4AADE0 30%, #2E8BC0 70%, #1F6E9E 100%);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 8px 28px rgba(74, 173, 224, 0.45),
    inset 0 -3px 6px rgba(0, 0, 0, 0.15),
    inset 0 2px 3px rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-large {
  padding: 20px 44px;
  font-size: 18px;
}

.btn-green {
  background: linear-gradient(180deg, #A3E46E 0%, #7BC142 30%, #5A9E2E 70%, #448024 100%);
  color: var(--white);
  box-shadow:
    0 6px 20px rgba(123, 193, 66, 0.4),
    0 2px 6px rgba(123, 193, 66, 0.25),
    inset 0 -3px 6px rgba(0, 0, 0, 0.15),
    inset 0 2px 3px rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-green:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 8px 28px rgba(123, 193, 66, 0.5),
    0 4px 8px rgba(123, 193, 66, 0.3),
    inset 0 -3px 6px rgba(0, 0, 0, 0.15),
    inset 0 2px 3px rgba(255, 255, 255, 0.25);
}

.interest-note {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}
.interest-link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--blue-light);
}
.interest-link:hover { border-bottom-color: var(--blue); }

/* Phone mockup */
.hero-mockup {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 300px;
  background: var(--text);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.1) inset;
  transform: rotate(2deg);
}

.phone-screen {
  background: var(--white);
  border-radius: 26px;
  overflow: hidden;
  padding: 16px;
}

.mock-header {
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
  margin-bottom: 12px;
}

.mock-logo-bar {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mock-date {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

.mock-item {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.mock-item:last-child { border-bottom: none; }

.mock-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.badge-green { background: rgba(123, 193, 66, 0.15); color: var(--green-dark); }
.badge-blue { background: rgba(74, 173, 224, 0.15); color: var(--blue-dark); }

.mock-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.3;
}

.mock-text {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.4;
}

.mock-source {
  font-size: 9px;
  color: var(--text-light);
  margin-top: 4px;
  font-style: italic;
}

/* What is section */
.what-is {
  padding: 80px 0;
  background: var(--bg-alt);
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.what-is-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.what-is-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.what-is-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-bubble);
}

.what-is-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(180deg, #7CC8ED 0%, var(--blue) 50%, var(--blue-dark) 100%);
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow:
    0 4px 12px rgba(74, 173, 224, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.12),
    inset 0 2px 4px rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  position: relative;
}
.what-is-icon::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 8px;
  right: 8px;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%);
  border-radius: 50%;
  pointer-events: none;
}

.what-is-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.what-is-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Tiers */
.tiers {
  padding: 80px 0;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.tier-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-bubble);
}

.tier-featured {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-bubble);
}

.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #8FD458 0%, var(--green) 50%, var(--green-dark) 100%);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow:
    0 3px 10px rgba(123, 193, 66, 0.35),
    inset 0 -1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.tier-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.tier-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 4px;
}

.tier-period {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
}

.tier-note {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 20px;
}

.tier-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.tier-features li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
}
.tier-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.tier-btn { width: 100%; text-align: center; }

/* Topics */
.topics {
  padding: 60px 0;
  background: var(--bg-alt);
}

.topic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 700px;
  margin: 32px auto 0;
}

.topic-pill {
  background: linear-gradient(180deg, #ffffff 0%, #f0f7fc 100%);
  border: 1px solid rgba(74, 173, 224, 0.2);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-dark);
  box-shadow:
    0 2px 8px rgba(74, 173, 224, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}
.topic-pill:hover {
  background: linear-gradient(180deg, #5DBDE8 0%, var(--blue) 50%, var(--blue-dark) 100%);
  color: var(--white);
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 6px 18px rgba(74, 173, 224, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
  border-color: transparent;
}

.pill-alt {
  border-color: rgba(123, 193, 66, 0.2);
  color: var(--green-dark);
  box-shadow: 0 2px 8px rgba(123, 193, 66, 0.08);
}
.pill-alt:hover {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(123, 193, 66, 0.25);
}

/* CTA bottom */
.cta-bottom {
  padding: 80px 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  color: var(--white);
}

.cta-box h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-box p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 28px;
}

.cta-box .btn-primary {
  background: var(--white);
  color: var(--blue-dark);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.cta-box .btn-primary:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.cta-box .interest-note { color: rgba(255,255,255,0.9); }
.cta-box .interest-link {
  color: var(--white);
  border-bottom-color: rgba(255,255,255,0.5);
}

/* Footer */
.footer {
  padding: 24px 0;
  border-top: 1px solid rgba(26, 26, 46, 0.06);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-light);
}

.footer-right {
  display: flex;
  gap: 20px;
}

.footer-right a {
  color: var(--text-light);
  text-decoration: none;
}
.footer-right a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 40px 0 40px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 16px; max-width: 100%; }

  .phone-frame {
    width: 240px;
    transform: rotate(0deg);
  }

  .what-is-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .tier-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .section-title { font-size: 28px; }

  .cta-box {
    padding: 40px 24px;
  }
  .cta-box h2 { font-size: 24px; }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .what-is-grid { grid-template-columns: 1fr; }
  .nav { gap: 12px; }
  .nav-link { font-size: 12px; }
}

/* Legal pages */
.legal {
  padding: 60px 0;
  max-width: 720px;
  margin: 0 auto;
}

.legal h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text);
}

.legal h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal p, .legal li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal ul { padding-left: 24px; }
.legal a { color: var(--blue); }
