/* TrailStroll - Stroller & Trail Compatibility Checker */
:root {
  --color-earth: #5C4A3A;
  --color-earth-light: #7A6A58;
  --color-sage: #8B9E7A;
  --color-sage-light: #C5D4B8;
  --color-sage-dark: #5E7A48;
  --color-sand: #F5F0E8;
  --color-sand-dark: #E8DFD0;
  --color-cream: #FDFBF7;
  --color-red: #B85C3A;
  --color-red-light: #F0D9D0;
  --color-green: #4A7A3A;
  --color-green-light: #D4E8C8;
  --color-yellow: #C4A23A;
  --color-yellow-light: #F5EBC8;
  --color-text: #2E2A24;
  --color-text-muted: #6B6358;
  --color-white: #FFFFFF;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(46, 42, 36, 0.08);
  --shadow-md: 0 4px 12px rgba(46, 42, 36, 0.1);
  --shadow-lg: 0 8px 24px rgba(46, 42, 36, 0.12);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-sage-dark); }
a:hover { color: var(--color-earth); }

h1, h2, h3 { line-height: 1.25; color: var(--color-earth); }
h1 { font-size: 2.2rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.6rem; margin: 0 0 0.5rem; }
h3 { font-size: 1.1rem; margin: 0 0 0.4rem; }

p { margin: 0 0 0.8rem; }

/* Header */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-sand-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-earth);
  font-weight: 700;
  font-size: 1.2rem;
}

.brand-icon { color: var(--color-sage-dark); }

.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.site-nav a:hover {
  color: var(--color-sage-dark);
  border-bottom-color: var(--color-sage);
}

/* Hero */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-sage-dark);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-svg {
  width: 100%;
  max-width: 280px;
  height: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.btn-primary {
  background: var(--color-sage-dark);
  color: var(--color-white);
  border-color: var(--color-sage-dark);
}

.btn-primary:hover {
  background: #4A6838;
  border-color: #4A6838;
  color: var(--color-white);
}

.btn-secondary {
  background: var(--color-sage-light);
  color: var(--color-earth);
  border-color: var(--color-sage);
}

.btn-secondary:hover {
  background: var(--color-sage);
  color: var(--color-white);
}

.btn-ghost {
  background: transparent;
  color: var(--color-earth);
  border-color: var(--color-sand-dark);
}

.btn-ghost:hover {
  background: var(--color-sand);
}

.btn-small {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.btn-danger {
  background: var(--color-red-light);
  color: var(--color-red);
  border-color: var(--color-red-light);
}

.btn-danger:hover {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Sections */
section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.section-intro {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* Checker */
.checker-section {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  margin: 0 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  max-width: var(--max-width);
}

.checker-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
}

.panel-intro {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.form-group {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.form-group legend {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-earth);
  margin-bottom: 0.75rem;
  padding: 0;
}

.stroller-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.stroller-card {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-sand-dark);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: var(--color-cream);
}

.stroller-card:hover {
  border-color: var(--color-sage);
}

.stroller-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.stroller-card:has(input:checked) {
  border-color: var(--color-sage-dark);
  background: var(--color-green-light);
}

.stroller-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-earth);
}

.stroller-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.field-row label {
  font-weight: 600;
  font-size: 0.9rem;
}

.field-row input,
.field-row select {
  padding: 0.55rem 0.75rem;
  border: 2px solid var(--color-sand-dark);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color 0.15s;
}

.field-row input:focus,
.field-row select:focus {
  outline: none;
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(94, 122, 72, 0.15);
}

.field-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Result Panel */
.checker-result-panel {
  background: var(--color-sand);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 5rem;
  align-self: start;
}

.score-display {
  text-align: center;
  margin-bottom: 1.25rem;
}

.score-ring {
  width: 140px;
  height: 140px;
  margin: 0 auto 0.75rem;
  position: relative;
}

.score-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-bg {
  fill: none;
  stroke: var(--color-sand-dark);
  stroke-width: 8;
}

.score-fill {
  fill: none;
  stroke: var(--color-sage-dark);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  transition: stroke-dashoffset 0.5s ease, stroke 0.3s;
}

.score-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-earth);
}

.score-max {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.score-label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-earth);
}

.verdict-box {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--color-sage);
}

.verdict-box h3 {
  margin-bottom: 0.3rem;
}

.verdict-box p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.warnings-box {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
}

.warnings-box h3 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.warnings-box ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.85rem;
}

.warnings-box li {
  margin-bottom: 0.3rem;
}

.warning-empty {
  color: var(--color-text-muted);
  list-style: none;
  margin-left: -1.2rem;
}

.result-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Comparison Table */
.comparison-section { padding-top: 3rem; }

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-sand-dark);
}

.comparison-table th {
  background: var(--color-earth);
  color: var(--color-white);
  font-weight: 600;
}

.comparison-table tbody tr:hover {
  background: var(--color-sand);
}

/* Scenarios */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.scenario-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--color-sage);
}

.scenario-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.scenario-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.scenario-tip {
  font-size: 0.85rem;
  color: var(--color-sage-dark);
  font-weight: 500;
  margin-top: 0.5rem;
}

/* Saved Trails */
.saved-section {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  margin: 0 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.saved-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
}

.saved-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.saved-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--color-sand);
  border-radius: var(--radius-sm);
  gap: 0.75rem;
}

.saved-item-info {
  flex: 1;
  min-width: 0;
}

.saved-item-name {
  font-weight: 600;
  color: var(--color-earth);
}

.saved-item-details {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.saved-item-score {
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.score-high { background: var(--color-green-light); color: var(--color-green); }
.score-mid { background: var(--color-yellow-light); color: var(--color-yellow); }
.score-low { background: var(--color-red-light); color: var(--color-red); }

.saved-empty {
  color: var(--color-text-muted);
  font-style: italic;
  padding: 1rem;
  text-align: center;
}

.saved-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Mistakes */
.mistakes-section { padding-top: 3rem; }

.mistakes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.mistake {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border-left: 4px solid var(--color-red);
}

.mistake h3 {
  font-size: 0.95rem;
  color: var(--color-red);
}

.mistake p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--color-earth);
  color: var(--color-sand);
  margin-top: 3rem;
  padding: 2rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--color-sage-light);
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  color: var(--color-sage-light);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-meta {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--color-sage-light);
  border-top: 1px solid rgba(197, 212, 184, 0.2);
  padding-top: 1rem;
}

.footer-meta p { margin: 0; }

/* Responsive */
@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1rem;
  }
  .hero-visual { order: -1; }
  .hero-svg { max-width: 180px; }
  .hero-actions { justify-content: center; }
  .checker-grid { grid-template-columns: 1fr; }
  .checker-result-panel { position: static; }
  .stroller-options { grid-template-columns: 1fr; }
  .saved-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .site-nav { gap: 0.75rem; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
}

@media (max-width: 480px) {
  .form-actions { flex-direction: column; }
  .result-actions { flex-direction: column; }
  .btn { width: 100%; }
}

/* Print */
@media print {
  .site-header, .site-footer, .hero-visual, .result-actions, .saved-actions, .form-actions { display: none; }
  .checker-section { box-shadow: none; border: 1px solid #ccc; }
  body { background: white; }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
