* { box-sizing: border-box; }
body {
  margin: 0;
  background: #eae5db;
  color: var(--ink);
}
.shell {
  height: 100vh;
  height: 100dvh;
  max-width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 560px) {
  body { min-height: 100dvh; display: grid; place-items: center; }
  .shell {
    width: 390px;
    height: min(844px, calc(100dvh - 32px));
    border: 1px solid #d0c6b5;
    border-radius: 28px;
    box-shadow: 0 12px 48px #30281a22;
  }
}
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(25px, 7.4vw, 30px); line-height: 1.2; letter-spacing: -.035em; }
h2 { font-size: 21px; line-height: 1.25; }
p { color: var(--muted); }
.screen-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 12px max(var(--inset), env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(var(--inset), env(safe-area-inset-left));
}
.has-nav .screen-content { padding-bottom: 20px; }
.screen-content > h1 + p, .screen-content > h2 + p, .card h2 + p, .message p { margin-top: 8px; }
.top {
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) max(var(--inset), env(safe-area-inset-right)) 8px max(var(--inset), env(safe-area-inset-left));
}
.top-onboarding { grid-template-columns: 1fr auto 1fr; }
.brand { font-size: 25px; font-weight: 800; letter-spacing: -.055em; color: var(--blue); white-space: nowrap; }
.brand em, .welcome-word strong { color: var(--orange); font-style: normal; }
.top svg, .nav svg { width: 21px; height: 21px; flex: none; }
.top-back, .language-label { display: inline-flex; align-items: center; gap: 5px; font-weight: 750; color: var(--deep-blue); white-space: nowrap; }
.top-back { justify-self: start; border: 0; background: none; min-height: 44px; padding: 0; }
.language-label { justify-self: end; background: var(--card); border: 1.5px solid var(--blue); padding: 6px 10px; border-radius: 99px; }
.steps-dots { display: flex; align-items: center; gap: 5px; }
.steps-dots i { width: 7px; height: 7px; border-radius: 9px; background: var(--line); }
.steps-dots .past { background: var(--blue); }
.steps-dots .current { width: 22px; background: var(--orange); }
.nav {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 4px max(8px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
}
.nav button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  min-height: 53px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
}
.nav [aria-current] { color: #b23713; font-weight: 800; }
.btn, .v2p-primary {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 11px 14px;
  margin-top: 12px;
  border: 2px solid var(--ink);
  border-radius: 15px;
  color: var(--ink);
  background: linear-gradient(115deg, #e65a22, var(--gold));
  font-weight: 800;
  line-height: 1.25;
}
.btn.secondary { background: var(--light-blue); border-color: var(--blue); color: var(--deep-blue); }
.btn.text, .inline-link, .streak-title, .v2p-hint, .v2p-backlink {
  border: 0;
  background: transparent;
  color: var(--deep-blue);
  font-weight: 750;
}
.btn.text, .v2p-hint, .v2p-backlink { min-height: 44px; }
.inline-link { padding: 6px 0; min-height: 44px; }
.card, .message, .notice, .v2p-explain, .v2p-stat, .v2p-week, .v2p-safety {
  margin: 12px 0;
  padding: 14px 16px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}
.notice, .v2p-safety { background: #faf0ca; border-color: #dec562; }
.scam-card { border-color: var(--orange); }
.scam-label, .pill, .v2p-practice-tag {
  display: inline-block;
  border-radius: 99px;
  padding: 3px 10px;
  background: #fae5d8;
  color: #943511;
  font-size: 14px;
  font-weight: 750;
}
.scam-label { margin-bottom: 7px; }
.row, .family-callout, .streak-title, .choice { display: flex; align-items: center; gap: 12px; }
.row { justify-content: space-between; }
.row > div, .choice > span, .family-callout > span { min-width: 0; overflow-wrap: anywhere; }
.streak-title { width: 100%; justify-content: space-between; text-align: start; padding: 0; }
.week, .v2p-week > div { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 10px 0; text-align: center; }
.week span, .v2p-week span { display: grid; place-items: center; margin: 0 auto 3px; width: min(100%, 31px); aspect-ratio: 1; border: 1.5px solid var(--line); border-radius: 50%; }
.week .done, .v2p-week .done { background: var(--blue); color: white; border-color: var(--blue); }
.family-callout, .choice, .option, .cheer-actions button, .v2p-choice {
  width: 100%;
  min-height: 49px;
  padding: 12px;
  color: var(--ink);
  text-align: start;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--card);
}
.family-callout, .family-talk { border-color: var(--blue); background: var(--light-blue); }
.choice strong, .family-callout > b { margin-left: auto; color: var(--deep-blue); }
.avatar, .choice-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
  color: white;
}
.choice-icon { background: #faf0ca; color: var(--deep-blue); }
.choice-icon.blue { background: var(--light-blue); }
.choice-list, .options, .v2p-choices { display: grid; gap: 8px; margin: 12px 0; }
.choice.selected, .option.selected { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.choice:not(.selected)[data-reminder] strong { visibility: hidden; }
.practice-preview { padding: 12px; margin: 12px 0; border-radius: var(--radius); background: #ede7dc; }
.practice-preview .row { justify-content: start; }
.practice-preview .pill { margin-left: auto; }
.bubble { background: white; border-radius: 13px; padding: 10px; margin-top: 8px; }
.trust-points { display: grid; gap: 8px; margin: 14px 0; }
.eyebrow, .v2p-kicker { color: var(--deep-blue); font-size: 14px; font-weight: 750; }
label { font-weight: 650; }
input:not([type=checkbox]) { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin: 5px 0 12px; background: white; }
input[type=checkbox] { accent-color: var(--orange); }
.cheer-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.cheer-actions button, .family-privacy { text-align: center; }
.is-welcome .screen-content { padding-top: 0; }
.welcome-screen, .ready-screen { min-height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.welcome-screen { gap: 12px; padding-top: calc(clamp(20px, 7dvh, 58px) + env(safe-area-inset-top)); }
.welcome-screen h1 { max-width: 285px; margin-top: 9px; }
.welcome-eyes { display: flex; justify-content: center; }
.welcome-eyes span { width: clamp(52px, 10dvh, 86px); aspect-ratio: 1; border: clamp(11px, 2dvh, 18px) solid var(--blue); border-radius: 50%; position: relative; }
.welcome-eyes span::after { content: ''; position: absolute; width: 48%; aspect-ratio: 1; top: 4%; right: 0; border-radius: 50%; background: var(--orange); }
.welcome-word { font-size: clamp(30px, 5.5dvh, 45px); font-weight: 800; letter-spacing: -.06em; color: var(--blue); }
.welcome-languages { width: 100%; margin-top: auto; padding-top: 10px; text-align: start; }
.welcome-languages .options { grid-template-columns: 1fr 1fr; }
.option { text-align: center; font-weight: 650; }
.ready-logo { background: #f0e9d8; border-radius: 30px; padding: 25px; position: relative; margin: 12px 0 18px; }
.ready-logo .welcome-eyes span { width: 58px; border-width: 12px; }
.ready-check { position: absolute; bottom: -5px; right: -5px; border-radius: 50%; background: var(--gold); width: 40px; line-height: 40px; }
.ready-summary { width: 100%; text-align: start; }
.ready-summary > div + div { margin-top: 8px; }
.ready-screen > .btn { margin-top: auto; }

.v2p-phone {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: white;
}
.v2p-phone-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(6px + env(safe-area-inset-top)) var(--inset) 0;
}
.v2p-phone-top, .v2p-sender { background: #f5f5f5; }
.v2p-back {
  width: 44px;
  height: 44px;
  margin-left: -10px;
  border: 0;
  background: transparent;
  color: var(--deep-blue);
  font-size: 32px;
  line-height: 1;
}
.v2p-practice-tag { background: #faf0ca; color: #63480d; }
.v2p-sender { text-align: center; padding: 0 var(--inset) 10px; border-bottom: 1px solid #ddd; }
.v2p-sender strong, .v2p-sender small { display: block; overflow-wrap: anywhere; }
.v2p-sender small, .v2p-time { color: var(--muted); }
.v2p-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #777d86; color: #fff; margin: 0 auto 5px; }
.v2p-chat { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 12px var(--inset); }
.v2p-time { text-align: center; font-size: 14px; margin-bottom: 10px; }
.v2p-bubble {
  width: fit-content;
  max-width: 90%;
  margin-bottom: 7px;
  padding: 10px 13px;
  border-radius: 16px 16px 16px 5px;
  background: #e9e9eb;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.v2p-bottom { padding: 8px var(--inset) calc(10px + env(safe-area-inset-bottom)); text-align: center; background: var(--paper); border-top: 1px solid var(--line); font-size: 14px; }
.v2p-bottom .v2p-primary { margin-top: 6px; }
.v2p-decision {
  position: fixed;
  inset: auto 0 0;
  width: 100%;
  max-width: none;
  max-height: 90dvh;
  margin: 0 auto;
  padding: 16px var(--inset) calc(8px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 22px 22px 0 0;
  background: var(--paper);
  color: var(--ink);
  overscroll-behavior: contain;
}
.v2p-decision::backdrop { background: #25221d60; }
.v2p-choice { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.v2p-hint, .v2p-backlink { width: 100%; }
.decision-note { font-size: 15px; }
.v2p-head { display: none; }
.v2p-result { text-align: center; }
.v2p-result-icon {
  display: grid;
  place-items: center;
  width: 56px;
  aspect-ratio: 1;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #fae5d8;
  color: var(--orange);
  font-size: 29px;
}
.is-correct .v2p-result-icon { background: var(--light-blue); color: var(--deep-blue); }
.v2p-explain, .v2p-safety { text-align: start; }
.v2p-explain p + h2 { margin-top: 14px; }
.v2p-stat strong { display: block; font-size: 40px; }
.v2p-progress { height: 8px; margin: 8px 0; border-radius: 8px; background: var(--line); overflow: hidden; }
.v2p-progress i { display: block; height: 100%; background: var(--blue); }
.coach-thinking { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--deep-blue); font-size: 14px; }
.coach-thinking i { display: inline-block; width: 5px; aspect-ratio: 1; margin: 0 2px; border-radius: 50%; background: currentColor; }
@media (min-width: 560px) {
  .v2p-decision {
    width: 388px;
    bottom: max(17px, calc((100dvh - 844px) / 2 + 1px));
    max-height: min(790px, calc(100dvh - 46px));
    border-radius: 22px 22px 26px 26px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .v2p-decision[open] { animation: sheet-enter 190ms ease-out both; }
  .coach-thinking i { animation: coach-blink 1.2s infinite; }
  .coach-thinking i:nth-child(2) { animation-delay: .2s; }
  .coach-thinking i:nth-child(3) { animation-delay: .4s; }
}
@keyframes sheet-enter { from { transform: translateY(14px); opacity: 0; } }
@keyframes coach-blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }

.message-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  height: 32px;
  padding: 0 12px;
  margin-bottom: 7px;
  border-radius: 16px 16px 16px 5px;
  background: #e9e9eb;
  color: #5a6068;
}
.message-typing i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .message-typing i { animation: coach-blink .9s infinite; }
  .message-typing i:nth-child(2) { animation-delay: .14s; }
  .message-typing i:nth-child(3) { animation-delay: .28s; }
  .message-arrived { animation: message-arrive .18s ease-out both; }
}
@keyframes message-arrive { from { opacity: 0; transform: translateY(5px); } }

/* Look Twice logo, drawn as vector (sharp at any size) */
.lt-word { display: inline-flex; align-items: baseline; font-weight: 800; font-size: 28px; letter-spacing: -0.5px; color: #1F3A4D; line-height: 1; white-space: nowrap; }
.lt-word .lt-oo { height: 0.6em; width: 1.25em; margin: 0 0.02em; }
.lt-word .lt-t { color: #E0521F; margin-left: 0.28em; }
.brand-hero .lt-word { font-size: 40px; }
.lt-mark { width: 120px; height: 60px; }

.top-actions { display: flex; align-items: center; justify-self: end; gap: 6px; }
.profile-link {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
  color: var(--deep-blue, #214e65);
  background: var(--card);
  cursor: pointer;
}
.profile-link svg { width: 21px; height: 21px; }
.profile-link[aria-current="page"] { background: var(--light-blue, #e6eff3); }
.profile-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.btn.secondary[data-go="resetdemo"] { border: 1.5px solid #b23713; color: #a73512; background: #fff5ed; }

.profile-admin { display: grid; place-items: center; min-height: 44px; text-decoration: none; }
