:root {
  --bg: #fff;
  --ink: #1b1b1b;
  --muted: #6b7280;
  --line: #ededed;
  --shadow: 0 12px 30px rgba(0, 0, 0, .06);
  --radius: 26px;
  --accent: #12b5d1;
  --purple: rgba(124, 58, 237, .35);
}

* {
  box-sizing: border-box
}

html,
body {
  overflow-x: hidden;
}



body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial
}

img {
  display: block;
  max-width: 100%
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px
}

.hero {
  padding: 18px 0 8px
}

.title {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: 64px;
  text-align: center;
  margin: 22px 0 18px;
  color: #3b3b3b;
}

.subbar {
  padding: 18px 0 8px
}

.subbar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

.searchwrap {
  display: flex;
  flex: 1;
  max-width: 760px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.searchwrap input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  outline: none;
  padding: 16px 18px;
  font-size: 22px;
  font-family: "Playfair Display", serif;
  color: #8a8a8a;
  text-overflow: ellipsis;
}

.searchwrap input::placeholder {
  color: #d7d7d7;
  font-family: "Playfair Display", serif;
  font-size: inherit;
}

.searchwrap button {
  border: 0;
  background: #111;
  color: #fff;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
}

.outline {
  padding: 12px 18px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  background: #fff;
  color: #b1b1b1;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 10px 0 16px;
}

.grid-2-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid #ececec;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .10);
}

.card-media {
  height: 160px;
  background: #f3f4f6;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 18px 18px 20px;
}

.card-title {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.15;
  color: #2b2b2b;
}

.card-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.divider {
  border-top: 1px solid var(--line);
  margin-top: 18px;
}

.section-footer {
  padding: 14px 0 24px;
  text-align: center;
}

.down {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #3f3f3f;
}

.arrow {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.arrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #6b7280;
  border-bottom: 2px solid #6b7280;
  transform: rotate(45deg);
}

.pill,
#contactBtn {
  padding: 8px 22px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--purple);
  box-shadow: 0 8px 18px rgba(124, 58, 237, .12);
  cursor: pointer;
  font-weight: 600;
}



.topbar {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.topbar .container {
  padding-top: 6px
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 240px;
}

.logo {
  color: var(--accent);
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.link {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 600;
}

.iconbtn {
  width: 38px;
  height: 38px;
  border: 2px solid #222;
  background: #fff;
  border-radius: 4px;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
}

.icon {
  font-size: 16px;
  line-height: 1
}

.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}

.user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #111;
  padding: 6px 8px;
}

.subbar {
  padding: 14px 0 10px
}

.subbar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}

/* Removed previous broad media queries to use simplified ones above */

.iconbtn-plain {
  border: 0;
  background: transparent;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  box-shadow: none;
}

.iconbtn-plain:hover {
  background: #f3f4f6;
}

.user-dd {
  position: relative;
  cursor: pointer;
}

.user-name {
  font-weight: 600;
  color: #374151;
}

.chev {
  width: 8px;
  height: 8px;
  border-right: 2px solid #9ca3af;
  border-bottom: 2px solid #9ca3af;
  transform: rotate(45deg);
  margin-left: 4px;
  margin-top: -2px;
}

.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .12);
  padding: 8px;
  display: none;
  z-index: 50;
}

.user-dd.open .user-menu {
  display: block;
  animation: fadeIn 0.1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-menu-item {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #111;
  text-decoration: none;
  font-weight: 600;
}

.user-menu-item:hover {
  background: #f3f4f6;
}

.site-footer {
  border-top: 1px solid #eee;
  padding: 18px 0;
  color: #6b7280;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer a {
  color: #6b7280;
  text-decoration: none;
  font-weight: 600;
  margin-left: 14px;
}

.site-footer a:hover {
  text-decoration: underline;
}

.iconbtn.iconbtn-plain {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.iconbtn.iconbtn-plain svg {
  display: block;
}

/* Mobile Menu */
.mobile-menu {
  position: absolute;
  /* Or absolute relative to header */
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding-bottom: 10px;
}

/* Authentication Page Styles */
.auth-container {
  max-width: 400px;
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .auth-container {
    max-width: 100%;
    padding: 0 20px;
    margin-top: 20px;
  }

  .auth-title {
    font-size: 28px !important;
  }
}

@media (max-width:1020px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .title {
    font-size: 42px
  }
}

@media (max-width: 768px) {
  .topbar-inner {
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .brand {
    min-width: auto;
    flex: 1;
    justify-content: flex-start;
  }

  .actions {
    width: auto;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: nowrap;
    margin-top: 0;
    flex: 0 0 auto;
  }

  .subbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .searchwrap {
    max-width: 100%;
  }

  .searchwrap input {
    font-size: 18px;
    padding: 12px 14px;
  }

  .searchwrap button {
    padding: 0 16px;
    font-size: 14px;
  }

  .outline {
    width: 100%;
    text-align: center;
    font-size: 18px;
    padding: 10px;
  }

  .brand {
    min-width: unset;
  }
}

@media (max-width:640px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .title {
    font-size: 32px;
    margin: 12px 0;
  }

  .hero {
    padding: 10px 0;
  }

  .subbar {
    padding: 10px 0;
  }

  .card-media {
    height: 200px;
    /* Taller images on mobile for better visibility */
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .site-footer a {
    margin: 0 8px;
  }

  .user-menu {
    width: 200px;
    right: -10px;
    /* Adjust dropdown position slightly */
  }
}

/* Modern marketing section styles */
.marketing-hero {
  padding: 5rem 1rem 4rem;
  text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.marketing-hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0891b2;
  background: #ecf8ff;
  border-radius: 99px;
  padding: 0.3rem 1rem;
  margin-bottom: 1.5rem;
}

.marketing-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.2;
  max-width: 700px;
  margin: 0 auto 1.25rem;
  color: #1f2937;
}

.marketing-hero .lead {
  font-size: 1.15rem;
  color: #6b7280;
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.marketing-ctas {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary-dark {
  background: linear-gradient(135deg, #0891b2 0%, #0d9488 100%);
  color: white;
  border: none;
  padding: 0.7rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
  cursor: pointer;
}

.btn-primary-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(8, 145, 178, 0.3);
}

.btn-outline-dark-mkt {
  background: white;
  color: #0891b2;
  border: 2px solid #bfdbfe;
  padding: 0.7rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}

.btn-outline-dark-mkt:hover {
  border-color: #0891b2;
  background: #f0f9ff;
}

.features-section {
  padding: 4rem 1rem;
  background: #f9fafb;
}

.features-section .section-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0891b2;
  margin-bottom: 0.5rem;
}

.features-section h2 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 3rem;
  color: #1f2937;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.feature-card p {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0;
}

.steps-section {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: white;
}

.steps-section h2 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 3rem;
  color: white;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.step-num {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.step-title {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.step-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.cta-section {
  padding: 5rem 1rem;
  text-align: center;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.cta-section p {
  color: #6b7280;
  margin-bottom: 2rem;
}

/* Package card styles */
.package-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border-radius: 12px;
  border: none;
  background: white;
}

.package-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.package-card-video-link {
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.package-card-video {
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  background: #1f2937;
}

.package-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: white;
  padding: 1.5rem;
}

.package-card-header {
  flex-shrink: 0;
}

.package-card-title {
  color: #1f2937;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.package-card-description {
  color: #6b7280;
  font-size: 0.875rem;
}

.package-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

.package-video-count {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.package-video-count svg {
  vertical-align: middle;
  margin-right: 4px;
  color: #0891b2;
}

.purchase-alert {
  background: #f0f9ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0;
  text-align: center;
}

.purchase-alert-button {
  background: linear-gradient(135deg, #3b82f6 0%, #0891b2 100%);
  color: white;
  border: none;
  font-weight: 600;
  width: 100%;
  font-size: 0.875rem;
}

.package-card-placeholder {
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

.placeholder-icon {
  color: #9ca3af;
}