/* Sensory Paws — felt and stitches. Calm by default: nothing moves until someone asks it to. */
:root {
  --ink: #2B2540;        /* deep plum, for text */
  --ink-soft: #57506E;
--paper: hsl(190.9, 17.1%, 62.2%);       /* lilac-tinted white */
--paper-light: #ffffff;
  --plush: #C9BDF0;      /* the bear */
  --plush-deep: #B3A4E6;
  --pad: #F2A6B4;        /* paw-pad pink */
  --moss: #A9D4BC;       /* calm green */
  --glow: #FFE29A;       /* night-light yellow */
  --stitch: 2.5px dashed var(--plush-deep);
  --display: "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 34rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; font-weight: 500; }
p { margin: 0; max-width: var(--measure); }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--glow); padding: 0.5rem 1rem; border-radius: 999px; z-index: 5; }

/* ---- top bar */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem clamp(1rem, 5vw, 4rem);
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--display); font-weight: 600; font-size: 1.3rem; text-decoration: none; }
.brand svg { width: 2rem; height: 2rem; color: var(--plush-deep); }
.top nav { display: flex; align-items: center; gap: clamp(0.8rem, 2.4vw, 1.8rem); flex-wrap: wrap; font-weight: 400; font-size: 0.98rem; }
.top nav a { text-decoration: none; padding: 0.35rem 0; }
.top nav a:hover { text-decoration: underline; }
.top nav .nav-cta { background: var(--ink); color: var(--paper); padding: 0.5rem 1.1rem; border-radius: 999px; }

/* ---- buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 1.05rem var(--body); text-decoration: none; cursor: pointer;
  background: var(--ink); color: var(--paper);
  border: 2.5px solid var(--ink); border-radius: 999px; padding: 0.8rem 1.6rem; min-height: 3.2rem;
}
.button:hover { background: #3d3559; }
.button.quiet { background: transparent; color: var(--ink); }
.button.quiet:hover { background: var(--glow); }
.button.quiet[aria-pressed="true"] { background: var(--glow); }

/* ---- hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(1.5rem, 5vw, 4rem) clamp(1rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem);
}
.hero-text { display: grid; gap: 1.5rem; }
.lede { font-size: 1.2rem; }
.actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.status-note { font-size: 0.95rem; color: var(--ink-soft); }

/* A felt patch with a stitched edge. Used twice on the page, on purpose. */
.patch {
  background: #fff; border-radius: 2.2rem; padding: 0.7rem;
  box-shadow: 0 0 0 0.7rem #fff inset; position: relative;
}
.patch::before {
  content: ""; position: absolute; inset: 0.7rem; border: var(--stitch); border-radius: 1.6rem; pointer-events: none;
}
#plush { background: var(--moss); display: grid; justify-items: center; padding: 2rem 1.5rem 1.6rem; }
#plush::before { border-color: #fff; }
.plush { width: min(100%, 21rem); height: auto; }
.breath-cue {
  font-family: var(--display); font-weight: 500; font-size: 1.15rem; text-align: center; min-height: 3.4em;
  display: grid; align-items: center; max-width: 18rem;
}
.glow { transform-origin: 180px 292px; transform: scale(1); opacity: 0.9; }
#plush.breathing-in .glow { transform: scale(2.1); opacity: 1; transition: transform 4s ease-in-out, opacity 4s ease-in-out; }
#plush.breathing-out .glow { transform: scale(1); opacity: 0.9; transition: transform 6s ease-in-out, opacity 6s ease-in-out; }

/* ---- sections */
.band { padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 5vw, 4rem); display: grid; gap: 1.6rem; }
.section-intro { font-size: 1.1rem; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { counter-increment: step; background: var(--plush); border-radius: 1.8rem; padding: 1.6rem 1.5rem 1.8rem; display: grid; gap: 0.7rem; align-content: start; }
.steps li:nth-child(2) { background: var(--glow); }
.steps li:nth-child(3) { background: var(--moss); }
.steps li::before {
  content: counter(step); font-family: var(--display); font-weight: 600; font-size: 1.5rem;
  width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--paper-light); display: grid; place-items: center;
}
.steps p { font-size: 1rem; }

.table-patch { padding: 1.6rem 1.4rem; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 36rem; }
th, td { text-align: left; vertical-align: top; padding: 0.95rem 1rem; }
thead th { font-family: var(--display); font-weight: 500; font-size: 1rem; color: var(--ink-soft); }
tbody tr + tr > * { border-top: 2px dotted var(--plush); }
tbody th { font-family: var(--display); font-weight: 600; font-size: 1.1rem; width: 24%; }
td { font-size: 1rem; }

.split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: clamp(1.5rem, 5vw, 4rem); background: var(--ink); color: var(--paper); border-radius: 2.2rem; margin: 0 clamp(0.5rem, 3vw, 2.5rem); }
.split > div { display: grid; gap: 1.2rem; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.plain-list li { padding: 0.9rem 0; border-bottom: 2px dotted #6b6388; }
.plain-list li:last-child { border-bottom: 0; }

.updates form { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 1rem; align-items: end; max-width: 54rem; }
.field { display: grid; gap: 0.4rem; }
label { font-weight: 500; font-size: 0.98rem; }
input, select {
  font: 400 1.05rem var(--body); color: var(--ink); background: #fff;
  border: 2.5px solid var(--ink); border-radius: 1rem; padding: 0.75rem 1rem; min-height: 3.2rem; width: 100%;
}
.form-message { grid-column: 1 / -1; min-height: 1.7em; font-weight: 400; }
.form-message.ok { color: #1f6b47; }
.form-message.error { color: #a12a45; }

.foot { padding: 2.5rem clamp(1rem, 5vw, 4rem) 3rem; display: grid; gap: 0.6rem; font-size: 0.95rem; color: var(--ink-soft); }
.foot p { max-width: none; }
.foot a { margin-right: 1.4rem; }

/* Plain pages (privacy, not found) */
.page { padding: clamp(1.5rem, 5vw, 4rem) clamp(1rem, 5vw, 4rem); display: grid; gap: 1.2rem; }
.page h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page h2 { font-size: 1.5rem; margin-top: 1rem; }
.page ul { margin: 0; padding-left: 1.2rem; max-width: var(--measure); }
.notice { background: var(--glow); border-radius: 1.2rem; padding: 1rem 1.3rem; max-width: var(--measure); font-weight: 400; }

/* On a phone the table becomes a stack: one block per person, each cell with its own label. */
@media (max-width: 700px) {
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { display: grid; gap: 0.5rem; padding: 1rem 0.4rem; }
  tbody tr + tr { border-top: 2px dotted var(--plush); }
  tbody tr + tr > * { border-top: 0; }
  tbody th, td { padding: 0; width: auto; }
  td::before { content: attr(data-label); display: block; font-weight: 500; font-size: 0.85rem; color: var(--ink-soft); }
}

@media (max-width: 860px) {
  .hero, .split { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .updates form { grid-template-columns: minmax(0, 1fr); }
  .top nav a:not(.nav-cta) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #plush.breathing-in .glow, #plush.breathing-out .glow { transition: opacity 1s linear; transform: scale(1.5); }
}
