:root {
  color-scheme: light;
  --ink: #172238;
  --muted: #526178;
  --blue: #5e93ec;
  --violet: #8f69ea;
  --mint: #70e3d1;
  --amber: #ffd36d;
  --coral: #ff7d83;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(112, 227, 209, 0.28), transparent 26rem),
    radial-gradient(circle at 88% 8%, rgba(143, 105, 234, 0.2), transparent 24rem),
    linear-gradient(135deg, #f3f9ff 0%, #f7f3ff 54%, #fff8ec 100%);
}

a,
button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.hero {
  padding: clamp(24px, 6vw, 72px);
}

.eyebrow {
  margin: 0 0 8px;
  color: #4d6da8;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: 0.94;
}

.hero p:not(.eyebrow) {
  max-width: 66ch;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-actions a,
.card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-weight: 900;
  text-decoration: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  padding: 0 clamp(18px, 6vw, 72px) 28px;
}

.card,
.scorecard {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(24, 45, 92, 0.14);
}

.card {
  display: grid;
  gap: 12px;
}

.mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: white;
  font-weight: 950;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.b .mark {
  background: linear-gradient(135deg, var(--mint), var(--blue));
}

.c .mark {
  background: linear-gradient(135deg, var(--amber), var(--coral));
  color: #583700;
}

.d .mark {
  background: linear-gradient(135deg, #172238, var(--blue));
}

.e .mark {
  background: linear-gradient(135deg, var(--coral), var(--violet));
}

.f .mark {
  background: conic-gradient(from 20deg, var(--blue), var(--mint), var(--amber), var(--coral), var(--violet), var(--blue));
}

.card p:not(.eyebrow),
.scorecard li {
  color: var(--muted);
  line-height: 1.5;
}

.scorecard {
  margin: 0 clamp(18px, 6vw, 72px) 72px;
}

.scorecard li {
  margin-bottom: 8px;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(360px, 430px);
  align-items: start;
  gap: 22px;
  padding: 0 clamp(18px, 6vw, 72px) 28px;
}

.review-layout .grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  padding: 0;
}

.card a,
.card button,
.preview-header a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-weight: 900;
  text-decoration: none;
}

.card button {
  border: 0;
  cursor: pointer;
}

.card button.is-selected {
  color: var(--ink);
  background: linear-gradient(135deg, var(--mint), #ffffff);
  box-shadow: inset 0 0 0 2px rgba(23, 34, 56, 0.16);
}

.card-actions {
  display: grid;
  gap: 8px;
}

.preview-panel {
  position: sticky;
  top: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(24, 45, 92, 0.16);
}

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

.preview-header h2 {
  margin-bottom: 0;
}

.preview-header a {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.88);
}

.iframe-shell {
  width: 100%;
  max-width: 390px;
  height: min(760px, calc(100vh - 170px));
  min-height: 620px;
  margin: 0 auto;
  overflow: hidden;
  border: 10px solid #152036;
  border-radius: 36px;
  background: #ffffff;
}

iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

@media (max-width: 900px) {
  .review-layout {
    display: flex;
    flex-direction: column-reverse;
  }

  .preview-panel {
    position: static;
    width: 100%;
  }

  .iframe-shell {
    height: 70vh;
    min-height: 560px;
  }
}
