/* ── Landing page: single viewport, split screen, no navbar ── */
html, body { height: 100%; overflow: hidden; }
body { display: block; }

.landing {
  height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  position: relative;
}

/* corner chrome */
.landing-brand {
  position: absolute; top: 1.4rem; left: 1.6rem;
  z-index: 10;
  display: block;
}
.landing-brand img { height: 48px; width: auto; object-fit: contain; display: block; }
.landing-lang {
  position: absolute; top: 1.6rem; right: 1.6rem;
  z-index: 10;
}

/* LEFT: pitch */
.landing-pitch {
  display: flex; flex-direction: column; justify-content: center;
  padding: 2rem 3.5rem;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(184,138,90,.09) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 85%, rgba(139,58,46,.06) 0%, transparent 50%);
}
.landing-pitch h1 {
  font-family: var(--heading);
  font-size: clamp(1.9rem, 3.6vw, 3.1rem); font-weight: 700;
  color: var(--ink);
  line-height: 1.12;
  margin-bottom: .7rem;
  max-width: 620px;
}
.landing-pitch h1 .accent { color: var(--burgundy); font-style: italic; }
.landing-pitch > p {
  font-size: 1.1rem; color: var(--ink-soft);
  max-width: 480px; margin-bottom: 2rem;
  line-height: 1.5;
}

/* how it works, inline (replaces the separate scroll section) */
.how-inline {
  display: flex; flex-direction: column; gap: .85rem;
  margin-bottom: 2.2rem;
}
.how-inline-step {
  display: flex; align-items: center; gap: .8rem;
}
.how-inline-num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  background: var(--cocoa); color: var(--paper);
  border-radius: 50%;
  font-family: var(--heading); font-size: .95rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.how-inline-step div { display: flex; flex-direction: column; }
.how-inline-step strong {
  font-family: var(--heading); font-size: 1rem; font-weight: 600;
  color: var(--ink);
}
.how-inline-step span {
  font-size: .82rem; color: var(--ink-faded); font-style: italic;
}

/* mode strip: visual proof of the product, no fake screenshots needed */
.mode-strip {
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.mode-strip-item {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
}
.mode-strip-item img {
  width: 56px; height: 56px; object-fit: contain;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  transition: transform .15s, box-shadow .15s;
}
.mode-strip-item:hover img { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mode-strip-item span {
  font-size: .72rem; color: var(--ink-faded);
}

/* RIGHT: auth */
.landing-auth {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--paper-2);
  border-left: 1.5px solid var(--line);
  padding: 2rem;
}

.auth-card {
  width: 100%; max-width: 380px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-md);
}
.auth-tabs {
  display: flex; gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
  padding: 3px;
  margin-bottom: 1.2rem;
}
.auth-tab {
  flex: 1;
  padding: .45rem .5rem;
  border: none; background: transparent;
  font-family: var(--body); font-size: .88rem; font-weight: 600;
  color: var(--ink-faded); cursor: pointer;
  border-radius: 6px;
  transition: all .15s;
}
.auth-tab.active { background: var(--frolla); color: var(--ink); }

.auth-form { display: flex; flex-direction: column; gap: .8rem; }
.auth-form.hidden { display: none; }
.auth-input {
  width: 100%; padding: .65rem .85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--body); font-size: .9rem;
  background: var(--paper); color: var(--ink);
}
.auth-input:focus { outline: none; border-color: var(--cocoa); background: #FBF5E5; }
.auth-input::placeholder { color: var(--ink-faded); }

.auth-btn {
  width: 100%; padding: .7rem;
  background: var(--ink); color: var(--paper);
  border: none; border-radius: 99px;
  font-family: var(--heading);
  font-size: 1.1rem; font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  margin-top: .4rem;
}
.auth-btn:hover { background: var(--cocoa-dk); }

.auth-divider {
  text-align: center; color: var(--ink-faded);
  font-size: .8rem; margin: .6rem 0;
  position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%;
  width: 35%; height: 1px; background: var(--line);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-google {
  width: 100%; padding: .6rem;
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 99px;
  font-family: var(--body); font-size: .9rem; font-weight: 600;
  cursor: pointer;
  transition: border-color .15s;
}
.auth-google:hover { border-color: var(--cocoa); }

.auth-error {
  font-size: .8rem; color: var(--burgundy);
  text-align: center;
  min-height: 1.2em;
}
/* success message reuses the error slot, neutral/positive color */
.auth-error.success { color: var(--cocoa-dk); }

/* disabled/loading state on submit buttons */
.auth-btn:disabled, .auth-google:disabled {
  opacity: .6; cursor: not-allowed;
}

/* password field + show/hide toggle */
.auth-pass-wrap { position: relative; display: flex; }
.auth-pass-wrap .auth-input { padding-right: 2.6rem; }
.pass-toggle {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  width: 1.8rem; height: 1.8rem; padding: 0;
  border: none; background: transparent; cursor: pointer;
  color: var(--ink-faded);
  display: flex; align-items: center; justify-content: center;
}
.pass-toggle:hover { color: var(--cocoa); }
/* eye icon (closed by default) */
.pass-toggle::before {
  content: '👁'; font-size: 1rem; line-height: 1; opacity: .55;
}
.pass-toggle.revealed::before { opacity: 1; }

/* forgot-password link (login tab) */
.auth-forgot {
  align-self: flex-end;
  background: none; border: none; padding: 0;
  font-family: var(--body); font-size: .78rem;
  color: var(--ink-faded); cursor: pointer;
  text-decoration: none;
}
.auth-forgot:hover { color: var(--cocoa); text-decoration: underline; }

/* reset-password page: standalone centered card */
.landing-auth-center {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 100vh;
}
.auth-title {
  font-family: var(--heading); font-size: 1.3rem;
  color: var(--ink); text-align: center; margin: 0 0 1.2rem;
}

.landing-footer {
  display: block;
  margin-top: 1.2rem;
  text-align: center;
  font-size: .72rem; color: var(--ink-faded);
}

@media (max-width: 900px) {
  .landing { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; overflow-y: auto; }
  html, body { height: auto; overflow: auto; }
  .landing-brand { position: static; margin: 1rem 0 0 1.2rem; }
  .landing-lang { position: absolute; top: 1.2rem; right: 1.2rem; }
  .landing-pitch { padding: 1rem 1.5rem 2rem; text-align: center; align-items: center; }
  .landing-pitch > p { margin-left: auto; margin-right: auto; }
  .how-inline { align-items: flex-start; margin: 0 auto 1.6rem; }
  .mode-strip { justify-content: center; }
  .landing-auth { border-left: none; border-top: 1.5px solid var(--line); padding: 2rem 1.5rem; }
}
@media (max-width: 480px) {
  .landing-pitch h1 { font-size: 1.7rem; }
}
