:root {
  --ink: #0c1d3d;
  --muted: #60708a;
  --line: #dce4ef;
  --soft: #f4f7fb;
  --blue: #0d62e8;
  --green: #07a35d;
  --green-dark: #07864e;
  --orange: #f17f21;
  --panel: #ffffff;
  --shadow: 0 22px 55px rgba(15, 32, 59, 0.22);
  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 18% 12%, rgba(13, 98, 232, 0.15), transparent 30%),
    linear-gradient(135deg, #eef5ff 0%, #f8fbff 42%, #eaf8f0 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(280px, 420px);
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 32px;
}

.phone {
  width: min(100%, 390px);
  height: 820px;
  overflow: hidden;
  border: 10px solid #07142b;
  border-radius: 38px;
  background: #fff;
  box-shadow: var(--shadow);
  position: relative;
}

.phone::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 50%;
  width: 120px;
  height: 30px;
  transform: translateX(-50%);
  border-radius: 0 0 18px 18px;
  background: #07142b;
}

.status-bar {
  height: 48px;
  padding: 14px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 12px;
  font-weight: 700;
  background: #fff;
  position: relative;
  z-index: 2;
}

.status-icons {
  letter-spacing: 1px;
  font-size: 9px;
}

.screen {
  height: calc(100% - 48px);
  overflow-y: auto;
  scrollbar-width: none;
  background: #fff;
}

.screen::-webkit-scrollbar {
  display: none;
}

.view {
  min-height: 100%;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.view.with-nav {
  padding-bottom: 92px;
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
}

.back,
.icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  background: #eef3fa;
  font-weight: 800;
}

.screen-title {
  margin: 16px 0 3px;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: 0;
}

.subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
}

.welcome {
  padding: 28px 18px 18px;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(226, 242, 255, 0.72), rgba(255, 255, 255, 0.9) 55%),
    url("assets/procurement-scene.svg") center bottom / 100% auto no-repeat;
}

.welcome-center {
  text-align: center;
  padding-top: 48px;
}

.logo-big,
.success-mark {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  border-radius: 24px;
  color: #fff;
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, #0875bf, #10ad69);
  box-shadow: 0 16px 35px rgba(7, 128, 103, 0.25);
}

.logo-text {
  margin: 0;
  font-size: 36px;
  line-height: 1;
  color: var(--ink);
}

.logo-text span,
.brand-lockup strong span {
  color: var(--green);
}

.tagline {
  margin: 8px 0 0;
  font-weight: 800;
}

.promise {
  max-width: 270px;
  margin: 14px auto;
  color: var(--muted);
  font-size: 14px;
}

.actions {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.primary,
.secondary,
.outline,
.ghost {
  min-height: 52px;
  border: 0;
  border-radius: 9px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
}

.primary {
  color: #fff;
  background: linear-gradient(180deg, #08b76a, var(--green));
  box-shadow: 0 12px 24px rgba(7, 163, 93, 0.2);
}

.secondary {
  color: #fff;
  background: linear-gradient(180deg, #146fff, #0d54d6);
  box-shadow: 0 12px 24px rgba(13, 98, 232, 0.2);
}

.outline {
  color: var(--blue);
  background: #fff;
  border: 1px solid #b9cef4;
}

.ghost {
  color: var(--green-dark);
  background: #ecf9f2;
}

.login-note {
  margin: 16px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.login-note button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
}

.search {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fafc;
  padding: 0 13px;
  color: var(--muted);
}

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

.option-card,
.info-card,
.quote-card,
.metric,
.settings-row,
.language-row,
.message,
.timeline-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
}

.option-card {
  width: 100%;
  min-height: 68px;
  padding: 10px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  text-align: left;
}

.option-card.selected {
  border-color: var(--green);
  background: #effaf4;
}

.tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
}

.tile-icon.orange { background: #ff9b24; }
.tile-icon.green { background: #10ad69; }
.tile-icon.blue { background: #1578d4; }
.tile-icon.navy { background: #25385f; }
.tile-icon.gray { background: #8091a8; }

.option-card strong,
.quote-card strong {
  display: block;
  font-size: 14px;
}

.option-card small,
.quote-card small {
  color: var(--muted);
  font-size: 12px;
}

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

.field label,
.field span {
  display: block;
  margin-bottom: 6px;
  color: #40516d;
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
}

.field textarea {
  min-height: 82px;
  resize: vertical;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 10px;
}

.check-row {
  min-height: 35px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #25385f;
  font-size: 13px;
}

.check-row input {
  width: 19px;
  height: 19px;
  accent-color: var(--green);
}

.success {
  align-items: center;
  text-align: center;
}

.success-mark {
  margin-top: 34px;
  border-radius: 50%;
  font-size: 40px;
  background: var(--green);
}

.info-card {
  width: 100%;
  padding: 16px;
  text-align: left;
}

.business-head {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 7px 10px;
  margin: 12px 0;
  border-radius: 8px;
  background: #eaf3ff;
  color: #0d62e8;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  color: var(--green);
}

.logo-small,
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0875bf, #10ad69);
  color: #fff;
  font-weight: 900;
}

.avatar {
  border-radius: 50%;
  background: #233858;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.metric {
  padding: 12px;
  background: #f8fafc;
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0 10px;
}

.section-title h3 {
  margin: 0;
  font-size: 16px;
}

.section-title button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.requirement-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  background: #fff;
}

.requirement-card + .requirement-card {
  margin-top: 10px;
}

.pill-btn {
  align-self: center;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.attach {
  min-height: 70px;
  border: 1px dashed #9fb4d3;
  border-radius: 9px;
  background: #f8fbff;
  display: grid;
  place-items: center;
  color: #40516d;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.input-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.input-tabs button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  font-weight: 800;
  color: var(--muted);
}

.input-tabs button.active {
  border-color: var(--green);
  color: var(--green-dark);
  background: #edfbf4;
}

.voice-box {
  min-height: 150px;
  padding: 18px;
  border-radius: 9px;
  background: #f7faff;
  border: 1px solid var(--line);
}

.mic {
  width: 58px;
  height: 58px;
  margin: 18px auto 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 24px;
}

.review-table {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  color: #40516d;
  font-size: 13px;
}

.review-table div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
}

.quote-card {
  padding: 13px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
}

.price {
  display: block;
  margin: 6px 0;
  font-size: 20px;
  font-weight: 900;
}

.chat {
  gap: 10px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
    url("assets/chat-pattern.svg") center / 180px;
}

.chat-head {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.message {
  max-width: 78%;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.35;
}

.message.me {
  margin-left: auto;
  background: #dbf6e7;
  border-color: #c4ecd6;
}

.message small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  text-align: right;
  font-size: 10px;
}

.composer {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
}

.composer input {
  border: 1px solid var(--line);
  border-radius: 21px;
  padding: 0 14px;
}

.order-summary {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  text-align: left;
}

.order-summary div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
}

.timeline {
  display: grid;
  gap: 0;
  text-align: left;
}

.timeline div {
  min-height: 38px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  color: #40516d;
}

.timeline span:first-child {
  width: 16px;
  height: 16px;
  border: 2px solid #9fb0c9;
  border-radius: 50%;
  margin-top: 2px;
}

.timeline div.done span:first-child {
  border-color: var(--green);
  background: var(--green);
}

.settings-row,
.language-row {
  min-height: 52px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #25385f;
  font-size: 14px;
}

.language-row.selected {
  border-color: var(--green);
  background: #f0fbf5;
}

.bottom-nav {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(30, 46, 74, 0.12);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 2;
}

.bottom-nav button {
  border: 0;
  background: transparent;
  color: #60708a;
  font-size: 10px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
}

.bottom-nav button.active {
  color: var(--blue);
  font-weight: 900;
}

.bottom-nav span {
  font-size: 18px;
  line-height: 1;
}

.preview-panel {
  max-width: 390px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(30, 48, 78, 0.13);
}

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

.brand-lockup strong {
  display: block;
  font-size: 24px;
}

.brand-lockup small {
  color: var(--muted);
}

.logo-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #0875bf, #10ad69);
  font-weight: 900;
  font-size: 28px;
}

.preview-panel p {
  color: #40516d;
  line-height: 1.55;
}

.flow-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flow-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #b9c8dd;
}

.flow-dots button.active {
  width: 30px;
  border-radius: 99px;
  background: var(--green);
}

@media (max-width: 840px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .phone {
    height: min(820px, calc(100vh - 32px));
    margin: 0 auto;
  }

  .preview-panel {
    display: none;
  }
}

@media (max-width: 430px) {
  .app-shell {
    padding: 0;
  }

  .phone {
    width: 100vw;
    height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .phone::before {
    display: none;
  }
}
