/* =========================================================
   The Feedbackinator – Landing Page CSS
   Full replacement file
   ========================================================= */

/* ---------- Reset & Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Roboto', sans-serif;
  color: #1f2933;
  background: linear-gradient(
    135deg,
    #e6f7ef,
    #f9fffc
  );
}

body {
  min-height:100vh;
  min-height: 100dvh;
}

/* Landing page fills viewport */
body.landing #app-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;     /* vertical centre */
    justify-content: center; /* horizontal centre */
}

body.app #app-shell {
  height: 100vh;
  justify-content: center;
  align-items: center;
  display: flex;
}

body.app {
  background: #ffe9d9; /* pick your intended flat colour */
}

/* ---------- Colour Tokens ---------- */
:root {
  --brand-orange: #f26b21;
  --brand-orange-dark: #d45717;
  --brand-orange-light: #ff8a3d;

  --text-dark: #1f2933;
  --text-muted: #475569;

  --card-bg: #ffffff;
  --shadow-soft: 0 6px 16px rgba(0,0,0,0.08);
  --shadow-hover: 0 10px 24px rgba(0,0,0,0.12);
}


#landing-root {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */
.landing-header {
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 25px;
    width: 100%;   
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.5px;
  text-transform: none;
}

/* ---------- Layout ---------- */
.landing-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 50px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 40px;
    /* Removed max-height and overflow-y to allow natural page scroll */
}

/* ---------- Columns ---------- */
.landing-left,
.landing-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.landing-left {
  align-items: center;
  padding-right: 40px;
}

.landing-right {
  align-items: flex-start;
  padding-left: 40px;
}


/* ---------- Headings & Text ---------- */
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #1a1a1a;
}

h2.features-header {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #1a1a1a;
  align-self: center;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--text-muted);
}

/* ---------- Primary CTA ---------- */
.primary-cta,
.btn.login-btn {
  background: linear-gradient(
    135deg,
    var(--brand-orange),
    var(--brand-orange-light)
  );
  color: #fff;
  border: none;
  font-weight: bold;
  border-radius: 8px;
  padding: 14px 32px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
  box-shadow: 0 6px 14px rgba(242,107,33,0.35);
}

.primary-cta:hover,
.btn.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(242,107,33,0.45);
}


/* ---------- Login Button ---------- */
.btn.login-btn {
  background-color: transparent;
  color: var(--primary-green);
  padding: 10px 20px;
  border: 2px solid var(--primary-green);
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn.login-btn:hover {
  background-color: var(--primary-green);
  color: #fff;
}

/* ---------- Feature Cards ---------- */
.feature-box {
  background: #fff;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-box strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  color: #1f2933;
}

.feature-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* ---------- Scroll Behaviour ---------- */
.landing-content {
  overflow-y: auto;
  scrollbar-width: none;
}

.landing-content::-webkit-scrollbar {
  display: none;
}

/* ---------- Safe Viewport Height ---------- */
:root { --vh-safe: 100svh; }
@supports (height: 100dvh) {
  :root { --vh-safe: 100dvh; }
}

/* ---------- App Card Spacing ---------- */
#app-content {
  padding: 16px 0 24px 0;
}

/* ---------- Wizard Containers ---------- */
.wizard-page.center-content {
  margin: 20px auto;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.wizard-page.center-content:not(#status):not(.small-page) {
  min-height: calc(var(--vh-safe) - 180px);
}

.wizard-page.center-content#status {
  justify-content: center;
  padding: 0 20px;
}

.wizard-page.center-content.small-page {
  justify-content: center;
}

.scrollable-container {
  max-height: calc(var(--vh-safe) - 160px);
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

.scrollable-container::-webkit-scrollbar {
  display: none;
}

.scrollable-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .landing-content {
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
  }

  .landing-left,
  .landing-right {
    padding: 0;
    max-width: 95%;
    margin: 0 auto;
  }

  .landing-right {
    margin-top: 30px;
  }

  .landing-header {
    position: sticky;
    top: 0;
    background: transparent;
    z-index: 10;
    margin-bottom: 20px;
    width: 100%;
    justify-content: space-between;
    gap: 15px;
  }
}

@media (max-width: 600px) {
  .landing-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .landing-header .btn.login-btn {
    width: 100%;
    text-align: center;
  }

  .brand-name {
    text-align: center;
    width: 100%;
  }
}
