:root {
  --bg: #f7efe4;
  --surface: #fff9f2;
  --card: rgba(255, 249, 242, 0.88);
  --ink: #1d2a23;
  --muted: #5f655f;
  --line: rgba(42, 64, 53, 0.12);
  --accent: #d46328;
  --accent-deep: #8f3c10;
  --secondary: #2d6a54;
  --soft: #f3dcc2;
  --shadow: 0 18px 40px rgba(98, 57, 23, 0.12);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --phone-width: min(100vw - 24px, 430px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at top, rgba(212, 99, 40, 0.15), transparent 32%),
    linear-gradient(180deg, #fbf3ea 0%, #f3e8da 100%);
  color: var(--ink);
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
}

.page-shell {
  display: flex;
  justify-content: center;
  padding: 22px 12px 40px;
}

.phone-frame {
  width: var(--phone-width);
  display: grid;
  gap: 16px;
}

.hero-card,
.tool-card,
.result-card,
.content-card {
  backdrop-filter: blur(10px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px;
}

.hero-brand {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  align-items: center;
}

.hero-logo {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 700;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 2rem;
  line-height: 1.05;
}

h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero-copy,
.hint,
.disclaimer-text,
.faq-list p,
#next-step-copy {
  color: var(--muted);
  line-height: 1.55;
}

.hero-tags,
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.pill-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(45, 106, 84, 0.08);
  border: 1px solid rgba(45, 106, 84, 0.12);
  font-size: 0.92rem;
}

.quick-nav-card {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-nav-card a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(29, 42, 35, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.section-head {
  margin-bottom: 14px;
}

.checker-form {
  display: grid;
  gap: 16px;
}

fieldset {
  margin: 0;
  padding: 0;
  border: none;
}

legend {
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 0.98rem;
}

.toggle-row,
.duration-grid,
.symptom-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toggle-chip,
.duration-chip,
.symptom-chip {
  appearance: none;
  border: 1px solid rgba(29, 42, 35, 0.12);
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  text-align: left;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.toggle-chip,
.duration-chip {
  flex: 1 1 calc(50% - 10px);
}

.symptom-chip {
  width: calc(50% - 5px);
  min-height: 72px;
}

.chip-title {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

.chip-meta {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

.toggle-chip.is-active,
.duration-chip.is-active,
.symptom-chip.is-active {
  border-color: rgba(212, 99, 40, 0.45);
  background: linear-gradient(180deg, #fff1e4 0%, #ffe8d7 100%);
  transform: translateY(-1px);
}

.upload-box {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1.5px dashed rgba(45, 106, 84, 0.32);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  padding: 18px;
  color: var(--muted);
  font-weight: 600;
}

.upload-box input {
  display: none;
}

.image-preview {
  width: 100%;
  margin-top: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  object-fit: cover;
  max-height: 220px;
}

.primary-button {
  border: none;
  border-radius: 18px;
  min-height: 56px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff7f1;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 12px 24px rgba(143, 60, 16, 0.22);
}

.primary-button:disabled {
  opacity: 0.6;
}

.form-status {
  min-height: 20px;
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.result-metric {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: linear-gradient(180deg, #fff3df 0%, #ffe9d0 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 99, 40, 0.16);
  margin-bottom: 14px;
}

.metric-label {
  font-size: 0.92rem;
  color: var(--muted);
}

.result-metric strong {
  font-size: 2rem;
  line-height: 1;
}

.result-block + .result-block {
  margin-top: 16px;
}

.seo-columns ul {
  padding-left: 20px;
}

.seo-columns {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.section-copy {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.keyword-grid,
.ingredient-grid {
  display: grid;
  gap: 12px;
}

.keyword-grid article,
.ingredient-grid article {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.keyword-grid article h3,
.ingredient-grid article h3 {
  margin-bottom: 6px;
}

.keyword-grid article p,
.ingredient-grid article p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.faq-list article {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.faq-list article:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.hidden {
  display: none !important;
}

@media (max-width: 380px) {
  .hero-brand {
    grid-template-columns: 1fr;
  }

  .symptom-chip {
    width: 100%;
  }
}
