:root {
  --bg: #f6efe4;
  --bg-strong: #efe3d0;
  --surface: rgba(255, 251, 244, 0.72);
  --text: #38281f;
  --text-muted: #6a574a;
  --line: rgba(56, 40, 31, 0.14);
  --line-strong: rgba(56, 40, 31, 0.22);
  --button: #4a3529;
  --button-text: #f8f0e6;
  --success: #36533f;
  --error: #8b4d37;
  --shadow: 0 22px 50px rgba(71, 52, 39, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --max-width: 42rem;
  --mono: "IBM Plex Mono", "SFMono-Regular", "SF Mono", Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.45), transparent 32%),
    linear-gradient(180deg, #faf4ea 0%, var(--bg) 100%);
  color: var(--text);
  font-family: var(--mono);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.site-shell {
  padding: 3.5rem 1.5rem 2rem;
}

.page {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.intro {
  padding-bottom: 2rem;
}

.intro-title{
  font-size: 20px;
  font-weight: 500;
}

.intro--compact {
  padding-bottom: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h2 {
  font-size: 1rem;
  line-height: 1.2;
}

h3 {
  font-size: 0.95rem;
  line-height: 1.4;
}

.lede {
  margin-top: 1.25rem;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.section,
.site-footer {
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.product-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-item {
  /* display: flex; */
  align-items: center;
  gap: 0.3rem;
  padding: 1rem 0;
}

.product-item + .product-item {
  border-top: 1px solid var(--line);
}

.product-item p {
  color: var(--text-muted);
}

.product-item h3{
  display: inline;
}

.product-item p{
  display: inline;
}

.site-footer {
  margin-top: 1rem;
}

.site-footer a,
.back-link {
  display: inline-block;
  color: var(--text-muted);
}

.site-footer a:hover,
.back-link:hover {
  color: var(--text);
}

.back-link {
  margin-bottom: 1.5rem;
}

.section--form {
  padding-top: 1.5rem;
}

.report-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field label {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field input,
.field textarea,
.select-trigger {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 250, 244, 0.84);
  padding: 0.95rem 1rem;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.field input:focus,
.field textarea:focus,
.select-trigger:focus,
.select-option:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(74, 53, 41, 0.08);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(106, 87, 74, 0.75);
}

.field-error {
  display: none;
  color: var(--error);
  font-size: 0.83rem;
  line-height: 1.4;
}

.field-error.is-visible {
  display: block;
}

.custom-select {
  position: relative;
}

.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
}

.select-caret {
  width: 0.7rem;
  height: 0.7rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  flex: 0 0 auto;
  color: var(--text-muted);
  transition: transform 160ms ease;
}

.custom-select[data-open="true"] .select-caret {
  transform: rotate(-135deg) translate(-1px, -1px);
}

.select-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.45rem;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 250, 244, 0.98);
  box-shadow: var(--shadow);
  display: none;
  z-index: 20;
}

.custom-select[data-open="true"] .select-menu {
  display: block;
}

.select-option {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.select-option:hover,
.select-option[aria-selected="true"] {
  background: var(--bg-strong);
}

.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.app-chip__icon {
  width: 1rem;
  height: 1rem;
  border-radius: 0.3rem;
  background: #111;
  flex: 0 0 auto;
}

.app-chip__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-meta {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.submit-btn {
  min-width: 10.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-text);
  padding: 0.9rem 1.3rem;
  cursor: pointer;
  transition:
    transform 160ms ease,
    opacity 160ms ease,
    background-color 160ms ease;
}

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

.submit-btn:disabled {
  cursor: wait;
  opacity: 0.9;
}

.submit-btn[data-state="sending"] {
  background: #5d483c;
}

.submit-btn[data-state="success"] {
  background: var(--success);
}

.submit-btn[data-state="error"] {
  background: var(--error);
}

.submit-btn.shake {
  animation: shake 360ms ease;
}

.form-notice {
  min-height: 1.4em;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.form-notice.is-success {
  color: var(--success);
}

.form-notice.is-error {
  color: var(--error);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  75% {
    transform: translateX(4px);
  }
}

@media (max-width: 640px) {
  .site-shell {
    padding: 2rem 1rem 1.5rem;
  }

  .report-form {
    padding: 1.15rem;
  }

  .form-actions {
    align-items: stretch;
  }

  .submit-btn {
    width: 100%;
  }
}
