/* ===================================================
   HeyTARA Website — pages.css
   Phase 2 pages: nav dropdown, pricing, industries,
   comparisons, ROI calculator, success stories,
   careers, legal (privacy / terms)
   Builds on css/style.css — reuses its variables.
   =================================================== */

/* ===================================================
   NAV — INDUSTRIES DROPDOWN (CSS-only hover)
   =================================================== */
.nav__dropdown {
  position: relative;
}
.nav__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font);
  color: var(--navy);
  font-weight: 500;
  font-size: .95rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color var(--transition);
}
.nav__dropdown-toggle:hover,
.nav__dropdown:hover .nav__dropdown-toggle,
.nav__dropdown:focus-within .nav__dropdown-toggle {
  color: var(--red);
}
.nav__caret {
  font-size: .7rem;
  transition: transform var(--transition);
}
.nav__dropdown:hover .nav__caret,
.nav__dropdown:focus-within .nav__caret {
  transform: rotate(180deg);
}
.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 1200;
}
/* bridge the gap so the menu doesn't close between toggle and menu */
.nav__dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
}
.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(12px);
}
.nav__dropdown-menu li { list-style: none; }
.nav__dropdown-menu a {
  display: block;
  padding: .6rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--navy);
  transition: background var(--transition), color var(--transition);
}
.nav__dropdown-menu a:hover {
  background: rgba(196,30,30,.06);
  color: var(--red);
}

/* Mobile nav — Industries heading + sub links */
.nav__mobile-heading {
  padding: .85rem 0 .35rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-500);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav__mobile a.nav__mobile-sub {
  padding-left: 1rem;
  font-size: .98rem;
  color: var(--gray-700);
}

/* ===================================================
   GENERIC PAGE HERO (sub-pages)
   =================================================== */
.page-hero {
  position: relative;
  padding: 170px 5% 90px;
  background: var(--grad-hero);
  overflow: hidden;
  text-align: center;
}
.page-hero--left { text-align: left; }
.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}
.page-hero--left .page-hero__inner { margin: 0 auto; max-width: var(--max-w); }
.page-hero__eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.page-hero__title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.page-hero__title em {
  font-style: normal;
  background: var(--grad-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--gray-700);
  line-height: 1.65;
  max-width: 660px;
  margin: 0 auto 2rem;
}
.page-hero--left .page-hero__sub { margin-left: 0; }
.page-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.page-hero--left .page-hero__ctas { justify-content: flex-start; }

/* Generic light section wrappers */
.section {
  padding: 90px 5%;
}
.section--white   { background: var(--white); }
.section--offwhite { background: var(--offwhite); }
.section--navy    { background: var(--navy); }
.section--navy .section-title { color: var(--white); }
.section--navy .section-sub { color: rgba(255,255,255,.6); }
.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Simple card grid reused across pages */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.info-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.info-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .6rem;
}
.info-card__desc {
  font-size: .92rem;
  color: var(--gray-700);
  line-height: 1.65;
}

/* Metric strip (industry stats etc) */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.metric {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.metric__num {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: .5rem;
}
.metric__label {
  font-size: .9rem;
  color: var(--gray-700);
  line-height: 1.4;
}

/* ===================================================
   PRICING PAGE
   =================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  align-items: start;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.price-card--featured {
  border: 2px solid var(--red);
  box-shadow: var(--shadow-glow-red);
  transform: scale(1.03);
}
.price-card--featured:hover {
  transform: scale(1.03) translateY(-6px);
}
.price-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-red);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: var(--shadow-glow-red);
}
.price-card__name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .4rem;
}
.price-card__tagline {
  font-size: .88rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
  min-height: 2.4em;
}
.price-card__price {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  margin-bottom: .35rem;
}
.price-card__amount {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.price-card__period {
  font-size: 1rem;
  color: var(--gray-500);
  font-weight: 600;
}
.price-card__meta {
  font-size: .9rem;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.price-card__cta {
  width: 100%;
  justify-content: center;
  margin-bottom: 1.75rem;
}
.price-card__feature-head {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 1rem;
}
.price-features {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .92rem;
  color: var(--gray-700);
  line-height: 1.45;
}
.price-features li::before {
  content: '✓';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(107,203,119,.15);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  margin-top: 2px;
}
.price-card--featured .price-features li::before {
  background: rgba(196,30,30,.1);
  color: var(--red);
}

.pricing-mission {
  margin-top: 4rem;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-mission__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .5rem;
}
.pricing-mission__accent {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 1rem;
}
.pricing-mission__text {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ===================================================
   COMPARISON TABLE
   =================================================== */
.compare-table-wrap {
  margin-top: 3rem;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: var(--white);
}
.compare-table th,
.compare-table td {
  padding: 1.1rem 1.4rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  font-size: .95rem;
}
.compare-table thead th {
  font-size: .95rem;
  font-weight: 800;
  color: var(--navy);
  background: var(--gray-100);
}
.compare-table thead th.compare-col-tara {
  background: rgba(196,30,30,.06);
  color: var(--red);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td.compare-feature {
  font-weight: 600;
  color: var(--navy);
}
.compare-table td.compare-col-tara {
  background: rgba(196,30,30,.03);
  font-weight: 600;
  color: var(--navy);
}
.compare-yes { color: var(--green); font-weight: 700; }
.compare-no  { color: var(--gray-500); }
.compare-partial { color: var(--orange); font-weight: 600; }

.bottom-line {
  margin-top: 3rem;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1A0A0A 0%, #2D1414 30%, #1A1A2E 100%);
  text-align: center;
}
.bottom-line__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}
.bottom-line__text {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 2rem;
}

/* ===================================================
   ROI CALCULATOR
   =================================================== */
.roi-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
  align-items: start;
}
.roi-inputs {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.roi-field { margin-bottom: 2rem; }
.roi-field:last-child { margin-bottom: 0; }
.roi-field__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: .75rem;
}
.roi-field__label {
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
}
.roi-field__value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--red);
}
.roi-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--gray-200);
  outline: none;
  padding: 0;
  margin: 0;
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-red);
  box-shadow: var(--shadow-glow-red);
  cursor: pointer;
  border: 2px solid var(--white);
}
.roi-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #C41E1E;
  cursor: pointer;
  border: 2px solid var(--white);
}
.roi-slider::-moz-range-track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--gray-200);
}

.roi-results {
  background: linear-gradient(135deg, #0A1A0A 0%, #0A2A14 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.roi-results__eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.5rem;
}
.roi-loss {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.roi-hero-num {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--coral);
  display: block;
  margin-bottom: .35rem;
}
.roi-hero-num--green {
  background: var(--grad-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--green);
}
.roi-hero-label {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
}
.roi-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.roi-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.roi-row__label {
  font-size: .92rem;
  color: rgba(255,255,255,.6);
}
.roi-row__val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
}
.roi-row__val--green { color: #74F0A0; }
.roi-results__cta {
  margin-top: 2rem;
  width: 100%;
  justify-content: center;
}
.roi-disclaimer {
  margin-top: 1.25rem;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  text-align: center;
  line-height: 1.5;
}

/* ===================================================
   SUCCESS STORIES
   =================================================== */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.story-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.story-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.story-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.story-card__name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}
.story-card__segment {
  flex-shrink: 0;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--orange);
  background: rgba(255,159,67,.12);
  border: 1px solid rgba(255,159,67,.3);
  padding: .3rem .7rem;
  border-radius: var(--radius-pill);
}
.story-card__row {
  font-size: .9rem;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: .6rem;
}
.story-card__row strong { color: var(--navy); }
.story-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.25rem 0;
}
.story-metric {
  flex: 1 1 30%;
  min-width: 90px;
  text-align: center;
  padding: .9rem .5rem;
  background: var(--offwhite);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}
.story-metric__num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  display: block;
  margin-bottom: .25rem;
}
.story-metric__label {
  font-size: .68rem;
  color: var(--gray-500);
  line-height: 1.3;
}
.story-card__quote {
  font-style: italic;
  color: var(--gray-700);
  font-size: .95rem;
  line-height: 1.6;
  border-left: 3px solid var(--red);
  padding-left: 1rem;
  margin: .5rem 0 1.5rem;
}
.story-card__link {
  margin-top: auto;
  font-size: .9rem;
  font-weight: 700;
  color: var(--red);
}
.story-card__link:hover { text-decoration: underline; }

/* ===================================================
   CAREERS
   =================================================== */
.careers-positions {
  margin-top: 2rem;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--white);
  border: 1px dashed var(--gray-200);
  border-radius: var(--radius-lg);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.careers-positions__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .75rem;
}
.careers-positions__text {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================================
   LEGAL / DOC PAGES (privacy, terms)
   =================================================== */
.legal {
  padding: 60px 5% 100px;
  background: var(--white);
}
.legal__inner {
  max-width: 780px;
  margin: 0 auto;
}
.legal__updated {
  font-size: .88rem;
  color: var(--gray-500);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}
.legal__body h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  letter-spacing: -.01em;
}
.legal__body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.75rem 0 .75rem;
}
.legal__body p {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.legal__body ul {
  margin: 0 0 1.5rem 1.25rem;
  list-style: disc;
}
.legal__body li {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: .6rem;
}
.legal__body a {
  color: var(--red);
  font-weight: 600;
}
.legal__body a:hover { text-decoration: underline; }
.legal__body strong { color: var(--navy); }

/* ===================================================
   CTA BAND (reusable) — used on sub-pages
   =================================================== */
.cta-band {
  padding: 100px 5%;
  background: linear-gradient(135deg, #1A0A0A 0%, #2D1414 30%, #1A1A2E 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-band__inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}
.cta-band .section-title { color: var(--white); margin-bottom: 1rem; }
.cta-band__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  margin: 0 auto 2.5rem;
}
.cta-band__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.cta-band .btn--ghost {
  color: var(--white);
  border-color: rgba(255,255,255,.3);
}
.cta-band .btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.06);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 900px) {
  /* dropdown is hidden with .nav__links on mobile */
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .price-card--featured { transform: none; order: -1; }
  .price-card--featured:hover { transform: translateY(-6px); }
  .roi-layout { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .page-hero { padding: 140px 5% 70px; }
  .card-grid { grid-template-columns: 1fr; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .roi-inputs, .roi-results { padding: 1.75rem; }
  .legal { padding: 40px 5% 70px; }
}
