/* SSS Fit by Ether-Real — shared styles for every page on the domain */
:root {
  --oat: #F4EEE6; --sage: #5E7A62; --sage-dark: #4A6250; --ink: #1E1A17; --muted: #6B645C; --line: #E0D8CC; --card: #FFFFFF;
  --input: #E4ECFD; --input-line: #B9CBF6; --done: #E3EDE4; --done-ink: #2F5236;
  --amber: #C98A0A; --amber-bg: #FBE7B0; --brick: #A63A2B; --brick-bg: #F6E3E0;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif; --body: 'IBM Plex Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--oat); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
a { color: var(--sage-dark); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; }
h1 { font-size: 36px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #7F9CE8; outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 560px; margin: 0 auto; padding: 20px 16px 120px; display: flex; flex-direction: column; gap: 20px; }
.wrap.wide { max-width: 960px; }
.brandbar { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; gap: 12px; }
.brandbar a { color: var(--muted); text-decoration: none; }
.brandbar b { color: var(--ink); font-family: var(--display); font-size: 18px; letter-spacing: .5px; text-transform: none; }
.lead { color: #3F3A35; }
.muted { color: var(--muted); font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }

.progress { height: 6px; border-radius: 3px; background: #E6E0D6; overflow: hidden; }
.progress > div { height: 6px; background: var(--sage); transition: width .25s; }

.q { display: flex; flex-direction: column; gap: 8px; }
.q > .label, .q > label.label { font-weight: 600; font-size: 15px; }
.q .help { font-size: 13px; color: var(--muted); font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #C9C2B6; background: #fff; font-size: 15px; }
.chip[aria-pressed="true"] { background: var(--sage); border-color: var(--sage); color: #fff; font-weight: 500; }
.yn { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #EFEAE2; }
.yn > span { flex: 1; font-size: 15px; }
.yn button { width: 64px; height: 44px; border-radius: 10px; border: 1px solid #C9C2B6; background: #fff; font-size: 15px; }
.yn button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.yn button.yes[aria-pressed="true"] { background: var(--sage); border-color: var(--sage); }
.more { padding: 0 0 10px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }

input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], select, textarea {
  width: 100%; min-height: 48px; border-radius: 10px; border: 1px solid var(--input-line); background: var(--input); padding: 10px 12px; font-size: 16px; color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border: 2px solid var(--brick); }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }
.dob { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; }
.tick { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid #C9C2B6; border-radius: 12px; background: #fff; cursor: pointer; }
.tick input { width: 22px; height: 22px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--sage); }
.tick.req strong { color: var(--ink); }
.tick .opt { color: var(--muted); }
.declaration { background: #FAF7F2; border-radius: 12px; padding: 14px; font-size: 14px; }

.grid-slots { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: 13px; }
.grid-slots th { font-weight: 500; color: var(--muted); font-size: 12px; text-align: center; padding: 0 0 2px; }
.grid-slots th.day { text-align: left; color: var(--ink); font-size: 14px; font-weight: 600; width: 48px; }
.slot { width: 100%; height: 44px; border-radius: 8px; border: 1px solid #C9C2B6; background: #fff; }
.slot[aria-pressed="true"] { background: var(--sage); border-color: var(--sage); }
.scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.scale button { height: 44px; border-radius: 8px; border: 1px solid #C9C2B6; background: #fff; font-size: 15px; padding: 0; }
.scale button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.scale-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

.actions { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(244, 238, 230, .96); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.actions .inner { max-width: 560px; margin: 0 auto; display: flex; gap: 10px; }
.btn { min-height: 52px; padding: 0 20px; border-radius: 12px; border: 1px solid #C9C2B6; background: #fff; font-size: 16px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); }
.btn.primary { flex: 1; background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.btn.sage { background: var(--sage); border-color: var(--sage); color: #fff; font-weight: 600; }
.btn:disabled { opacity: .55; cursor: default; }

.errors { border: 2px solid var(--brick); background: var(--brick-bg); color: #6E2217; border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.errors ul { margin: 6px 0 0; padding-left: 20px; }
.notice { border-radius: 12px; padding: 12px 14px; font-size: 15px; background: #FDF3D9; color: #6B4600; }
.notice.good { background: var(--done); color: var(--done-ink); }
.notice.bad { background: var(--brick-bg); color: #6E2217; border: 1px solid var(--brick); }
.steps { display: flex; flex-direction: column; gap: 14px; }
.steps div { display: flex; gap: 12px; }
.steps b { color: var(--sage); font-family: var(--display); font-size: 22px; line-height: 1.1; }
.bar { height: 10px; border-radius: 5px; background: #E6E0D6; overflow: hidden; }
.bar > div { height: 10px; background: var(--sage); width: 0; transition: width .2s; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.photo-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-slot { display: flex; flex-direction: column; gap: 6px; align-items: stretch; text-align: center; font-size: 14px; font-weight: 600; }
.photo-slot .frame { aspect-ratio: 3/4; border-radius: 12px; border: 2px dashed #C9C2B6; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--muted); font-weight: 400; font-size: 13px; padding: 6px; cursor: pointer; }
.photo-slot .frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }

footer.site { font-size: 13px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; padding-top: 8px; }

/* Daily Systems */
.filters { display: grid; grid-template-columns: 1fr 200px; gap: 10px; }
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.guide { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.guide .cat { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--sage-dark); font-weight: 600; }
.guide h3 { font-size: 22px; }
.guide p { font-size: 15px; color: #3F3A35; }
.guide button { align-self: flex-start; }
.article { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.article ul, .article ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.placeholder { background: var(--amber-bg); color: #6B4600; border-radius: 6px; padding: 1px 6px; font-size: 13px; font-weight: 600; }

/* Legal pages */
.legal { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.legal h2 { margin: 24px 0 8px; }
.legal h3 { margin: 16px 0 6px; }
.legal p, .legal li { font-size: 15px; margin: 0 0 10px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 0 0 12px; }
.legal td, .legal th { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }

@media (min-width: 700px) {
  h1 { font-size: 44px; }
  .wrap { padding-top: 36px; }
}
@media (max-width: 420px) {
  .filters { grid-template-columns: 1fr; }
  .scale { grid-template-columns: repeat(5, 1fr); }
}
