/* Why a link opened the wrong Care Circle account: one page, phone first, light and dark. */

:root {
  --bg: #FBF7F2;
  --surface: #FFFFFF;
  --surface-2: #F4ECE4;
  --text: #2A211C;
  --muted: #6B5E55;
  --accent: #9E4A2B;
  --accent-ink: #FFFFFF;
  --accent-soft: #F6E4DA;
  --border: #E7DCD2;
  --shadow: 0 1px 2px rgba(42, 33, 28, .05), 0 10px 28px rgba(42, 33, 28, .06);
  --radius: 18px;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1F1A17;
    --surface: #2A2420;
    --surface-2: #342C27;
    --text: #F3ECE6;
    --muted: #B8AA9F;
    --accent: #E39B78;
    --accent-ink: #1F1A17;
    --accent-soft: #3A2A22;
    --border: #3D342E;
    --shadow: none;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding:
    max(1.75rem, env(safe-area-inset-top))
    max(1.15rem, env(safe-area-inset-right))
    max(3rem, env(safe-area-inset-bottom))
    max(1.15rem, env(safe-area-inset-left));
}

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0; }
p { margin: 0 0 .75rem; }
p:last-child { margin-bottom: 0; }
b, strong { font-weight: 650; }

a { color: var(--accent); text-underline-offset: .18em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.hero { margin-bottom: 1.5rem; }
.eyebrow {
  margin: 0 0 .5rem;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1 { font-size: clamp(1.85rem, 7.2vw, 2.6rem); letter-spacing: -.01em; }
.lede { margin-top: .75rem; color: var(--muted); font-size: 1.1rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.2rem 1.25rem;
}
.card h2 { font-size: 1.35rem; margin-bottom: .65rem; }

.answer { position: relative; overflow: hidden; padding-left: 1.45rem; }
.answer::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent);
}

.section-title { font-size: 1.45rem; margin: 2.25rem 0 .9rem; }

/* ---------- Two places, two sign-ins ---------- */
.places {
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}
.place {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
}
.place-head {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 650;
  margin-bottom: .4rem;
}
.place p { color: var(--text); }
.tag {
  margin-top: auto;
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: .25rem .75rem;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.35;
}
.places figcaption {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: .95rem;
  padding: 0 .25rem;
}

@media (min-width: 34rem) {
  .places { grid-template-columns: 1fr 1fr; }
}

/* ---------- Icons ---------- */
.ico {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-inline {
  width: 1.15em;
  height: 1.15em;
  vertical-align: -.2em;
  stroke: currentColor;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: .75rem;
}
.step {
  counter-increment: step;
  position: relative;
  padding-left: 3.6rem;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.1rem;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: .95rem;
  display: grid;
  place-items: center;
}
.step h3 { font-size: 1.15rem; margin: .2rem 0 .45rem; }

.note {
  color: var(--muted);
  font-size: .95rem;
  border-left: 3px solid var(--border);
  padding-left: .75rem;
}
.note b { color: var(--text); }

.addr { font-weight: 650; white-space: nowrap; }

/* "More › your name › Help › Put it on your phone" as tappable-looking chips */
.path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem 1.15rem;
  margin-bottom: .8rem;
}
.path span {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .2rem .7rem;
  font-size: .92rem;
  font-weight: 650;
  line-height: 1.4;
}
.path span + span::before {
  content: "›";
  position: absolute;
  left: -.85rem;
  top: 50%;
  transform: translateY(-52%);
  color: var(--muted);
  font-weight: 400;
  font-size: 1.05rem;
}

/* ---------- Other sections ---------- */
.plain { margin-top: 2.25rem; }
.plain h2 { font-size: 1.3rem; }

.facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .6rem;
}
.facts li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .85rem 1rem;
}

.foot {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.foot b { color: var(--text); }
.fine { font-size: .85rem; margin-top: .75rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
