/* /individuals — the consumer front door. Routes the visitor to the right tool:
   /worth (what your tax bill can fund), /individuals/lookback (catch-up study),
   /individuals/estimate (band-model year-one deduction). Built on the site-wide
   design tokens (tokens.css) + typography utilities (components.css). */

.iv2 {
  background: var(--surface-page);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.iv2-header {
  display: flex;
  align-items: center;
  padding: 16px 56px;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border-subtle);
}
.iv2-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.iv2-brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--ulv-forest-800);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.03em;
}
.iv2-brand-word {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ulv-forest-800);
}
.iv2-brand-word em {
  font-style: italic;
  font-weight: 500;
}

.iv2-main {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 56px 56px;
}

.iv2-top {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 28px;
  align-items: stretch;
}
.iv2-photo {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-default);
  background: var(--surface-raised);
  min-height: 300px;
}
.iv2-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero card -> /worth */
.iv2-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--ulv-forest-800);
  overflow: hidden;
  position: relative;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.iv2-hero:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.iv2-hero-body {
  padding: 32px 34px;
  position: relative;
  z-index: 1;
}
.iv2-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 18px;
}
.iv2-hero-title {
  font-family: var(--font-sans, inherit);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.02;
  color: #fff;
  letter-spacing: -0.035em;
}
.iv2-hero-title span {
  color: var(--ulv-terra-300);
}
.iv2-hero-lede {
  color: rgba(255, 255, 255, 0.74);
  margin-top: 14px;
  max-width: 380px;
  font-size: 15px;
  line-height: 1.5;
}
.iv2-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  background: var(--ulv-terra-600);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
}
.iv2-hero-cta svg {
  width: 17px;
  height: 17px;
}
.iv2-hero-foot {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 16px;
}
.iv2-hero:hover .iv2-arrow {
  transform: translateX(4px);
}

/* Ribbon of the other paths, below the hero. */
.iv2-ribbon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.iv2-opt-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ulv-terra-600);
  margin-bottom: 4px;
}
.iv2-opt--soon .iv2-opt-kicker {
  color: var(--text-tertiary);
}

.iv2-opt {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.14s ease, background 0.14s ease, transform 0.14s ease;
}
.iv2-ribbon .iv2-opt {
  border: 1px solid var(--border-default);
  background: var(--surface-raised);
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
}
.iv2-ribbon .iv2-opt > svg.iv2-arrow {
  margin-top: 4px;
}
a.iv2-opt:hover {
  background: var(--ulv-forest-100);
  text-decoration: none; /* suppress the global a:hover underline on the card text */
}
a.iv2-opt:active {
  transform: translateY(0.5px);
}
.iv2-opt-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  background: var(--ulv-forest-100);
  color: var(--ulv-forest-700);
}
.iv2-opt-icon svg {
  width: 21px;
  height: 21px;
}
.iv2-opt-body {
  flex: 1;
}
.iv2-opt > svg.iv2-arrow {
  width: 19px;
  height: 19px;
  flex: none;
  color: var(--ulv-forest-600);
}
.iv2-arrow {
  transition: transform 0.14s ease;
}
a.iv2-opt:hover .iv2-arrow {
  transform: translateX(3px);
}

/* Placeholder option */
.iv2-opt--soon {
  opacity: 0.72;
  cursor: default;
}
.iv2-soon-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 4px 8px;
  white-space: nowrap;
  flex: none;
}

.iv2-assure {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--ulv-stone-75);
  padding: 13px 20px;
  margin-top: 12px;
}
.iv2-assure-text {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.iv2-assure-text svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  color: var(--ulv-forest-600);
}
.iv2-assure-text p {
  margin: 0;
}
.iv2-assure-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  background: var(--ulv-forest-800);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  text-decoration: none;
  white-space: nowrap;
}
.iv2-assure-cta:hover {
  background: var(--ulv-forest-700);
}
.iv2-assure-cta svg {
  width: 16px;
  height: 16px;
}

.iv2-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-raised);
}
.iv2-footer-row {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.iv2-footer-tag {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.iv2-footer-tag span {
  font-style: italic;
}
.iv2-footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.iv2-footer-links a,
.iv2-footer-links button {
  color: var(--text-tertiary);
  text-decoration: none;
}
.iv2-footer-links button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.iv2-footer-links a:hover,
.iv2-footer-links button:hover {
  color: var(--ulv-forest-700);
}

@media (max-width: 880px) {
  .iv2-header,
  .iv2-main,
  .iv2-footer-row {
    padding-left: 22px;
    padding-right: 22px;
  }
  .iv2-main {
    padding-top: 40px;
  }
  .iv2-top {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .iv2-photo {
    min-height: 220px;
  }
  .iv2-ribbon {
    grid-template-columns: 1fr;
  }
  .iv2-hero-body {
    padding: 28px 22px;
  }
  /* Phone-aware so each <br> half ("See how much home" / "your tax bill can
     fund.") stays on one line — two lines total, not four. */
  .iv2-hero-title {
    font-size: clamp(25px, 6.6vw, 34px);
  }
}

/* Shared chrome for the tool sub-pages (/individuals/lookback, /estimate). */
.ivtool {
  background: var(--surface-page);
  min-height: 100vh;
}
.ivtool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 56px;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border-subtle);
}
.ivtool-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  text-decoration: none;
}
.ivtool-back:hover {
  color: var(--ulv-forest-700);
}
.ivtool-back svg {
  width: 15px;
  height: 15px;
}
.ivtool-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.ivtool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 48px;
  align-items: center;
}
.ivtool-col {
  min-width: 0;
}
.ivtool-scene {
  align-self: center;
}
.ivtool-scene img {
  display: block;
  width: 100%;
  height: auto;
}
.ivtool-intro {
  margin-bottom: 28px;
}
.ivtool-h1 {
  color: var(--text-primary);
  margin: 12px 0 10px;
  letter-spacing: -0.025em;
}
.ivtool-lede {
  max-width: none;
}
.ivtool-frame {
  width: 100%;
  border: 0;
  display: block;
}

@media (max-width: 880px) {
  .ivtool-header {
    padding: 16px 22px;
  }
  .ivtool-main {
    padding: 32px 18px 56px;
  }
  .ivtool-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .ivtool-scene {
    display: none;
  }
}

/* Deduction estimate (band model). */
.est-intro {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 34px;
  margin-bottom: 28px;
  border: 1px solid var(--border-default);
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(40, 30, 18, 0.06));
}
.est-intro-figures {
  flex: none;
  display: flex;
  align-items: flex-end;
}
.est-intro-figures img {
  display: block;
  width: auto;
}
.est-intro-figures .suzie {
  height: 232px;
}
.est-intro-figures .pita {
  height: 196px;
  margin-left: -22px;
}
.est-intro-copy .ivtool-h1 {
  margin-top: 8px;
}

@media (max-width: 880px) {
  .est-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 24px 22px;
  }
  .est-intro-figures {
    align-self: center;
  }
  .est-intro-figures .suzie {
    height: 188px;
  }
  .est-intro-figures .pita {
    height: 158px;
  }
}

.est-shell {
  border: 1px solid var(--border-default);
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(40, 30, 18, 0.06));
}
.est-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px 24px;
  padding: 26px 28px;
}
.est-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.est-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: var(--text-secondary);
}
.est-label .est-val {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
}
.est-input,
.est-select {
  width: 100%;
  background: var(--surface-page);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 14px;
}
.est-range {
  width: 100%;
  accent-color: var(--ulv-forest-600);
  margin: 6px 0 0;
}
.est-seg {
  display: flex;
  border: 1px solid var(--border-strong);
}
.est-seg button {
  flex: 1;
  background: var(--surface-raised);
  border: none;
  border-right: 1px solid var(--border-strong);
  padding: 9px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
}
.est-seg button:last-child {
  border-right: none;
}
.est-seg button.on {
  background: var(--ulv-forest-700);
  color: #fff;
}

.est-result {
  border-top: 1px solid var(--border-default);
  padding: 26px 28px 28px;
}
.est-result-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}
.est-band {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(34px, 6vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ulv-forest-700);
}
.est-band .dash {
  color: var(--text-tertiary);
  margin: 0 6px;
}
.est-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 10px;
}
.est-byclass {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.est-cell {
  border: 1px solid var(--border-default);
  background: var(--surface-page);
  padding: 13px 15px;
}
.est-cell .ck {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.est-cell .cv {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  margin-top: 5px;
}
.est-disclaimer {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin-top: 16px;
}
.est-disclaimer summary {
  cursor: pointer;
}
.est-disclaimer strong {
  color: var(--text-secondary);
}
.est-disclaimer p {
  margin: 8px 0 0;
}
.est-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  background: var(--ulv-forest-800);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  text-decoration: none;
}
.est-cta:hover {
  background: var(--ulv-forest-700);
}

@media (max-width: 560px) {
  .est-byclass {
    grid-template-columns: 1fr;
  }
}

/* Request a study capture form. */
.req-shell {
  padding: 28px 30px 26px;
  max-width: 560px;
}
.req-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.req-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 8px 0 22px;
}
.req-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.req-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.req-opt {
  color: var(--text-tertiary);
  font-weight: 400;
}
.req-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.req-err {
  font-size: 13px;
  color: var(--ulv-terra-600, #b5552b);
  margin: 14px 0 0;
}
.req-submit {
  margin-top: 20px;
}
.req-submit:disabled {
  opacity: 0.6;
  cursor: default;
}
.req-disc {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin: 16px 0 0;
}
.req-sent {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.req-sent-check {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  background: var(--ulv-forest-100);
  color: var(--ulv-forest-700);
  font-weight: 700;
}
.req-sent-h {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.req-sent-p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}
