@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/BricolageGrotesque-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/BricolageGrotesque-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/BricolageGrotesque-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Kalam";
  src: url("/assets/fonts/Kalam-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fafafa;
  --panel: #f3f3f3;
  --footer-line: #e0e0e0;
  --green: #029a42;
  --light-green: #d3ecd4;
  --text: #000000;
  --muted: #585858;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Bricolage Grotesque", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.section-wrap,
.site-header,
.onboarding-header,
.site-footer {
  width: min(100% - 56px, 1040px);
  margin: 0 auto;
}

.site-header,
.onboarding-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-auto-rows: 58px;
  align-items: center;
  gap: 28px;
  padding: 32px 0 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

.brand > img:first-child {
  flex: 0 0 auto;
}

.brand-text {
  width: 170px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 72px;
  font-size: 13px;
  font-weight: 700;
}

.site-nav a,
.footer-links a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--green);
}

.signin-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  min-width: 104px;
  padding: 0 22px;
  border: 2px solid var(--green);
  border-radius: 12px;
  color: var(--green);
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease;
}

.signin-link:hover {
  background: var(--green);
  color: var(--white);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(320px, 0.86fr);
  gap: 52px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 540px;
  margin: 0 0 28px;
  font-size: clamp(44px, 4.6vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-text {
  max-width: 472px;
  margin: 0 0 32px;
  color: #373737;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.7;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 11px;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  transition: transform 180ms ease, opacity 180ms ease;
}

.button:hover img {
  transform: translateX(5px);
}

.button-solid {
  border: 2px solid var(--green);
  background: var(--green);
  color: var(--white);
}

.button-solid span {
  color: var(--white);
}

.button-solid img {
  filter: brightness(0) invert(1);
}

.button-outline {
  position: relative;
  border: 2px solid var(--green);
  background: var(--white);
  color: var(--green);
}

.button-outline img {
  filter: brightness(0) saturate(100%) invert(32%) sepia(87%) saturate(1261%) hue-rotate(121deg) brightness(90%) contrast(98%);
}

.button-outline:hover {
  background: var(--green);
  color: var(--white);
}

.button-outline:hover > img {
  filter: brightness(0) invert(1);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 32px 0 0;
  padding: 0;
  color: #4c4c4c;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-row img {
  width: 18px;
  height: 18px;
}

.hero-art {
  display: grid;
  justify-items: center;
  padding-bottom: 58px;
}

.girl-frame {
  width: min(100%, 390px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
}

.girl-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-block {
  position: relative;
  display: grid;
  width: min(100%, 320px);
  margin-top: 24px;
  justify-items: center;
}

.hand-note {
  position: relative;
  width: 270px;
  max-width: 100%;
  margin: 0;
  color: var(--green);
  font-family: "Kalam", cursive;
  font-size: 29px;
  line-height: 1.04;
  text-align: center;
  transform: rotate(-4deg);
}

.quote-arrow {
  position: absolute;
  top: -52px;
  right: -18px;
  width: clamp(48px, 6vw, 64px);
  height: auto;
  object-fit: contain;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 18px;
}

.value-card,
.pricing-card,
.review-card {
  border: 1px solid var(--panel);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.025);
}

.value-card {
  display: flex;
  min-height: 410px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 34px 32px;
  text-align: center;
}

.icon-box {
  display: grid;
  width: 88px;
  height: 88px;
  margin-bottom: 34px;
  place-items: center;
  border: 2px solid var(--light-green);
  border-radius: 7px;
}

.icon-box img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.value-card h2 {
  max-width: 255px;
  margin: 0 0 18px;
  font-size: 25px;
  line-height: 1.05;
}

.value-card p {
  margin: 0;
  color: #474747;
  font-size: 14px;
  line-height: 1.75;
}

.inline-cta {
  display: grid;
  justify-items: center;
  margin-top: 42px;
  padding: 22px 20px;
  border: 2px solid var(--light-green);
  border-radius: 11px;
  text-align: center;
}

.inline-cta h2 {
  margin: 0 0 16px;
  font-size: 27px;
  line-height: 1.08;
}

.inline-cta h2 span {
  color: var(--green);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.section-heading .eyebrow {
  margin-bottom: 4px;
}

.section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 3.2vw, 38px);
  line-height: 1.05;
}

.section-heading p:not(.eyebrow) {
  margin: 0 auto;
  color: #424242;
  font-size: 17px;
  line-height: 1.6;
}

.product-section {
  padding-top: 68px;
}

.product-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: 34px;
  border: 1px solid var(--panel);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
  object-fit: contain;
}

.pricing-section {
  padding-top: 86px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 42px;
}

.pricing-card {
  position: relative;
  display: flex;
  min-height: 620px;
  flex-direction: column;
  padding: 30px 30px 28px;
}

.pricing-card.featured {
  border-color: #e9e9e9;
}

.plan-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  object-fit: contain;
}

.trial-badge {
  position: absolute;
  top: 30px;
  right: 30px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--light-green);
  border-radius: 6px;
  background: #fbfffb;
  color: #e87500;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.pricing-card h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1;
}

.pricing-card > p {
  margin: 3px 0 16px;
  color: #4c4c4c;
  font-size: 14px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
  color: #3d3d3d;
  font-size: 16px;
}

.price span {
  color: var(--green);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.scan-count {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--panel);
}

.pricing-card ul {
  display: grid;
  gap: 12px;
  margin: 4px 0 28px;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

.pricing-card li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pricing-card li img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.pricing-card .muted {
  color: #8b8b8b;
}

.pricing-card .button {
  width: 100%;
  margin-top: auto;
}

.reviews-section {
  padding-top: 82px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.review-card {
  display: flex;
  min-height: 236px;
  flex-direction: column;
  padding: 22px 20px 18px;
}

.stars {
  margin-bottom: 12px;
  color: #ff8a00;
  font-size: 17px;
  letter-spacing: 0;
}

.review-text {
  margin: 0 0 18px;
  color: #151515;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.review-person {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
}

.avatar.pink {
  background: #ffe1eb;
  color: #d65279;
}

.avatar.mint {
  background: #dff5e5;
  color: #1b8c49;
}

.avatar.violet {
  background: #e9e1ff;
  color: #6543b6;
}

.avatar.blue {
  background: #dfeaff;
  color: #315db7;
}

.avatar.yellow {
  background: #fff0c8;
  color: #9a6a06;
}

.review-name,
.review-role {
  margin: 0;
}

.review-name {
  font-size: 14px;
  line-height: 1.1;
}

.review-role {
  color: #4d4d4d;
  font-size: 12px;
  font-weight: 700;
}

.bottom-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  margin-top: 58px;
  padding: 22px 64px;
  border: 2px solid var(--light-green);
  border-radius: 11px;
  background: var(--white);
}

.cta-icon {
  display: grid;
  width: 92px;
  height: 78px;
  place-items: center;
  border: 2px solid var(--light-green);
  border-radius: 8px;
}

.cta-icon img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.bottom-cta h2 {
  margin: 0;
  font-size: 31px;
  line-height: 1.05;
}

.bottom-cta p {
  margin: 4px 0 0;
  color: #3f3f3f;
  font-size: 15px;
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 200px 230px;
  gap: 38px;
  margin-top: 34px;
  padding: 34px 0 42px;
  border-top: 1px solid var(--footer-line);
}

.footer-brand {
  padding-right: 34px;
}

.footer-brand .brand-text {
  width: 168px;
}

.footer-brand p {
  margin: 6px 0 0;
  color: #4a4a4a;
  font-size: 12px;
  font-weight: 700;
}

.footer-links {
  min-height: 104px;
  padding-left: 40px;
  border-left: 1px solid var(--footer-line);
}

.footer-links h2 {
  margin: 0 0 10px;
  font-size: 15px;
}

.footer-links a {
  display: block;
  width: fit-content;
  margin-bottom: 7px;
  color: #343434;
  font-size: 12px;
  font-weight: 700;
}

.coming-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.coming-card {
  width: min(100%, 420px);
  padding: 42px 28px;
  border: 1px solid var(--panel);
  border-radius: 10px;
  background: var(--white);
  text-align: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.035);
}

.coming-card .brand {
  justify-content: center;
  margin: 0 auto 30px;
}

.coming-card h1 {
  margin: 0 0 24px;
  font-size: 46px;
  line-height: 1.05;
}

.coming-card a:not(.brand) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid var(--green);
  border-radius: 10px;
  color: var(--green);
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease;
}

.coming-card a:not(.brand):hover {
  background: var(--green);
  color: var(--white);
}

.auth-page,
.onboarding-page,
.analyzing-page {
  min-height: 100vh;
  background: var(--bg);
}

.auth-checking .onboarding-shell {
  visibility: hidden;
}

.auth-shell {
  display: grid;
  width: min(100% - 56px, 520px);
  min-height: calc(100vh - 168px);
  margin: 0 auto;
  place-items: start center;
  padding: 0 0 80px;
}

.auth-card {
  width: 100%;
  padding: 42px;
  border: 1px solid #e9e9e9;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.035);
}

.auth-card h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 38px);
  line-height: 1.08;
}

.auth-card > p {
  margin: 0 0 24px;
  color: #424242;
  font-size: 17px;
  line-height: 1.55;
}

.social-login-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.social-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 2px solid #dedede;
  border-radius: 12px;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.social-button:hover {
  border-color: var(--light-green);
  background: #fbfdfb;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.025);
}

.social-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

.social-button svg {
  flex: 0 0 auto;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
}

.auth-divider span {
  height: 1px;
  background: var(--footer-line);
}

.auth-divider em {
  color: #8a8a8a;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.auth-form {
  display: grid;
}

.auth-form .field-label:not(:first-child) {
  margin-top: 18px;
}

.auth-primary {
  width: 100%;
  margin-top: 24px;
}

.auth-toggle {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 28px 0 0;
  color: #555555;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.auth-toggle button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  cursor: pointer;
}

.auth-toggle button:hover {
  text-decoration: underline;
}

.auth-toggle button:disabled {
  color: #8a8a8a;
  cursor: not-allowed;
  text-decoration: none;
}

.auth-message {
  min-height: 22px;
  margin: 18px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.auth-message[data-type="error"] {
  color: #b3261e;
}

.auth-message[data-type="success"] {
  color: var(--green);
}

.auth-back {
  display: inline-flex;
  margin-top: 12px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.legal-page {
  min-height: 100vh;
  background: var(--bg);
}

.legal-shell {
  width: min(100% - 56px, 860px);
  margin: 0 auto;
  padding: 0 0 72px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-bottom: 26px;
  padding: 0 16px;
  border: 2px solid var(--green);
  border-radius: 10px;
  color: var(--green);
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease;
}

.legal-back:hover {
  background: var(--green);
  color: var(--white);
}

.legal-content {
  padding-bottom: 8px;
}

.legal-content h1 {
  margin: 0 0 22px;
  font-size: clamp(38px, 5vw, 54px);
  line-height: 1.04;
}

.legal-content h2 {
  margin: 38px 0 14px;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.12;
}

.legal-content p,
.legal-content li {
  color: #303030;
  font-size: 17px;
  line-height: 1.72;
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content ul {
  display: grid;
  gap: 7px;
  margin: 0 0 18px;
  padding-left: 24px;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(calc(100% - 36px), 1040px);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid #e7e7e7;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.11);
  opacity: 1;
  transition: opacity 180ms ease, transform 180ms ease;
}

.cookie-banner.is-hidden {
  opacity: 0;
  transform: translateY(8px);
}

.cookie-copy p {
  margin: 0 0 6px;
  color: #2f2f2f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.cookie-copy a {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.cookie-copy a:hover {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 2px solid var(--green);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.cookie-primary {
  background: var(--green);
  color: var(--white);
}

.cookie-outline {
  background: var(--white);
  color: var(--green);
}

.cookie-outline:hover {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.cookie-primary:hover,
.cookie-outline:focus-visible,
.cookie-primary:focus-visible {
  border-color: var(--green);
}

.scroll-top-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 10px;
  background: var(--green);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.scroll-top-button[hidden] {
  display: none;
}

.scroll-top-button img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  transform: rotate(-90deg);
}

.scroll-top-button:hover {
  transform: translateY(-2px);
}

.onboarding-shell {
  width: min(100% - 56px, 1040px);
  margin: 0 auto;
  padding: 0 0 80px;
}

.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.progress-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #9c9c9c;
  font-size: 15px;
  font-weight: 700;
}

.progress-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid #b9b9b9;
  border-radius: 50%;
  color: #8d8d8d;
  background: var(--bg);
}

.progress-item.is-active,
.progress-item.is-complete {
  color: var(--green);
}

.progress-item.is-active .progress-number,
.progress-item.is-complete .progress-number {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.progress-line {
  width: 70px;
  height: 2px;
  background: var(--footer-line);
}

.onboarding-title {
  margin-bottom: 28px;
  text-align: center;
}

.onboarding-title h1 {
  margin: 0 0 6px;
  font-size: clamp(40px, 5vw, 54px);
  line-height: 1.04;
}

.onboarding-title p {
  margin: 0;
  color: #232323;
  font-size: 18px;
}

.onboarding-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: stretch;
  min-width: 0;
  max-width: 100%;
}

.onboarding-card {
  min-width: 0;
  max-width: 100%;
  border: 1px solid #e9e9e9;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.018);
}

.onboarding-form-card {
  display: flex;
  height: 500px;
  min-height: 500px;
  min-width: 0;
  padding: 32px;
}

.onboarding-form-card form {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 100%;
}

.field-label {
  display: block;
  margin: 0 0 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.options-label {
  margin-top: 24px;
}

.idea-textarea,
.text-input,
.idea-preview {
  width: 100%;
  border: 2px solid #dedede;
  border-radius: 12px;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 17px;
}

.idea-textarea,
.text-input {
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.idea-textarea:focus,
.text-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(2, 154, 66, 0.08);
}

.idea-textarea {
  min-height: 172px;
  margin-bottom: 0;
  padding: 18px;
  resize: none;
}

.idea-input-meta {
  display: flex;
  justify-content: space-between;
  min-height: 20px;
  margin: 6px 0 14px;
  gap: 12px;
  font-size: 12px;
}

.idea-validation-message {
  color: #b42318;
}

.idea-character-counter {
  margin-left: auto;
  color: #667085;
  white-space: nowrap;
}

.text-input {
  min-height: 50px;
  padding: 0 16px;
}

.idea-textarea::placeholder,
.text-input::placeholder {
  color: #9f9f9f;
}

.idea-preview {
  min-height: 50px;
  max-width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border-color: var(--green);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wizard-step {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  flex-direction: column;
}

.wizard-step[hidden],
.selector-popover[hidden] {
  display: none !important;
}

.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 24px;
}

.wizard-actions.end-only {
  justify-content: flex-end;
}

.wizard-next {
  width: auto;
  min-width: 124px;
  max-width: max-content;
}

.wizard-next[data-action="analyze"] {
  min-width: 184px;
}

.button:disabled {
  border-color: #bdbdbd;
  background: #bdbdbd;
  color: var(--white);
  cursor: not-allowed;
  pointer-events: none;
}

.button:disabled img {
  filter: brightness(0) invert(1);
  transform: none;
}

.button-secondary {
  display: inline-flex;
  width: auto;
  min-width: 124px;
  max-width: max-content;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border: 2px solid #dedede;
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button-secondary:hover {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.button-secondary:disabled {
  border-color: #bdbdbd;
  background: #bdbdbd;
  color: var(--white);
  cursor: not-allowed;
  pointer-events: none;
}

.focus-options {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.focus-option {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 62px;
  padding: 8px 12px 8px 14px;
  border: 2px solid #dedede;
  border-radius: 12px;
  background: var(--white);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
}

.focus-option.is-disabled {
  border-color: #dedede;
  background: var(--white);
  cursor: not-allowed;
  opacity: 1;
}

.focus-option.is-selected {
  border-color: var(--green);
  background: #f0fbf2;
}

.focus-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--light-green);
  border-radius: 10px;
}

.focus-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.focus-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
}

.focus-title {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.focus-copy strong {
  min-width: 0;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-copy .coming-soon {
  flex: 0 0 auto;
  color: #e87500;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
}

.focus-description {
  min-width: 0;
  overflow: hidden;
  font-size: clamp(12px, 1.25vw, 15px);
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-check {
  width: 34px;
  height: 34px;
  max-width: none;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0;
}

.focus-option.is-selected .selected-check {
  opacity: 1;
}

.settings-section {
  position: relative;
}

.settings-section + .settings-section {
  margin-top: 24px;
}

.setting-grid {
  display: grid;
  gap: 10px;
}

.setting-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.setting-grid.three {
  grid-template-columns: repeat(3, minmax(0, 120px));
}

.setting-option {
  position: relative;
  min-height: 52px;
  border: 2px solid #dedede;
  border-radius: 12px;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.setting-option span {
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 0 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setting-option.is-selected {
  border-color: var(--green);
  background: #f0fbf2;
}

.setting-option img {
  position: absolute;
  top: -12px;
  right: -8px;
  width: 24px;
  height: 24px;
  opacity: 0;
}

.setting-option.is-selected img {
  opacity: 1;
}

.custom-panel,
.date-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  margin-top: 0;
  padding: 14px;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.custom-panel {
  display: grid;
}

.compact-input {
  min-height: 42px;
  font-size: 15px;
}

.country-list {
  display: grid;
  max-height: 192px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  margin-top: 12px;
  padding-right: 4px;
}

.country-option {
  display: flex;
  min-width: 0;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  background: #fcfcfc;
  font-size: 13px;
  font-weight: 700;
}

.country-option input {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  accent-color: var(--green);
}

.country-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.date-panel label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

.selector-apply {
  width: auto;
  min-width: 112px;
  max-width: max-content;
  grid-column: 1 / -1;
  justify-self: end;
}

.custom-panel .selector-apply {
  margin-top: 12px;
}

.assistant-card {
  display: flex;
  height: 500px;
  min-height: 500px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 42px 34px;
}

.assistant-image-frame {
  width: min(100%, 280px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
}

.assistant-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.assistant-note-wrap {
  position: relative;
  width: 210px;
  margin-top: 42px;
}

.assistant-note-wrap img {
  position: absolute;
  top: -38px;
  right: -30px;
  width: 58px;
  height: auto;
}

.assistant-note-wrap p {
  margin: 0;
  color: var(--green);
  font-family: "Kalam", cursive;
  font-size: 25px;
  line-height: 1.08;
  text-align: center;
  transform: rotate(-4deg);
}

.analyzing-shell {
  display: grid;
  width: min(100% - 56px, 720px);
  min-height: calc(100vh - 130px);
  margin: 0 auto;
  place-items: center;
  padding: 30px 0 80px;
}

.analyzing-card {
  width: 100%;
  padding: 42px;
  text-align: center;
}

.analyzing-card h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
}

.analyzing-card p {
  max-width: 520px;
  margin: 0 auto 18px;
  color: #4a4a4a;
  font-size: 17px;
}

.analyzing-card .eyebrow {
  margin-bottom: 10px;
}

.analyzing-small {
  font-size: 14px !important;
}

.analyzing-card .button {
  margin-top: 10px;
}

@media (max-width: 980px) {
  .site-header,
  .onboarding-header {
    padding-bottom: 54px;
  }

  .site-nav {
    gap: 34px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero h1,
  .hero-text {
    margin-right: auto;
    margin-left: auto;
  }

  .trust-row {
    justify-content: center;
  }

  .hero-art {
    padding-bottom: 0;
  }

  .value-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .value-card,
  .pricing-card {
    min-height: auto;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bottom-cta {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 28px;
    text-align: center;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .onboarding-grid {
    grid-template-columns: 1fr;
  }

  .assistant-card {
    display: none;
  }

  .onboarding-form-card {
    height: 500px;
    min-height: 500px;
  }

  .wizard-step {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .section-wrap,
  .site-header,
  .onboarding-header,
  .site-footer {
    width: min(100% - 32px, 1040px);
  }

  .site-header,
  .onboarding-header {
    grid-template-columns: 1fr auto;
    grid-auto-rows: 48px;
    gap: 14px;
    padding: 24px 0 42px;
  }

  .site-nav {
    display: none;
  }

  .brand-text {
    width: 128px;
  }

  .signin-link {
    min-width: 88px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 10px;
  }

  .hero h1 {
    font-size: 45px;
  }

  .hero-text {
    font-size: 17px;
    line-height: 1.55;
  }

  .girl-frame {
    width: min(100%, 310px);
  }

  .hand-note {
    width: 230px;
    font-size: 24px;
  }

  .value-card {
    padding: 30px 24px;
  }

  .product-section,
  .pricing-section,
  .reviews-section {
    padding-top: 58px;
  }

  .pricing-card {
    padding: 26px 22px;
  }

  .trial-badge {
    top: 26px;
    right: 22px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .review-card {
    min-height: 214px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-brand,
  .footer-links {
    padding: 0;
    border-left: 0;
  }

  .footer-links {
    min-height: auto;
    padding-top: 22px;
    border-top: 1px solid var(--footer-line);
  }

  .onboarding-shell,
  .legal-shell,
  .analyzing-shell {
    width: min(100% - 32px, 1040px);
  }

  .auth-shell {
    width: min(100% - 32px, 520px);
  }

  .step-progress {
    gap: 8px;
    justify-content: space-between;
  }

  .progress-item {
    gap: 6px;
    font-size: 13px;
  }

  .progress-number {
    width: 28px;
    height: 28px;
  }

  .progress-line {
    width: min(10vw, 42px);
  }

  .onboarding-title h1 {
    font-size: 38px;
  }

  .legal-content h1 {
    font-size: 36px;
  }

  .onboarding-title p {
    font-size: 16px;
  }

  .onboarding-form-card {
    padding: 24px;
  }

  .focus-option {
    grid-template-columns: 48px minmax(0, 1fr) 30px;
    gap: 10px;
    padding-left: 12px;
  }

  .selected-check {
    width: 30px;
    height: 30px;
  }

  .field-label {
    font-size: 16px;
  }

  .focus-copy strong {
    font-size: 15px;
  }

  .focus-copy .coming-soon,
  .focus-description {
    font-size: 12px;
  }

  .setting-grid {
    gap: 8px;
  }

  .setting-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .setting-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .setting-option {
    min-height: 48px;
    font-size: 14px;
  }

  .country-list {
    max-height: 174px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .country-option {
    min-height: 30px;
    gap: 6px;
    padding: 0 6px;
    font-size: 11px;
  }

  .date-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-button {
    flex: 1 1 100%;
  }

  .scroll-top-button {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 430px) {
  .brand {
    gap: 5px;
  }

  .brand > img:first-child {
    width: 38px;
    height: 38px;
  }

  .brand-text {
    width: 116px;
  }

  .signin-link {
    min-width: 76px;
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
  }

  .site-header,
  .onboarding-header {
    grid-auto-rows: 44px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .button {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    font-size: 16px;
  }

  .onboarding-page .button,
  .auth-page .button,
  .analyzing-page .button,
  .auth-page .button-secondary,
  .onboarding-page .button-secondary {
    width: auto;
  }

  .auth-page .button,
  .auth-page .button-secondary {
    width: 100%;
    max-width: none;
  }

  .onboarding-page .wizard-next {
    min-width: 112px;
  }

  .onboarding-page .wizard-next[data-action="analyze"] {
    min-width: 168px;
  }

  .onboarding-page .button-secondary {
    min-width: 112px;
  }

  .trust-row {
    display: grid;
    justify-items: center;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  .bottom-cta .button {
    width: 100%;
  }

  .progress-label {
    display: none;
  }

  .onboarding-title h1 {
    font-size: 34px;
  }

  .onboarding-form-card,
  .analyzing-card {
    padding: 20px;
  }

  .idea-textarea {
    min-height: 150px;
  }

  .focus-option {
    grid-template-columns: 42px minmax(0, 1fr) 26px;
    gap: 8px;
    padding: 7px 8px;
  }

  .selected-check {
    width: 26px;
    height: 26px;
  }

  .focus-icon {
    width: 40px;
    height: 40px;
  }

  .focus-icon img {
    width: 27px;
    height: 27px;
  }

  .focus-title {
    flex-wrap: wrap;
    gap: 1px 5px;
    white-space: normal;
  }

  .focus-copy strong {
    font-size: 14px;
  }

  .focus-copy .coming-soon,
  .focus-description {
    font-size: 10px;
  }

  .setting-grid {
    gap: 6px;
  }

  .setting-option {
    min-height: 44px;
    font-size: 12px;
  }

  .country-list {
    max-height: 164px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .country-option {
    min-height: 28px;
    font-size: 10px;
  }
}
.analyze-submit-error {
  margin: 9px 0 0;
  color: #b42318;
  font-size: 12px;
  font-weight: 700;
}
