/* Shared styles for the current crew demo pages */

:root{
  --msc-navy:#0a0a4a;
  --msc-orange:#ff6a00;
  --msc-orange-hover:#e85f00;
  --msc-primary-next:#06003d;
  --msc-primary-next-hover:#14085a;
  --amb-primary-next:#7a278f;
  --amb-primary-next-hover:#68207a;
  --text:#111827;
}

*{
  box-sizing:border-box;
}

html,
body{
  height:100%;
}

body{
  margin:0;
  font-family:"Avenir", "Helvetica Neue", Arial, sans-serif;
  color:var(--text);
  background:#ffffff;
}

.btn{
  appearance:none;
  border:0;
  cursor:pointer;
  background:var(--msc-orange);
  color:#ffffff;
  font-weight:800;
  letter-spacing:.03em;
  border-radius:999px;
  min-width:140px;
  min-height:32px;
  padding:0 18px;
  font-size:11.5px;
  text-transform:uppercase;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:background .15s ease, transform .05s ease, border-color .15s ease, color .15s ease;
}

.btn:hover{
  background:var(--msc-orange-hover);
}

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

.btn-secondary{
  background:#ffffff;
  color:#1f2a5a;
  border:1px solid #cfd6e3;
}

.btn-secondary:hover{
  background:#f8fafc;
}

.database-shell{
  width:min(100%, 580px);
  background:linear-gradient(180deg, #eff3f8 0%, #ffffff 22%, #f5f7fb 100%);
  border:1px solid #d9dfeb;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 28px 56px rgba(15, 23, 42, 0.16);
}

.database-shell__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:16px 20px;
  background:var(--msc-navy);
  color:#ffffff;
}

.database-shell__eyebrow{
  margin:0;
  font-size:10px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#cfd9f2;
}

.database-shell__title{
  margin:0;
  font-size:26px;
  line-height:1.05;
  font-weight:800;
  letter-spacing:.02em;
  text-transform:uppercase;
}

.database-shell__body{
  padding:18px;
}

.database-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  background:#ffffff;
  border:1px solid #dbe2ed;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 12px 24px rgba(15, 23, 42, 0.06);
}

.database-table th,
.database-table td{
  padding:10px 12px;
  text-align:left;
}

.database-table thead th{
  font-size:10px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#687385;
  background:#f5f7fb;
  border-bottom:1px solid #e3e8f0;
}

.database-table tbody td{
  font-size:13px;
  color:#10364b;
  border-bottom:1px solid #eef2f6;
}

.database-table tbody tr:last-child td{
  border-bottom:0;
}

.mobile-shell{
  width:min(100%, 390px);
  min-height:760px;
  background:linear-gradient(180deg, #eff3f8 0%, #ffffff 22%, #f5f7fb 100%);
  border:1px solid #d9dfeb;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 28px 56px rgba(15, 23, 42, 0.16);
  position:relative;
}

.mobile-shell__hero{
  background:var(--msc-navy);
}

.mobile-shell__hero.is-hidden{
  display:none;
}

.mobile-shell__hero img{
  display:block;
  width:100%;
  height:auto;
}

.mobile-view{
  display:none;
}

.mobile-view.is-active{
  display:block;
}

.mobile-view__content{
  padding:22px 20px 28px;
}

.mobile-browser{
  min-height:712px;
  background:#ffffff;
  display:flex;
  flex-direction:column;
}

.mobile-browser__body{
  flex:1;
  padding:76px 22px 24px;
  color:#111827;
}

.mobile-browser__icon{
  width:38px;
  height:48px;
  position:relative;
  margin-bottom:34px;
}

.mobile-browser__icon-page{
  position:absolute;
  inset:0;
  border:3px solid #737373;
  border-top-right-radius:4px;
  background:
    linear-gradient(#737373, #737373) 8px 18px / 4px 10px no-repeat,
    linear-gradient(#737373, #737373) 18px 30px / 14px 4px no-repeat,
    linear-gradient(#737373, #737373) 11px 27px / 18px 4px no-repeat;
}

.mobile-browser__icon-page::after{
  content:"";
  position:absolute;
  top:-3px;
  right:-3px;
  width:12px;
  height:12px;
  border-top:3px solid #737373;
  border-right:3px solid #737373;
  background:#ffffff;
}

.mobile-browser__title{
  margin:0 0 28px;
  font-size:28px;
  line-height:1.15;
  font-weight:700;
  color:#202124;
}

.mobile-browser__copy{
  margin:0 0 30px;
  font-size:14px;
  line-height:1.5;
  color:#5f6368;
}

.mobile-browser__code{
  margin:0;
  font-size:14px;
  line-height:1.5;
  color:#5f6368;
}

.mobile-discount{
  min-height:520px;
  display:flex;
  flex-direction:column;
}

.mobile-section-title{
  margin:0 0 8px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  color:#687385;
  text-transform:uppercase;
}

.mobile-section-subtitle{
  margin:0 0 18px;
  font-size:28px;
  line-height:1.02;
  font-weight:800;
  letter-spacing:.02em;
  color:var(--msc-navy);
  text-transform:uppercase;
}

.mobile-discount-copy{
  margin:0 0 18px;
  font-size:13px;
  line-height:1.5;
  color:#4b5563;
}

.mobile-discount-card{
  border:1px solid #dbe2ed;
  border-radius:16px;
  background:#ffffff;
  box-shadow:0 12px 24px rgba(15, 23, 42, 0.06);
  padding:18px 16px;
}

.mobile-discount-card--success{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  min-height:180px;
  gap:18px;
}

.mobile-discount-card--success[hidden]{
  display:none !important;
}

.mobile-discount-actions{
  width:100%;
  display:grid;
  gap:10px;
}

.mobile-discount-field{
  display:grid;
  gap:7px;
  margin-bottom:16px;
}

.mobile-discount-field span{
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#687385;
}

.mobile-discount-field input{
  width:100%;
  border:1px solid #d4dbe6;
  border-radius:12px;
  background:#ffffff;
  padding:14px 15px;
  font:inherit;
  color:#08143f;
}

.mobile-discount-check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-bottom:18px;
  font-size:11px;
  line-height:1.5;
  color:#425066;
}

.mobile-discount-check input{
  margin-top:2px;
}

.mobile-discount-message{
  margin:0;
  color:#10364b;
  font-size:16px;
  line-height:1.55;
  font-weight:700;
}

.mobile-reset-link{
  margin-top:auto;
  align-self:flex-start;
  border:0;
  background:transparent;
  padding:10px 0 0;
  color:#6b7280;
  font-size:12px;
  font-weight:700;
  text-decoration:underline;
  cursor:pointer;
}

.mobile-reset-link:hover{
  color:#1f2a5a;
}

.mobile-add-btn,
.mobile-secondary-btn{
  width:100%;
  border-radius:999px;
  padding:15px 18px;
  font-size:13px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
}

.mobile-add-btn{
  border:0;
  background:var(--msc-orange);
  color:#ffffff;
  box-shadow:0 14px 28px rgba(255, 106, 0, 0.24);
}

.mobile-add-btn:hover{
  background:var(--msc-orange-hover);
}

.mobile-secondary-btn{
  border:1px solid #cfd6e3;
  background:#ffffff;
  color:#1f2a5a;
  margin-top:10px;
}

@media (max-width: 640px){
  .mobile-shell{
    width:100%;
    min-height:calc(100vh - 96px);
    border-left:0;
    border-right:0;
    border-bottom-left-radius:0;
    border-bottom-right-radius:0;
  }

  .database-shell{
    width:100%;
    border-left:0;
    border-right:0;
    border-radius:0;
  }

  .mobile-section-subtitle{
    font-size:24px;
  }

  .database-shell__title{
    font-size:22px;
  }
}

/* ============================================================
   Signup page overrides
   ============================================================ */

body.signup-page{
    --brand-page-bg-start:#eef3f8;
    --brand-page-bg-end:#dbe3ef;
    --brand-title-color:#0a0a4a;
    --brand-heading-color:#06003d;
    --brand-email-text:#425066;
    --brand-email-label:#687385;
    --brand-email-placeholder:#7b8494;
    --brand-input-border:#d4dbe6;
    --brand-input-focus:#79b2d1;
    --brand-input-focus-shadow:rgba(121, 178, 209, 0.22);
    --brand-primary-bg:#ff6a00;
    --brand-primary-hover:#e85f00;
    --brand-primary-shadow:rgba(255, 106, 0, 0.24);
    min-height:100vh;
    margin:0;
    background:linear-gradient(180deg, var(--brand-page-bg-start) 0%, var(--brand-page-bg-end) 100%);
}

/* MSC survey template: flat background (gradient above does not match inline/card bg and reads as two bands) */
body.signup-page.msc-survey-page{
    background:#e8eef5;
    min-height:100vh;
}

/* MSC survey: signup defaults clip the hero (max-height:220px + cover). Show the full banner. */
body.signup-page.msc-survey-page .mobile-shell__hero{
    max-height:none;
    overflow:visible;
}

body.signup-page.msc-survey-page .mobile-shell__hero img{
    width:100%;
    height:auto;
    max-height:none;
    object-fit:initial;
    object-position:center top;
}

.signup-page-shell{
    width:min(100%, 480px);
    margin:0 auto;
    padding:20px;
}

.mobile-shell__hero{
    margin:-20px -20px 0;
    overflow:hidden;
    max-height:220px;
}

.mobile-shell__hero img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center top;
    display:block;
}

.signup-support-btn{
    margin-top:16px;
    width:calc(100% - 68px);
    margin-left:34px;
    margin-right:34px;
}

.signup-page .mobile-section-title{
    color:var(--brand-title-color);
}

.signup-page .mobile-section-subtitle{
    color:var(--brand-heading-color);
}

.signup-page .mobile-discount-field span{
    color:var(--brand-email-label);
}

.signup-page .mobile-discount-field input{
    color:var(--brand-email-text);
    border-color:var(--brand-input-border);
}

.signup-page .mobile-discount-field input::placeholder{
    color:var(--brand-email-placeholder);
}

.signup-page .mobile-discount-field input:focus{
    outline:none;
    border-color:var(--brand-input-focus);
    box-shadow:0 0 0 4px var(--brand-input-focus-shadow);
}

.signup-page .mobile-discount-check,
.signup-page .mobile-discount-message{
    color:var(--brand-email-text);
}

.signup-page .mobile-add-btn{
    background:var(--brand-primary-bg);
    box-shadow:0 14px 28px var(--brand-primary-shadow);
}

.signup-page .mobile-add-btn:hover{
    background:var(--brand-primary-hover);
}

.signup-footer{
    margin-top:18px;
    text-align:center;
    font-size:11px;
    line-height:1.5;
    color:#8a94a6;
}
