.sos-stress-root {
  --sos-brand: #3d637b;
  --sos-brand-dark: #294b60;
  --sos-brand-soft: #e6eef1;
  --sos-ink: #26383e;
  --sos-muted: #617379;
  --sos-cream: #f7f2ea;
  --sos-warm: #dca584;
  --sos-warm-soft: #f4ded0;
  --sos-paper: #fffdf9;
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: none;
  margin: 0 0 0 -50vw;
  overflow: hidden;
  background: var(--sos-cream);
  color: var(--sos-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.sos-stress-root,
.sos-stress-root * {
  box-sizing: border-box;
}

.sos-stress-root button,
.sos-stress-root input {
  font: inherit;
}

.sos-stress-root button:focus-visible,
.sos-stress-root [tabindex="-1"]:focus-visible {
  outline: 3px solid #bb6d3f;
  outline-offset: 4px;
}

.sos-stress-root [hidden] {
  display: none !important;
}

.sos-page-shell {
  width: min(calc(100% - 32px), 1040px);
  margin-inline: auto;
}

.sos-hero {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background: var(--sos-brand);
  color: #fff;
}

.sos-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: var(--sos-warm);
}

.sos-hero-inner {
  position: relative;
  z-index: 2;
  padding: 28px 0 82px;
}

.sos-hero-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.sos-orbit-one {
  width: 520px;
  height: 520px;
  right: -230px;
  top: -210px;
}

.sos-orbit-two {
  width: 350px;
  height: 350px;
  right: -145px;
  top: -126px;
}

.sos-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 62px;
}

.sos-brand-mark > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.sos-brand-mark p,
.sos-hero-kicker,
.sos-hero-lead,
.sos-section-heading p,
.sos-steps-list p,
.sos-backup-card p,
.sos-comfort-note,
.sos-site-footer p {
  margin-top: 0;
}

.sos-brand-mark p {
  margin-bottom: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 620;
  letter-spacing: 0.04em;
}

.sos-hero-kicker,
.sos-mini-label,
.sos-backup-label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sos-hero-kicker {
  color: #f5cbb2;
}

.sos-hero h1 {
  max-width: 730px;
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 8vw, 76px);
  font-weight: 620;
  letter-spacing: -0.052em;
  line-height: 0.98;
}

.sos-hero-lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: #f0f5f6;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.55;
}

.sos-hero-reassurance {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  color: #dce8eb;
  font-size: 13px;
}

.sos-reassurance-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sos-warm);
  box-shadow: 0 0 0 5px rgba(220, 165, 132, 0.15);
}

.sos-content-shell {
  padding: 64px 0 36px;
}

.sos-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}

.sos-section-number {
  min-width: 38px;
  margin: 6px 0 0;
  color: var(--sos-warm);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.sos-section-heading h2 {
  margin: 0;
  color: var(--sos-brand-dark);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 620;
  letter-spacing: -0.038em;
  line-height: 1.15;
}

.sos-section-heading p:not(.sos-section-number) {
  margin: 8px 0 0;
  color: var(--sos-muted);
  line-height: 1.6;
}

.sos-situation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sos-situation-button {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 104px;
  padding: 20px 22px;
  border: 1px solid #d8dedc;
  border-radius: 4px;
  background: rgba(255, 253, 249, 0.85);
  color: var(--sos-ink);
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.sos-situation-button:nth-child(5) {
  grid-column: 1 / -1;
}

.sos-situation-button:hover {
  border-color: #9db0b8;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(46, 68, 76, 0.08);
}

.sos-situation-button.is-selected {
  border-color: var(--sos-brand);
  background: var(--sos-brand);
  color: #fff;
  box-shadow: 0 14px 34px rgba(61, 99, 123, 0.2);
}

.sos-situation-index {
  color: #9a7970;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.sos-situation-button.is-selected .sos-situation-index {
  color: #f3c6ae;
}

.sos-situation-label {
  max-width: 390px;
  font-size: 16px;
  font-weight: 570;
  line-height: 1.38;
}

.sos-situation-arrow {
  font-size: 24px;
  font-weight: 300;
  transition: transform 180ms ease;
}

.sos-situation-button:hover .sos-situation-arrow,
.sos-situation-button.is-selected .sos-situation-arrow {
  transform: translateX(3px);
}

.sos-result-anchor {
  min-height: 150px;
  padding-top: 54px;
  scroll-margin-top: 40px;
}

.sos-empty-prompt {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #8a9698;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sos-empty-line {
  width: 100px;
  height: 1px;
  background: #bdc6c6;
}

.sos-result-card {
  overflow: hidden;
  border: 1px solid #d7dfdf;
  border-top: 6px solid var(--sos-brand);
  border-radius: 6px;
  background: var(--sos-paper);
  box-shadow: 0 22px 60px rgba(43, 65, 72, 0.1);
  animation: sos-reveal-card 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes sos-reveal-card {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.sos-result-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px clamp(22px, 6vw, 56px);
  border-bottom: 1px solid #e0e5e4;
}

.sos-result-eyebrow {
  color: var(--sos-muted);
  font-size: 12px;
  font-weight: 650;
}

.sos-duration-pill,
.sos-status-pill {
  flex: none;
  border-radius: 999px;
  background: var(--sos-warm-soft);
  color: #71472f;
  font-size: 11px;
  font-weight: 690;
}

.sos-duration-pill { padding: 8px 12px; }

.sos-result-intro,
.sos-steps-list,
.sos-breathing-tool,
.sos-backup-card,
.sos-source-row {
  margin-inline: clamp(22px, 6vw, 56px);
}

.sos-result-intro { padding: 42px 0 12px; }

.sos-result-intro .sos-mini-label,
.sos-breathing-heading .sos-mini-label {
  color: #96634a;
}

.sos-result-intro h2 {
  margin: 0;
  color: var(--sos-brand-dark);
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 620;
  letter-spacing: -0.046em;
  line-height: 1.05;
}

.sos-steps-list {
  padding: 18px 0 24px;
  list-style: none;
}

.sos-steps-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid #e1e6e5;
}

.sos-steps-list li > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--sos-brand-soft);
  color: var(--sos-brand-dark);
  font-size: 12px;
  font-weight: 780;
}

.sos-steps-list p {
  margin-bottom: 0;
  color: #394b51;
  font-size: 16px;
  line-height: 1.65;
}

.sos-breathing-tool {
  margin-top: 10px;
  margin-bottom: 34px;
  padding: clamp(22px, 5vw, 38px);
  border-radius: 5px;
  background: #edf2f3;
}

.sos-breathing-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.sos-breathing-heading h3 {
  margin: 0;
  color: var(--sos-brand-dark);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 620;
  letter-spacing: -0.03em;
}

.sos-status-pill {
  padding: 7px 11px;
  background: #dce4e5;
  color: #52656b;
}

.sos-status-pill.is-running {
  background: #d9e9df;
  color: #31583f;
}

.sos-breathing-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 490px;
  margin-top: 28px;
  padding: 58px 18px;
  overflow: hidden;
  border: 1px solid #d7e1e3;
  border-radius: 30px;
  background: #f7faf9;
  box-shadow: 0 18px 38px rgba(41, 75, 96, 0.09);
}

.sos-breathing-rings,
.sos-breathing-rings span {
  position: absolute;
  inset: 50% auto auto 50%;
  border: 1px solid rgba(61, 99, 123, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.sos-breathing-rings {
  width: 100%;
  height: 100%;
  border: 0;
}

.sos-breathing-rings span:nth-child(1) { width: 370px; height: 370px; }
.sos-breathing-rings span:nth-child(2) { width: 460px; height: 460px; }
.sos-breathing-rings span:nth-child(3) { width: 550px; height: 550px; }
.sos-breathing-rings span:nth-child(4) { width: 640px; height: 640px; }

.sos-breathing-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 48%, rgba(61, 99, 123, 0.055), transparent 58%);
  pointer-events: none;
}

.sos-breathing-square {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 280px;
  aspect-ratio: 1;
  border: 3px solid var(--sos-brand);
  border-radius: 42px;
  box-shadow: 0 0 34px rgba(61, 99, 123, 0.1);
}

.sos-inner-squares,
.sos-inner-squares span {
  position: absolute;
  inset: 50% auto auto 50%;
  border: 1px solid rgba(61, 99, 123, 0.2);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.sos-inner-squares { width: 100%; height: 100%; border: 0; }
.sos-inner-squares span:nth-child(1) { width: 210px; height: 210px; border-radius: 34px; }
.sos-inner-squares span:nth-child(2) { width: 144px; height: 144px; border-radius: 28px; }
.sos-inner-squares span:nth-child(3) { width: 82px; height: 82px; border-radius: 23px; }

.sos-edge-label {
  position: absolute;
  z-index: 4;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f7faf9;
  color: #718b9a;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.sos-edge-label.is-active { background: var(--sos-brand); color: #fff; }
.sos-edge-top { top: -13px; left: 50%; transform: translateX(-50%); }
.sos-edge-right { right: -30px; top: 50%; transform: translateY(-50%) rotate(90deg); }
.sos-edge-bottom { bottom: -13px; left: 50%; transform: translateX(-50%); }
.sos-edge-left { left: -22px; top: 50%; transform: translateY(-50%) rotate(-90deg); }

.sos-breathing-square::before,
.sos-breathing-square::after {
  content: "";
  position: absolute;
  z-index: 3;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sos-brand);
  box-shadow: 0 0 0 5px rgba(61, 99, 123, 0.1);
}

.sos-breathing-square::before { left: 30px; top: -5px; }
.sos-breathing-square::after { right: 30px; bottom: -5px; }

.sos-breathing-dot {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  width: 16px;
  height: 16px;
  offset-path: path("M 40 2 H 240 Q 278 2 278 40 V 240 Q 278 278 240 278 H 40 Q 2 278 2 240 V 40 Q 2 2 40 2");
  offset-distance: 0%;
  offset-anchor: center;
  offset-rotate: 0deg;
  border: 3px solid #f7faf9;
  border-radius: 50%;
  background: #ffd1b5;
  box-shadow: 0 0 0 6px rgba(242, 170, 130, 0.23), 0 0 18px rgba(255, 196, 160, 0.72);
  transform: translate(-50%, -50%);
}

.sos-breathing-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  text-align: center;
}

.sos-phase-name { color: var(--sos-brand-dark); font-size: 16px; font-weight: 680; }

.sos-countdown {
  margin: 4px 0 2px;
  color: var(--sos-brand);
  font-size: clamp(52px, 12vw, 78px);
  font-weight: 560;
  letter-spacing: -0.06em;
  line-height: 1;
}

.sos-phase-hint {
  max-width: 150px;
  color: var(--sos-muted);
  font-size: 12px;
  line-height: 1.4;
}

.sos-tool-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.sos-primary-control,
.sos-secondary-control {
  min-width: 112px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 3px;
  font-weight: 680;
  cursor: pointer;
}

.sos-primary-control { border: 1px solid var(--sos-brand); background: var(--sos-brand); color: #fff; }
.sos-primary-control:hover { background: var(--sos-brand-dark); }
.sos-secondary-control { border: 1px solid #aebabc; background: transparent; color: var(--sos-brand-dark); }
.sos-secondary-control:hover { background: #fff; }

.sos-comfort-note {
  max-width: 560px;
  margin: 22px auto 0;
  color: var(--sos-muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.sos-backup-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  margin-top: 8px;
  margin-bottom: 36px;
  padding: 24px;
  border-left: 4px solid var(--sos-warm);
  background: #faf0e9;
}

.sos-backup-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #c98e6b;
  border-radius: 50%;
  color: #825239;
  font-size: 12px;
  font-weight: 780;
}

.sos-backup-label { margin-bottom: 5px; color: #96634a; }

.sos-backup-card h3 {
  margin: 0;
  color: #5f4438;
  font-size: 17px;
  font-weight: 680;
  line-height: 1.3;
}

.sos-backup-card p:not(.sos-backup-label) {
  margin: 7px 0 0;
  color: #654f45;
  font-size: 14px;
  line-height: 1.6;
}

.sos-text-action {
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #8e5b43;
  border-radius: 0;
  background: transparent;
  color: #70442f;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.sos-source-row {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 0 24px;
  border-top: 1px solid #e0e5e4;
  color: #7a898c;
  font-size: 11px;
  line-height: 1.5;
}

.sos-source-row strong { color: var(--sos-brand); white-space: nowrap; }

.sos-source-row a {
  color: #6c7c80;
  text-decoration: underline;
  text-decoration-color: #a8b3b5;
  text-underline-offset: 3px;
}

.sos-source-row a:hover { color: var(--sos-brand-dark); text-decoration-color: var(--sos-brand); }

.sos-site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 36px;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid #d3dcdb;
  color: #738185;
  font-size: 11px;
  line-height: 1.6;
}

.sos-site-footer p { max-width: 700px; margin-bottom: 0; }
.sos-site-footer span { white-space: nowrap; }

@media (max-width: 700px) {
  .sos-page-shell { width: min(calc(100% - 24px), 1040px); }
  .sos-hero { min-height: 520px; }
  .sos-hero-inner { padding-top: 22px; padding-bottom: 72px; }
  .sos-brand-mark { margin-bottom: 64px; }
  .sos-hero h1 { max-width: 500px; font-size: clamp(43px, 13vw, 64px); }
  .sos-content-shell { padding-top: 48px; }
  .sos-section-heading { gap: 10px; }
  .sos-section-number { min-width: 30px; }
  .sos-situation-grid { grid-template-columns: 1fr; }
  .sos-situation-button:nth-child(5) { grid-column: auto; }
  .sos-situation-button { min-height: 90px; padding: 18px 16px; gap: 13px; }
  .sos-result-anchor { padding-top: 38px; }
  .sos-result-topline { align-items: flex-start; padding-top: 17px; padding-bottom: 17px; }
  .sos-duration-pill { max-width: 132px; text-align: center; }
  .sos-result-intro { padding-top: 34px; }
  .sos-steps-list li { grid-template-columns: 30px 1fr; gap: 13px; }
  .sos-steps-list p { font-size: 15px; }
  .sos-breathing-tool { margin-inline: 12px; padding-inline: 14px; }
  .sos-breathing-heading { display: block; }
  .sos-status-pill { display: inline-block; margin-top: 12px; }
  .sos-breathing-stage { min-height: 430px; padding-inline: 8px; border-radius: 24px; }
  .sos-breathing-square { width: 250px; border-radius: 38px; }
  .sos-breathing-dot { offset-path: path("M 36 2 H 214 Q 248 2 248 36 V 214 Q 248 248 214 248 H 36 Q 2 248 2 214 V 36 Q 2 2 36 2"); }
  .sos-inner-squares span:nth-child(1) { width: 186px; height: 186px; }
  .sos-inner-squares span:nth-child(2) { width: 126px; height: 126px; }
  .sos-inner-squares span:nth-child(3) { width: 72px; height: 72px; }
  .sos-backup-card { grid-template-columns: 1fr; }
  .sos-source-row,
  .sos-site-footer { display: block; }
  .sos-source-row strong,
  .sos-site-footer span { display: block; margin-top: 8px; white-space: normal; }
}

@media (max-width: 360px) {
  .sos-breathing-square { width: 226px; border-radius: 34px; }
  .sos-breathing-dot { display: none; }
  .sos-edge-right { right: -26px; }
  .sos-edge-left { left: -20px; }
}

@media (prefers-reduced-motion: reduce) {
  .sos-stress-root *,
  .sos-stress-root *::before,
  .sos-stress-root *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

