:root {
  --green-dark: #14532d;
  --green: #1e7d32;
  --green-light: #2e9e3f;
  --navy: #101a2b;
  --navy-light: #16233a;
  --border: #2c3b52;
  --text-muted: #7c8aa0;
  --text-sage: #93a99b;
}

* { box-sizing: border-box; }

html, body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #e9e9e9;
  display: flex;
  justify-content: center;
  padding: 32px 16px;
}

.page-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* Prev/next arrows to cycle through the mockup screens */
.page-nav {
  width: 375px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-arrow:hover { background: #f2f2f2; }
.nav-arrow .i-icon { width: 20px; height: 20px; }
.i-icon.flip { transform: scaleX(-1); }

.page-dots { display: flex; align-items: center; gap: 7px; }
.page-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c7ccd3;
  transition: all .2s;
}
.page-dots span.active {
  background: var(--green);
  width: 20px;
  border-radius: 4px;
}

.phone {
  position: relative;
  width: 375px;
  max-width: 100%;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  border: 8px solid #1a1a1a;
}

/* Status bar - layered diagonal bands to mimic the flag-like header art */
.statusbar {
  position: relative;
  background: linear-gradient(120deg, var(--green-dark) 0%, var(--green) 50%, var(--green-light) 100%);
  overflow: hidden;
  padding: 8px 18px 0;
}
.statusbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      124deg,
      rgba(255,255,255,0.10) 0px,
      rgba(255,255,255,0.10) 14px,
      transparent 14px,
      transparent 60px
    ),
    repeating-linear-gradient(
      124deg,
      rgba(0,0,0,0.12) 0px,
      rgba(0,0,0,0.12) 10px,
      transparent 10px,
      transparent 70px
    );
}
.statusbar-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.statusbar-row .icons { display: flex; gap: 5px; align-items: center; font-size: 13px; }
.appstore-row {
  position: relative;
  font-size: 13px;
  color: #fff;
  opacity: .9;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px 26px;
}
.navbar .back {
  position: absolute;
  left: 18px;
  color: #fff;
  font-size: 26px;
  font-weight: 300;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.te-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-style: italic;
  font-size: 20px;
  letter-spacing: 1px;
}

/* Inline line-icon system (hand-drawn, stroke-only, no external assets) */
.i-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.i-icon.filled { fill: currentColor; stroke: none; }

.title {
  text-align: center;
  font-weight: 700;
  font-size: 19px;
  color: #14181f;
  padding: 18px 20px 16px;
  line-height: 1.3;
}

.section-header {
  background: var(--green);
  color: #fff;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  padding: 12px 16px;
}

.card {
  background: var(--navy);
  color: #fff;
  margin: 12px 16px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 16px 22px;
}

/* Event card (page 1): tall card with the button pinned to the bottom,
   matching the generous whitespace seen in the source screenshot. */
.card.event-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
}
.card.event-card .btn-green { margin-top: auto; }

.info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 10px;
}
.info-row .muted { color: var(--text-sage); font-weight: 600; }
.info-row b { font-weight: 700; }
.info-row .icon { width: 18px; text-align: center; opacity: .85; color: #cfd8e3; }

.desc {
  font-size: 14px;
  color: #d7dbe2;
  margin: 10px 0 0;
}

.btn-green {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 26px;
  padding: 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  text-decoration: none;
  cursor: pointer;
}

/* Person list */
.panel-title {
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .5px;
  padding: 4px 0 18px;
}

.person-list { list-style: none; margin: 0; padding: 0; }
.person-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
}
.person-item:last-child { border-bottom: none; }
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #333;
  flex-shrink: 0;
}
.person-name { flex: 1; font-size: 15px; }
.radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  flex-shrink: 0;
}
.radio.selected {
  background: var(--green-light);
  border-color: var(--green-light);
  box-shadow: inset 0 0 0 3px var(--navy);
}

/* Calendar */
.week-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 4px 4px;
  font-size: 13px;
  color: var(--text-muted);
}
.week-row .active { color: #fff; }
.days-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 4px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.day-num {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  color: #fff;
}
.day-num.disabled { color: #4b5670; text-decoration: line-through; }
.day-num.active { background: var(--green-light); font-weight: 700; }

.slot-list { list-style: none; margin: 0; padding: 0; }
.slot-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.slot-item:last-child { border-bottom: none; }

/* Modal / confirmation - a full-screen scrim dims everything in the phone
   uniformly (status bar, title, card) while the modal floats above it in
   full color, matching the source screenshot. */
.scrim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 5;
}
.modal {
  position: absolute;
  z-index: 10;
  top: 331px;
  left: 16px;
  right: 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
}
.modal-head {
  background: var(--green);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  padding: 16px;
}
.modal-person {
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
}
.modal-person .avatar { width: 60px; height: 60px; }
.modal-person span { font-weight: 700; letter-spacing: .5px; color: #fff; }
.modal-body {
  background: var(--green);
  color: #eafbea;
  text-align: center;
  padding: 20px 16px 26px;
  font-size: 15px;
  line-height: 2;
}
.modal-body b { color: #fff; }

.nav-link-bar {
  text-align: center;
  padding: 16px;
  font-size: 13px;
}
.nav-link-bar a { color: var(--green); text-decoration: none; font-weight: 600; }

/* On an actual phone the fake device bezel/shadow just wastes space and can
   cause horizontal overflow, so drop it and let the screen go edge-to-edge. */
@media (max-width: 430px) {
  body { padding: 0 0 24px; }
  .page-wrap { width: 100%; gap: 12px; }
  .phone {
    width: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  .page-nav { width: 100%; padding: 0 16px; }
}
