/* BioSmart Care — shared stylesheet. Rules: docs/brand/DESIGN.md (accessibility first, then brand).
   Sizes are in rem with the browser's default root (16px) so text grows with the phone's settings:
   body 1.1875rem = 19px, the smallest text allowed is 1rem = 16px. */

@font-face { font-family: "Atkinson Hyperlegible"; src: url("/static/fonts/atkinson-hyperlegible-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/static/fonts/atkinson-hyperlegible-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/static/fonts/plus-jakarta-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/static/fonts/plus-jakarta-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Ink */
  --ink: #29384B;
  --ink-soft: #4A5B6C;
  /* Action */
  --action: #355F6F;
  --action-hover: #29384B;
  --link: #1F6F9E;
  --focus: #4BA5DB;
  /* Brand: decorative only, never text or a button fill with white text */
  --brand-blue: #4BA5DB;
  --brand-coral: #EE7670;
  --brand-sage: #6DB59C;
  /* Tints */
  --page: #F6F9FB;
  --paper: #FFFFFF;
  --tint-blue: #EAF5FB;
  --tint-coral: #FBEDEC;
  --tint-sage: #EAF6F1;
  --hairline: rgba(41, 56, 75, 0.08);
  /* Status */
  --urgent: #B9483F; --urgent-tint: #FBEDEC;
  --soon: #B54708;   --soon-tint: #FFF6E8;
  --routine: #2F7A5F; --routine-tint: #EAF6F1;
  /* Input border: DESIGN.md's #9AA7B4 measures 2.45:1, below its own 3:1 rule; this is 3.49:1. */
  --field-edge: #7D8B99;

  --shadow: 0 1px 2px rgba(41, 56, 75, 0.04), 0 12px 40px -12px rgba(41, 56, 75, 0.12);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --display: "Plus Jakarta Sans", "Atkinson Hyperlegible", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --gutter: 16px;
  --section: 64px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --section: 112px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--body); font-size: 1.1875rem;
       line-height: 1.55; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--action-hover); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; }
h1 { font-size: 2.25rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: 1.875rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: 1.375rem; font-weight: 600; line-height: 1.25; }
@media (min-width: 1024px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.5rem; }
}
.lead { font-size: 1.3125rem; color: var(--ink-soft); }
.soft { color: var(--ink-soft); }
.ink { color: var(--ink); }
.small { font-size: 1rem; }
.icon { flex: none; display: block; }

/* Visible focus everywhere: the brand's blue ring plus a dark inner ring, because the blue alone
   measures 2.7:1 on white. */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 2px var(--ink); }
.skip { position: absolute; left: 16px; top: -100px; padding: 12px 20px; border-radius: 999px; background: var(--ink);
        color: #fff; font-weight: 700; z-index: 30; }
.skip:focus { top: 16px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(1160px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.reading { max-width: calc(640px + 2 * var(--gutter)); }
.section { padding: var(--section) 0; }
.band-white { background: var(--paper); }
.band-blue { background: var(--tint-blue); }
.band-sage { background: var(--tint-sage); }
.stack { display: grid; gap: 24px; }
.stack-sm { display: grid; gap: 16px; }
.section-head { display: grid; gap: 16px; align-content: start; max-width: 760px; margin-bottom: 48px; }
.section-head.tight { margin-bottom: 8px; }
.section-head.center { text-align: center; justify-items: center; margin-left: auto; margin-right: auto; }
.measure { max-width: 65ch; }

/* ---------- Eyebrow, chips ---------- */
.eyebrow { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
           background: var(--tint-blue); color: var(--action); font-size: 1rem; font-weight: 700; line-height: 1.3; }
.section-head.center .eyebrow { justify-self: center; }
.eyebrow.coral { background: var(--tint-coral); color: var(--urgent); }
.eyebrow.white { background: var(--paper); }
.eyebrow.sage { background: var(--paper); color: var(--routine); }
.chips { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px 10px 12px;
        border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hairline);
        font-size: 1rem; font-weight: 700; color: var(--ink); }
.chip .icon { color: var(--action); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 56px; padding: 0 28px;
       border-radius: 999px; border: 2px solid transparent; font-family: var(--body); font-size: 1.1875rem; font-weight: 700;
       line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
       transition: background-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.2s var(--ease); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-hover); color: #fff; }
.btn-secondary { background: transparent; border-color: var(--action); color: var(--action); }
.btn-secondary:hover { background: var(--tint-blue); color: var(--action); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--tint-blue); color: var(--ink); }
.btn.has-arrow { padding-right: 10px; }
.btn-arrow { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.15);
             display: flex; align-items: center; justify-content: center; transition: transform 0.4s var(--ease); }
.btn-light .btn-arrow, .btn-secondary .btn-arrow { background: var(--tint-blue); }
.btn:hover .btn-arrow { transform: translateX(2px); }
.btn-block { width: 100%; }
.btn-small { min-height: 48px; padding: 0 20px; font-size: 1.0625rem; }
@media (max-width: 767px) { .btn-main { width: 100%; } }

/* ---------- Double-bezel card ---------- */
.shell { padding: 6px; border-radius: 28px; background: rgba(41, 56, 75, 0.04); box-shadow: inset 0 0 0 1px var(--hairline); }
.shell.blue { background: var(--tint-blue); }
.shell.glass { background: rgba(255, 255, 255, 0.6); }
.core { height: 100%; padding: 24px; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.core.flat { background: var(--page); box-shadow: none; }
@media (min-width: 768px) { .core { padding: 36px; } }
.shadow { box-shadow: var(--shadow); }
.icon-tile { width: 56px; height: 56px; border-radius: 18px; background: var(--tint-blue); color: var(--action);
             display: flex; align-items: center; justify-content: center; }
.icon-tile.large { width: 64px; height: 64px; border-radius: 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Clara bubble ---------- */
.clara { display: flex; align-items: flex-end; gap: 12px; }
.clara-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center 15%;
                box-shadow: 0 0 0 3px var(--paper), var(--shadow); }
.bubble { position: relative; padding: 14px 20px; border-radius: 22px 22px 22px 6px; background: var(--paper);
          box-shadow: var(--shadow); font-size: 1.125rem; line-height: 1.45; }
.bubble-name { display: block; color: var(--action); font-size: 1rem; font-weight: 700; }

/* ---------- Report preview (a stylized mini PDF, never a screenshot) ---------- */
.preview { display: grid; gap: 14px; }
.preview-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.preview-head .title { font-family: var(--display); font-weight: 700; font-size: 1.125rem; }
.status { padding: 12px 16px; border-radius: 14px; font-weight: 700; font-size: 1rem; border-left: 6px solid; }
.status.routine { background: var(--routine-tint); color: var(--routine); }
.status.soon { background: var(--soon-tint); color: var(--soon); }
.status.urgent { background: var(--urgent-tint); color: var(--urgent); }
.row { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; line-height: 1.45; }
.row .icon.good { color: var(--routine); }
.row .icon.attention { color: var(--urgent); }
.tile { padding: 16px 18px; border-radius: 16px; background: var(--page); font-size: 1rem; display: grid; gap: 4px; }
.tile.blue { background: var(--tint-blue); }
.tile.plain { background: none; padding: 0; }
.tile strong { font-size: 1.0625rem; }
.tile .label { color: var(--action); }

/* ---------- Header / navigation ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
          min-height: 72px; padding: 12px var(--gutter); background: var(--paper); box-shadow: inset 0 -1px 0 var(--hairline); }
.topbar .logo img { height: 32px; width: auto; }
.nav { display: none; }
@media (min-width: 960px) {
  .topbar.home { display: none; }
  .nav { position: sticky; top: 16px; z-index: 20; display: flex; align-items: center; gap: 36px; width: max-content;
         margin: 16px auto 0; padding: 10px 10px 10px 28px; border-radius: 999px; background: rgba(255, 255, 255, 0.85);
         -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
         box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow); }
  .nav .logo img { height: 40px; width: auto; }
  .nav-links { display: flex; gap: 28px; }
  .nav-links a { color: var(--ink); font-weight: 700; font-size: 1.0625rem; text-decoration: none; padding: 12px 0; }
  .nav-links a:hover { color: var(--action); text-decoration: underline; }
}
.page-header { display: flex; justify-content: center; padding: 24px var(--gutter) 8px; }
.page-header img { height: 40px; width: auto; }

/* ---------- Home: hero ---------- */
.hero { position: relative; overflow: hidden; padding: 32px 0 var(--section); }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: 280px; border-radius: 50%;
                background: var(--brand-blue); opacity: 0.25; filter: blur(80px); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 28px; }
.hero-copy { display: grid; gap: 22px; align-content: start; }
.hero-cta { display: grid; gap: 12px; justify-items: start; }
.hero-art { display: grid; gap: 16px; }
.photo-frame { padding: 8px; border-radius: 34px; background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow); }
.photo-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 28px; }
.hero-chips { display: grid; gap: 10px; }
.hero-chips .chip { border-radius: 18px; }
@media (max-width: 767px) { .hero-cta { justify-items: stretch; text-align: center; } }
@media (min-width: 768px) { .hero-chips { display: flex; } .hero-chips .chip { border-radius: 999px; } }
@media (min-width: 1024px) {
  .hero { padding-top: 64px; }
  .hero-grid { grid-template-columns: minmax(0, 600px) minmax(0, 1fr); grid-template-areas: "copy art" "chips art";
               column-gap: 80px; row-gap: 28px; }
  .hero-copy { grid-area: copy; align-self: end; }
  .hero-chips { grid-area: chips; align-self: start; }
  .hero-art { grid-area: art; align-self: center; }
  .hero-art { position: relative; display: block; min-height: 680px; }
  .hero-art .photo-frame { position: absolute; right: 30px; top: 0; width: 460px; }
  .hero-art .photo-frame img { aspect-ratio: auto; height: 580px; }
  /* On desktop the bubble covered Clara's face and repeated the preview card (Saul, 25-sep-2026). */
  .hero-art .hero-bubble { display: none; }
  .hero-art .hero-preview { position: absolute; left: 0; bottom: 0; width: 360px; }
}

/* ---------- Home: sections ---------- */
.bento { display: grid; gap: 20px; }
.bento .core { display: grid; gap: 16px; align-content: start; }
@media (min-width: 900px) { .bento { grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; } }
.closing { margin-top: 40px; font-family: var(--display); font-weight: 600; font-size: 1.375rem; line-height: 1.3; color: var(--action); }
@media (min-width: 1024px) { .closing { font-size: 1.625rem; } }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 96px; }
  .receive-preview { order: -1; }
}
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.benefits li { display: flex; gap: 16px; align-items: flex-start; }
.check-dot { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--tint-sage); color: var(--routine);
             display: flex; align-items: center; justify-content: center; }

.pair { display: grid; gap: 20px; }
@media (min-width: 768px) { .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.pair .core { display: grid; gap: 16px; align-content: start; }
.note { max-width: 820px; margin: 40px auto 0; text-align: center; color: var(--ink-soft); font-size: 1.0625rem; }

.steps { position: relative; display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; }
.step { position: relative; display: flex; gap: 16px; padding: 24px; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.step-num { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--tint-blue); color: var(--action);
            font-family: var(--display); font-weight: 700; font-size: 1.375rem; display: flex; align-items: center; justify-content: center; }
.step-body { display: grid; gap: 6px; }
.center-cta { display: flex; justify-content: center; margin-top: 48px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .steps::before { content: ""; position: absolute; left: 16%; right: 16%; top: 64px; border-top: 2px dashed rgba(53, 95, 111, 0.3); }
  .step { flex-direction: column; align-items: center; text-align: center; padding: 40px 32px; border-radius: 28px; }
}

.meet { display: grid; gap: 32px; align-items: center; }
.meet-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 18%; border-radius: 28px; }
.meet-copy { display: grid; gap: 22px; }
.meet-head { display: flex; gap: 16px; align-items: center; }
.meet-head .clara-avatar { width: 72px; height: 72px; }
.quote { display: flex; gap: 14px; align-items: center; padding: 20px 24px; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow);
         font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1.3; }
.quote .icon { color: var(--brand-coral); }
@media (max-width: 1023px) { .meet-photo { display: none; } }
@media (min-width: 1024px) {
  .meet { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 96px; }
  .meet-head .clara-avatar { display: none; }
  .meet-copy p { font-size: 1.25rem; }
  .quote { font-size: 1.5rem; padding: 22px 28px; }
}

.why { display: grid; gap: 40px; }
.why-grid { display: grid; gap: 20px; }
.why-card { display: grid; gap: 12px; align-content: start; padding: 28px; border-radius: 28px; background: var(--page); }
.why-card .icon { color: var(--action); }
@media (min-width: 768px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1024px) { .why { grid-template-columns: 400px minmax(0, 1fr); gap: 80px; } .why .section-head { margin: 0; } }

.privacy { display: grid; gap: 32px; align-items: center; }
.privacy .section-head { margin: 0; }
.checklist { list-style: none; margin: 0; padding: 28px; display: grid; gap: 20px; border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist .icon { color: var(--routine); margin-top: 2px; }
@media (min-width: 1024px) { .privacy { grid-template-columns: 1fr 1fr; gap: 80px; } .checklist { padding: 36px; } }

.price-card { max-width: 560px; margin: 0 auto; }
.price-card .core { display: grid; gap: 18px; justify-items: center; text-align: center; padding: 40px 24px; }
.price { display: flex; align-items: baseline; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 3rem;
         letter-spacing: -0.02em; line-height: 1; }
.price small { font-family: var(--body); font-size: 1.3125rem; color: var(--ink-soft); letter-spacing: 0; }
.price-unit { font-size: 1.25rem; font-weight: 700; color: var(--action); }
@media (min-width: 768px) { .price-card .core { padding: 48px; } .price { font-size: 4rem; } }

.faq-layout { display: grid; gap: 32px; }
.faq-layout .section-head { margin: 0; }
@media (min-width: 1024px) { .faq-layout { grid-template-columns: 400px minmax(0, 1fr); gap: 80px; } }
.faq details { border-bottom: 1px solid rgba(41, 56, 75, 0.12); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 12px 0;
               font-weight: 700; font-size: 1.1875rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 40px; text-align: center; font-size: 2rem; font-weight: 400; line-height: 1; color: var(--action); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-soft); margin: 0 0 24px; }

.final-band { padding-bottom: var(--section); }
.testimonial { margin: 0; }
.testimonial blockquote { margin: 0 0 12px; }
.final { position: relative; overflow: hidden; display: grid; gap: 24px; justify-items: center; text-align: center;
         padding: 64px 24px; border-radius: 36px; background: var(--ink); color: #fff; }
.final::before, .final::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.final::before { width: 500px; height: 500px; left: -160px; top: -240px; background: var(--brand-blue); opacity: 0.22; }
.final::after { width: 360px; height: 360px; right: -80px; bottom: -200px; background: var(--brand-coral); opacity: 0.18; }
.final > * { position: relative; }
.final h2 { color: #fff; }
.final p { color: #DDE6EE; font-size: 1.3125rem; }
.final .logo-white { width: 64px; height: 64px; filter: brightness(0) invert(1); }
@media (min-width: 1024px) { .final { padding: 88px 80px; } }

.footer { padding: 48px 0 64px; background: var(--paper); box-shadow: inset 0 1px 0 var(--hairline); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.footer-top img { height: 44px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 0; }
.footer-links a, .footer-links span { display: inline-block; padding: 12px 0; color: var(--ink); font-weight: 700; font-size: 1.0625rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-links span { color: var(--ink-soft); font-weight: 400; } /* legal pages not published yet: not a link */
.footer p { font-size: 1rem; color: var(--ink-soft); max-width: 860px; }

/* ---------- Form ---------- */
.form-page { padding-top: 16px; padding-bottom: var(--section); }
.form-intro { margin: 24px 0; }
.fieldset-card { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
label, legend { font-weight: 700; }
.optional { font-weight: 400; color: var(--ink-soft); }
.hint { margin: 0; color: var(--ink-soft); font-size: 1rem; }
input[type=text], input[type=email], input[type=number], textarea {
  width: 100%; min-height: 56px; padding: 14px 16px; border: 2px solid var(--field-edge); border-radius: 14px; background: var(--paper);
  color: var(--ink); font: inherit; transition: border-color 0.3s var(--ease); }
input:focus-visible, textarea:focus-visible { border-color: var(--action); }
textarea { min-height: 112px; resize: vertical; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
legend { padding: 0; margin-bottom: 2px; }
.choice { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 18px; border-radius: 14px;
          background: var(--paper); box-shadow: inset 0 0 0 2px var(--field-edge); font-weight: 400; cursor: pointer; }
.choice:has(input:checked) { background: var(--tint-blue); box-shadow: inset 0 0 0 3px var(--action); font-weight: 700; }
.choice input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--action); }
.consent { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; font-weight: 700; }
.consent input { flex: none; width: 28px; height: 28px; margin: 2px 0 0; accent-color: var(--action); }
.dropzone { position: relative; display: grid; gap: 12px; justify-items: start; padding: 24px; border-radius: 22px;
            background: var(--tint-blue); border: 2px dashed var(--action); }
.dropzone input[type=file] { width: 100%; font: inherit; font-size: 1rem; }
.file-button, .file-status { display: none; }
/* With JavaScript the native picker (its text follows the browser's language) becomes an invisible
   layer over a Spanish button; without JavaScript it stays visible. */
.js .dropzone { cursor: pointer; }
.js .dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.js .dropzone:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 2px var(--ink); }
.js .file-button { display: inline-flex; }
.js .file-status { display: block; margin: 0; color: var(--ink-soft); font-size: 1rem; }
.js .file-status[hidden] { display: none; }
.chosen { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; }
.chosen li { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--paper);
             font-size: 1rem; word-break: break-word; }
.chosen .icon { color: var(--action); }
.submitting { display: none; align-items: center; justify-content: center; gap: 10px; margin: 12px 0 0; color: var(--ink-soft); font-size: 1rem; }
.btn[disabled] { opacity: 0.7; cursor: wait; }

/* Messages: icon + title + text, color never alone */
.callout { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 22px; border-left: 6px solid; background: var(--paper); box-shadow: var(--shadow); }
.callout ul { margin: 6px 0 0; padding-left: 20px; }
.callout li { margin-bottom: 6px; }
.callout-title { font-weight: 700; margin: 0; }
h1.callout-title { font-size: 1.5rem; line-height: 1.25; margin-bottom: 8px; }
.callout.error { border-color: var(--urgent); background: var(--urgent-tint); }
.callout.error .callout-title, .callout.error > .icon { color: var(--urgent); }
.callout.notice { border-color: var(--soon); background: var(--soon-tint); }
.callout.notice .callout-title, .callout.notice > .icon { color: var(--soon); }
.callout.calm { border-color: var(--brand-coral); background: var(--tint-coral); }
.callout.calm > .icon { color: var(--urgent); }
.disclaimer { display: flex; gap: 12px; align-items: center; padding: 16px 20px; border-radius: 22px; background: var(--paper);
              box-shadow: inset 0 0 0 1px var(--hairline); }
.disclaimer .icon { color: var(--action); }

/* ---------- Progress page ---------- */
.checklist-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.checklist-steps li { display: flex; align-items: center; gap: 14px; min-height: 52px; color: var(--ink-soft); }
.mark { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
        box-shadow: inset 0 0 0 2px #B7C1CB; }
.checklist-steps li.done { color: var(--ink); }
.checklist-steps li.done .mark { background: var(--routine); box-shadow: none; color: #fff; }
.checklist-steps li.current { color: var(--ink); font-weight: 700; }
.checklist-steps li.current .mark { box-shadow: inset 0 0 0 2px var(--action); }
.checklist-steps li.current .mark::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--action); animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { transform: scale(0.7); opacity: 0.6; } 50% { transform: scale(1); opacity: 1; } }
.timer-box { display: grid; gap: 8px; padding: 20px; border-radius: 22px; background: var(--page); }
.timer-label { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink-soft); font-size: 1rem; }
.timer { font-family: var(--display); font-weight: 700; font-size: 3.5rem; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bar { height: 12px; border-radius: 999px; overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hairline); }
.bar span { display: block; height: 100%; border-radius: 999px; background: var(--action); transform-origin: left center; transition: transform 1.2s var(--ease); }
.done-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--routine-tint); color: var(--routine); display: flex; align-items: center; justify-content: center; }
.fact { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.fact .icon { color: var(--action); margin-top: 3px; }

/* ---------- Motion: a gentle rise on section blocks, only when JavaScript runs ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
