@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Kalam:wght@400;700&display=swap");

:root {
  --orange: #f36c21;
  --orange-dark: #de5d1a;
  --cream: #f8f3ef;
  --card: #f1f1f1;
  --ink: #2d2b2a;
  --muted: #6f6a67;
  --green: #2f7a2f;
  --shadow: 0 18px 40px rgba(20, 8, 0, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #ffdcc2 0%, #f36c21 60%, #cf4e13 100%);
  min-height: 100vh;
}

.app-bg {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.phone {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 32px;
  padding: 28px 22px 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--orange), #ffa45c);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-family: "Kalam", "Trebuchet MS", cursive;
  font-size: 22px;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-size: 20px;
  letter-spacing: 2px;
  font-weight: 700;
}

.brand-tag {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.icon-btn {
  border: none;
  background: #f0f0f0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.menu-lines {
  width: 18px;
  height: 2px;
  background: #333;
  position: relative;
  display: block;
  border-radius: 999px;
}

.menu-lines::before,
.menu-lines::after {
  content: "";
  width: 18px;
  height: 2px;
  background: #333;
  position: absolute;
  left: 0;
  border-radius: 999px;
}

.menu-lines::before {
  top: -6px;
}

.menu-lines::after {
  top: 6px;
}

.search-row {
  display: flex;
  gap: 12px;
  margin: 20px 0 16px;
  align-items: center;
}

.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  border-radius: 18px;
  padding: 10px 14px;
  border: 1px solid #efe6e0;
}

.search input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
  background: transparent;
}

.search-icon {
  font-size: 18px;
  color: #8c837f;
}

.primary-btn {
  border: none;
  background: var(--orange);
  color: #fff;
  border-radius: 14px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(243, 108, 33, 0.25);
}

.list-wrap {
  display: grid;
  gap: 14px;
}

.company-list {
  display: grid;
  gap: 14px;
}

.company-card {
  background: #f2f0f0;
  border-radius: 20px;
  padding: 12px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  box-shadow: inset 0 0 0 1px #e6e0dd;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.company-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(30, 14, 6, 0.12);
}

.card-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(140deg, #ffb37b, var(--orange));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 22px;
  font-family: "Kalam", "Trebuchet MS", cursive;
}

.card-title {
  margin: 0 0 4px;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.card-desc {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress {
  flex: 1;
  height: 8px;
  background: #d7d2cf;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(120deg, #3c8b2f, #5fb94b);
  width: 0%;
  transition: width 0.25s ease;
}

.progress-value {
  font-size: 12px;
  font-weight: 600;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 3, 0.45);
  backdrop-filter: blur(4px);
}

.modal {
  position: fixed;
  inset: auto 16px 16px;
  background: #fff;
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
  max-height: 80vh;
  overflow: auto;
}

.hidden {
  display: none;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.modal-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-progress {
  margin: 6px 0 0;
  font-weight: 700;
  color: var(--orange);
}

.question-list {
  margin: 16px 0 6px;
  display: grid;
  gap: 10px;
}

.question-row {
  display: grid;
  grid-template-columns: 30px 1fr 40px;
  gap: 10px;
  align-items: center;
  background: #f7f3f1;
  border-radius: 14px;
  padding: 10px 12px;
}

.question-input {
  border: none;
  background: transparent;
  font-size: 13px;
  outline: none;
}

.question-point {
  text-align: right;
  font-weight: 600;
  color: var(--green);
  font-size: 12px;
}

.check-wrap {
  display: grid;
  place-items: center;
}

.check-wrap input {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #b7b1ad;
  border-radius: 5px;
  display: grid;
  place-items: center;
  background: #fff;
}

.check-wrap input:checked + .checkmark {
  background: var(--green);
  border-color: var(--green);
}

.check-wrap input:checked + .checkmark::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  margin-bottom: 2px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
}

.close-x {
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 480px) {
  .phone {
    border-radius: 24px;
    padding: 22px 16px 26px;
  }

  .company-card {
    grid-template-columns: 62px 1fr;
  }
}
