:root {
  --paper: #fffaf7;
  --paper-deep: #f7ece7;
  --ink: #282324;
  --muted: #766d6e;
  --rose: #bd5d6d;
  --rose-dark: #913e50;
  --rose-light: #f2d9de;
  --line: rgba(60, 40, 44, .13);
  --shadow: 0 24px 70px rgba(94, 54, 62, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(229, 170, 181, .25), transparent 28rem),
    radial-gradient(circle at 90% 85%, rgba(205, 164, 142, .18), transparent 32rem),
    var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button { font: inherit; }

.shell {
  width: min(1100px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(189, 93, 109, .28);
  border-radius: 50%;
  color: var(--rose);
  font-size: 21px;
  line-height: 1;
}

.screen { animation: appear .42s ease both; }
.screen[hidden] { display: none !important; }

.start-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 118px);
  text-align: center;
}

.eyebrow {
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  margin: 22px 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.045em;
}

h1 em {
  color: var(--rose-dark);
  font-weight: 400;
}

.lead {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}

.language-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin: 36px 0;
}

.language-row span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  color: #685d5f;
  font-size: 13px;
}

.primary-button,
.secondary-button {
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.primary-button {
  border: 0;
  background: var(--rose-dark);
  color: white;
  box-shadow: 0 12px 28px rgba(145, 62, 80, .24);
}

.primary-button span { margin-left: 18px; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(145, 62, 80, .28); }

.secondary-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.privacy-note {
  margin: 16px 0 0;
  color: #918789;
  font-size: 12px;
}

.start-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pair-screen { max-width: 820px; margin: 0 auto; padding-top: 70px; text-align: center; }
.pair-screen > .icon-button { display: block; margin-bottom: 28px; }
.pair-screen h1 { font-size: clamp(44px, 7vw, 72px); }
.pair-screen .lead { margin-inline: auto; }
.pair-form, .join-box { max-width: 570px; margin: 34px auto 0; padding: 26px; border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.7); text-align: left; }
.pair-form label { display: block; margin-bottom: 9px; color: var(--muted); font-size: 13px; font-weight: 700; }
.pair-form input, .join-row input { width: 100%; height: 54px; padding: 0 17px; border: 1px solid var(--line); border-radius: 15px; background: white; color: var(--ink); font: inherit; outline: none; }
.pair-form input:focus, .join-row input:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(189,93,109,.1); }
.pair-form .primary-button { width: 100%; margin-top: 14px; }
.express-intro-card strong { display:block; font-family:Georgia,serif; font-size:28px; font-weight:400; }
.express-intro-card p { margin:10px 0 0; color:var(--muted); line-height:1.6; }
.join-box > span { display: block; margin-bottom: 12px; font-weight: 750; }
.join-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.join-row .secondary-button { min-height: 54px; }
.pair-result-action { background: #6d4651; }
.pair-invite { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; margin-top: 28px; padding: 26px; border: 1px solid rgba(145,62,80,.2); border-radius: 26px; background: var(--rose-light); text-align: left; }
.pair-invite strong { display: block; margin-top: 7px; font-family: Georgia,serif; font-size: 25px; font-weight: 400; }
.pair-invite p { margin: 8px 0 0; color: var(--muted); }
.pair-code { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 15px; border-radius: 15px; background: rgba(255,255,255,.72); }
.pair-code span { color: var(--muted); font-size: 12px; }
.pair-code code { overflow: hidden; text-overflow: ellipsis; color: var(--rose-dark); font-weight: 800; white-space: nowrap; }
.pair-code button { border: 0; background: transparent; color: var(--rose-dark); cursor: pointer; font-weight: 750; }
.pair-invite[hidden], .pair-result-action[hidden] { display: none !important; }
.couple-screen { padding-top: 74px; text-align: center; }
.couple-screen h1 { font-size: clamp(44px,7vw,76px); }
.couple-screen > .lead { margin-inline: auto; }
.couple-profiles { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 46px; text-align: left; }
.person-profile { padding: 28px; border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,.72); }
.person-profile > span { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.person-profile h2 { margin: 8px 0 4px; font-family: Georgia,serif; font-size: 30px; font-weight: 400; }
.person-profile strong { color: var(--rose-dark); }
.express-note { margin:15px 0 0; padding:12px 14px; border-radius:14px; background:var(--paper-deep); }
.express-note span, .express-note b { display:block; }
.express-note span { color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.08em; }
.express-note b { margin-top:4px; font-size:14px; }
.mini-bars { margin-top: 22px; }
.mini-bar { display: grid; grid-template-columns: 115px 1fr 22px; gap: 10px; align-items: center; margin-top: 10px; font-size: 12px; }
.mini-track { height: 7px; overflow: hidden; border-radius: 99px; background: var(--paper-deep); }
.mini-track i { display:block; height:100%; border-radius:inherit; background:var(--rose); }
.insight-card { margin-top: 22px; padding: 34px; border-radius: 28px; background: var(--rose-dark); color: white; text-align: left; }
.insight-card h2 { margin: 10px 0; font-family: Georgia,serif; font-size: 34px; font-weight: 400; }
.insight-card p { margin: 0; color: #fff2f4; line-height: 1.65; }
.translation-bridges { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-top:22px; text-align:left; }
.translation-bridges article { padding:28px; border:1px solid var(--line); border-radius:28px; background:rgba(255,255,255,.72); }
.translation-bridges h2 { margin:10px 0; font-family:Georgia,serif; font-size:25px; font-weight:400; }
.translation-bridges p { margin:0; color:var(--muted); line-height:1.6; }
.recommendations-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-top:22px; text-align:left; }
.recommendation-card { padding:28px; border:1px solid var(--line); border-radius:28px; background:rgba(255,255,255,.72); }
.recommendation-card h2 { margin:0 0 18px; font-family:Georgia,serif; font-size:26px; font-weight:400; }
.recommendation-card ul { margin:0; padding-left:20px; }
.recommendation-card li { margin:11px 0; line-height:1.5; }
.week-plan { margin-top:22px; padding:34px; border:1px solid var(--line); border-radius:28px; background:rgba(255,255,255,.72); text-align:left; }
.week-plan h2 { margin:10px 0 24px; font-family:Georgia,serif; font-size:32px; font-weight:400; }
.week-progress { display:grid; grid-template-columns:auto minmax(140px,1fr); gap:14px; align-items:center; margin:-8px 0 22px; color:var(--muted); font-size:12px; }
.week-progress > div { height:7px; overflow:hidden; border-radius:99px; background:var(--paper-deep); }
.week-progress i { display:block; width:0; height:100%; border-radius:inherit; background:var(--rose-dark); transition:width .3s ease; }
.week-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:10px; }
.day-card { position:relative; padding:14px 12px; border:1px solid transparent; border-radius:16px; background:var(--paper-deep); cursor:pointer; transition:.2s ease; }
.day-card input { position:absolute; width:1px; height:1px; opacity:0; }
.day-card.completed { border-color:rgba(145,62,80,.3); background:#f2dfe3; }
.day-card.completed p { text-decoration:line-through; opacity:.65; }
.day-card span { color:var(--rose-dark); font-size:11px; font-weight:800; text-transform:uppercase; }
.day-card p { margin:7px 0 0; font-size:12px; line-height:1.45; }
.conversation-card { margin-top:22px; padding:30px; border:1px solid var(--line); border-radius:28px; text-align:left; }
.conversation-card h2 { margin:0; font-family:Georgia,serif; font-weight:400; }
.conversation-card blockquote { margin:18px 0 0; color:var(--rose-dark); font-family:Georgia,serif; font-size:24px; line-height:1.45; }

.quiz-screen { padding-top: 52px; }

.quiz-topline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.icon-button,
.text-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 20px;
}

.text-button { justify-self: end; }

.progress-track {
  height: 4px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--rose-light);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--rose-dark);
  transition: width .35s ease;
}

.question-wrap {
  width: min(780px, 100%);
  margin: 70px auto 0;
  text-align: center;
}

.question-number {
  color: rgba(145, 62, 80, .2);
  font-family: Georgia, serif;
  font-size: 84px;
  line-height: .8;
}

.question-wrap h2 {
  margin: 20px 0 10px;
  font-family: Georgia, serif;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 400;
  line-height: 1.08;
}

.question-wrap > p { margin: 0; color: var(--muted); line-height: 1.55; }

.answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.answer-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,.68);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(88, 52, 60, .04);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.answer-card:hover,
.answer-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(145, 62, 80, .46);
  background: white;
  box-shadow: var(--shadow);
  outline: none;
}

.answer-card.selected { border-color: var(--rose-dark); background: #fff; }
.answer-letter { color: var(--rose-dark); font-family: Georgia, serif; font-size: 26px; }
.answer-text { max-width: 300px; font-size: 18px; font-weight: 650; line-height: 1.45; }

.result-screen { padding-top: 78px; text-align: center; }
.result-screen h1 { font-size: clamp(44px, 7vw, 76px); }
.result-lead { margin: 0 auto; }

.result-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  margin-top: 52px;
  text-align: left;
}

.score-card,
.tips-card,
.secondary-result {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.7);
  box-shadow: 0 14px 42px rgba(84, 52, 58, .06);
}

.score-card,
.tips-card { padding: 30px; }
.score-card h2,
.tips-card h2 { margin: 0 0 24px; font-family: Georgia, serif; font-size: 28px; font-weight: 400; }

.score-row { margin-top: 18px; }
.score-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 7px; font-size: 14px; }
.score-head span:last-child { color: var(--rose-dark); font-weight: 800; }
.score-track { height: 9px; overflow: hidden; border-radius: 99px; background: var(--paper-deep); }
.score-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d78a98, var(--rose-dark)); }

.tips-card { background: var(--rose-dark); color: white; }
.tips-label { color: #f2c8d0; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.tips-card h2 { margin-top: 11px; }
.tips-card ul { margin: 0; padding: 0 0 0 20px; }
.tips-card li { margin: 13px 0; line-height: 1.5; color: #fff6f7; }

.secondary-result {
  margin-top: 22px;
  padding: 24px 28px;
  text-align: left;
}
.secondary-result span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.secondary-result strong { display: block; margin-top: 8px; font-family: Georgia, serif; font-size: 26px; font-weight: 400; }
.secondary-result p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }

.expression-compare, .partner-card { margin-top:22px; padding:28px; border:1px solid var(--line); border-radius:28px; background:rgba(255,255,255,.72); text-align:left; }
.expression-compare h2, .partner-card h2 { margin:10px 0; font-family:Georgia,serif; font-size:30px; font-weight:400; }
.expression-compare > p, .partner-card > p { margin:0; color:var(--muted); line-height:1.65; }
.expression-bars { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:22px; }
.expression-bars div { padding:17px; border-radius:17px; background:var(--paper-deep); }
.expression-bars span, .expression-bars strong { display:block; }
.expression-bars span { color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.08em; }
.expression-bars strong { margin-top:6px; color:var(--rose-dark); }
.partner-card { background:var(--rose-light); }
.partner-card .secondary-button { margin-top:20px; background:rgba(255,255,255,.55); }

.bible-section { margin-top:22px; border:1px solid rgba(130,103,70,.24); border-radius:28px; background:linear-gradient(145deg,#fffdf7,#f5eee0); text-align:left; overflow:hidden; }
.bible-section summary { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:25px 28px; color:#665238; cursor:pointer; font-family:Georgia,serif; font-size:25px; list-style:none; }
.bible-section summary::-webkit-details-marker { display:none; }
.bible-section summary i { display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; border:1px solid rgba(102,82,56,.24); border-radius:50%; font-family:Arial,sans-serif; font-style:normal; font-size:23px; transition:transform .2s ease; }
.bible-section[open] summary { border-bottom:1px solid rgba(130,103,70,.16); }
.bible-section[open] summary i { transform:rotate(45deg); }
.bible-content { padding:30px 28px 32px; }
.bible-content h2 { margin:10px 0 18px; color:#594831; font-family:Georgia,serif; font-size:32px; font-weight:400; }
.bible-content > p { color:#716550; line-height:1.7; }
.bible-content blockquote { margin:0 0 20px; padding:20px 22px; border-left:3px solid #a98959; border-radius:0 16px 16px 0; background:rgba(255,255,255,.64); }
.bible-content blockquote strong, .bible-content blockquote span { display:block; }
.bible-content blockquote strong { margin-bottom:8px; color:#866c43; font-size:12px; letter-spacing:.08em; text-transform:uppercase; }
.bible-content blockquote span { color:#4f4435; font-family:Georgia,serif; font-size:20px; line-height:1.55; }
.bible-practice, .bible-prayer { margin-top:18px; padding:18px 20px; border-radius:17px; background:rgba(255,255,255,.58); }
.bible-practice > span, .bible-prayer > span { color:#866c43; font-size:11px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.bible-practice p, .bible-prayer p { margin:7px 0 0; color:#5f5547; line-height:1.6; }
.bible-note { margin:20px 0 0; font-size:12px; }
.bible-profiles { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:22px; }
.bible-profiles article { padding:18px; border-radius:17px; background:rgba(255,255,255,.58); }
.bible-profiles article > span, .bible-week article span { color:#866c43; font-size:11px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.bible-profiles blockquote { margin:12px 0; padding:0; border:0; background:transparent; }
.bible-profiles p { margin:0; color:#716550; line-height:1.55; }
.bible-week { margin-top:24px; }
.bible-week > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:13px; }
.bible-week article { padding:15px; border-radius:15px; background:rgba(255,255,255,.58); }
.bible-week article p { margin:7px 0 0; color:#625746; font-size:13px; line-height:1.5; }

.result-actions { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }
.disclaimer { max-width: 780px; margin: 28px auto 0; color: #8b8082; font-size: 12px; line-height: 1.55; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10;
  transform: translate(-50%, 20px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@keyframes appear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .shell { width: min(100% - 24px, 1100px); padding-top: 16px; }
  .brand { font-size: 13px; }
  .start-screen { min-height: calc(100vh - 82px); }
  h1 { font-size: clamp(43px, 14vw, 62px); }
  .lead { font-size: 16px; }
  .language-row { margin: 26px 0; gap: 6px; }
  .language-row span { padding: 7px 9px; font-size: 11px; }
  .quiz-screen { padding-top: 26px; }
  .quiz-topline { grid-template-columns: auto 1fr auto; font-size: 12px; }
  .question-wrap { margin-top: 42px; }
  .question-number { font-size: 60px; }
  .answers { grid-template-columns: 1fr; margin-top: 28px; }
  .answer-card { min-height: 142px; padding: 22px; }
  .answer-text { font-size: 16px; }
  .result-screen { padding-top: 48px; }
  .result-layout { grid-template-columns: 1fr; margin-top: 38px; }
  .score-card, .tips-card { padding: 24px; }
  .result-actions { flex-direction: column; }
  .result-actions button { width: 100%; }
  .start-actions { width: 100%; flex-direction: column; }
  .start-actions button { width: 100%; }
  .pair-screen { padding-top: 38px; }
  .pair-form, .join-box { padding: 20px; }
  .join-row { grid-template-columns: 1fr; }
  .join-row button { width: 100%; }
  .pair-invite { grid-template-columns: 1fr; padding: 21px; }
  .pair-invite > button { width: 100%; }
  .pair-code { grid-template-columns: 1fr auto; }
  .pair-code span { grid-column: 1 / -1; }
  .couple-screen { padding-top: 46px; }
  .couple-profiles, .recommendations-grid, .translation-bridges { grid-template-columns: 1fr; }
  .person-profile, .recommendation-card, .week-plan, .insight-card { padding: 23px; }
  .week-grid { grid-template-columns: 1fr; }
  .day-card { display: grid; grid-template-columns: 58px 1fr; gap: 8px; align-items: start; }
  .day-card p { margin: 0; }
  .conversation-card blockquote { font-size: 20px; }
  .expression-bars { grid-template-columns:1fr; }
  .week-progress { grid-template-columns:1fr; }
  .bible-section summary { padding:21px 20px; font-size:21px; }
  .bible-content { padding:24px 20px; }
  .bible-profiles, .bible-week > div { grid-template-columns:1fr; }
}

@media print {
  @page { margin: 14mm; }
  body { background:white; }
  .brand, .result-actions, .toast, .week-plan input { display:none !important; }
  .shell { width:100%; padding:0; }
  body.printing-personal .screen { display:none !important; }
  body.printing-personal #resultScreen { display:block !important; padding:0; }
  body.printing-personal #resultScreen h1 { font-size:42px; }
  body.printing-personal .result-layout,
  body.printing-personal .secondary-result,
  body.printing-personal .expression-compare,
  body.printing-personal .partner-card { break-inside:avoid; box-shadow:none; }
  body.printing-personal .bible-section,
  body.printing-couple .bible-section { break-inside:auto; box-shadow:none; background:white; }
  body.printing-personal .bible-section summary,
  body.printing-couple .bible-section summary { display:none; }
  body.printing-personal .bible-content,
  body.printing-couple .bible-content { padding:22px 0; }
  body.printing-couple .screen { display:none !important; }
  body.printing-couple #coupleScreen { display:block !important; }
  .couple-screen { padding:0; }
  .couple-screen h1 { font-size:42px; }
  .couple-profiles, .recommendations-grid, .translation-bridges { break-inside:avoid; }
  .person-profile, .recommendation-card, .translation-bridges article, .week-plan, .conversation-card { box-shadow:none; background:white; }
  .week-grid { grid-template-columns:repeat(2,1fr); }
  .day-card { break-inside:avoid; }
}

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