/* assets/css/marketing.css — Luxurious Hasidic Aesthetic */

:root{
  --bg: #0a0e1a;
  --surface: #111827;
  --surface-muted: #151c2e;
  --surface-elevated: #1a2236;
  --ink: #f0e6d2;
  --ink-bright: #ffffff;
  --muted: #a09882;
  --line: rgba(201,169,106,.25);
  --line-strong: rgba(201,169,106,.45);
  --accent: #c9a96a;
  --accent-strong: #dfc07a;
  --accent-soft: rgba(201,169,106,.12);
  --accent-glow: rgba(201,169,106,.08);
  --gold: #c9a96a;
  --gold-light: #e8d5a3;
  --gold-dark: #8a6f3e;
  --navy: #0a0e1a;
  --navy-light: #151c2e;
  --shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 80px rgba(201,169,106,.06);
  --shadow-gold: 0 0 30px rgba(201,169,106,.12), 0 0 60px rgba(201,169,106,.06);
  --radius: 22px;
  --max: 1140px;
  --ornament: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 5 L35 15 L30 25 L25 15 Z' fill='none' stroke='%23c9a96a' stroke-width='0.3' opacity='0.15'/%3E%3Cpath d='M5 30 L15 35 L25 30 L15 25 Z' fill='none' stroke='%23c9a96a' stroke-width='0.3' opacity='0.15'/%3E%3Cpath d='M35 30 L45 35 L55 30 L45 25 Z' fill='none' stroke='%23c9a96a' stroke-width='0.3' opacity='0.15'/%3E%3Cpath d='M30 35 L35 45 L30 55 L25 45 Z' fill='none' stroke='%23c9a96a' stroke-width='0.3' opacity='0.15'/%3E%3C/svg%3E");
}

*{ box-sizing: border-box; }
html,body{ margin: 0; padding: 0; }
html{
  --a11y-contrast: 1;
  --a11y-grayscale: 0;
}
body{
  font-family: "Heebo", "Assistant", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
.a11y-scope{
  min-height: 100vh;
  background:
    var(--ornament),
    radial-gradient(ellipse 900px 700px at 85% -10%, rgba(201,169,106,.14), transparent 60%),
    radial-gradient(ellipse 700px 600px at 10% 10%, rgba(201,169,106,.08), transparent 55%),
    radial-gradient(ellipse 600px 600px at 50% 50%, rgba(10,14,26,.95), transparent 70%),
    linear-gradient(180deg, #0c1020 0%, #0a0e1a 55%, #080c16 100%);
  filter: contrast(var(--a11y-contrast)) grayscale(var(--a11y-grayscale));
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
.container{ width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link{
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  transform: translateY(-140%);
  transition: transform .2s ease;
  z-index: 9999;
}
.skip-link:focus{ transform: translateY(0); }

:focus-visible{
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ── Accessibility Widget ── */
.a11y-widget{
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  display: grid;
  gap: 8px;
}
.a11y-toggle{
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy);
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(201,169,106,.3);
}
.a11y-icon{
  width: 18px;
  height: 18px;
}
.a11y-panel{
  width: 240px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px;
}
.a11y-panel__title{
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--gold);
}
.a11y-panel__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.a11y-panel__grid button{
  border: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--ink);
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 12px;
  cursor: pointer;
}
.a11y-panel__grid button[aria-pressed="true"]{
  background: var(--accent-soft);
  border-color: var(--gold);
  color: var(--gold-light);
  font-weight: 700;
}

html.a11y-font-110{ font-size: 110%; }
html.a11y-font-120{ font-size: 120%; }
html.a11y-font-130{ font-size: 130%; }
html.a11y-line-160 body{ line-height: 1.6; }
html.a11y-line-180 body{ line-height: 1.8; }
html.a11y-contrast{ --a11y-contrast: 1.2; }
html.a11y-gray{ --a11y-grayscale: 1; }
html.a11y-underline a{ text-decoration: underline !important; }
html.a11y-no-motion *,
html.a11y-no-motion *::before,
html.a11y-no-motion *::after{
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* ── Top Bar ── */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,14,26,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.topbar__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}
.brand{ display: flex; flex-direction: column; line-height: 1.1; min-width: 0; flex-shrink: 1; overflow: hidden; }
.brand__name{
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(201,169,106,.2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__sub{
  color: var(--muted);
  font-size: 12px;
  font-family: "Playfair Display", "Heebo", serif;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav{ display: flex; gap: 12px; align-items: center; }
.nav-mobile-tools{
  display: none;
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.nav-mobile-tools__title{
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 0;
  color: var(--ink);
}
.nav-mobile-tools__title::-webkit-details-marker{ display: none; }
.nav-mobile-tools__title::after{
  content: "▾";
  font-size: 14px;
  color: var(--gold);
}
.nav-mobile-tools[open] .nav-mobile-tools__title::after{ content: "▴"; }
.nav-mobile-tools__links{
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nav-mobile-tools__links a{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.nav-mobile-tools__links a:hover{ color: var(--gold); border-color: var(--line-strong); }
.nav__dropdown{ position: relative; display: inline-flex; }
.nav__dropdown::after{
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 10px;
}
.nav__dropdown-menu{
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: none !important;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 20;
}
.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu{
  display: block !important;
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav__dropdown-item{
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}
.nav__dropdown-item:hover{
  background: var(--accent-soft);
  color: var(--gold);
}
.nav__link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all .2s ease;
}
.nav__icon{
  width: 16px;
  height: 16px;
  display: inline-block;
}
.nav__link:hover{
  border-color: var(--line);
  color: var(--gold);
  background: var(--accent-soft);
}
.nav__link.is-active{
  background: var(--accent-soft);
  color: var(--gold);
  border-color: var(--line-strong);
}

.topbar__actions{ display: flex; gap: 10px; align-items: center; }

/* ── Buttons ── */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  white-space: nowrap;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(201,169,106,.15);
  border-color: var(--line-strong);
}
.btn--primary{
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy);
  border-color: transparent;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(201,169,106,.25);
}
.btn--primary:hover{
  box-shadow: 0 8px 30px rgba(201,169,106,.35);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}
.btn--ghost{
  background: transparent;
  border-color: var(--line);
  color: var(--gold);
}
.btn--ghost:hover{
  background: var(--accent-soft);
  border-color: var(--line-strong);
}
.btn--full{ width: 100%; }

.main{ padding: 38px 0 70px; }

/* ── News Toast ── */
.news-toast{
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 999;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 12px 14px;
}
.news-toast.news-toast--alert{
  background: #7f1d1d !important;
  border-color: #991b1b !important;
}
.news-toast.news-toast--alert .news-toast__title,
.news-toast.news-toast--alert .news-toast__text,
.news-toast.news-toast--alert .news-toast__link,
.news-toast.news-toast--alert .news-toast__close{
  color: #fff;
}
.news-toast.news-toast--alert .news-toast__sound{
  border-color: rgba(255,255,255,.5);
  color: #fff;
}
.news-toast__title{
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--gold);
}
.news-toast__text{
  font-size: 13px;
  color: var(--muted);
}
.news-toast__actions{
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}
.news-toast__link{
  font-size: 13px;
  color: var(--gold);
}
.news-toast__sound{
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.news-toast__sound:hover{
  border-color: var(--line-strong);
  color: var(--gold);
}
.news-toast__close{
  margin-inline-start: auto;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}

/* ── Hero ── */
.hero{
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
  position: relative;
  overflow: hidden;
}
.hero::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ornament);
  opacity: .3;
  pointer-events: none;
}
.hero::after{
  content: "";
  position: absolute;
  top: -60px;
  left: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,106,.15), transparent 70%);
  pointer-events: none;
}
.hero__kicker{
  color: var(--gold);
  font-weight: 600;
  letter-spacing: .5px;
}
.hero__title{
  font-size: clamp(28px, 4vw, 46px);
  margin: 10px 0 8px;
  font-weight: 900;
  color: var(--ink-bright);
  text-shadow: 0 0 40px rgba(201,169,106,.15);
}
.hero__subtitle{ font-size: 16px; color: var(--muted); margin: 0 0 18px; }
.hero__actions{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.hero--split{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: center;
}
.hero__content{ grid-column: span 7; position: relative; z-index: 1; }
.hero__media{ grid-column: span 5; position: relative; }
.hero__media img{
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.4), 0 0 40px rgba(201,169,106,.08);
  border: 1px solid var(--line);
}
.hero__badge{
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(10,14,26,.92);
  border: 1px solid var(--line-strong);
  color: var(--gold);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  backdrop-filter: blur(8px);
}
.hero__stats{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 18px;
}
.stat{
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  position: relative;
  overflow: hidden;
}
.stat::after{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.stat__value{ font-size: 20px; font-weight: 800; color: var(--gold); }
.stat__label{ color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ── Grid & Cards ── */
.grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.card{
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  position: relative;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.card:hover{
  border-color: var(--line-strong);
  box-shadow: var(--shadow-gold);
}
.course-card{
  display: flex;
  gap: 18px;
  align-items: stretch;
  flex-direction: row;
  direction: ltr;
}
.course-card__media{
  order: 1;
  flex: 0 0 220px;
  max-width: 40%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}
.course-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.course-card__body{
  order: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  direction: rtl;
  text-align: right;
}
.card__title{ font-weight: 800; margin: 0 0 8px; color: var(--ink-bright); }
.card__text{ color: var(--muted); margin: 0; }
.card__meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: var(--gold);
}
.card__actions{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

/* ── Forms ── */
.form-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.form-field{
  display: grid;
  gap: 6px;
}
.form-field label{
  font-weight: 700;
  font-size: 13px;
  color: var(--gold);
}
.form-input{
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 14px;
}
.form-input:focus{
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201,169,106,.15);
}
.form-note{
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.required-mark{
  color: #ef4444;
}
.coupon{
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed var(--line-strong);
  background: var(--surface-muted);
}
.coupon__label{
  font-weight: 700;
  font-size: 13px;
  color: var(--gold);
}
.coupon__fields{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}
.coupon__input{
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 14px;
}
.coupon__input:focus{
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201,169,106,.15);
}
.coupon__hint{
  font-size: 12px;
  color: var(--muted);
}
.paypal-button{
  min-width: 180px;
}
.morning-pay-button{
  min-width: 220px;
}
.payment-iframe{
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  background: var(--surface-muted);
}
.morning-payment-frame{
  width: 100%;
  min-height: 520px;
  border: 0;
}
.paypal-note{
  color: var(--muted);
  font-size: 13px;
}
.policy-consent{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--ink);
}
.policy-consent input{
  margin-top: 3px;
}
.policy-consent a{
  color: var(--gold);
  font-weight: 700;
}
.is-disabled{
  opacity: .55;
  pointer-events: none;
}

/* ── Chip ── */
.chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--gold);
  font-weight: 700;
  font-size: 12px;
  border: 1px solid var(--line);
}

/* ── Sections ── */
.section{ margin-top: 30px; }
.section__title{
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 10px;
  color: var(--ink-bright);
  position: relative;
  display: inline-block;
}
.section__title::after{
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-top: 6px;
}
.section__lead{ color: var(--muted); margin: 0 0 12px; }

.bullets{
  margin: 0;
  padding: 0 18px 0 0;
  color: var(--muted);
}
.bullets li{
  margin: 8px 0;
  position: relative;
}
.bullets li::marker{
  color: var(--gold);
}

/* ── Split Layout ── */
.split{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: center;
}
.split__content{ grid-column: span 7; }
.split__media{ grid-column: span 5; }

.media-card{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.media-card__caption{
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  background: var(--surface-muted);
  border-top: 1px solid var(--line);
}

/* ── Steps ── */
.steps{
  display: grid;
  gap: 14px;
}
.step{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  transition: border-color .2s ease;
}
.step:hover{
  border-color: var(--line-strong);
}
.step__num{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy);
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(201,169,106,.25);
}
.step__title{ font-weight: 800; margin-bottom: 4px; color: var(--ink-bright); }
.step__text{ color: var(--muted); }

/* ── Notice ── */
.notice{
  border: 1px solid var(--line-strong);
  background: var(--accent-soft);
  padding: 16px;
  border-radius: 16px;
  color: var(--muted);
}

/* ── CTA ── */
.cta{
  border-radius: 20px;
  padding: 22px;
  background: linear-gradient(140deg, #1a1508 0%, #2a1f0e 30%, #3d2e14 60%, #1a1508 100%);
  color: var(--ink-bright);
  display: grid;
  gap: 14px;
  border: 1px solid var(--line-strong);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-gold);
}
.cta::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ornament);
  opacity: .4;
  pointer-events: none;
}
.cta__title{
  font-size: 22px;
  font-weight: 900;
  color: var(--gold);
  position: relative;
  z-index: 1;
}
.cta__text{ color: rgba(240,230,210,.75); margin: 0; position: relative; z-index: 1; }
.cta .hero__actions{ position: relative; z-index: 1; }

/* ── Analysis Cards ── */
.analysis-list{
  display: grid;
  gap: 22px;
  margin-top: 22px;
}
.analysis-list > .analysis-card{
  position: relative;
}
.analysis-list > .analysis-card:not(:last-child)::after{
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -14px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(201,169,106,.3), transparent);
  box-shadow: 0 1px 0 rgba(201,169,106,.1);
}
.analysis-card{
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: none;
  padding: 26px 28px;
  display: grid;
  gap: 14px;
  position: relative;
}
.analysis-card__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .2px;
  text-transform: uppercase;
}
.analysis-card__date{ font-weight: 700; color: var(--gold); }
.analysis-card__title{
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .2px;
  color: var(--ink-bright);
}
.analysis-card__context{
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.analysis-card__body{
  color: var(--ink);
  line-height: 1.9;
  font-size: 15px;
}
.analysis-share{
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed var(--line);
  background: var(--surface-muted);
  margin-top: 6px;
}
.analysis-share__header{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}
.analysis-share__label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .2px;
  color: var(--muted);
  font-weight: 700;
}
.analysis-share__hint{
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-bright);
}
.analysis-share__field{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.analysis-share__input{
  flex: 1 1 240px;
  min-width: 200px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  background: var(--surface);
  color: var(--ink);
}
.analysis-share__input:focus{
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201,169,106,.15);
}
.analysis-share__copy{
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}
.analysis-share__copy:hover{
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}
.analysis-share__copy.is-copied{
  background: #065f46;
  border-color: #065f46;
  color: #fff;
}
.analysis-share__links{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.analysis-share__link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink);
  background: var(--surface);
}
.analysis-share__link:hover{
  border-color: var(--line-strong);
  color: var(--gold);
}
.analysis-scenarios{
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}
.analysis-scenario__title{
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--ink-bright);
}
.analysis-scenario__icon{
  font-size: 18px;
}
.analysis-scenario__body{
  font-size: 14px;
  color: var(--ink);
  line-height: 1.8;
  margin-top: 4px;
}
.analysis-card__media{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.analysis-card__image{
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}
.analysis-card__media img{
  display: block;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: none;
  transition: transform .2s ease, border-color .2s ease;
}
.analysis-card__media img:hover{
  transform: translateY(-3px);
  border-color: var(--line-strong);
}
.analysis-lightbox{
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  touch-action: pinch-zoom;
}
.analysis-lightbox[hidden]{ display: none; }
.analysis-lightbox__img{
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,.5), var(--shadow-gold);
  background: var(--navy);
  touch-action: pinch-zoom;
  border: 1px solid var(--line);
}
.analysis-lightbox__close{
  position: fixed;
  top: 14px;
  right: 14px;
  border: 1px solid var(--line);
  background: rgba(10,14,26,.9);
  color: var(--gold);
  font-size: 22px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
}
body.is-lightbox-open{
  overflow: hidden;
}
.analysis-page{
  background:
    var(--ornament),
    linear-gradient(180deg, #0c1020 0%, #0a0e1a 100%);
  padding-bottom: 20px;
}
.analysis-meta{
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.analysis-meta a{
  text-decoration: underline;
  font-weight: 800;
  color: var(--gold);
}
.analysis-archive{
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.analysis-archive__item{
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.analysis-archive__item:hover{
  border-color: var(--line-strong);
}
.analysis-comments{
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.comments-flat{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: grid;
  gap: 14px;
  text-align: left;
  direction: ltr;
}
.analysis-comments__empty{
  color: var(--muted);
  font-size: 13px;
}
.comments-composer-flat{
  display: grid;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.comments-flat__textarea{
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  min-height: 96px;
  resize: vertical;
  text-align: left;
}
.comments-flat__textarea:focus{
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201,169,106,.15);
}
.comments-flat__row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.comments-flat__input{
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 14px;
}
.comments-flat__input:focus{
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201,169,106,.15);
}
.comments-flat__captcha{
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
}
.comments-flat__captcha-input{
  flex: 0 0 90px;
  max-width: 90px;
}
.comments-flat__submit{
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.comments-flat__submit:hover{
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}
.analysis-form__captcha{
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
  font-weight: 800;
  color: var(--gold);
}
.comments-flat__header{
  font-weight: 800;
  color: var(--gold);
  font-size: 14px;
  margin-top: 8px;
}
.comments-flat__list{
  display: grid;
  gap: 12px;
}
.comment-flat{
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.comment-flat:last-child{
  border-bottom: none;
}
.comment-flat__meta{
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.comment-flat__name{
  font-weight: 700;
  color: var(--gold);
}
.comment-flat__body{
  margin-top: 6px;
  color: var(--ink);
  line-height: 1.7;
  font-size: 14px;
}
.analysis-comments__error{
  background: #3f1d1d;
  color: #fecaca;
  border: 1px solid #7f1d1d;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
}

@media (max-width: 900px){
  .comments-flat__row{
    flex-direction: column;
    align-items: stretch;
  }
  .comments-flat__captcha{
    width: 100%;
  }
}

@media (max-width: 700px){
  .analysis-share__field{
    flex-direction: column;
    align-items: stretch;
  }
  .analysis-share__copy{
    width: 100%;
  }
}

/* ── Footer ── */
.footer{
  border-top: 1px solid var(--line);
  padding: 30px 0 18px;
  background: rgba(10,14,26,.95);
  position: relative;
}
.footer::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer__grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.footer__grid > div{ grid-column: span 12; }
.footer__title{
  font-weight: 900;
  margin-bottom: 6px;
  color: var(--gold);
}
.footer__muted{ color: var(--muted); }
.footer__links{ display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.footer__links a:hover{ color: var(--gold); }

.footer__bottom{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* ── Animations ── */
.reveal{
  animation: reveal-up .8s ease both;
}
.reveal-delay-1{ animation-delay: .12s; }
.reveal-delay-2{ animation-delay: .24s; }
.reveal-delay-3{ animation-delay: .36s; }

@keyframes reveal-up{
  from{ opacity: 0; transform: translateY(16px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */

/* Hamburger toggle button — hidden on desktop */
.hamburger{
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  color: var(--gold);
  font-size: 20px;
  line-height: 1;
  align-self: center;
}
.hamburger svg{ width: 22px; height: 22px; fill: currentColor; }

@media (min-width: 901px){
  .footer__grid > div{ grid-column: span 4; }
}

@media (max-width: 980px){
  .hero__content,
  .hero__media,
  .split__content,
  .split__media{ grid-column: span 12; }
  .hero__badge{ left: auto; right: 14px; }
}

@media (max-width: 900px){
  /* Show hamburger, hide desktop nav */
  .hamburger{ display: inline-flex; }
  .topbar__inner{
    flex-wrap: wrap;
    position: relative;
  }
  .topbar{
    position: sticky;
    top: 0;
  }
  .nav{
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    order: 10;
  }
  .nav.is-open{
    display: flex;
  }
  .nav__link{
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 15px;
  }
  .nav__dropdown{ display: none; }
  .nav-mobile-tools{
    display: block;
    width: 100%;
  }
  .topbar__actions{
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    order: 11;
  }
  .topbar__actions.is-open{
    display: flex;
  }
  .topbar__actions .btn{
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }
  .hero{ padding: 20px 16px; }
  .hero__title{ font-size: clamp(22px, 5vw, 36px); }
  .hero__subtitle{ font-size: 14px; }
  .hero__actions{ flex-direction: column; }
  .hero__actions .btn{ width: 100%; justify-content: center; }
  .hero__stats{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero--split{ gap: 16px; }
  .section__title{ font-size: 20px; }
  .cta{ padding: 18px 16px; }
  .cta__title{ font-size: 18px; }
  .card{ padding: 16px; }
  .analysis-card{ padding: 18px 16px; }
  .analysis-card__title{ font-size: 18px; }
}

@media (max-width: 640px){
  .container{ width: calc(100% - 24px); }
  .a11y-toggle{
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
  .a11y-label{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }
  .hero{ padding: 16px 12px; border-radius: 16px; }
  .hero__stats{ grid-template-columns: 1fr; gap: 8px; }
  .stat{ padding: 10px; }
  .stat__value{ font-size: 18px; }
  .grid{ gap: 12px; }
  .card{ border-radius: 14px; padding: 14px; }
  .step{ padding: 12px; gap: 10px; }
  .step__num{ width: 30px; height: 30px; font-size: 13px; }
  .course-card{ flex-direction: column; }
  .course-card__media{ flex: none; max-width: 100%; order: 0; }
  .course-card__body{ order: 1; }
  .footer__grid{ gap: 20px; }
  .news-toast{ left: 10px; right: 10px; max-width: none; bottom: 10px; }
  .cta .hero__actions{ flex-direction: column; }
  .cta .hero__actions .btn{ width: 100%; justify-content: center; }
  .form-grid{ grid-template-columns: 1fr; }
  .coupon__fields{ grid-template-columns: 1fr; }
  .analysis-card__media{ grid-template-columns: 1fr; }
  .comments-flat{ padding: 14px; }
  .analysis-share__field{ flex-direction: column; }
  .analysis-share__copy{ width: 100%; }
}

@media (max-width: 380px){
  .brand__name{ font-size: 14px; }
  .brand__sub{ font-size: 10px; }
  .hero__title{ font-size: 20px; }
  .section__title{ font-size: 18px; }
  .btn{ padding: 10px 14px; font-size: 14px; }
}

/* ── Global overflow prevention ── */
html, body{
  overflow-x: hidden;
  max-width: 100vw;
}
main{
  overflow-x: hidden;
}

/* Smooth scrolling */
html{
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

/* Touch-friendly tap targets */
@media (pointer: coarse){
  a, button, input[type="submit"], input[type="button"]{
    min-height: 44px;
  }
  .nav__link{ min-height: 44px; display: inline-flex; align-items: center; }
}
