/* ============================================================
   MOBILE APP LAYOUT – GLOBAL
   Used by: index.html, mobile JSPs (non-form layout)
   ============================================================ */

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  background: #F2F4F7;
  color: #111827;
}

/* -------- App shell -------- */
.app-shell {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 24px;
}

/* ============================================================
   HEADER / BRANDING
   ============================================================ */

.app-header {
  text-align: center;
  padding: 6px 0 12px;
}

.app-top-domain {
  display: block;
  margin: 10px auto 0;
  font-size: 26px;
  font-weight: 900;
  color: #2563eb;
  letter-spacing: 1px;
}

.app-logo-text {
  font-size: 28px;
  font-weight: 900;
  margin-top: 6px;
  letter-spacing: 0.5px;
}

.main-logo {
  display: block;
  width: 150px;
  height: 150px;
  margin: 14px auto 6px;
  border-radius: 20px;
}

/* ============================================================
   MAIN CONTENT / HERO
   ============================================================ */

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  width: 90%;
  margin: 14px auto 10px;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  line-height: 1.32;
}

.hero-subtitle {
  margin: 0 auto 18px;
  font-weight: 900;
  font-size: 20px;
  color: #1e3a8a;
  text-align: center;
  line-height: 1.4;
}
.hero-start {
  font-size: 17px;
  font-weight: 700;
  color: #1e40af;
  text-align: center;
  line-height: 1.6;   /* 👈 increases vertical spacing inside text */
  margin-bottom: 12px;
}


/* ============================================================
   MENU GRID (VERTICAL)
   ============================================================ */

.menu-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #f3f4f6;
  border-radius: 14px;
  text-decoration: none;
  color: #111827;
  font-weight: 800;
  font-size: 1.15rem;
}

.menu-item:active {
  transform: translateY(1px);
}

.menu-item .emoji {
  font-size: 1.9rem;
}

.menu-item .label {
  font-size: 1.2rem;
  font-weight: 800;
}

/* ============================================================
   GENERIC BUTTONS / LINKS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  background: #2563eb;
  color: #ffffff;
}

.btn.ghost {
  background: transparent;
  color: #111827;
  border-color: #d1d5db;
}

.btn:active {
  transform: translateY(1px);
}

.link {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */

.app-footer {
  padding-top: 14px;
  font-size: 0.8rem;
  text-align: center;
  color: #6b7280;
}

/* ============================================================
   POPUP SHEETS / OVERLAY
   ============================================================ */

.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 900;
}

.hidden {
  display: none !important;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  transform: translateY(100%);
  transition: transform 0.25s ease-out;
}

.sheet.show {
  transform: translateY(0);
}

.sheet-header {
  padding: 10px 16px 6px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.sheet-drag-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #d1d5db;
  margin: 4px auto 8px;
}

.sheet-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.sheet-body {
  padding: 8px 16px 12px;
  overflow-y: auto;
  font-size: 0.9rem;
}

.sheet-footer {
  padding: 8px 16px 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #e5e7eb;
}

/* Scrollbar (WebKit) */
.sheet-body::-webkit-scrollbar {
  width: 4px;
}

.sheet-body::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 999px;
}
.install-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  background: #2563eb;        /* blue */
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;       /* pill shape */
  transition: background 0.15s ease, transform 0.1s ease;
}

.install-btn:hover {
  background: #1d4ed8;
}

.install-btn:active {
  transform: translateY(1px);
}

.emoji-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s ease;
}

.emoji-btn:hover {
  background: #1e4fd1;
}
.step-btn {
  display: block;              /* important */
  width: 100%;                 /* full width of card */
  text-align: center;          /* center text */
  margin-top: 12px;
  padding: 12px 0;
  background: #2563eb;
  color: #ffffff;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.step-btn:hover {
  background: #1e4fd1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
