.ipr-pro-app {
  --ipr-deep: #123326;
  --ipr-forest: #1f6f4a;
  --ipr-leaf: #36a86b;
  --ipr-mint: #eaf8ef;
  --ipr-soft: #f7fbf4;
  --ipr-card: rgba(255,255,255,.92);
  --ipr-line: rgba(31, 111, 74, .14);
  --ipr-text: #16231c;
  --ipr-muted: #627269;
  --ipr-warn: #9b6200;
  --ipr-danger: #9b1c1c;
  color: var(--ipr-text);
  font-family: inherit;
  max-width: 1120px;
  margin: 34px auto;
  isolation: isolate;
}

.ipr-pro-app * { box-sizing: border-box; }
.ipr-pro-app button,
.ipr-pro-app input { font: inherit; }
.ipr-pro-app [hidden] { display: none !important; }

.ipr-pro-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 6% 8%, rgba(54,168,107,.24), transparent 29%),
    radial-gradient(circle at 94% 0%, rgba(255,205,107,.23), transparent 28%),
    linear-gradient(135deg, #f7fff7 0%, #ffffff 44%, #eff8ec 100%);
  border: 1px solid rgba(31,111,74,.16);
  box-shadow: 0 28px 80px rgba(18,51,38,.14);
}

.ipr-pro-shell:before {
  content: "";
  position: absolute;
  inset: -90px -60px auto auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(31,111,74,.08);
  z-index: -1;
}

.ipr-pro-hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 34px;
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
}

.ipr-eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(31,111,74,.09);
  color: var(--ipr-forest);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.ipr-hero-copy h2,
.ipr-results-header h3,
.ipr-step-card h3 {
  margin: 14px 0 12px;
  color: var(--ipr-deep);
  line-height: 1.03;
  letter-spacing: -.04em;
}

.ipr-hero-copy h2 {
  max-width: 760px;
  font-size: clamp(42px, 6vw, 76px);
}

.ipr-hero-copy p {
  max-width: 640px;
  margin: 0 0 20px;
  color: var(--ipr-muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.ipr-hero-badges,
.ipr-badge-row,
.ipr-mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.ipr-hero-badges { margin: 22px 0 28px; }

.ipr-hero-badges span,
.ipr-badge-row span,
.ipr-mini-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(31,111,74,.14);
  background: rgba(255,255,255,.72);
  color: #244d3a;
  font-weight: 750;
}

.ipr-hero-badges span { padding: 9px 12px; font-size: 13px; }
.ipr-badge-row span { padding: 7px 10px; font-size: 12px; }
.ipr-mini-tags span { padding: 5px 8px; font-size: 11px; }

.ipr-primary-btn,
.ipr-secondary-btn,
.ipr-ghost-btn,
.ipr-carousel-btn,
.ipr-choice-card {
  appearance: none;
  border: 0;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, opacity .18s ease;
}

.ipr-primary-btn,
.ipr-secondary-btn,
.ipr-ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
}

.ipr-primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--ipr-deep), var(--ipr-forest));
  box-shadow: 0 14px 26px rgba(31,111,74,.24);
}

.ipr-secondary-btn {
  color: var(--ipr-deep);
  background: #fff;
  border: 1px solid rgba(31,111,74,.18);
}

.ipr-ghost-btn {
  color: var(--ipr-forest);
  background: rgba(255,255,255,.5);
  border: 1px solid rgba(31,111,74,.1);
  min-height: 38px;
  padding: 8px 14px;
}

.ipr-primary-btn:hover,
.ipr-secondary-btn:hover,
.ipr-ghost-btn:hover,
.ipr-choice-card:hover { transform: translateY(-2px); }
.ipr-primary-btn:disabled,
.ipr-secondary-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.ipr-hero-card {
  min-height: 390px;
  position: relative;
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.48)),
    radial-gradient(circle at 50% 34%, rgba(54,168,107,.3), transparent 38%);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 28px 60px rgba(18,51,38,.14);
  overflow: hidden;
}

.ipr-leaf-orbit {
  position: absolute;
  inset: 38px;
  border-radius: 999px;
  border: 1px dashed rgba(31,111,74,.2);
  animation: ipr-float 6s ease-in-out infinite;
}

.ipr-leaf-orbit span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 28px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 18px 30px rgba(18,51,38,.1);
  font-size: 40px;
}
.ipr-leaf-orbit span:nth-child(1) { left: 18px; top: 34px; }
.ipr-leaf-orbit span:nth-child(2) { right: 24px; top: 112px; }
.ipr-leaf-orbit span:nth-child(3) { left: 46%; bottom: 20px; }

.ipr-match-preview {
  position: absolute;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  width: min(260px, calc(100% - 44px));
  padding: 18px;
  border-radius: 24px;
  background: rgba(18,51,38,.91);
  color: #fff;
  box-shadow: 0 20px 40px rgba(18,51,38,.26);
}
.ipr-match-preview strong,
.ipr-match-preview span,
.ipr-match-preview small { display: block; }
.ipr-match-preview span { font-size: 34px; font-weight: 900; line-height: 1; margin-top: 8px; }
.ipr-match-preview small { color: rgba(255,255,255,.72); margin-top: 9px; }

.ipr-quiz-panel,
.ipr-results-panel {
  padding: clamp(20px, 4vw, 42px);
}

.ipr-topbar,
.ipr-results-header,
.ipr-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ipr-topbar { margin-bottom: 22px; }
.ipr-progress-wrap { flex: 1; max-width: 780px; }
.ipr-step-label { color: var(--ipr-muted); font-size: 13px; font-weight: 750; margin-bottom: 8px; }
.ipr-progress-track { height: 10px; border-radius: 999px; background: rgba(31,111,74,.1); overflow: hidden; }
.ipr-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ipr-leaf), var(--ipr-forest)); transition: width .25s ease; }

.ipr-step-card {
  padding: clamp(22px, 4vw, 42px);
  border-radius: 30px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(31,111,74,.13);
  box-shadow: 0 18px 44px rgba(18,51,38,.08);
}

.ipr-step-card h3 { font-size: clamp(30px, 4vw, 48px); max-width: 780px; }
.ipr-step-hint { max-width: 780px; margin: 0 0 24px; color: var(--ipr-muted); font-size: 16px; line-height: 1.55; }

.ipr-option-grid,
.ipr-location-grid {
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(190px, 1fr) );
  gap: 14px;
}

.ipr-choice-card {
  min-height: 144px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(31,111,74,.13);
  box-shadow: 0 12px 24px rgba(18,51,38,.06);
  text-align: left;
  color: var(--ipr-text);
}

.ipr-choice-card.is-selected {
  border-color: rgba(31,111,74,.55);
  background: linear-gradient(180deg, #fff, #eff9f1);
  box-shadow: 0 18px 34px rgba(31,111,74,.15);
}

.ipr-choice-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: var(--ipr-mint);
  font-size: 25px;
}

.ipr-choice-card strong { display: block; margin-bottom: 5px; color: var(--ipr-deep); font-size: 16px; }
.ipr-choice-card small { display: block; color: var(--ipr-muted); line-height: 1.35; }
.ipr-selected-note { margin-top: 18px; color: var(--ipr-forest); font-weight: 800; }

.ipr-city-row {
  display: none;
  margin-top: 18px;
  grid-template-columns: minmax(180px, 380px) minmax(180px, 1fr);
  gap: 12px;
  align-items: center;
}
.ipr-city-row.is-visible { display: grid; }
.ipr-city-row input {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(31,111,74,.18);
  padding: 0 18px;
  background: #fff;
  color: var(--ipr-text);
  outline: none;
}
.ipr-city-row input:focus { border-color: rgba(31,111,74,.55); box-shadow: 0 0 0 4px rgba(54,168,107,.12); }
.ipr-city-row span,
.ipr-status-pill { color: var(--ipr-muted); font-size: 13px; }
.ipr-status-pill {
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(31,111,74,.11);
}

.ipr-nav-row { margin-top: 22px; }
.ipr-nav-row .ipr-primary-btn { margin-left: auto; }

.ipr-loading-screen,
.ipr-error-state {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  gap: 14px;
  padding: 40px;
}
.ipr-loader-plant {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(18,51,38,.14);
  font-size: 44px;
  animation: ipr-pop 1.15s ease-in-out infinite;
}
.ipr-loading-screen h3,
.ipr-error-state h3 { margin: 4px 0 0; color: var(--ipr-deep); font-size: clamp(28px, 4vw, 42px); }
.ipr-loading-screen p,
.ipr-error-state p { max-width: 540px; margin: 0; color: var(--ipr-muted); line-height: 1.55; }
.ipr-skeleton-grid { display: grid; grid-template-columns: repeat(3, minmax(80px, 140px)); gap: 12px; margin-top: 10px; }
.ipr-skeleton-grid i { display: block; height: 82px; border-radius: 22px; background: linear-gradient(90deg, rgba(255,255,255,.55), rgba(255,255,255,.95), rgba(255,255,255,.55)); background-size: 220% 100%; animation: ipr-shimmer 1.2s linear infinite; }

.ipr-results-header { align-items: flex-start; margin-bottom: 18px; }
.ipr-results-header h3 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 8px; }
.ipr-results-header p { margin: 0; color: var(--ipr-muted); }
.ipr-climate-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(31,111,74,.13);
}
.ipr-climate-bar span { color: var(--ipr-muted); font-weight: 750; }
.ipr-climate-bar strong { color: var(--ipr-deep); }
.ipr-climate-bar small { color: var(--ipr-muted); }

.ipr-result-carousel {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  gap: 14px;
  align-items: center;
}
.ipr-carousel-btn {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: var(--ipr-deep);
  background: #fff;
  border: 1px solid rgba(31,111,74,.15);
  box-shadow: 0 12px 22px rgba(18,51,38,.08);
  font-size: 32px;
  line-height: 1;
}
.ipr-carousel-btn:hover { background: var(--ipr-mint); }

.ipr-feature-card {
  display: grid;
  grid-template-columns: minmax(220px, .78fr) minmax(0, 1.22fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: stretch;
  min-height: 440px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 34px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(31,111,74,.13);
  box-shadow: 0 22px 58px rgba(18,51,38,.12);
}

.ipr-feature-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 330px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(54,168,107,.2), transparent 34%),
    linear-gradient(145deg, #173f2e, #245c3f);
}
.ipr-feature-visual:before,
.ipr-feature-visual:after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
}
.ipr-feature-visual:before { width: 230px; height: 230px; right: -80px; top: -70px; }
.ipr-feature-visual:after { width: 180px; height: 180px; left: -70px; bottom: -60px; }

.ipr-plant-avatar {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(210px, 70%);
  aspect-ratio: 1;
  border-radius: 50px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 24px 54px rgba(0,0,0,.14);
  font-size: clamp(76px, 12vw, 122px);
}

.ipr-score-ring {
  --ipr-score: 80;
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 98px;
  height: 98px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(#8be6a8 calc(var(--ipr-score) * 1%), rgba(255,255,255,.18) 0);
}
.ipr-score-ring span { color: var(--ipr-deep); font-weight: 950; line-height: 1; }
.ipr-score-ring small { color: var(--ipr-muted); font-size: 11px; margin-top: -18px; }

.ipr-slot-pill {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  max-width: calc(100% - 36px);
  padding: 9px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.24);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
}

.ipr-feature-content { align-self: center; }
.ipr-feature-content h4 { margin: 0; color: var(--ipr-deep); font-size: clamp(34px, 5vw, 56px); line-height: 1; letter-spacing: -.045em; }
.ipr-scientific { margin: 10px 0 0; color: var(--ipr-muted); font-style: italic; }
.ipr-description { margin: 18px 0; color: #43564c; font-size: 17px; line-height: 1.55; }
.ipr-reason-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 22px;
  background: var(--ipr-soft);
  border: 1px solid rgba(31,111,74,.11);
}
.ipr-reason-box strong { display: block; margin-bottom: 8px; color: var(--ipr-deep); }
.ipr-reason-box ul { margin: 0; padding-left: 20px; color: #405249; }
.ipr-reason-box li { margin: 6px 0; }
.ipr-care-details { margin-top: 12px; border-radius: 18px; background: #fff; border: 1px solid rgba(31,111,74,.12); padding: 12px 14px; }
.ipr-care-details summary { cursor: pointer; color: var(--ipr-forest); font-weight: 850; }
.ipr-care-details p { color: var(--ipr-muted); line-height: 1.55; margin: 10px 0 0; }
.ipr-warning-box { margin-top: 12px; padding: 12px 14px; border-radius: 18px; background: #fff6df; color: var(--ipr-warn); }
.ipr-warning-box strong { color: #7a4a00; }

.ipr-result-dots { display: flex; justify-content: center; gap: 8px; margin: 16px 0 28px; }
.ipr-result-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(31,111,74,.24); cursor: pointer; transition: width .18s ease, background .18s ease; }
.ipr-result-dots button.is-active { width: 32px; background: var(--ipr-forest); }

.ipr-more-section { margin-top: 18px; }
.ipr-section-heading h4 { margin: 10px 0 16px; color: var(--ipr-deep); font-size: 26px; letter-spacing: -.02em; }
.ipr-mini-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 250px);
  gap: 14px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.ipr-mini-card {
  scroll-snap-align: start;
  min-height: 196px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(31,111,74,.12);
  box-shadow: 0 12px 26px rgba(18,51,38,.07);
}
.ipr-mini-card.is-current { border-color: rgba(31,111,74,.45); background: #fff; }
.ipr-mini-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ipr-mini-top span { font-size: 34px; }
.ipr-mini-top strong { color: var(--ipr-forest); }
.ipr-mini-card h5 { margin: 0 0 4px; color: var(--ipr-deep); font-size: 18px; line-height: 1.1; }
.ipr-mini-card small { display: block; color: var(--ipr-muted); font-style: italic; margin-bottom: 14px; }

.ipr-footer-note { margin-top: 16px; color: var(--ipr-muted); font-size: 13px; text-align: center; }
.ipr-empty-icon { font-size: 58px; }

@keyframes ipr-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-10px) rotate(2deg); }
}
@keyframes ipr-pop {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.04); }
}
@keyframes ipr-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

@media (max-width: 820px) {
  .ipr-pro-app { margin: 18px auto; }
  .ipr-pro-shell { border-radius: 24px; }
  .ipr-pro-hero { grid-template-columns: 1fr; min-height: 0; padding: 28px 20px; }
  .ipr-hero-card { min-height: 260px; }
  .ipr-quiz-panel, .ipr-results-panel { padding: 20px; }
  .ipr-topbar, .ipr-results-header { align-items: stretch; flex-direction: column; }
  .ipr-nav-row { gap: 10px; }
  .ipr-nav-row .ipr-primary-btn { margin-left: 0; flex: 1; }
  .ipr-nav-row .ipr-secondary-btn { flex: 1; }
  .ipr-option-grid, .ipr-location-grid { grid-template-columns: 1fr; }
  .ipr-city-row { grid-template-columns: 1fr; }
  .ipr-result-carousel { grid-template-columns: 1fr; }
  .ipr-carousel-btn { display: none; }
  .ipr-feature-card { grid-template-columns: 1fr; min-height: 0; }
  .ipr-feature-visual { min-height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  .ipr-pro-app *,
  .ipr-pro-app *:before,
  .ipr-pro-app *:after {
    animation: none !important;
    transition: none !important;
  }
}
