:root {
  color-scheme: light;
  --ink: #172238;
  --muted: #526178;
  --blue: #5e93ec;
  --violet: #8f69ea;
  --mint: #70e3d1;
  --amber: #ffd36d;
  --coral: #ff7d83;
  font-family: Inter, 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 12% 12%, rgba(112, 227, 209, 0.28), transparent 28rem),
    radial-gradient(circle at 82% 6%, rgba(255, 125, 131, 0.2), transparent 24rem),
    linear-gradient(135deg, #edf6ff, #f7f2ff 52%, #fff7ec);
}

a,
button,
input {
  font: inherit;
}

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

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 6vw, 72px);
}

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

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

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

.lede {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.home-link,
.concept-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;
}

main {
  padding: 0 clamp(18px, 6vw, 72px) 72px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.concept-card {
  min-height: 248px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 48px rgba(24, 45, 92, 0.16);
  backdrop-filter: blur(16px);
}

.concept-card p {
  color: var(--muted);
  line-height: 1.45;
}

.icon {
  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));
}

.timeline .icon {
  background: linear-gradient(135deg, #34c3ff, #3866e8);
}

.notebook .icon {
  background: linear-gradient(135deg, #70e3d1, #2e8d95);
}

.capture .icon {
  background: linear-gradient(135deg, #ff7d83, #8f69ea);
}

.radar .icon {
  background: linear-gradient(135deg, #ffd36d, #ff8d59);
  color: #593800;
}

.import .icon {
  background: linear-gradient(135deg, #172238, #5e93ec);
}

.scorecard {
  margin-top: 28px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

input[type="range"] {
  width: 100%;
}

@media (max-width: 720px) {
  .hero {
    display: block;
  }

  .home-link {
    margin-top: 16px;
  }
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(360px, 430px);
  align-items: start;
  gap: 22px;
}

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

.concept-card a,
.concept-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;
}

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

.concept-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.72);
  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.8);
}

.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;
  }
}
