* {
  box-sizing: border-box;
}

:root {
  --forest: #173a2f;
  --forest-soft: #245442;
  --cream: #f6f1e7;
  --paper: #fffdf9;
  --ink: #1f2925;
  --muted: #6c7772;
  --line: #e6e0d5;
  --accent: #d9a15b;
  --danger: #a94b45;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

button,
textarea {
  font: inherit;
}

.app {
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.08);
}

.hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(23,58,47,.18), rgba(23,58,47,.65)),
    url("https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?auto=format&fit=crop&w=1200&q=85")
    center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 31, 25, .9), rgba(12, 31, 25, .08));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 34px 26px 30px;
  color: white;
}

.eyebrow,
.step-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
}

.hero h1,
.panel h2 {
  font-family: "Playfair Display", serif;
}

.hero h1 {
  margin: 10px 0 12px;
  font-size: 39px;
  line-height: 1.04;
}

.hero p {
  margin: 0;
  color: rgba(255,255,255,.86);
  line-height: 1.55;
}

.panel {
  display: none;
  padding: 28px 24px 38px;
}

.panel.active {
  display: block;
  animation: fade .28s ease;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-label {
  color: var(--forest-soft);
  margin-bottom: 8px;
}

.panel h2 {
  margin: 0 0 10px;
  font-size: 31px;
}

.lead {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.55;
}

.feature-list {
  border-top: 1px solid var(--line);
  margin-bottom: 26px;
}

.feature {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.icon {
  font-size: 25px;
}

.feature h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.primary,
.secondary {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 16px 18px;
  font-weight: 700;
  cursor: pointer;
}

.primary {
  background: var(--forest);
  color: white;
}

.secondary {
  margin-top: 10px;
  background: transparent;
  color: var(--forest);
  border: 1px solid var(--line);
}

.choice {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  border: 1px solid var(--line);
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
}

.choice > span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-weight: 800;
}

.choice strong,
.choice small {
  display: block;
}

.choice small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.positive > span {
  background: #e2f0e8;
  color: var(--forest);
}

.neutral > span {
  background: #ece8df;
  color: #6d6659;
}

.warning > span {
  background: #f7e4e2;
  color: var(--danger);
}

textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  background: white;
}

.success {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.success-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: white;
  font-size: 24px;
  font-weight: 800;
}

.success h2 {
  margin-bottom: 0;
}

.wifi-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 18px;
  background: var(--forest);
  color: white;
  margin-bottom: 20px;
}

.eyebrow.dark {
  color: rgba(255,255,255,.7);
}

.wifi-card h3 {
  margin: 6px 0 3px;
}

.wifi-card p {
  margin: 0;
  color: rgba(255,255,255,.78);
  word-break: break-all;
}

.wifi-card button {
  border: 0;
  border-radius: 12px;
  padding: 11px 13px;
  background: white;
  color: var(--forest);
  font-weight: 700;
  cursor: pointer;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.portal-card {
  min-height: 138px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  background: white;
}

.portal-card span,
.portal-card strong,
.portal-card small {
  display: block;
}

.portal-card span {
  font-size: 27px;
  margin-bottom: 18px;
}

.portal-card small {
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.3;
}

.footer-note {
  text-align: center;
  color: var(--muted);
  line-height: 1.5;
  margin: 28px 10px 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #111;
  color: white;
  padding: 10px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 700px) {
  body {
    padding: 26px 0;
  }

  .app {
    min-height: calc(100vh - 52px);
    border-radius: 24px;
    overflow: hidden;
  }
}
