:root {
  --bg-top: #0d1b2a;
  --bg-bottom: #13293d;
  --shell: #112233;
  --shell-border: rgba(255, 255, 255, 0.08);
  --surface: rgba(20, 39, 58, 0.92);
  --surface-strong: rgba(34, 58, 84, 0.98);
  --surface-soft: rgba(255, 255, 255, 0.06);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #f4a261;
  --accent-strong: #ffb56f;
  --walk: #58a66d;
  --call: #5b8fd6;
  --texting: #d66f84;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top, rgba(244, 162, 97, 0.15), transparent 30%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  color: var(--text);
}

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

button {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.6);
}

.phone-frame {
  position: relative;
  width: min(100%, 430px);
  min-height: 860px;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid var(--shell-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    var(--shell);
  box-shadow: var(--shadow);
}

.phone-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 260px;
  background: radial-gradient(circle, rgba(244, 162, 97, 0.24), transparent 70%);
  pointer-events: none;
}

.screen {
  position: absolute;
  inset: 0;
  padding: 18px 20px 22px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%),
    linear-gradient(180deg, rgba(10, 23, 36, 0.9), rgba(12, 28, 43, 0.98));
}

.screen.active {
  display: flex;
}

.screen-home {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  background:
    radial-gradient(circle at top right, rgba(244, 162, 97, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%),
    linear-gradient(180deg, rgba(10, 23, 36, 0.9), rgba(12, 28, 43, 0.98));
}

.screen-mode {
  justify-content: flex-start;
  overflow-y: auto;
}

.screen-home::-webkit-scrollbar,
.screen-mode::-webkit-scrollbar {
  width: 8px;
}

.screen-home::-webkit-scrollbar-thumb,
.screen-mode::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.status-row,
.home-footer,
.screen-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.77rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.login-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 34px;
  padding: 30px 8px;
}

.logo-wrap {
  display: grid;
  place-items: center;
  padding: 10px 0 0;
}

.logo-image {
  width: min(76%, 260px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 50px rgba(0, 0, 0, 0.35));
}

.login-copy,
.hero-copy,
.section-copy {
  display: grid;
  gap: 10px;
}

.eyebrow {
  margin: 0;
  color: #b8c9d8;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
}

.eyebrow.warm {
  color: #ffd5b2;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.65rem, 6vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.support-copy {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.primary-button {
  border: 0;
  border-radius: 14px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  color: #122233;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(245, 158, 11, 0.34);
  filter: brightness(1.03);
}

.text-button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.text-button:hover,
.text-button:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: none;
}

.primary-button:focus-visible,
.action-card:focus-visible,
.back-button:focus-visible,
.view-toggle-button:focus-visible,
.drill-card:focus-visible,
.person-card-button:focus-visible,
.breadcrumb:focus-visible,
.support-option:focus-visible,
.guidance-input:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.78);
  outline-offset: 3px;
}

.screen-footer {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.login-notice {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

.home-hero {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.mini-stat-card {
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(244, 162, 97, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  display: grid;
  gap: 4px;
}

.mini-stat-label,
.mini-stat-detail {
  color: var(--muted);
  font-size: 0.82rem;
}

.mini-stat-card strong {
  font-size: 1.25rem;
}

.action-grid {
  display: grid;
  gap: 24px;
  margin-top: 30px;
}

.action-card {
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)),
    rgba(18, 34, 51, 0.95);
  padding: 22px;
  color: var(--text);
  display: grid;
  gap: 10px;
  cursor: pointer;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.action-card:hover,
.action-card:focus-visible {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--surface-strong);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.card-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--muted);
}

.action-card strong {
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.card-detail {
  color: #c3d0db;
  line-height: 1.5;
  font-size: 0.98rem;
}

.walk-card .card-icon {
  background: linear-gradient(180deg, rgba(88, 166, 109, 0.28), rgba(88, 166, 109, 0.14));
  color: #9fe0b0;
}

.call-card .card-icon {
  background: linear-gradient(180deg, rgba(91, 143, 214, 0.28), rgba(91, 143, 214, 0.14));
  color: #9ac4ff;
}

.text-card .card-icon {
  background: linear-gradient(180deg, rgba(214, 111, 132, 0.28), rgba(214, 111, 132, 0.14));
  color: #ffb7c6;
}

.walk-card {
  background:
    radial-gradient(circle at top right, rgba(88, 166, 109, 0.26), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)),
    rgba(18, 34, 51, 0.95);
}

.call-card {
  background:
    radial-gradient(circle at top right, rgba(91, 143, 214, 0.26), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)),
    rgba(18, 34, 51, 0.95);
}

.text-card {
  background:
    radial-gradient(circle at top right, rgba(214, 111, 132, 0.26), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)),
    rgba(18, 34, 51, 0.95);
}

.home-footer {
  margin-top: auto;
  padding-top: 18px;
}

.mode-panel {
  display: grid;
  gap: 24px;
  padding: 28px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    rgba(15, 30, 45, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.back-button {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.mode-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
}

.mode-icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.mode-card-list {
  display: grid;
  gap: 24px;
}

.mode-data-block,
.walk-workspace,
.call-workspace,
.walk-section,
.drill-list,
.person-list,
.survey-section {
  display: grid;
  gap: 14px;
}

.mode-data-header {
  display: grid;
  gap: 6px;
}

.mode-data-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
}

.view-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.view-toggle-button {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.view-toggle-button.active {
  color: #0f1f2f;
  background: linear-gradient(135deg, #f6b36d, #ffd3a0);
  box-shadow: 0 10px 24px rgba(244, 162, 97, 0.24);
}

.walk-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb,
.breadcrumb.current {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.84rem;
}

.breadcrumb {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
}

.breadcrumb.current {
  background: rgba(88, 166, 109, 0.16);
  color: #bde6c7;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.32);
}

.drill-card,
.person-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(18, 34, 51, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.drill-card,
.person-card-button,
.support-option,
.secondary-button {
  text-align: left;
  cursor: pointer;
}

.drill-card {
  border-color: rgba(255, 255, 255, 0.07);
}

.drill-card strong {
  font-size: 1.04rem;
}

.drill-label,
.drill-meta,
.person-address,
.person-meta {
  color: #c3d0db;
  line-height: 1.45;
  font-size: 0.92rem;
}

.drill-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--muted);
}

.person-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.person-name {
  font-size: 1rem;
  font-weight: 700;
}

.person-badge {
  align-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #d9e5ee;
  background: rgba(255, 255, 255, 0.08);
}

.person-badge.complete {
  color: #9fe0b0;
  background: rgba(88, 166, 109, 0.16);
}

.person-badge.ready {
  color: #d9e5ee;
  background: rgba(255, 255, 255, 0.08);
}

.mode-info-card,
.map-placeholder-card,
.survey-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.info-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.73rem;
}

.guidance-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  resize: vertical;
  min-height: 112px;
  color: var(--text);
  background: rgba(8, 20, 31, 0.78);
}

.support-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.support-option {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
}

.support-option.active {
  border-color: rgba(88, 166, 109, 0.42);
  background: linear-gradient(180deg, rgba(88, 166, 109, 0.22), rgba(88, 166, 109, 0.12));
  color: #bde6c7;
}

.survey-submit-button {
  width: 100%;
}

.call-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.call-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  background: rgba(91, 143, 214, 0.18);
  color: #cbe0ff;
  text-decoration: none;
  font-weight: 700;
}

.compact-info-card {
  gap: 4px;
}

.mode-panel.walk-theme .mode-icon {
  background: rgba(88, 166, 109, 0.18);
  color: #9fe0b0;
}

.mode-panel.call-theme .mode-icon {
  background: rgba(91, 143, 214, 0.18);
  color: #9ac4ff;
}

.mode-panel.text-theme .mode-icon {
  background: rgba(214, 111, 132, 0.18);
  color: #ffb7c6;
}

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

  .phone-frame {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .mode-panel {
    padding: 22px 18px 24px;
    border-radius: 0;
  }
}
