:root {
  color-scheme: light;
  --text: #283b32;
  --muted: #657269;
  --blue: #087fab;
  --blue-hover: #05698e;
  --green: #375f48;
  --border: #dce3dd;
  --surface: #f5f7f4;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 280px; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; font: 16px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0; color: var(--text); background: #fff; }
main { flex: 1; }
button, input { font: inherit; letter-spacing: 0; }
button, a, input { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
h2:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.mobile-copy, .advice-short { display: none; }

.site-header { background: #fff; }
.header-inner { max-width: 1160px; min-height: 76px; margin: 0 auto; padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-logo { width: 184px; height: auto; max-height: 52px; object-fit: contain; }
.header-meta { display: flex; align-items: center; gap: 24px; }
.header-assurance { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.header-assurance img { flex: 0 0 18px; }
.demo-badge { font-size: 11px; font-weight: 600; padding: 4px 9px; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); background: #fafbf9; }

.garden-hero { position: relative; height: min(360px, 38svh); min-height: 240px; overflow: hidden; background: #dce5d8; }
.garden-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.garden-caption { position: absolute; bottom: 0; left: 0; right: 0; color: #fff; background: rgba(19, 43, 30, .82); }
.garden-inner { max-width: 1160px; padding: 22px 32px; margin: 0 auto; }
h1 { margin: 0 0 6px; font-size: 40px; line-height: 1.15; font-weight: 700; }
.garden-inner p { margin: 0; font-size: 16px; color: #f4f7f0; }
.benefit-band { background: #fff; border-bottom: 1px solid var(--border); }
.benefit-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 44px; max-width: 1160px; padding: 18px 32px; margin: 0 auto; list-style: none; font-size: 13px; font-weight: 500; }
.benefit-list li { display: flex; align-items: center; gap: 8px; }
.benefit-list img { flex: 0 0 18px; }

.funnel-band { background: var(--surface); }
.funnel { max-width: 1160px; min-height: 430px; padding: 30px 32px 36px; margin: 0 auto; scroll-margin-top: 0; }
.funnel-header { padding-bottom: 25px; }
.stepper { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 530px; margin: 0 auto; padding: 0; list-style: none; }
.stepper::before { content: ""; position: absolute; left: 16.667%; right: 16.667%; top: 14px; height: 1px; background: var(--border); }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 500; }
.step-circle { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); font-size: 12px; font-weight: 700; box-shadow: 0 0 0 5px var(--surface); }
.step-circle img { display: none; }
.stepper li[data-state="current"] { color: var(--green); font-weight: 700; }
.stepper li[data-state="current"] .step-circle { color: #fff; border-color: var(--green); background: var(--green); }
.stepper li[data-state="complete"] { color: var(--green); }
.stepper li[data-state="complete"] .step-circle { border-color: var(--green); background: var(--green); }
.stepper li[data-state="complete"] .step-number { display: none; }
.stepper li[data-state="complete"] .step-circle img { display: block; }
.funnel-content > section:not([hidden]) { animation: panel-in .2s ease-out both; }
h2 { margin: 0 0 8px; text-align: center; font-size: 30px; line-height: 1.25; font-weight: 700; text-wrap: balance; }
.section-copy { max-width: 660px; margin: 0 auto 25px; color: var(--muted); text-align: center; font-size: 15px; line-height: 1.5; }

.look-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 22px; }
.look-option { position: relative; min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text); text-align: left; transition: border-color .15s ease, box-shadow .15s ease; }
.look-option:hover { border-color: var(--blue); box-shadow: 0 4px 12px rgba(31, 56, 39, .08); }
.look-option:active { border-color: var(--blue); }
.look-option[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.look-image { width: 100%; aspect-ratio: 1.7; height: auto; object-fit: contain; background: #fff; }
.look-label { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 18px; line-height: 1.3; }
.look-label > span { min-width: 0; }
.look-label strong { display: block; font-size: 17px; font-weight: 700; }
.look-label small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 400; }
.option-arrow { flex: 0 0 20px; transform: rotate(180deg); }
.choice-check { visibility: hidden; position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(18, 54, 66, .12); }
.look-option[aria-pressed="true"] .choice-check { visibility: visible; }
.advice-option { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; min-height: 44px; margin: 0 auto; padding: 8px 0; border: 0; background: transparent; color: var(--blue); font-size: 13px; text-align: center; }
.advice-option img { flex: 0 0 20px; }
.advice-option:hover span { text-decoration: underline; text-underline-offset: 4px; }
.advice-option[aria-pressed="true"] { color: var(--green); font-weight: 700; }

.meter-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; max-width: 930px; margin: 0 auto; }
.example-image { margin: 0; min-width: 0; }
.example-image img { width: 100%; aspect-ratio: 1.8; height: auto; object-fit: cover; border-radius: 5px; }
.example-image figcaption { padding: 10px 0 0; color: var(--muted); font-size: 12px; }
.field { display: grid; gap: 7px; min-width: 0; font-size: 13px; font-weight: 600; }
.field input { display: block; width: 100%; min-width: 0; height: 52px; padding: 12px 13px; border: 1px solid #cdd7ce; border-radius: 5px; background: #fff; color: var(--text); font-size: 16px; font-weight: 400; transition: border-color .15s ease; }
.field input::placeholder { color: #838f85; }
.field input:focus { border-color: var(--blue); outline: 2px solid rgba(8, 127, 171, .18); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: #bb4b46; background: #fff8f7; }
.unit-input { position: relative; display: block; }
.unit-input input { padding-right: 44px; }
.unit-input > span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-weight: 500; color: var(--muted); pointer-events: none; }
.estimate { display: grid; gap: 3px; margin: 20px 0 0; padding: 17px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.estimate strong { font-size: 32px; line-height: 1.3; color: var(--green); overflow-wrap: anywhere; }
.estimate > span:last-child { font-size: 11px; }
.actions { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: stretch; gap: 12px; margin-top: 20px; }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 12px 16px; border: 1px solid var(--blue); border-radius: 5px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 700; line-height: 1.35; text-align: center; transition: background .15s ease, border-color .15s ease; }
.primary-button:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.primary-button img { flex: 0 0 20px; }
.button-label { min-width: 0; }
.back-button { display: grid; place-items: center; width: 52px; min-height: 52px; padding: 12px; border: 1px solid var(--border); border-radius: 5px; background: #fff; }
.back-button:hover, .edit-button:hover { background: #e9eee7; }
.form-error { margin: 10px 0 0; color: #a63230; font-size: 13px; font-weight: 500; }

.contact-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 48px; max-width: 930px; margin: 0 auto; align-items: start; }
.your-project { min-width: 0; }
.project-photo { width: 100%; aspect-ratio: 1.4; height: auto; object-fit: cover; border-radius: 5px; }
.selection-summary { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 14px 0; color: var(--muted); font-size: 13px; }
.selection-summary > div { min-width: 0; flex: 1; }
.selection-summary strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 14px; }
.selection-summary span { display: block; }
.edit-button { display: grid; place-items: center; flex: 0 0 40px; height: 40px; padding: 10px; border: 0; border-radius: 4px; background: transparent; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 16px; }
.optional { color: var(--muted); font-weight: 400; }
.demo-notice { display: flex; align-items: flex-start; gap: 7px; margin: 20px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.demo-notice img { flex: 0 0 18px; }
.success-icon { margin: 0 auto 16px; }
.success-copy { max-width: 600px; margin: 14px auto 26px; text-align: center; color: var(--muted); font-size: 15px; }
.result-summary { max-width: 550px; margin: 0 auto 28px; }
.result-summary div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.result-summary dt { color: var(--muted); }
.result-summary dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.restart-button { width: 100%; max-width: 550px; margin: 0 auto; }

.site-footer { background: #fff; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1160px; min-height: 72px; margin: 0 auto; padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-links { display: flex; flex-wrap: wrap; gap: 24px; color: var(--muted); font-size: 12px; }
.brand-links a { text-decoration: none; text-underline-offset: 4px; }
.brand-links a:hover { color: var(--blue); text-decoration: underline; }
.agency-credit { display: block; flex: 0 0 auto; }
.agency-credit img { width: 100px; height: auto; }

@keyframes panel-in {
  from { opacity: .7; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .header-inner, .garden-inner, .funnel, .footer-inner { padding-left: 24px; padding-right: 24px; }
  .look-grid { gap: 16px; }
  .look-label { padding: 12px; }
  .meter-layout { gap: 28px; }
  .contact-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; }
  .contact-grid { gap: 16px 12px; }
}

@media (max-width: 760px) {
  main { display: flex; flex-direction: column; }
  .site-header, .site-footer, .garden-hero, .benefit-band { flex-shrink: 0; }
  .desktop-copy { display: none; }
  .mobile-copy { display: inline; }
  .header-inner { min-height: 54px; padding: 7px 16px; }
  .brand-logo { width: 146px; max-height: 40px; }
  .header-assurance { display: none; }
  .header-meta { gap: 0; }
  .garden-hero { height: clamp(132px, 20svh, 180px); min-height: 0; }
  .garden-photo { object-position: 56% 50%; }
  .garden-inner { padding: 10px 16px; }
  h1 { font-size: 26px; line-height: 1.12; max-width: 340px; }
  .garden-inner p { font-size: 12px; max-width: 340px; }
  body:not([data-step="1"]) .garden-hero, body:not([data-step="1"]) .benefit-band { display: none; }
  .benefit-list { gap: 14px; padding: 7px 16px; font-size: 11px; line-height: 1.4; }
  .benefit-list li:first-child { display: none; }
  .benefit-list li { gap: 5px; }
  .benefit-list img { width: 14px; height: 14px; flex-basis: 14px; }
  .funnel-band { flex: 1; display: flex; }
  .funnel { width: 100%; max-width: 560px; padding: 14px 16px; min-height: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
  .funnel-header { padding-bottom: 12px; }
  .stepper { gap: 8px; }
  .stepper li { font-size: 11px; }
  .step-circle { width: 24px; height: 24px; font-size: 11px; }
  .stepper::before { top: 12px; }
  h2 { font-size: 22px; margin-bottom: 6px; }
  .section-copy { font-size: 12px; margin-bottom: 12px; }
  .look-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .look-option { display: grid; grid-template-columns: 38% minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); align-items: stretch; height: clamp(76px, 10svh, 88px); }
  .look-image { min-height: 0; height: 100%; aspect-ratio: auto; object-position: center; }
  .look-label { min-height: 0; padding: 10px 14px; }
  .look-label strong { font-size: 16px; }
  .look-label small { font-size: 11px; }
  .choice-check { top: 8px; left: 8px; right: auto; }
  .advice-option { font-size: 12px; padding: 5px 0; }
  .meter-layout, .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .example-image img { height: clamp(96px, 15svh, 140px); aspect-ratio: auto; }
  .example-image figcaption { padding-top: 4px; font-size: 11px; }
  .field { gap: 4px; font-size: 12px; }
  .field input { height: 48px; padding: 10px; }
  .estimate { margin-top: 12px; padding: 10px 0; }
  .estimate strong { font-size: 28px; }
  .project-photo { display: none; }
  .selection-summary { min-height: 40px; padding: 0 0 8px; border-bottom: 1px solid var(--border); font-size: 12px; }
  .selection-summary strong { display: none; }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
  .demo-notice { margin-top: 10px; }
  .primary-button { gap: 10px; padding: 10px 12px; min-height: 48px; font-size: 14px; }
  .back-button { width: 48px; min-height: 48px; }
  .actions { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; margin-top: 12px; }
  .footer-inner { min-height: 44px; padding: 0 16px; justify-content: center; }
  .brand-links { gap: 0 20px; font-size: 11px; }
  .brand-links a { display: flex; align-items: center; min-height: 44px; }
  .success-icon { width: 38px; height: 38px; margin-bottom: 12px; }
  .success-copy { font-size: 13px; margin: 10px auto 18px; }
  .result-summary { margin-bottom: 18px; }
}

@media (max-width: 359px) {
  .header-inner { gap: 10px; }
  .brand-logo { width: 138px; }
  .demo-badge { padding: 4px 6px; font-size: 10px; }
  .primary-button { gap: 8px; padding: 9px; }
  .contact-grid { gap: 10px 8px; }
  .field input { padding-left: 8px; padding-right: 8px; }
}

@media (max-width: 760px) and (max-height: 700px) {
  .garden-hero { height: clamp(100px, 18svh, 126px); }
  .garden-inner { padding: 8px 16px; }
  h1 { font-size: 24px; }
  .benefit-band, [data-panel="1"] .section-copy, [data-panel="3"] .section-copy { display: none; }
  .funnel { padding-top: 10px; padding-bottom: 10px; }
  .funnel-header { padding-bottom: 8px; }
  .look-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .look-option { display: flex; flex-direction: column; height: 104px; }
  .look-image { height: 70px; flex: 0 0 70px; }
  .look-label { width: 100%; min-height: 32px; padding: 5px 9px; }
  .look-label strong { font-size: 15px; }
  .look-label small { display: none; }
  .option-arrow { width: 16px; height: 16px; flex-basis: 16px; }
  .advice-option { grid-column: auto; flex-direction: column; width: 100%; height: 104px; padding: 10px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
  .advice-long { display: none; }
  .advice-short { display: inline; }
  .field input { height: 44px; padding-top: 8px; padding-bottom: 8px; }
  .meter-layout, .contact-layout { gap: 8px; }
  .example-image img { height: 104px; }
  .example-image figcaption { display: none; }
  .estimate { padding: 8px 0; margin-top: 10px; }
  .estimate strong { font-size: 26px; }
  .actions { margin-top: 10px; }
  .primary-button, .back-button { min-height: 44px; }
  .form-error { margin-top: 6px; font-size: 12px; }
}

@media (max-width: 760px) and (max-height: 600px) {
  .header-inner { min-height: 50px; padding-top: 5px; padding-bottom: 5px; }
  .garden-hero { height: 100px; }
  .garden-inner p { display: none; }
  .stepper li > span:last-child { display: none; }
  h2 { font-size: 20px; }
  .look-option, .advice-option { height: 96px; }
  .look-image { height: 64px; flex-basis: 64px; }
  .funnel { padding-top: 8px; padding-bottom: 8px; }
  .section-copy { margin-bottom: 8px; }
  #meter-hint { display: none; }
  .field { gap: 2px; line-height: 1.35; }
  .contact-grid { row-gap: 6px; }
  .demo-notice { margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
