:root {
  color-scheme: light;
  --ink: #1c2c24;
  --green: #456a52;
  --green-dark: #1d2d24;
  --green-pale: #e3ebdf;
  --paper: #f4f4eb;
  --paper-deep: #eef1e7;
  --line: #d9dfd1;
  --muted: #758077;
  --white: #fff;
  --gold: #d9c477;
  --sans: "DM Sans", "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }
.page-width { width: min(1500px, calc(100% - 80px)); margin-inline: auto; }
.site-header {
  height: 80px;
  padding-inline: max(40px, calc((100% - 1500px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 19px;
  font-weight: 600;
}
.brand-name { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -.7px; }
.status-dot { width: 9px; height: 9px; display: inline-block; border-radius: 50%; background: #5c8065; }
.landing-page { background: var(--paper); }
.landing-header { background: var(--paper); border-bottom: 0; height: 86px; }
.landing-nav { display: flex; align-items: center; gap: 42px; }
.nav-link { color: #647467; font-size: 15px; font-weight: 600; }
.button {
  min-height: 54px;
  padding: 0 25px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor: pointer;
}
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button-outline { background: var(--white); border: 1px solid var(--line); min-height: 50px; }
.button-primary { background: var(--green-dark); color: var(--white); box-shadow: 0 12px 26px #1c2c241c; }
.button-primary:hover:not(:disabled) { background: #294334; box-shadow: 0 14px 30px #1c2c2426; }
.button:disabled { background: #929a94; box-shadow: none; cursor: not-allowed; }
.hero {
  min-height: 765px;
  padding-top: 95px;
  padding-bottom: 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 70px;
}
.hero-copy { padding-bottom: 12px; }
.eyebrow-pill {
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #cbd7c8;
  border-radius: 999px;
  background: #fff;
  color: #435c4a;
  font-size: 14px;
  font-weight: 600;
}
.eyebrow-pill .status-dot { width: 8px; height: 8px; }
.hero h1 {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: clamp(60px, 6vw, 91px);
  font-weight: 600;
  line-height: .99;
  letter-spacing: -5.2px;
}
.hero h1 em { color: var(--green); font-weight: 600; }
.hero-description {
  max-width: 630px;
  margin: 46px 0 0;
  color: #68796e;
  font-size: 19px;
  line-height: 1.8;
}
.hero-actions { margin-top: 43px; display: flex; align-items: center; gap: 20px; }
.hero-actions .button { min-height: 60px; padding-inline: 30px; }
.quiet-note { color: #7d897e; font-size: 14px; }
.hero-stats {
  max-width: 700px;
  margin-top: 52px;
  padding-top: 27px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  gap: 20px;
}
.hero-stats div { display: flex; flex-direction: column; gap: 5px; }
.hero-stats strong { color: #17271f; font-size: 21px; font-weight: 700; }
.hero-stats span { color: #879086; font-size: 13px; }
.hero-visual { position: relative; padding: 25px 0 0; }
.image-frame {
  position: relative;
  height: 500px;
  padding: 14px;
  border-radius: 34px;
  background: var(--white);
  box-shadow: 0 34px 75px #1b2b2020;
}
.image-frame > img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 24px; }
.scan-preview {
  position: absolute;
  right: 38px;
  bottom: 34px;
  left: 38px;
  min-height: 76px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 12px 28px #17271f1c;
}
.scan-preview > div { display: flex; flex-direction: column; gap: 5px; }
.scan-label { color: #8c968c; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.scan-preview strong { font-size: 15px; }
.scan-status { padding: 10px 12px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; background: var(--green-pale); color: #496750; font-size: 13px; font-weight: 700; white-space: nowrap; }
.floating-note {
  position: absolute;
  top: 1px;
  right: -20px;
  padding: 18px 21px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: 17px;
  background: var(--gold);
  box-shadow: 0 14px 30px #1b2b2020;
  transform: rotate(3deg);
}
.floating-note strong { font-family: var(--serif); font-size: 19px; }
.floating-note span { color: #797451; font-size: 13px; }
.how-section { background: var(--green-dark); color: var(--white); }
.how-grid { padding-block: 90px 98px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.how-step { padding-top: 23px; border-top: 1px solid #ffffff3d; }
.how-step > .step-number, .workspace-intro > .eyebrow, .editor-heading label { display: inline-block; }
.step-number { color: #c9d7b0; font-size: 13px; font-weight: 700; letter-spacing: 1px; }
.how-step h2 { margin: 34px 0 17px; font-family: var(--serif); font-size: 25px; font-weight: 500; }
.how-step p { max-width: 410px; margin: 0; color: #b4c0b4; font-size: 15px; line-height: 1.7; }

.workspace-page { min-height: 100vh; background: #f1f3eb; }
.privacy-note { display: flex; align-items: center; gap: 14px; color: #899188; font-size: 14px; }
.workspace-main { width: min(1500px, calc(100% - 80px)); margin: 0 auto; padding: 67px 0 38px; }
.workspace-intro { margin-bottom: 39px; }
.eyebrow, .result-eyebrow {
  color: #496a53;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.workspace-intro h1 { margin: 7px 0 12px; font-family: var(--serif); font-size: clamp(34px, 3.2vw, 44px); font-weight: 500; letter-spacing: -1.3px; }
.workspace-intro p { margin: 0; color: #788379; font-size: 15px; }
.analysis-card {
  min-height: 635px;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(370px, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--white);
  box-shadow: 0 24px 70px #27352b12;
}
.editor-panel { min-width: 0; padding: 39px 42px 31px; display: flex; flex-direction: column; }
.editor-heading { display: flex; align-items: center; justify-content: space-between; }
.editor-heading label { color: #1e2e25; font-size: 15px; font-weight: 700; }
.text-button { padding: 5px 0 5px 10px; border: 0; background: transparent; color: #68796e; font-size: 14px; cursor: pointer; }
.text-button:disabled { color: #adb4ad; cursor: default; }
.editor-panel textarea {
  width: 100%;
  min-height: 365px;
  flex: 1;
  margin-top: 29px;
  padding: 0;
  resize: vertical;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
}
.editor-panel textarea::placeholder { color: #a1aaa1; opacity: 1; }
.editor-panel textarea:focus-visible { outline: 2px solid #8fa894; outline-offset: 8px; border-radius: 3px; }
.editor-footer { padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.editor-meta { display: flex; align-items: center; gap: 9px; color: #929b92; font-size: 13px; }
.submit-button { min-width: 174px; min-height: 50px; }
.result-panel { padding: 42px 34px; display: grid; place-items: center; background: #edf1e7; border-left: 1px solid var(--line); }
.empty-result { max-width: 390px; text-align: center; }
.result-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e2eadc;
  color: var(--green);
  font-family: var(--serif);
  font-size: 27px;
}
.mini-bars { height: 23px; display: flex; align-items: center; gap: 5px; }
.mini-bars i { width: 2px; height: 12px; display: block; border-radius: 2px; background: var(--green); }
.mini-bars i:nth-child(2) { height: 21px; }
.mini-bars i:nth-child(3) { height: 15px; }
.empty-result h2, .result-content h2 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: -.4px; }
.empty-result p { margin: 15px 0 0; color: #7e897e; font-size: 15px; line-height: 1.7; }
.error-result .result-icon { background: #f5e8df; color: #a25d40; }
.result-content { width: 100%; max-width: 440px; text-align: center; }
.result-eyebrow { display: block; margin-bottom: 25px; color: #879286; }
.score-ring {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 25px;
  border-radius: 50%;
}
.score-ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring-svg circle { fill: none; stroke-width: 12.5; }
.score-ring-track { stroke: #dfe6da; }
.score-ring-progress { stroke: var(--green); stroke-dasharray: 376.99; stroke-linecap: round; transition: stroke-dashoffset .7s ease-out; }
.score-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-center strong { color: #1d3025; font-size: 38px; line-height: 1.1; }
.score-center span { margin-top: 5px; color: #7e897e; font-size: 12px; }
.result-content h2 { font-size: 25px; }
.result-explanation { margin: 14px 0 22px; color: #7c877d; font-size: 14px; line-height: 1.65; }
.signal-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); text-align: left; }
.signal-card span { color: #879286; font-size: 12px; }
.signal-card strong { color: #1c2c24; font-size: 14px; font-weight: 600; }
.probability-list { margin-top: 19px; text-align: left; }
.probability-row { margin: 12px 0 7px; display: flex; justify-content: space-between; gap: 12px; color: #68776b; font-size: 12px; }
.probability-row strong { color: var(--ink); }
.probability-track { height: 5px; overflow: hidden; border-radius: 99px; background: #dfe6da; }
.probability-track span { height: 100%; display: block; border-radius: 999px; background: #55775c; }
.probability-track-ai span { background: #c1a653; }
.disclaimer { max-width: 780px; margin: 27px auto 0; color: #929b92; font-size: 12px; line-height: 1.65; text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@keyframes text-reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.landing-page .hero-copy > :not(.hero-stats) { animation: text-reveal .65s cubic-bezier(.2, .7, .25, 1) both; }
.landing-page .hero-copy > :nth-child(1) { animation-delay: .04s; }
.landing-page .hero-copy > :nth-child(2) { animation-delay: .13s; }
.landing-page .hero-copy > :nth-child(3) { animation-delay: .22s; }
.landing-page .hero-copy > :nth-child(4) { animation-delay: .31s; }
.landing-page .hero-stats > div { animation: text-reveal .65s cubic-bezier(.2, .7, .25, 1) both; }
.landing-page .hero-stats > :nth-child(1) { animation-delay: .4s; }
.landing-page .hero-stats > :nth-child(2) { animation-delay: .49s; }
.landing-page .hero-stats > :nth-child(3) { animation-delay: .58s; }
.landing-page .scan-preview > *, .landing-page .floating-note > * { animation: text-reveal .65s cubic-bezier(.2, .7, .25, 1) both; }
.landing-page .scan-preview > :nth-child(1), .landing-page .floating-note > :nth-child(1) { animation-delay: .2s; }
.landing-page .scan-preview > :nth-child(2), .landing-page .floating-note > :nth-child(2) { animation-delay: .3s; }
.landing-page .how-step > * { animation: text-reveal .65s cubic-bezier(.2, .7, .25, 1) both; }
.landing-page .how-step > :nth-child(1) { animation-delay: .04s; }
.landing-page .how-step > :nth-child(2) { animation-delay: .13s; }
.landing-page .how-step > :nth-child(3) { animation-delay: .22s; }
.workspace-main .workspace-intro > * { animation: text-reveal .65s cubic-bezier(.2, .7, .25, 1) both; }
.workspace-main .workspace-intro > :nth-child(1) { animation-delay: .04s; }
.workspace-main .workspace-intro > :nth-child(2) { animation-delay: .13s; }
.workspace-main .workspace-intro > :nth-child(3) { animation-delay: .22s; }
.workspace-main .editor-heading > *, .workspace-main .editor-footer > * { animation: text-reveal .65s cubic-bezier(.2, .7, .25, 1) both; }
.workspace-main .editor-heading > :nth-child(1), .workspace-main .editor-footer > :nth-child(1) { animation-delay: .24s; }
.workspace-main .editor-heading > :nth-child(2), .workspace-main .editor-footer > :nth-child(2) { animation-delay: .33s; }
.workspace-main .result-content > :is(.result-eyebrow, h2, .result-explanation, .signal-card, .probability-list),
.workspace-main .empty-result > :not(.result-icon) { animation: text-reveal .65s cubic-bezier(.2, .7, .25, 1) both; }
.workspace-main .result-content > :nth-child(1), .workspace-main .empty-result > :nth-child(2) { animation-delay: .08s; }
.workspace-main .result-content > :nth-child(3), .workspace-main .empty-result > :nth-child(3) { animation-delay: .17s; }
.workspace-main .result-content > :nth-child(4) { animation-delay: .26s; }
.workspace-main .result-content > :nth-child(5) { animation-delay: .35s; }
.workspace-main .result-content > :nth-child(6) { animation-delay: .44s; }

@media (max-width: 1000px) {
  .page-width, .workspace-main { width: min(100% - 48px, 780px); }
  .site-header { padding-inline: 24px; }
  .hero { min-height: 0; padding-block: 70px; grid-template-columns: 1fr; gap: 62px; }
  .hero-copy { max-width: 710px; }
  .hero-visual { width: min(100%, 690px); margin: 0 auto; }
  .analysis-card { grid-template-columns: minmax(0, 1.5fr) minmax(310px, 1fr); }
  .editor-panel { padding-inline: 30px; }
  .result-panel { padding-inline: 24px; }
}
@media (max-width: 700px) {
  .page-width, .workspace-main { width: calc(100% - 36px); }
  .site-header { height: 70px; padding-inline: 18px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 22px; }
  .landing-header { height: 70px; }
  .landing-nav { gap: 14px; }
  .landing-nav .nav-link { display: none; }
  .button-outline { min-height: 42px; padding-inline: 16px; font-size: 13px; }
  .hero { padding-block: 54px 65px; gap: 49px; }
  .hero h1 { font-size: clamp(55px, 13vw, 78px); letter-spacing: -3.6px; }
  .hero-description { margin-top: 28px; font-size: 16px; line-height: 1.7; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 13px; margin-top: 28px; }
  .hero-stats { margin-top: 37px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .hero-stats strong { font-size: 16px; }
  .hero-stats span { max-width: 110px; font-size: 11px; line-height: 1.5; }
  .image-frame { height: 340px; padding: 9px; border-radius: 25px; }
  .image-frame > img { border-radius: 18px; }
  .floating-note { top: -13px; right: -5px; padding: 13px 14px; }
  .floating-note strong { font-size: 16px; }
  .floating-note span { font-size: 11px; }
  .scan-preview { right: 19px; bottom: 20px; left: 19px; min-height: 64px; padding: 10px 13px; }
  .scan-status { padding: 8px 9px; font-size: 10px; }
  .scan-preview strong { font-size: 13px; }
  .how-grid { padding-block: 57px; grid-template-columns: 1fr; gap: 32px; }
  .how-step { padding-top: 16px; }
  .how-step h2 { margin: 18px 0 8px; font-size: 23px; }
  .workspace-main { padding-top: 43px; }
  .privacy-note { gap: 8px; font-size: 11px; }
  .privacy-note .status-dot { width: 7px; height: 7px; }
  .workspace-intro { margin-bottom: 27px; }
  .workspace-intro h1 { margin-top: 9px; font-size: 34px; line-height: 1.15; }
  .workspace-intro p { font-size: 14px; line-height: 1.5; }
  .analysis-card { min-height: 0; grid-template-columns: 1fr; border-radius: 22px; }
  .editor-panel { min-height: 480px; padding: 25px 22px 20px; }
  .editor-panel textarea { min-height: 290px; margin-top: 23px; font-size: 15px; }
  .editor-footer { align-items: flex-start; flex-direction: column; gap: 15px; }
  .submit-button { width: 100%; }
  .result-panel { min-height: 330px; padding: 37px 22px; border-top: 1px solid var(--line); border-left: 0; }
  .empty-result h2, .result-content h2 { font-size: 23px; }
  .disclaimer { margin-top: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .landing-page .hero-copy > *, .landing-page .hero-stats > div,
  .landing-page .scan-preview > *, .landing-page .floating-note > *, .landing-page .how-step > *,
  .workspace-main .workspace-intro > *, .workspace-main .editor-heading > *, .workspace-main .editor-footer > *,
  .workspace-main .result-content > *, .workspace-main .empty-result > * {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
