:root {
  color-scheme: light;
  --night: #0d2638;
  --deep-night: #081a28;
  --ivory: #f5eee4;
  --ivory-soft: #fbf8f3;
  --clarity-blue: #73a6c6;
  --clarity-bright: #a9dded;
  --ink: #15354b;
  --muted: #607582;
  --line: rgba(21, 53, 75, 0.15);
  --danger: #8f3e49;
  --danger-soft: #fff4f4;
  --shadow: 0 28px 80px rgba(8, 26, 40, 0.17);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 8%, rgba(115, 166, 198, 0.23), transparent 31rem),
    radial-gradient(circle at 8% 82%, rgba(115, 166, 198, 0.16), transparent 28rem),
    var(--ivory);
  font-family: "Helvetica Neue", "Avenir Next", Arial, sans-serif;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.18;
  pointer-events: none;
}
.ambient-one { top: -9rem; right: -7rem; background: var(--clarity-blue); }
.ambient-two { bottom: -12rem; left: -9rem; background: #ffffff; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--night);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(8, 26, 40, 0.16);
}
.quiet-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--ink);
  background: rgba(255,255,255,0.45);
  font-size: 0.78rem;
  font-weight: 700;
}

.app-shell { width: min(1180px, calc(100% - 40px)); margin: 18px auto 30px; }
.screen {
  min-height: 680px;
  overflow: hidden;
  border: 1px solid rgba(21, 53, 75, 0.12);
  border-radius: 30px;
  background: rgba(251, 248, 243, 0.91);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.opening-screen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 60px;
  padding: clamp(44px, 7vw, 86px);
}
.opening-copy { max-width: 650px; }
.eyebrow {
  margin: 0 0 16px;
  color: #477995;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.19em;
}
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 {
  margin: 0;
  color: var(--night);
  font-size: clamp(2.7rem, 6.2vw, 5.3rem);
  line-height: 0.99;
  letter-spacing: -0.04em;
}
h1 em { color: #427b9d; font-weight: 400; }
.lede { max-width: 620px; margin: 28px 0 16px; color: #425d6c; font-size: clamp(1rem, 1.7vw, 1.2rem); line-height: 1.7; }
.duration { margin: 0 0 30px; color: var(--muted); font-size: 0.9rem; }
.primary-button, .secondary-button {
  min-height: 48px;
  border-radius: 999px;
  padding: 13px 21px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.primary-button {
  border: 1px solid var(--night);
  color: white;
  background: var(--night);
  box-shadow: 0 12px 28px rgba(8, 26, 40, 0.19);
}
.secondary-button { border: 1px solid rgba(21, 53, 75, 0.25); color: var(--ink); background: transparent; }
.primary-button:hover, .secondary-button:hover { transform: translateY(-1px); }
.primary-button:focus-visible, .secondary-button:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgba(115, 166, 198, 0.5); outline-offset: 3px; }
.opening-mark { display: grid; place-items: center; text-align: center; }
.opening-mark img { width: min(230px, 55vw); aspect-ratio: 1; border-radius: 50%; box-shadow: 0 26px 65px rgba(8, 26, 40, 0.2); }
.opening-mark p { margin: 20px 0 0; color: #477995; font-size: 0.67rem; font-weight: 800; letter-spacing: 0.25em; }
.light-path { width: min(390px, 70vw); display: grid; grid-template-columns: 1fr 28px 1fr; align-items: center; margin-top: 28px; }
.light-path i { height: 1px; background: linear-gradient(90deg, transparent, var(--clarity-blue)); box-shadow: 0 0 13px var(--clarity-blue); }
.light-path i:last-child { background: linear-gradient(90deg, var(--clarity-blue), transparent); }
.light-path b { width: 8px; height: 8px; justify-self: center; border-radius: 50%; background: white; box-shadow: 0 0 7px 4px var(--clarity-bright), 0 0 24px 10px rgba(115, 166, 198, 0.65); animation: pulse 2.2s ease-in-out infinite; }
.scope-note { position: absolute; right: clamp(30px, 5vw, 70px); bottom: 27px; left: clamp(30px, 5vw, 70px); display: flex; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); font-size: 0.72rem; line-height: 1.5; }
.scope-note strong { flex: 0 0 auto; color: var(--ink); text-transform: uppercase; letter-spacing: 0.08em; }

.protocol-screen { display: grid; grid-template-rows: auto 1fr; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.46); }
.progress-item { position: relative; padding: 20px; color: #748894; text-align: center; font-size: 0.72rem; font-weight: 850; letter-spacing: 0.09em; text-transform: uppercase; }
.progress-item::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; content: ""; background: transparent; }
.progress-item.active { color: var(--night); }
.progress-item.active::after, .progress-item.complete::after { background: var(--clarity-blue); }
.progress-item.complete { color: #477995; }
.stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.58fr); gap: clamp(30px, 6vw, 75px); align-items: center; padding: clamp(38px, 6vw, 78px); }
.stage-content { max-width: 720px; }
.step-label { margin: 0 0 7px; color: #477995; font-size: 0.7rem; font-weight: 850; letter-spacing: 0.16em; }
.stage h1 { font-size: clamp(3.6rem, 7.6vw, 6.8rem); }
.stage-intro { margin: 14px 0 28px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.question { margin: 0 0 8px; color: var(--night); font: 500 clamp(1.35rem, 2.6vw, 2rem)/1.25 Georgia, serif; }
.instruction { margin: 0 0 16px; color: var(--muted); font-size: 0.78rem; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.option {
  min-height: 56px;
  border: 1px solid rgba(21, 53, 75, 0.2);
  border-radius: 15px;
  padding: 13px 15px;
  color: var(--ink);
  background: rgba(255,255,255,0.64);
  text-align: left;
  line-height: 1.35;
}
.option:hover { border-color: var(--clarity-blue); background: white; }
.option.selected { border-color: var(--night); color: white; background: var(--night); box-shadow: 0 8px 20px rgba(8, 26, 40, 0.13); }
.optional-label { display: block; margin: 22px 0 8px; color: var(--ink); font-size: 0.78rem; font-weight: 800; }
.optional-input {
  width: 100%;
  min-height: 48px;
  resize: vertical;
  border: 1px solid rgba(21, 53, 75, 0.22);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(255,255,255,0.72);
  line-height: 1.45;
}
.optional-input:focus { border-color: var(--clarity-blue); outline: 3px solid rgba(115, 166, 198, 0.2); }
.input-note { margin: 7px 0 0; color: var(--muted); font-size: 0.68rem; }
.stage-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.back-button { border: 0; padding: 10px 0; color: var(--muted); background: transparent; font-weight: 750; }
.stage-art { display: grid; place-items: center; min-height: 320px; }
.stage-orb { width: min(270px, 62vw); aspect-ratio: 1; position: relative; display: grid; place-items: center; border: 1px solid rgba(115, 166, 198, 0.5); border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.95) 0 3%, rgba(115,166,198,0.24) 4%, transparent 43%); box-shadow: inset 0 0 55px rgba(115, 166, 198, 0.2), 0 0 70px rgba(115, 166, 198, 0.2); }
.stage-orb::before, .stage-orb::after { position: absolute; content: ""; border: 1px solid rgba(115, 166, 198, 0.32); border-radius: 50%; inset: 15%; }
.stage-orb::after { inset: 31%; box-shadow: 0 0 30px rgba(115, 166, 198, 0.34); }
.stage-orb span { z-index: 1; color: var(--night); font: 500 1.1rem Georgia, serif; letter-spacing: 0.08em; text-transform: uppercase; }

.timer-wrap { margin: 24px 0; text-align: center; }
.timer { width: 168px; height: 168px; display: grid; place-items: center; margin: 0 auto 18px; border: 1px solid rgba(115, 166, 198, 0.65); border-radius: 50%; color: var(--night); background: radial-gradient(circle, white, rgba(115,166,198,0.12)); box-shadow: 0 0 60px rgba(115, 166, 198, 0.35); font: 500 4.9rem/1 Georgia, serif; }
.timer.running { animation: breathe 1s ease-in-out infinite; }
.timer-note { min-height: 22px; margin: 0; color: var(--muted); font-size: 0.8rem; }

.completion-screen { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr); }
.completion-main { padding: clamp(42px, 6vw, 76px); }
.completion-kicker { margin: -4px 0 22px; color: var(--night); font: 500 clamp(1.5rem, 3vw, 2.35rem)/1.2 Georgia, serif; }
.completion-main h1 { font-size: clamp(2.3rem, 4.8vw, 4rem); }
.completion-main > p:not(.eyebrow):not(.completion-kicker) { color: var(--muted); line-height: 1.65; }
.summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 30px 0; }
.summary-item { border: 1px solid var(--line); border-radius: 16px; padding: 17px; background: rgba(255,255,255,0.6); }
.summary-item span { display: block; margin-bottom: 7px; color: #477995; font-size: 0.64rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.summary-item p { margin: 0; color: var(--night); line-height: 1.45; }
.completion-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.share-card { display: grid; grid-template-columns: 1fr auto; gap: 12px 20px; align-items: center; margin-top: 26px; border-top: 1px solid var(--line); padding-top: 24px; }
.share-card h2, .email-card h2 { margin: 0 0 5px; color: var(--night); font-size: 1.35rem; }
.share-card p, .email-card p { margin: 0; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.share-card .status { grid-column: 1 / -1; min-height: 1em; color: #477995; }
.next-panel { display: flex; flex-direction: column; gap: 12px; padding: clamp(35px, 5vw, 56px); background: var(--night); color: white; }
.next-panel > .eyebrow { color: var(--clarity-bright); }
.next-card { display: block; border: 1px solid rgba(255,255,255,0.22); border-radius: 17px; padding: 17px; color: white; background: rgba(255,255,255,0.06); text-decoration: none; transition: transform 160ms ease, background 160ms ease; }
.next-card:hover { transform: translateY(-2px); background: rgba(255,255,255,0.11); }
.next-card.primary { color: var(--night); background: var(--ivory); }
.next-card strong { display: block; margin-bottom: 5px; font-family: Georgia, serif; font-size: 1.08rem; font-weight: 500; }
.next-card span { font-size: 0.74rem; line-height: 1.45; opacity: 0.78; }
.email-card {
  grid-column: 1 / -1;
  padding: clamp(34px, 5vw, 56px);
  color: white;
  background: var(--deep-night);
}
.email-card h2 {
  margin: 0 0 7px;
  color: white;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.email-card p {
  margin: 0;
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
}
.email-card iframe {
  width: 100%;
  height: 325px;
  margin-top: 18px;
  border: 0;
  border-radius: 16px;
  background: white;
}
.email-card .email-note {
  margin-top: 9px;
  font-size: 0.64rem;
}

.safety-dialog { width: min(620px, calc(100% - 28px)); border: 1px solid #d8aeb3; border-radius: 24px; padding: 30px; color: var(--ink); background: var(--danger-soft); box-shadow: 0 30px 90px rgba(8, 26, 40, 0.32); }
.safety-dialog::backdrop { background: rgba(8, 26, 40, 0.72); backdrop-filter: blur(5px); }
.safety-dialog h2 { margin: 0 0 12px; color: #71343a; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.safety-dialog p { color: #76545a; line-height: 1.6; }
.safety-choices { display: grid; gap: 9px; margin-top: 20px; }
.safety-choices button { border: 1px solid #d1a1a7; border-radius: 13px; padding: 13px 14px; color: #71343a; background: white; text-align: left; font-weight: 750; }
.safety-guidance-list { display: grid; gap: 10px; }
.safety-guidance-list p { margin: 0; }

.site-footer { width: min(1180px, calc(100% - 40px)); display: flex; justify-content: space-between; gap: 20px; margin: 0 auto; padding: 10px 0 28px; color: #71828b; font-size: 0.66rem; line-height: 1.5; }
.site-footer p { max-width: 48%; margin: 0; }

@keyframes pulse { 50% { transform: scale(1.35); opacity: 0.72; } }
@keyframes breathe { 50% { transform: scale(1.025); box-shadow: 0 0 85px rgba(115, 166, 198, 0.55); } }

@media (max-width: 850px) {
  .opening-screen { grid-template-columns: 1fr; padding-bottom: 105px; }
  .opening-mark { order: -1; }
  .opening-mark img { width: 150px; }
  .light-path { margin-top: 19px; }
  .stage { grid-template-columns: 1fr; }
  .stage-art { min-height: 230px; order: -1; }
  .stage-orb { width: 190px; }
  .completion-screen { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .site-header, .app-shell, .site-footer { width: calc(100% - 20px); }
  .site-header { padding-top: max(13px, env(safe-area-inset-top)); }
  .brand { font-size: 0.58rem; letter-spacing: 0.11em; }
  .brand img { width: 36px; height: 36px; }
  .screen { min-height: calc(100dvh - 105px); border-radius: 21px; }
  .opening-screen { gap: 27px; padding: 30px 22px 118px; text-align: center; }
  .opening-copy { display: grid; justify-items: center; }
  .opening-mark img { width: 115px; }
  .opening-mark p { font-size: 0.58rem; }
  .scope-note { right: 20px; bottom: 20px; left: 20px; display: block; text-align: left; }
  .scope-note strong { display: block; margin-bottom: 4px; }
  .progress-item { padding: 16px 4px; font-size: 0.6rem; }
  .stage { display: block; padding: 30px 20px; }
  .stage-art { min-height: 130px; margin-bottom: 20px; }
  .stage-orb { width: 125px; }
  .stage-orb span { font-size: 0.78rem; }
  .options { grid-template-columns: 1fr; }
  .option { min-height: 50px; }
  .stage-actions { position: sticky; bottom: 0; margin: 24px -20px -30px; border-top: 1px solid var(--line); padding: 13px 20px max(15px, env(safe-area-inset-bottom)); background: rgba(251,248,243,0.96); backdrop-filter: blur(10px); }
  .completion-main, .next-panel { padding: 32px 21px; }
  .summary { grid-template-columns: 1fr; }
  .share-card { grid-template-columns: 1fr; }
  .site-footer { display: block; }
  .site-footer p { max-width: none; }
  .site-footer p + p { margin-top: 5px; }
}

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