/* HiddenPivots — shared site styles */

:root {
  --navy-dark: #0a1a3d;
  --navy: #14275c;
  --navy-light: #1f3a7a;
  --accent-blue: #2f6fed;
  --accent-cyan: #4fd1e8;
  --content-bg: #dce8fb;
  --content-bg-light: #eef4fd;
  --footer-bg: #14171f;
  --footer-text: #b7bcc8;
  --text-dark: #101522;
  --text-body: #333a4d;
  --white: #ffffff;
  --ink: #05070c;
  --gold: #d9a441;
  --gold-hover: #e8b654;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(10, 26, 61, 0.12);
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
}

a {
  color: var(--accent-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e6eaf2;
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy-dark);
}

.site-header .logo img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.site-nav {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--accent-blue);
  text-decoration: none;
}

.site-nav a.active {
  color: var(--accent-blue);
}

/* Hero */

.hero {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  min-height: 640px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 160px;
  margin-left: -80px;
  background: var(--content-bg-light);
  transform: skewX(-9deg);
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 88px 0 88px 48px;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.hero-copy .brand-name {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.hero-copy .service-line {
  font-size: 1.3rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin: 6px 0 26px;
}

.hero-copy .hook-line {
  font-size: 1.15rem;
  font-weight: 600;
  color: #cfd8e6;
  margin: 0 0 24px;
  line-height: 1.4;
}

.hero-copy p {
  font-size: 1.02rem;
  line-height: 1.5;
  color: #aab6c8;
  margin: 0 0 30px;
  max-width: 36ch;
}

.hero-chart {
  position: relative;
  z-index: 0;
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
}

.viewer {
  position: relative;
  width: 100%;
  max-width: 620px;
}

.viewer-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--white);
  /* close to the new charts' native ~1.83 aspect ratio; white backing means any
     rounding gap blends into the charts' own white background instead of showing
     as a letterbox bar */
  aspect-ratio: 1.83;
}

.viewer-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.viewer-frame img.active {
  opacity: 1;
}

.viewer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.viewer-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  flex: 0 0 auto;
}

.viewer-arrow:hover {
  background: var(--gold);
  color: var(--ink);
}

.viewer-dots {
  display: flex;
  gap: 10px;
}

.viewer-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a4b6b;
  border: none;
  cursor: pointer;
  padding: 0;
}

.viewer-dot.active {
  background: var(--gold);
}

/* Content band */

.content-band {
  background: linear-gradient(160deg, var(--content-bg-light), var(--content-bg));
  padding: 88px 24px;
  text-align: center;
}

.content-band .container {
  max-width: 640px;
  margin: 0 auto;
}

.content-band h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--navy-dark);
  margin: 0 0 16px;
}

.content-band p {
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--gold-hover);
  text-decoration: none;
}

.btn-dark {
  background: var(--navy-dark);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--navy);
}

/* Pricing */

.pricing-section {
  padding: 72px 24px 88px;
  text-align: center;
}

.pricing-section h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--navy-dark);
  margin: 0 0 12px;
}

.pricing-note {
  max-width: 640px;
  margin: 0 auto 48px;
  font-weight: 600;
  color: var(--text-dark);
}

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

.plan-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
}

.plan-card .plan-header {
  padding: 18px 16px;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--accent-blue));
}

.plan-card.premium .plan-header {
  background: linear-gradient(135deg, #7a1fa2, #c026d3);
}

.plan-card .plan-price {
  padding: 24px 16px 18px;
  background: linear-gradient(160deg, var(--content-bg-light), var(--content-bg));
}

.plan-card.premium .plan-price {
  background: linear-gradient(160deg, #f6e4fb, #ecc9f7);
}

.plan-card .plan-price .amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
}

.plan-card .plan-price .period {
  display: block;
  font-size: 0.85rem;
  color: var(--text-body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-card .plan-body {
  flex: 1;
  padding: 20px 16px;
  font-size: 0.9rem;
}

.plan-card .plan-body p {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eceff5;
}

.plan-card .plan-body p:last-child {
  border-bottom: none;
}

.plan-card .plan-footer {
  padding: 18px 16px 24px;
  background: #f7f9fc;
}

.plan-card .btn-subscribe {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
}

.plan-card.premium .btn-subscribe {
  background: #9333ea;
}

.plan-card .btn-subscribe:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* Terms page */

.terms-section {
  padding: 56px 24px 80px;
  max-width: 800px;
  margin: 0 auto;
}

.terms-section h1 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  color: var(--navy-dark);
}

.terms-section h2 {
  font-size: 1.2rem;
  color: var(--navy-dark);
  margin-top: 40px;
}

.terms-section p {
  line-height: 1.65;
}

/* Footer */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 56px 24px 32px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.site-footer h3 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: var(--white);
  font-weight: 700;
}

.social-link:hover {
  background: var(--accent-cyan);
  text-decoration: none;
}

.footer-legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #262a35;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.6;
  color: #3d414c;
}

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

  .site-header {
    padding: 20px 20px;
  }

  .site-header .logo {
    font-size: 1.25rem;
    gap: 8px;
  }

  .site-header .logo img {
    width: 24px;
    height: 24px;
  }

  .site-nav {
    gap: 18px;
    font-size: 0.85rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero::after {
    display: none;
  }

  .hero-chart {
    padding: 20px 20px 32px;
  }

  .hero-copy {
    padding: 56px 24px 8px;
    max-width: none;
  }

  .hero-copy .brand-name {
    font-size: 2.3rem;
  }

  .hero-copy .service-line {
    letter-spacing: 0.15em;
    font-size: 1.05rem;
  }
}

@media (max-width: 420px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-copy .brand-name {
    font-size: 2rem;
  }

  .viewer-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
  }
}
