/* Poshyo preview — simple, warm, mobile-first. */

:root {
  --bg: #FBF7F0;
  --surface: #FFFFFF;
  --surface-2: #F6F0E6;
  --ink: #26332F;
  --ink-soft: #55645E;
  --muted: #7C8A84;
  --line: #EDE4D6;
  --line-strong: #E0D4C0;
  --brand: #2E6E62;
  --brand-dark: #24574D;
  --brand-soft: #E3EFEB;
  --amber: #F9C46B;
  --amber-soft: #FDF1DA;
  --amber-strong: #B97D1E;
  --coral-soft: #FBE7E2;
  --coral-strong: #A5442F;
  --green: #3C8A5A;
  --green-soft: #E4F2E8;
  --blue-soft: #E6EEF6;
  --blue-strong: #38618A;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(38, 51, 47, .05), 0 10px 30px -18px rgba(38, 51, 47, .25);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 3px solid rgba(46, 110, 98, .4);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 12px 0;
  z-index: 60;
}
.skip-link:focus { left: 0; }

a { color: var(--brand-dark); }

.demo-ribbon {
  background: var(--amber-soft);
  border-bottom: 1px solid #F2DFBA;
  color: #6B4D12;
  font-size: 13.5px;
  padding: 8px 16px;
  text-align: center;
}
.demo-ribbon strong { color: #593F0B; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 247, 240, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.wordmark {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wordmark-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, var(--amber) 34%, var(--brand) 36%);
  display: inline-block;
}
.persona-switch {
  display: inline-flex;
  margin-left: auto;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.persona-switch a {
  padding: 6px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}
.persona-switch a.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.about-link {
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px dotted var(--muted);
}

.page {
  max-width: 1020px;
  margin: 0 auto;
  padding: 22px 18px 60px;
}

h1 { font-size: 28px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 6px; }
h2 { font-size: 20px; letter-spacing: -.01em; margin: 0 0 4px; }
h3 { font-size: 16.5px; margin: 0 0 4px; }
p { margin: 0 0 10px; }
.lead { font-size: 17px; color: var(--ink-soft); }
.small { font-size: 13.5px; color: var(--muted); }
.tiny { font-size: 12.5px; color: var(--muted); }

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}
.hero p { max-width: 620px; margin: 0; color: var(--ink-soft); }
.household-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.chip.ok { background: var(--green-soft); color: #276139; border-color: #CFE6D6; }
.chip.wait { background: var(--amber-soft); color: var(--amber-strong); border-color: #F2DFBA; }
.chip.demo { background: var(--blue-soft); color: var(--blue-strong); border-color: #D3E0EE; }
.chip.done { background: var(--brand-soft); color: var(--brand-dark); border-color: #CFE3DD; }

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 26px 0 12px;
}
.section-title h2 { margin: 0; }
.section-title .small { margin: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 14px;
}

.need-card {
  border-left: 4px solid var(--amber);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.need-card .need-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.need-card.approved { border-left-color: var(--green); }
.need-card h3 { margin: 0; }
.need-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font: inherit;
  font-weight: 650;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  background: var(--brand);
  color: #fff;
  transition: transform .06s ease, background .15s ease;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn-secondary {
  background: var(--surface);
  color: var(--brand-dark);
  border-color: var(--line-strong);
}
.btn-secondary:hover { background: var(--brand-soft); }
.btn-quiet {
  background: transparent;
  color: var(--ink-soft);
  border-color: transparent;
  text-decoration: underline dotted;
  padding: 8px 10px;
}
.btn-quiet:hover { background: var(--surface-2); }
.btn[disabled] { opacity: .5; cursor: default; }

.option {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  background: var(--surface);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.option.selected { border-color: var(--brand); background: #FBFDFC; box-shadow: 0 0 0 3px rgba(46, 110, 98, .12); }
.option.hidden-option { opacity: .45; }
.option.hidden-option .option-name { text-decoration: line-through; }
.option input[type="radio"] { margin-top: 5px; accent-color: var(--brand); }
.option-main { flex: 1; min-width: 0; }
.option-name { font-weight: 700; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.option-facts { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; display: grid; gap: 3px; }
.option-facts .fact-label { color: var(--muted); }
.option-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

.why { margin-top: 10px; font-size: 13.5px; }
.why summary { cursor: pointer; color: var(--brand-dark); font-weight: 600; }
.why .source-list { margin: 8px 0 0; padding-left: 18px; }
.why .source-list li { margin-bottom: 4px; word-break: break-word; }

.prepared {
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--surface-2);
  padding: 16px;
  margin-top: 6px;
}
.prepared h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prepared .message {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14.5px;
  white-space: pre-line;
}
.prepared ul { margin: 8px 0; padding-left: 20px; }
.prepared li { margin-bottom: 4px; }

.status-flow { list-style: none; margin: 12px 0 0; padding: 0; }
.status-flow li {
  position: relative;
  padding: 0 0 18px 30px;
  border-left: 2px solid var(--line-strong);
  margin-left: 8px;
}
.status-flow li:last-child { border-left-color: transparent; padding-bottom: 0; }
.status-flow li::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line-strong);
}
.status-flow li.current::before { border-color: var(--amber-strong); background: var(--amber); }
.status-flow li.done::before { border-color: var(--green); background: var(--green-soft); }
.status-step-title { font-weight: 650; }

.grid-2 { display: grid; gap: 14px; }
@media (min-width: 880px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-2 .card { margin-bottom: 0; }
  .grid-2 { align-items: start; }
}

.compare {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
@media (min-width: 760px) {
  .compare.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
  .compare.cols-2 { grid-template-columns: 1fr 1fr; }
}
.compare-col {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.compare-col.pick { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(46, 110, 98, .12); }
.compare-col h4 { margin: 0; font-size: 15.5px; }
.compare-row { font-size: 13.5px; color: var(--ink-soft); }
.compare-row .fact-label { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.compare-col .compare-actions { margin-top: auto; padding-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  align-items: baseline;
}
.timeline li:last-child { border-bottom: 0; }
.timeline .when { font-weight: 700; color: var(--brand-dark); min-width: 92px; font-size: 13.5px; }
.timeline .what { flex: 1; font-size: 14.5px; }

.dog-row {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  margin-bottom: 10px;
  overflow: hidden;
}
.dog-row summary {
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
}
.dog-row summary::-webkit-details-marker { display: none; }
.dog-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  flex: none;
}
.dog-main { flex: 1; min-width: 0; }
.dog-main .name { font-weight: 700; }
.dog-main .need { font-size: 13.5px; color: var(--ink-soft); }
.dog-body { padding: 0 16px 14px 66px; font-size: 14px; }
.dog-body ul { margin: 6px 0 10px; padding-left: 18px; }

.week { display: grid; gap: 10px; }
@media (min-width: 700px) { .week { grid-template-columns: repeat(3, 1fr); } }
.week-day {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 12px 14px;
}
.week-day .day { font-weight: 700; font-size: 13.5px; color: var(--brand-dark); }
.week-day ul { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-soft); }

.persona-grid { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 760px) { .persona-grid { grid-template-columns: 1fr 1fr; } }
.persona-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.persona-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -16px rgba(38, 51, 47, .3); }
.persona-card h2 { display: flex; align-items: center; gap: 10px; }
.persona-emoji { font-size: 22px; }

.notice {
  background: var(--blue-soft);
  border: 1px solid #D3E0EE;
  color: #2F5578;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
}
.notice.amber { background: var(--amber-soft); border-color: #F2DFBA; color: #6B4D12; }

.medical-card {
  background: linear-gradient(180deg, #FCF9F3, var(--surface));
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  margin-top: 30px;
}
.footer-inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 22px 18px 28px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.footer-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.footer-actions a { color: var(--brand-dark); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  max-width: min(92vw, 520px);
  box-shadow: 0 12px 40px -10px rgba(0,0,0,.4);
  z-index: 80;
}

.back-link { display: inline-block; margin-bottom: 10px; font-size: 14px; text-decoration: none; color: var(--ink-soft); }
.back-link:hover { color: var(--brand-dark); }

.stat-line {
  background: var(--brand-soft);
  border: 1px solid #CFE3DD;
  color: var(--brand-dark);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  margin-top: 6px;
}

.about-list { padding-left: 20px; }
.about-list li { margin-bottom: 6px; }

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