:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #27322b;
  background: #f5f0e6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #27322b;
  --muted: #73786e;
  --green: #315b47;
  --green-dark: #254735;
  --paper: #fffdf8;
  --line: #e8e2d5;
  --orange: #e89a57;
  --cream: #f5f0e6;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(ellipse at 2% 20%, rgba(234, 216, 184, 0.22), transparent 28rem),
    var(--cream);
}

button,
input,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid #d88a48;
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.page-shell {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
}

.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(95, 98, 79, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 8px;
  color: #fffaf0;
  background: var(--green);
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  transform: rotate(-12deg);
}

.brand-ai {
  color: #a56d38;
}

.header-note {
  color: #77786e;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero {
  min-height: 306px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 27px 0 34px;
  padding: 38px 62px;
  border: 1px solid #ece1cc;
  border-radius: 16px;
  background: #efe5d1;
}

.hero-copy {
  z-index: 1;
  width: min(700px, 72%);
}

.eyebrow,
.step-label {
  margin: 0;
  color: #777664;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d78a4c;
}

.hero h1 {
  max-width: 670px;
  margin: 16px 0 11px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.hero-intro {
  max-width: 530px;
  margin: 0;
  color: #64695e;
  font-size: 14px;
  line-height: 1.6;
}

.review-reminder {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 20px 0 0;
  padding: 9px 13px;
  border: 1px solid rgba(119, 111, 81, 0.2);
  border-radius: 99px;
  color: #4a5947;
  background: rgba(255, 253, 248, 0.55);
  font-size: 12px;
  font-weight: 600;
}

.review-reminder span {
  color: #bb7840;
  font-size: 17px;
}

.hero-art {
  width: 280px;
  height: 260px;
  position: absolute;
  right: 38px;
  bottom: -6px;
}

.art-sun {
  width: 132px;
  height: 132px;
  position: absolute;
  top: 16px;
  right: 47px;
  border-radius: 50%;
  background: #e7ae6e;
}

.art-cup {
  width: 135px;
  height: 116px;
  position: absolute;
  right: 55px;
  bottom: 24px;
  border: 7px solid #fff9ec;
  border-radius: 13px 13px 45px 45px;
  background: #bd7448;
  box-shadow: 0 14px 0 #d9c8a9;
  transform: rotate(-7deg);
}

.art-cup::after {
  width: 38px;
  height: 45px;
  position: absolute;
  top: 23px;
  right: -39px;
  border: 7px solid #fff9ec;
  border-left: 0;
  border-radius: 0 25px 25px 0;
  content: "";
}

.art-cup span {
  width: 78px;
  height: 7px;
  position: absolute;
  top: -19px;
  left: 20px;
  border-radius: 10px;
  background: #fff9ec;
  box-shadow: 0 9px 0 rgba(255, 249, 236, 0.62);
}

.art-leaf {
  width: 54px;
  height: 24px;
  position: absolute;
  border-radius: 100% 0 100% 0;
  background: #63846b;
  transform: rotate(-29deg);
}

.art-leaf-one {
  top: 66px;
  left: 4px;
}

.art-leaf-two {
  top: 104px;
  left: 22px;
  background: #82966f;
  transform: rotate(23deg) scale(0.82);
}

.art-spark {
  position: absolute;
  color: #fff7df;
}

.art-spark-one {
  top: 32px;
  left: 47px;
  font-size: 29px;
}

.art-spark-two {
  top: 112px;
  right: 15px;
  color: #b77842;
  font-size: 24px;
}

.art-caption {
  position: absolute;
  right: 222px;
  bottom: 53px;
  color: #776044;
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  line-height: 1.2;
  transform: rotate(-8deg);
}

.work-area {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(330px, 0.93fr);
  align-items: start;
  gap: 22px;
}

.workspace-column,
.preview-column {
  display: grid;
  gap: 22px;
}

.panel {
  min-width: 0;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  box-shadow: 0 5px 18px rgba(67, 59, 39, 0.025);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.heading-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #93613c;
  background: #f7ecdc;
  font-size: 19px;
}

.heading-icon-green {
  color: #3e6a4e;
  background: #e9f0e7;
}

.heading-icon-image {
  color: #6a688d;
  background: #efedf7;
}

.section-description {
  margin: 11px 0 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.field {
  min-width: 0;
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  color: #465047;
  font-size: 12px;
  font-weight: 700;
}

.field label span {
  color: #bb7040;
}

.field input,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #e4e0d6;
  border-radius: 7px;
  color: var(--ink);
  background: #fffefa;
  font-size: 12px;
  line-height: 1.5;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field input {
  min-height: 42px;
}

.field textarea {
  min-height: 74px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a3a39a;
}

.field input:focus,
.field textarea:focus {
  border-color: #7a9a7e;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(100, 139, 107, 0.13);
}

.field-hint {
  color: #82847a;
  font-size: 10px;
  line-height: 1.45;
}

.form-grid-bottom .field {
  margin-bottom: 0;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 21px;
  padding-top: 18px;
  border-top: 1px solid #eee9df;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background-color 140ms ease, transform 140ms ease, border-color 140ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.button-primary {
  color: #fffdf8;
  background: var(--green);
}

.button-primary:hover:not(:disabled) {
  background: var(--green-dark);
}

.button-outline {
  border-color: #dcd7ca;
  color: #445348;
  background: #fffefa;
}

.button-outline:hover:not(:disabled) {
  border-color: #a7b49f;
  background: #f4f6ef;
}

.button-outline > span:first-child {
  color: #b87942;
}

.button-arrow {
  font-size: 16px;
  font-weight: 400;
}

.empty-state {
  min-height: 195px;
  display: grid;
  justify-items: center;
  align-content: center;
  padding: 24px;
  border: 1px dashed #ded9cc;
  border-radius: 9px;
  text-align: center;
  background: #fbfaf5;
}

.empty-state-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #6c8065;
  background: #edf1e9;
  font-size: 18px;
}

.empty-state p {
  margin: 12px 0 4px;
  color: #455046;
  font-size: 13px;
  font-weight: 700;
}

.empty-state > span:last-child {
  color: #85867d;
  font-size: 11px;
}

.results-list {
  display: grid;
  gap: 11px;
}

.result-card {
  position: relative;
  padding: 14px 14px 11px;
  border: 1px solid #eae6dc;
  border-radius: 8px;
  background: #fffefa;
}

.result-concept {
  border-left: 3px solid #d99a5c;
}

.result-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.result-topline h3 {
  margin: 0;
  color: #465047;
  font-size: 12px;
}

.result-tag {
  color: #929186;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.result-copy {
  overflow-wrap: anywhere;
  margin: 10px 0;
  color: #444a42;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  border: 0;
  color: #54715c;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.copy-button:hover {
  color: #274c36;
  text-decoration: underline;
}

.visual-prompt-details {
  padding: 11px 13px;
  border: 1px solid #eae6dc;
  border-radius: 8px;
  background: #fbfaf5;
}

.visual-prompt-details summary {
  color: #59665a;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.visual-prompt-details .result-copy {
  margin-bottom: 0;
}

.preview-label {
  padding: 5px 8px;
  border: 1px solid #e8ddca;
  border-radius: 99px;
  color: #8d704b;
  background: #fbf5e9;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.generated-image {
  min-height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #ddd8ca;
  border-radius: 9px;
  background:
    radial-gradient(ellipse at 50% 70%, rgba(226, 218, 196, 0.5), transparent 55%),
    #f6f3eb;
}

.image-placeholder {
  display: grid;
  justify-items: center;
  padding: 25px;
  text-align: center;
}

.placeholder-sun {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #b77c48;
  background: #f1e4ce;
  font-size: 23px;
}

.image-placeholder p {
  margin: 12px 0 4px;
  color: #596154;
  font-size: 13px;
  font-weight: 700;
}

.image-placeholder > span:last-child {
  color: #929086;
  font-size: 10px;
}

.generated-image img {
  width: 100%;
  max-height: 390px;
  display: block;
  object-fit: contain;
  background: #eee8dc;
}

.image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 13px;
}

.button-image {
  flex: 1 1 145px;
}

.button-download {
  flex: 1 1 125px;
}

.button-download > span {
  color: #64806a;
}

.image-help {
  margin: 11px 0 0;
  color: #88887d;
  font-size: 10px;
  line-height: 1.5;
}

.landing-card {
  overflow: hidden;
  margin-top: 19px;
  border: 1px solid #e8e1d3;
  border-radius: 9px;
  background: #fffdf8;
}

.landing-image {
  min-height: 111px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 51% 80%, rgba(255, 248, 224, 0.8), transparent 38%),
    linear-gradient(135deg, #d5d9bb 0%, #e8cfaa 100%);
}

.landing-image::before,
.landing-image::after {
  width: 90px;
  height: 90px;
  position: absolute;
  top: 33px;
  border-radius: 100% 0 100% 0;
  background: rgba(81, 118, 83, 0.55);
  content: "";
  transform: rotate(-30deg);
}

.landing-image::before {
  left: -28px;
}

.landing-image::after {
  right: -18px;
  transform: rotate(50deg);
}

.landing-image-flower {
  z-index: 1;
  color: rgba(255, 249, 230, 0.87);
  font-size: 59px;
}

.landing-image-caption {
  position: absolute;
  right: 11px;
  bottom: 8px;
  color: rgba(54, 70, 53, 0.79);
  font-family: var(--serif);
  font-size: 10px;
  font-style: italic;
}

.landing-image.has-generated-image {
  background-position: center;
  background-size: cover;
}

.landing-image.has-generated-image::before,
.landing-image.has-generated-image::after,
.landing-image.has-generated-image .landing-image-flower,
.landing-image.has-generated-image .landing-image-caption {
  display: none;
}

.landing-card-content {
  padding: 17px 18px 19px;
}

.landing-business {
  margin: 0 0 7px;
  color: #8a6743;
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
}

.offer-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 9px;
  color: #58765b;
  font-size: 9px;
  font-weight: 700;
}

.offer-status span {
  font-size: 7px;
}

.landing-card-content h3 {
  margin: 0;
  color: #2f3c32;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 19px;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.landing-description {
  margin: 8px 0 10px;
  color: #6d7168;
  font-size: 11px;
  line-height: 1.55;
}

.landing-price {
  margin: 0;
  color: #a05e35;
  font-size: 16px;
  font-weight: 700;
}

.landing-validity {
  min-height: 17px;
  margin: 4px 0 13px;
  color: #84847a;
  font-size: 10px;
}

.button-cta {
  width: 100%;
  min-height: 40px;
  color: #fffdf8;
  background: #936440;
}

.button-cta:hover {
  background: #7f5234;
}

.cta-note {
  margin: 8px 0 0;
  color: #8a897e;
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
}

.site-footer {
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 26px;
  border-top: 1px solid rgba(95, 98, 79, 0.15);
  color: #71756b;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
}

.footer-flower {
  color: #ad7848;
  font-size: 18px;
}

.toast {
  position: fixed;
  z-index: 10;
  right: 22px;
  bottom: 20px;
  max-width: min(380px, calc(100% - 32px));
  padding: 12px 16px;
  border-radius: 8px;
  color: #fffdf8;
  background: #315b47;
  box-shadow: 0 8px 28px rgba(36, 57, 42, 0.2);
  font-size: 12px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-error {
  background: #8b4436;
}

@media (max-width: 850px) {
  .page-shell {
    width: min(100% - 36px, 680px);
  }

  .hero {
    min-height: 290px;
    padding: 32px;
  }

  .hero-copy {
    width: 76%;
  }

  .hero-art {
    right: -64px;
    opacity: 0.7;
    transform: scale(0.86);
    transform-origin: right bottom;
  }

  .work-area {
    grid-template-columns: 1fr;
  }

  .preview-column {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: calc(100% - 24px);
  }

  .site-header {
    height: 64px;
  }

  .brand {
    font-size: 15px;
  }

  .header-note {
    font-size: 9px;
  }

  .hero {
    min-height: auto;
    margin: 16px 0 18px;
    padding: 24px 20px 25px;
    border-radius: 12px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    max-width: 390px;
    font-size: clamp(31px, 9.2vw, 43px);
  }

  .hero-intro {
    max-width: 330px;
    font-size: 12px;
  }

  .review-reminder {
    max-width: 100%;
    align-items: flex-start;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.45;
  }

  .hero-art {
    right: -141px;
    bottom: -45px;
    opacity: 0.22;
    transform: scale(0.72);
  }

  .work-area,
  .workspace-column,
  .preview-column {
    gap: 14px;
  }

  .panel {
    padding: 19px 16px;
    border-radius: 10px;
  }

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

  .section-description {
    margin-bottom: 16px;
    font-size: 11px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-grid .field {
    margin-bottom: 13px;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .form-actions .button {
    width: 100%;
  }

  .preview-column {
    grid-template-columns: 1fr;
  }

  .generated-image {
    min-height: 195px;
  }

  .site-footer {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 17px 4px;
    text-align: left;
  }

  .site-footer p {
    font-size: 9px;
  }

  .toast {
    right: 12px;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
