:root {
  --bg: #f7f7f2;
  --ink: #171814;
  --muted: #71756a;
  --line: rgba(23, 24, 20, .12);
  --card: rgba(255, 255, 252, .78);
  --accent: #c8ff4d;
  --accent-dark: #9bd619;
  --shadow: 0 30px 80px rgba(46, 54, 31, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, textarea, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}
.orb-one {
  width: 520px; height: 520px;
  top: -250px; right: -160px;
  background: radial-gradient(circle, rgba(200,255,77,.55), rgba(200,255,77,0) 67%);
}
.orb-two {
  width: 500px; height: 500px;
  bottom: -330px; left: -240px;
  background: radial-gradient(circle, rgba(216,224,191,.5), rgba(216,224,191,0) 70%);
}

.site-header {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 820;
  letter-spacing: -1.3px;
  font-size: 24px;
}
.brand-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--accent);
  border-radius: 9px;
  margin-right: 3px;
  font-size: 18px;
  letter-spacing: 0;
}
.status {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  display: flex; align-items: center; gap: 8px;
}
.status span { width: 7px; height: 7px; border-radius: 50%; background: #78b800; box-shadow: 0 0 0 5px rgba(120,184,0,.1); }

.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.hero {
  min-height: calc(100vh - 155px);
  padding: clamp(70px, 10vh, 120px) 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #606459;
  background: rgba(255,255,255,.4);
}
h1 {
  font-size: clamp(52px, 8vw, 104px);
  line-height: .92;
  letter-spacing: -.065em;
  margin: 28px 0 26px;
  font-weight: 820;
  max-width: 1000px;
}
h1 em { font-style: normal; position: relative; z-index: 0; }
h1 em::after {
  content: "";
  position: absolute;
  height: .29em;
  left: -.03em; right: -.03em; bottom: .01em;
  background: var(--accent);
  z-index: -1;
  transform: rotate(-1deg);
  border-radius: 5px;
}
.lead {
  margin: 0 auto 36px;
  max-width: 680px;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
  color: var(--muted);
}
.prompt-form { width: min(820px, 100%); }
.prompt-box {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 22px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(23,24,20,.09);
  border-radius: 25px;
  box-shadow: var(--shadow), 0 2px 0 rgba(255,255,255,.8) inset;
  transition: box-shadow .2s ease, transform .2s ease;
}
.prompt-box:focus-within { box-shadow: 0 34px 100px rgba(46,54,31,.17); transform: translateY(-2px); }
.prompt-box textarea {
  flex: 1;
  resize: none;
  overflow: hidden;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  min-height: 28px;
  max-height: 120px;
  line-height: 1.45;
  font-size: 18px;
}
.prompt-box textarea::placeholder { color: #a0a397; }
.prompt-box button, .cart-button {
  border: 0;
  background: var(--ink);
  color: white;
  border-radius: 17px;
  min-height: 52px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 720;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}
.prompt-box button:hover, .cart-button:hover { background: #2b2d27; transform: translateY(-1px); }
.prompt-box svg, .cart-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.examples { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.examples button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.42);
  color: #5e6257;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
}
.examples button:hover { border-color: rgba(23,24,20,.25); color: var(--ink); }
.flow {
  margin-top: auto;
  padding-top: 76px;
  display: flex;
  align-items: center;
  width: min(780px, 100%);
}
.flow div { flex: 1; display: flex; gap: 10px; align-items: center; text-align: left; }
.flow strong { font-size: 11px; color: #a0a397; font-weight: 700; }
.flow span { font-size: 13px; color: #65695f; }
.flow i { width: 45px; height: 1px; background: var(--line); margin: 0 12px; }

.result {
  margin: 40px auto 110px;
  padding: clamp(25px, 4vw, 48px);
  border: 1px solid rgba(23,24,20,.08);
  border-radius: 36px;
  background: rgba(255,255,252,.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.result-top { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 30px; }
.result h2 { margin: 18px 0 8px; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.04em; }
.result-top p { color: var(--muted); margin: 0; line-height: 1.5; }
.price { font-size: 28px; font-weight: 800; white-space: nowrap; letter-spacing: -.03em; padding-top: 14px; }
.product-list { display: grid; gap: 0; }
.product-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--line); }
.product-index { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: #eff1e7; color: #6b7062; font-weight: 750; font-size: 12px; }
.product-name { font-weight: 690; line-height: 1.3; }
.product-meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.product-price { font-weight: 720; white-space: nowrap; }
.skipped { margin-top: 18px; background: #f7f0dc; border-radius: 14px; padding: 13px 15px; color: #756433; font-size: 13px; line-height: 1.45; }
.result-actions { display: flex; gap: 10px; margin-top: 30px; }
.cart-button { background: var(--ink); min-height: 56px; padding: 0 24px; }
.again-button { border: 1px solid var(--line); background: transparent; border-radius: 17px; padding: 0 20px; cursor: pointer; font-weight: 650; }
.disclaimer { margin: 18px 0 0; color: #94988d; font-size: 12px; line-height: 1.5; }

footer { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 34px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: #989b92; font-size: 12px; }
footer span:first-child { color: var(--ink); font-weight: 800; }

.hidden { display: none !important; }
.modal-backdrop, .loader-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(20,21,18,.38);
  backdrop-filter: blur(12px);
  display: grid; place-items: center;
  padding: 20px;
}
.modal, .loader-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 26px;
  padding: 32px;
  box-shadow: 0 35px 100px rgba(0,0,0,.2);
  position: relative;
}
.modal-close { position: absolute; right: 18px; top: 13px; border: 0; background: transparent; font-size: 28px; color: #94978e; cursor: pointer; }
.lock-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--accent); display: grid; place-items: center; margin-bottom: 20px; font-size: 18px; }
.modal h3 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.03em; }
.modal p { color: var(--muted); margin: 0 0 22px; }
.modal form { display: flex; gap: 8px; }
.modal input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; outline: 0; }
.modal input:focus { border-color: #89926f; box-shadow: 0 0 0 4px rgba(200,255,77,.22); }
.modal form button { border: 0; border-radius: 14px; background: var(--ink); color: white; padding: 0 16px; font-weight: 700; cursor: pointer; }
.modal-error { margin-top: 12px; color: #b13d2e; font-size: 13px; }
.loader-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.spinner { width: 44px; height: 44px; border: 4px solid #ecede7; border-top-color: var(--ink); border-radius: 50%; animation: spin .85s linear infinite; margin-bottom: 20px; }
.loader-card strong { font-size: 20px; }
.loader-card span { color: var(--muted); font-size: 14px; margin-top: 7px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 700px) {
  .site-header { padding: 20px; }
  .status { display: none; }
  .shell { width: min(100% - 28px, 1120px); }
  .hero { padding-top: 55px; min-height: calc(100vh - 100px); }
  h1 { font-size: clamp(48px, 15vw, 72px); }
  .lead { font-size: 16px; margin-bottom: 28px; }
  .prompt-box { padding: 8px 8px 8px 16px; border-radius: 20px; align-items: flex-end; }
  .prompt-box textarea { font-size: 16px; padding: 8px 0; }
  .prompt-box button { min-height: 46px; padding: 0 15px; border-radius: 14px; }
  .prompt-box button span { display: none; }
  .examples { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: 4px; }
  .examples button { white-space: nowrap; }
  .flow { padding-top: 55px; display: grid; gap: 10px; }
  .flow i { display: none; }
  .flow div { padding: 5px 0; }
  .result { border-radius: 25px; padding: 23px 18px; margin-bottom: 70px; }
  .result-top { display: block; }
  .price { padding-top: 18px; font-size: 24px; }
  .product-row { grid-template-columns: 38px 1fr; }
  .product-price { grid-column: 2; }
  .result-actions { flex-direction: column; }
  .again-button { min-height: 52px; }
  .modal { padding: 28px 20px 22px; }
  .modal form { flex-direction: column; }
  .modal form button { min-height: 46px; }
  footer { width: calc(100% - 28px); }
}
