:root {
  --bg: #eef3f2;
  --ink: #17202a;
  --muted: #66737f;
  --line: #d9e2e1;
  --panel: #ffffff;
  --green: #19a866;
  --green-soft: #e7f8ef;
  --red: #ee4055;
  --red-soft: #ffedf0;
  --blue: #166fe5;
  --blue-soft: #e7f0ff;
  --yellow: #f3bd25;
  --road: #4d5965;
  --shadow: 0 16px 36px rgba(28, 48, 58, 0.12);
  --soft-shadow: 0 10px 24px rgba(28, 48, 58, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(25, 168, 102, 0.18), transparent 30%),
    linear-gradient(180deg, #f7fbfa 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.42;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  background: #f7fbfa;
  overflow: hidden;
}

.screen {
  min-height: 100vh;
  padding: 16px 16px 30px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.topbar-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.logo {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 15px;
  color: #14212d;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.logo svg {
  width: 44px;
  height: 44px;
}

.brand h1,
.brand h2 {
  margin: 0;
  overflow: hidden;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand h1 {
  font-size: 24px;
  letter-spacing: 0;
}

.brand h2 {
  font-size: 20px;
  letter-spacing: 0;
}

.brand p,
.muted {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.icon-button {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--soft-shadow);
  font-size: 22px;
  font-weight: 800;
}

.profile-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.mini-avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #14212d 0%, #166fe5 100%);
  color: #fff;
  font-weight: 900;
}

.mini-avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.hero {
  position: relative;
  min-height: 262px;
  overflow: hidden;
  border-radius: 20px;
  background: #26323d;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 20, 28, 0.08) 0%, rgba(12, 20, 28, 0.5) 58%, rgba(12, 20, 28, 0.82) 100%),
    linear-gradient(90deg, rgba(12, 20, 28, 0.76) 0%, rgba(12, 20, 28, 0.2) 70%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  inset: auto 16px 16px;
  z-index: 2;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #eaf8ef;
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

.hero h2 {
  max-width: 320px;
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 380px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.45;
}

.quick-panel {
  position: relative;
  z-index: 3;
  margin: -14px 12px 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(12px);
}

.account-nudge {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(25, 168, 102, 0.22);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #eefaf3 100%);
  box-shadow: 0 8px 18px rgba(28, 48, 58, 0.05);
}

.account-nudge h3 {
  margin: 5px 0 5px;
  font-size: 18px;
  line-height: 1.15;
}

.account-nudge p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.eyebrow-light {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #dff5e9;
  color: #0b7f47;
  font-size: 11px;
  font-weight: 900;
}

.account-strip {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(28, 48, 58, 0.05);
  text-align: left;
}

.account-strip strong,
.account-strip em {
  display: block;
}

.account-strip strong {
  font-size: 14px;
}

.account-strip em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.account-strip b {
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
}

.ai-coach-panel,
.ai-insight-card,
.ai-explain-card {
  position: relative;
  border: 1px solid rgba(22, 111, 229, 0.2);
  background:
    linear-gradient(135deg, rgba(22, 111, 229, 0.08), rgba(25, 168, 102, 0.1)),
    #ffffff;
}

.ai-coach-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 15px;
  border-radius: 20px;
  box-shadow: 0 12px 26px rgba(22, 111, 229, 0.08);
}

.ai-coach-head,
.ai-explain-head,
.ai-insight-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
}

.ai-orb {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 15px;
  background: radial-gradient(circle at 30% 20%, #ffffff 0%, #9ed7ff 18%, #166fe5 58%, #14212d 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(22, 111, 229, 0.22);
}

.ai-coach-panel h3,
.ai-insight-card h3,
.ai-explain-head h4 {
  margin: 5px 0 0;
  font-size: 18px;
  line-height: 1.18;
  font-weight: 600;
}

.ai-coach-panel p,
.ai-insight-card p {
  margin: 0;
  color: #41505b;
  line-height: 1.45;
}

.ai-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-signal-row span {
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #3d4d59;
  font-size: 12px;
}

.ai-primary {
  min-height: 46px;
  border-radius: 14px;
  background: #14212d;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.ai-insight-card {
  margin-top: 14px;
  padding: 15px;
  border-radius: 20px;
  box-shadow: 0 8px 18px rgba(28, 48, 58, 0.05);
}

.access-panel,
.daily-plan {
  margin-top: 14px;
  padding: 15px;
  border-radius: 20px;
  box-shadow: 0 8px 18px rgba(28, 48, 58, 0.05);
}

.access-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  background: #ffffff;
}

.access-panel.free {
  border-color: rgba(238, 64, 85, 0.2);
  background: linear-gradient(135deg, #ffffff 0%, #fff5f6 100%);
}

.access-panel.paid {
  border-color: rgba(25, 168, 102, 0.28);
  background: linear-gradient(135deg, #ffffff 0%, #effaf3 100%);
}

.access-panel h3,
.daily-plan h3 {
  margin: 6px 0 5px;
  font-size: 18px;
  line-height: 1.15;
}

.access-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.daily-plan {
  border: 1px solid rgba(22, 111, 229, 0.22);
  background:
    linear-gradient(135deg, rgba(22, 111, 229, 0.1), rgba(25, 168, 102, 0.12)),
    #ffffff;
}

.daily-plan-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.daily-plan-head span:last-child {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 999px;
  background: #14212d;
  color: #fff;
  font-weight: 950;
}

.plan-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.plan-list button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  text-align: left;
}

.plan-list b {
  font-size: 14px;
}

.plan-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.hero-actions,
.row-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.primary,
.secondary,
.danger,
.ghost {
  min-height: 50px;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 850;
  line-height: 1.15;
}

.primary {
  background: linear-gradient(135deg, #166fe5 0%, #0ea368 100%);
  color: #fff;
  box-shadow: 0 10px 18px rgba(22, 111, 229, 0.2);
}

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

.danger {
  background: var(--red);
  color: #fff;
}

.ghost {
  min-height: auto;
  padding: 10px 0 0;
  background: transparent;
  color: var(--blue);
}

.tariff-link {
  width: 100%;
  margin-top: 10px;
  min-height: 42px;
  border-radius: 13px;
  background: #eaf3f1;
  color: #176b52;
  font-weight: 900;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.quick-actions button {
  min-height: 42px;
  border-radius: 13px;
  background: #f1f6f5;
  color: #34424d;
  font-size: 12px;
  font-weight: 900;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 22px 0 10px;
}

.section-title h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat {
  min-width: 0;
  padding: 12px 10px;
  border-radius: 14px;
  background: #f0f6f5;
}

.stat strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.topic-grid {
  display: grid;
  gap: 10px;
}

.topic-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 8px 18px rgba(28, 48, 58, 0.05);
  text-align: left;
}

.topic-card.ready {
  border-color: rgba(25, 168, 102, 0.38);
  background: linear-gradient(135deg, #ffffff 0%, #eefaf3 100%);
}

.topic-card.weak {
  border-color: rgba(238, 64, 85, 0.32);
  background: linear-gradient(135deg, #ffffff 0%, #fff3f5 100%);
}

.topic-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: #ecf5ff;
  color: var(--blue);
}

.topic-card:nth-child(3n + 1) .topic-icon {
  background: #eaf8ef;
  color: var(--green);
}

.topic-card:nth-child(3n + 2) .topic-icon {
  background: #fff5d9;
  color: #bf7b09;
}

.topic-icon svg {
  width: 30px;
  height: 30px;
}

.topic-card h4 {
  margin: 0 0 5px;
  font-size: 15px;
  line-height: 1.15;
}

.topic-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.topic-score {
  color: var(--muted);
  font-weight: 900;
  font-size: 14px;
}

.quiz-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 10px 0 14px;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe8e7;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transition: width 0.2s ease;
}

.timer-pill {
  min-width: 74px;
  padding: 9px 10px;
  border-radius: 999px;
  background: #ffffff;
  text-align: center;
  box-shadow: var(--soft-shadow);
  font-weight: 900;
}

.question-card,
.result-card,
.explain-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 8px 18px rgba(28, 48, 58, 0.05);
}

.question-card {
  overflow: hidden;
}

.visual {
  min-height: 214px;
  background: #e5eceb;
}

.question-body {
  padding: 15px;
}

.question-body h3 {
  margin: 12px 0 14px;
  font-size: 22px;
  line-height: 1.16;
  letter-spacing: 0;
}

.answer-list {
  display: grid;
  gap: 10px;
}

.answer {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 60px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfdfc;
  text-align: left;
  line-height: 1.25;
}

.answer-key {
  display: grid;
  width: 42px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: #eaf1f0;
  color: #52606c;
  font-weight: 900;
}

.answer.correct {
  border-color: rgba(25, 168, 102, 0.58);
  background: var(--green-soft);
}

.answer.correct .answer-key {
  background: var(--green);
  color: #fff;
}

.answer.wrong {
  border-color: rgba(238, 64, 85, 0.62);
  background: var(--red-soft);
}

.answer.wrong .answer-key {
  background: var(--red);
  color: #fff;
}

.answer.disabled {
  cursor: default;
}

.explain-card {
  margin-top: 12px;
  padding: 15px;
}

.explain-card h4 {
  margin: 0 0 8px;
  font-size: 17px;
}

.ai-explain-head {
  margin-bottom: 10px;
}

.ai-explain-head h4 {
  margin-bottom: 0;
}

.explain-card p {
  margin: 0 0 10px;
  color: #303b45;
  line-height: 1.45;
}

.rule-source {
  margin: 10px 0;
  padding: 11px 12px;
  border: 1px solid rgba(11, 143, 115, 0.18);
  border-radius: 14px;
  background: #eef8f4;
  color: #263a35;
  font-size: 13px;
  line-height: 1.4;
}

.rule-steps {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.rule-step {
  position: relative;
  padding: 11px 12px 11px 36px;
  border-radius: 14px;
  background: #f1f6f5;
  color: #303b45;
  font-size: 14px;
  line-height: 1.35;
}

.rule-step::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 16px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
}

.ai-quick-questions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.ai-quick-questions button {
  min-height: 40px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.76);
  color: #26404f;
  font-size: 12px;
  font-weight: 600;
}

.ai-quick-questions button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.ai-followup {
  margin-top: 10px;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(22, 111, 229, 0.12);
}

.ai-followup.live {
  background: linear-gradient(135deg, rgba(232, 248, 241, 0.98), rgba(235, 245, 255, 0.98));
  box-shadow: inset 0 0 0 1px rgba(24, 160, 116, 0.26), 0 12px 24px rgba(18, 94, 83, 0.08);
}

.ai-followup strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.ai-followup p {
  margin: 0;
  color: #41505b;
  font-size: 14px;
  line-height: 1.42;
}

.mini-paywall {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(22, 111, 229, 0.2);
  border-radius: 16px;
  background: #f3f8ff;
}

.mini-paywall strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.mini-paywall p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.mini-paywall .primary {
  min-height: 42px;
  white-space: nowrap;
}

.bottom-bar {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: 10px;
  padding: 12px 0 0;
  background: linear-gradient(180deg, rgba(247, 251, 250, 0), #f7fbfa 28%);
}

.result-card {
  padding: 18px;
}

.result-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.12;
}

.result-score {
  display: grid;
  width: 174px;
  height: 174px;
  margin: 4px auto 18px;
  place-items: center;
  border-radius: 999px;
  background: conic-gradient(var(--green) var(--score-angle), #e3eceb 0);
}

.result-score-inner {
  display: grid;
  width: 130px;
  height: 130px;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  text-align: center;
  box-shadow: inset 0 0 0 1px #edf3f2;
}

.result-score strong {
  display: block;
  font-size: 44px;
  line-height: 1;
}

.result-score span {
  color: var(--muted);
  font-size: 12px;
}

.review-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.review-item {
  padding: 13px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.review-item strong {
  display: block;
  margin-bottom: 7px;
  line-height: 1.25;
}

.review-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.pill {
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf4f3;
  color: #43505b;
  font-size: 12px;
  font-weight: 820;
}

.save-pill {
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff4da;
  color: #9a6508;
  font-size: 12px;
  font-weight: 900;
}

.save-pill.active {
  background: #14212d;
  color: #fff;
}

.pill.good {
  background: var(--green-soft);
  color: #0b7f47;
}

.pill.bad {
  background: var(--red-soft);
  color: #c92c40;
}

svg {
  display: block;
  width: 100%;
  height: auto;
}

/* App typography tuning: calmer mobile-app style over display-heavy defaults. */
.brand h1,
.brand h2,
.hero h2,
.pricing-hero h3,
.readiness-hero h3,
.crash-hero h3,
.question-body h3,
.result-card h3,
.profile-hero h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

.brand h1 {
  font-size: 23px;
  line-height: 1.08;
}

.brand h2 {
  font-size: 19px;
  line-height: 1.12;
}

.hero h2 {
  max-width: 340px;
  font-size: 28px;
  line-height: 1.08;
}

.question-body h3 {
  font-size: 21px;
  line-height: 1.2;
  font-weight: 600;
}

.section-title h3,
.account-nudge h3,
.access-panel h3,
.daily-plan h3,
.profile-card h3,
.tariff-card h3,
.compare-card h3,
.crash-steps h3 {
  font-weight: 600;
}

.primary,
.secondary,
.danger,
.ghost,
.tariff-link,
.quick-actions button,
.topic-card h4,
.answer-key,
.topic-score,
.pill,
.save-pill,
.eyebrow,
.eyebrow-light,
.tariff-small,
.active-badge,
.tariff-badge,
.weak-list span,
.plan-list b,
.readiness-topic strong,
.account-strip strong {
  font-weight: 600;
}

.icon-button,
.mini-avatar,
.profile-avatar,
.daily-plan-head span:last-child,
.crash-steps article > span {
  font-weight: 700;
}

.stat strong,
.profile-summary strong,
.readiness-stats strong,
.result-score strong,
.readiness-ring strong,
.tariff-price strong {
  font-weight: 700;
}

.stat span,
.profile-summary span,
.readiness-stats span,
.tariff-price span,
.readiness-ring span {
  font-weight: 500;
}

.hero p,
.account-nudge p,
.access-panel p,
.profile-card p,
.tariff-card p,
.crash-steps p,
.readiness-topic em,
.plan-list em,
.small-note,
.muted {
  font-weight: 400;
}

.primary,
.secondary,
.danger {
  font-size: 14px;
}

.quick-actions button,
.tariff-link {
  font-size: 12.5px;
}

.pill,
.save-pill {
  font-size: 12px;
}

.small-note {
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.profile-hero {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(22, 111, 229, 0.08), rgba(25, 168, 102, 0.14)),
    #ffffff;
  box-shadow: var(--soft-shadow);
}

.profile-avatar {
  width: 72px;
  height: 72px;
  font-size: 24px;
}

.profile-hero h3 {
  margin: 0 0 5px;
  font-size: 21px;
  line-height: 1.1;
}

.profile-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.tariff-badge {
  align-self: start;
  padding: 8px 10px;
  border-radius: 999px;
  background: #14212d;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.profile-form,
.profile-card {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(28, 48, 58, 0.05);
}

.profile-form label {
  display: grid;
  gap: 7px;
}

.profile-form label span {
  color: #3e4a55;
  font-size: 12px;
  font-weight: 900;
}

.profile-form input,
.profile-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbfa;
  color: var(--ink);
  padding: 0 13px;
  outline: none;
}

.profile-form input:focus,
.profile-form select:focus {
  border-color: rgba(22, 111, 229, 0.65);
  box-shadow: 0 0 0 3px rgba(22, 111, 229, 0.12);
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 14px;
}

.profile-summary div {
  padding: 13px 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(28, 48, 58, 0.05);
}

.profile-summary strong,
.profile-summary span {
  display: block;
}

.profile-summary strong {
  font-size: 24px;
  line-height: 1;
}

.profile-summary span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.profile-card h3 {
  margin: 0;
  font-size: 18px;
}

.tariff-entry {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.tariff-entry p {
  margin: 6px 0 0;
}

.pricing-hero {
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(20, 33, 45, 0.92), rgba(22, 111, 229, 0.82)),
    #14212d;
  color: #fff;
  box-shadow: var(--shadow);
}

.pricing-hero h3 {
  margin: 8px 0 8px;
  font-size: 27px;
  line-height: 1.05;
  letter-spacing: 0;
}

.pricing-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.tariff-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.tariff-card {
  position: relative;
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(28, 48, 58, 0.05);
}

.tariff-card.featured {
  border-color: rgba(25, 168, 102, 0.46);
  background:
    linear-gradient(135deg, rgba(25, 168, 102, 0.12), rgba(22, 111, 229, 0.08)),
    #ffffff;
}

.tariff-card.active {
  box-shadow: 0 0 0 3px rgba(25, 168, 102, 0.14), var(--soft-shadow);
}

.tariff-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.tariff-small,
.active-badge {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.tariff-small {
  background: #edf4f3;
  color: #43505b;
}

.active-badge {
  background: var(--green-soft);
  color: #0b7f47;
}

.tariff-card h3 {
  margin: 9px 0 0;
  font-size: 22px;
  line-height: 1;
}

.tariff-price {
  display: flex;
  align-items: end;
  gap: 8px;
}

.tariff-price strong {
  font-size: 30px;
  line-height: 1;
}

.tariff-price span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.tariff-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.tariff-features {
  display: grid;
  gap: 9px;
}

.tariff-features div {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 9px;
  align-items: center;
  color: #303b45;
  font-size: 14px;
  line-height: 1.3;
}

.tariff-features svg {
  width: 20px;
  height: 20px;
  color: var(--green);
}

.compare-card {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(28, 48, 58, 0.05);
}

.compare-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.compare-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #edf3f2;
}

.compare-row span {
  color: var(--muted);
}

.compare-row b {
  text-align: right;
}

.weak-list {
  display: grid;
  gap: 8px;
}

.weak-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fbfa;
  color: var(--ink);
  text-align: left;
}

.weak-list span {
  font-weight: 800;
}

.weak-list b {
  color: var(--red);
}

.readiness-hero,
.crash-hero {
  padding: 18px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.readiness-hero {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(25, 168, 102, 0.12), rgba(22, 111, 229, 0.1)),
    #ffffff;
}

.readiness-ring {
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border-radius: 999px;
  background: conic-gradient(var(--green) var(--score-angle), #e2ecea 0);
}

.readiness-ring div {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  text-align: center;
}

.readiness-ring strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.readiness-ring span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.readiness-hero h3,
.crash-hero h3 {
  margin: 8px 0 7px;
  font-size: 24px;
  line-height: 1.08;
}

.readiness-hero p,
.crash-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.readiness-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.readiness-stats div {
  min-width: 0;
  padding: 12px 8px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(28, 48, 58, 0.05);
}

.readiness-stats strong,
.readiness-stats span {
  display: block;
}

.readiness-stats strong {
  font-size: 22px;
  line-height: 1;
}

.readiness-stats span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.section-title.compact {
  margin: 0 0 10px;
}

.readiness-list {
  display: grid;
  gap: 9px;
}

.readiness-topic {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 16px;
  background: #f7fbfa;
  color: var(--ink);
  text-align: left;
}

.readiness-topic strong,
.readiness-topic em,
.readiness-topic b,
.readiness-topic i {
  display: block;
}

.readiness-topic strong {
  font-size: 14px;
}

.readiness-topic em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.readiness-topic b {
  color: var(--ink);
}

.readiness-topic i {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4eceb;
}

.readiness-topic u {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--blue);
}

.readiness-topic.ready u {
  background: var(--green);
}

.readiness-topic.weak u {
  background: var(--red);
}

.readiness-actions {
  display: grid;
  gap: 10px;
}

.crash-hero {
  background:
    linear-gradient(135deg, rgba(20, 33, 45, 0.94), rgba(25, 168, 102, 0.82)),
    #14212d;
  color: #fff;
}

.crash-hero p {
  color: rgba(255, 255, 255, 0.82);
}

.crash-steps {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.crash-steps article {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(28, 48, 58, 0.05);
}

.crash-steps article.locked {
  background: #f8fbfa;
}

.crash-steps article > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: #eaf3f1;
  color: #176b52;
  font-weight: 950;
}

.crash-steps h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.crash-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.crash-steps .primary,
.crash-steps .secondary {
  min-height: 42px;
}

@media (max-width: 420px) {
  .account-nudge,
  .profile-hero,
  .tariff-entry,
  .access-panel,
  .mini-paywall,
  .readiness-hero,
  .crash-steps article,
  .ai-insight-card {
    grid-template-columns: 1fr;
  }

  .account-nudge .secondary,
  .profile-actions,
  .tariff-entry .secondary,
  .access-panel .secondary,
  .mini-paywall .primary,
  .crash-steps .primary,
  .crash-steps .secondary {
    width: 100%;
  }

  .readiness-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-quick-questions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 760px) {
  .app-shell {
    min-height: calc(100vh - 32px);
    margin-top: 16px;
    margin-bottom: 16px;
    border-radius: 28px;
    box-shadow: var(--shadow);
  }

  .screen {
    min-height: calc(100vh - 32px);
  }
}
