/* LOSTFALL — marketing site (home, legal, privacy, sheets index).
   Responsive: the 1440 reference reflows to a single column on phones.
   Design contract: foundations.md. Dark is the only theme. */

.lf-site { position: relative; overflow-x: hidden; }

/* ---- shared bits ---- */
.lf-wordmark { font-family: var(--mono); letter-spacing: 8px; padding-left: 8px; }
.lf-eyebrow {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 3.5px;
  color: var(--silver); text-transform: uppercase;
}
.lf-serif { font-family: var(--serif); }
.lf-italic { font-family: var(--serif); font-style: italic; }

.lf-cta {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 16px; padding: 15px 30px;
  cursor: pointer; border: 0; text-decoration: none; transition: opacity var(--fast);
}
.lf-cta--fill { background: var(--cream); color: var(--bg); }
.lf-cta--ghost { background: none; color: var(--cream); border: 1px solid var(--hairline-strong); }
.lf-cta:hover { opacity: .88; }

.lf-chip {
  display: inline-flex; align-items: center; border: 1px solid rgba(234,230,220,.3);
  padding: 8px 12px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 1px;
  color: var(--cream); cursor: pointer; background: none; text-decoration: none;
  transition: background var(--fast), color var(--fast);
}
.lf-chip:hover { background: rgba(234,230,220,.08); }
.lf-chip[aria-disabled="true"] { color: var(--silver); border-color: rgba(234,230,220,.22); }

/* ---- header ---- */
.lf-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 20px clamp(20px, 5vw, 56px);
  border-bottom: 1px solid var(--hairline);
  position: sticky; top: 0; z-index: 20; background: var(--bg);
}
.lf-header__mark { font-size: 11px; letter-spacing: 8px; padding-left: 8px; }
.lf-nav {
  display: flex; gap: clamp(16px, 3vw, 34px); align-items: center;
  font-size: 9.5px; letter-spacing: 2.5px; color: var(--silver); font-family: var(--mono);
}
.lf-nav a { text-decoration: none; color: inherit; }
.lf-nav a:hover { color: var(--cream); }
.lf-nav__links { display: flex; gap: clamp(16px, 3vw, 34px); align-items: center; }
.lf-nav__cta {
  color: var(--bg); background: var(--cream); padding: 9px 18px;
  letter-spacing: 2px; text-decoration: none;
}

/* language switcher */
.lf-langs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lf-langs [data-lang] {
  border: 1px solid rgba(234,230,220,.25); padding: 6px 9px; cursor: pointer;
  font-family: var(--mono); font-size: 9px; letter-spacing: 1px; color: var(--silver);
  background: none; text-decoration: none; line-height: 1;
}
.lf-langs [data-lang].is-active { color: var(--bg); background: var(--cream); border-color: var(--cream); }

/* ---- hero ---- */
.lf-hero { position: relative; min-height: 640px; display: flex; }
.lf-hero__img {
  position: absolute; right: 0; top: 0; height: 100%; width: 74%;
  object-fit: cover; object-position: center 30%;
  filter: grayscale(1) contrast(1.05) brightness(.9);
}
.lf-hero__scrimx { position: absolute; inset: 0;
  background: linear-gradient(90deg,#0A0A0B 0%,#0A0A0B 32%,rgba(10,10,11,.55) 56%,rgba(10,10,11,.12) 78%,rgba(10,10,11,.5) 100%); }
.lf-hero__scrimy { position: absolute; inset: 0;
  background: linear-gradient(0deg,rgba(10,10,11,.9) 0%,transparent 24%,transparent 76%,rgba(10,10,11,.6) 100%); }
.lf-hero__inner {
  position: relative; z-index: 2; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: clamp(32px,5vw,0px) clamp(20px,5vw,56px);
}
.lf-hero__copy { display: flex; flex-direction: column; gap: 22px; max-width: 600px; }
.lf-hero__title { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 9vw, 92px); line-height: .95; margin: 0; }
.lf-hero__pitch { font-family: var(--serif); font-size: clamp(16px,2vw,18.5px); line-height: 1.65; color: var(--cream-soft); max-width: 500px; }
.lf-hero__actions { display: flex; gap: 14px; margin-top: 4px; flex-wrap: wrap; }
.lf-hero__stores { display: flex; flex-direction: column; gap: 7px; }
.lf-hero__stores-label { font-size: 8.5px; letter-spacing: 2px; color: var(--faded); font-family: var(--mono); }
.lf-storechips { display: flex; gap: 7px; flex-wrap: wrap; }
.lf-storechips .lf-chip { padding: 5px 10px; font-size: 9px; color: var(--silver); border-color: rgba(234,230,220,.25); }
.lf-hero__cover { flex: none; padding-right: 28px; text-align: center; }
.lf-hero__cover img {
  height: clamp(320px, 40vw, 520px); width: auto; display: block;
  border: 1px solid rgba(234,230,220,.25); box-shadow: 0 40px 80px rgba(0,0,0,.7);
}
.lf-hero__cover-cap { font-size: 8px; letter-spacing: 2px; color: var(--silver); padding-top: 10px; font-family: var(--mono); }

/* ---- email band ---- */
.lf-email {
  background: var(--cream); color: var(--bg);
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 34px clamp(20px,5vw,56px); position: relative; z-index: 2; flex-wrap: wrap;
}
.lf-email__copy { display: flex; flex-direction: column; gap: 6px; max-width: 520px; }
.lf-email__h { font-family: var(--serif); font-size: clamp(24px,3vw,30px); line-height: 1.15; }
.lf-email__sub { font-size: 9px; letter-spacing: 1.5px; color: rgba(10,10,11,.55); font-family: var(--mono); }
.lf-email__form { display: flex; flex: 1; min-width: 280px; max-width: 560px; }
.lf-email__form input {
  flex: 1; min-width: 0; border: 1.5px solid var(--bg); border-right: none;
  padding: 16px 18px; font-family: var(--serif); font-style: italic; font-size: 15px;
  background: none; color: var(--bg); outline: none;
}
.lf-email__form input::placeholder { color: rgba(10,10,11,.45); }
.lf-email__form button {
  background: var(--bg); color: var(--cream); padding: 16px 26px; border: none;
  font-family: var(--serif); font-size: 15px; cursor: pointer;
}

/* ---- sections ---- */
.lf-section { padding: clamp(48px,7vw,72px) clamp(20px,5vw,56px); border-bottom: 1px solid var(--hairline); }
.lf-section__eyebrow { display: block; padding-bottom: 34px; }
.lf-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.lf-card { display: flex; flex-direction: column; gap: 14px; }
.lf-card__num { font-size: 9px; letter-spacing: 2px; color: var(--faded); font-family: var(--mono); }
.lf-card__h { font-family: var(--serif); font-size: 24px; }
.lf-card__p { font-family: var(--serif); font-size: 14.5px; line-height: 1.65; color: var(--silver); }
.lf-card__demo { border: 1px solid var(--hairline); padding: 16px 18px; }
.lf-card__quote { font-family: var(--serif); font-style: italic; font-size: 13.5px; line-height: 1.7; color: var(--cream-soft); }
.lf-card__quote span { font-family: var(--mono); font-style: normal; font-size: 9px; letter-spacing: 1px; color: var(--silver); display: block; margin-top: 8px; }

/* mini gauge demo */
.lf-mini { display: flex; flex-direction: column; gap: 10px; }
.lf-mini__row { display: flex; align-items: center; gap: 8px; }
.lf-mini__row--low { background: var(--cream); color: var(--bg); padding: 6px 8px; margin: 0 -8px; }
.lf-mini__abbr { font-size: 9px; letter-spacing: 2px; width: 24px; }
.lf-mini__segs { display: flex; gap: 3px; flex: 1; }
.lf-mini__seg { flex: 1; height: 12px; }
.lf-mini__val { font-family: var(--serif); font-size: 16px; }
.lf-mini__tag { font-size: 6.5px; letter-spacing: 1.5px; border: 1px solid currentColor; padding: 1px 4px; }
.lf-death { border: 1px solid rgba(176,58,40,.45); padding: 16px 18px; text-align: center; }
.lf-death__h { font-family: var(--serif); font-weight: 300; font-size: 26px; color: var(--blood-text); }
.lf-death__cap { font-size: 8px; letter-spacing: 2px; color: var(--silver); padding-top: 6px; font-family: var(--mono); }

/* tracker teaser */
.lf-teaser { display: flex; align-items: center; gap: clamp(24px,5vw,64px); }
.lf-teaser__frame { flex: none; width: 340px; border: 1px solid rgba(234,230,220,.2); background: #050506; padding: 10px; }
.lf-teaser__viewport { position: relative; overflow: hidden; width: 320px; height: 692px; }
.lf-teaser__viewport iframe { border: 0; position: absolute; left: 0; top: 0; width: 390px; height: 844px; transform: scale(.8205); transform-origin: 0 0; }
.lf-teaser__copy { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.lf-teaser__h { font-family: var(--serif); font-weight: 300; font-size: clamp(32px,4vw,44px); line-height: 1.1; }
.lf-teaser__p { font-family: var(--serif); font-size: 15.5px; line-height: 1.7; color: var(--silver); }
.lf-teaser__facts { display: flex; flex-direction: column; gap: 6px; font-size: 9px; letter-spacing: 2px; color: var(--silver); font-family: var(--mono); }
.lf-teaser__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.lf-teaser__link { font-family: var(--serif); font-style: italic; font-size: 13.5px; color: var(--silver); border-bottom: 1px solid rgba(234,230,220,.25); padding-bottom: 2px; cursor: pointer; text-decoration: none; }

/* formats */
.lf-formats__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 34px; gap: 16px; flex-wrap: wrap; }
.lf-format { border-top: 1px solid rgba(234,230,220,.25); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.lf-format__h { font-family: var(--serif); font-size: 22px; }
.lf-format__sub { font-size: 8.5px; letter-spacing: 1px; color: var(--faded); font-family: var(--mono); }
.lf-format__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.lf-editions { font-size: 9px; letter-spacing: 2px; color: var(--faded); padding-top: 30px; font-family: var(--mono); }

/* footer */
.lf-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px clamp(20px,5vw,56px) 30px; font-size: 8.5px; letter-spacing: 2px;
  color: var(--faded); font-family: var(--mono); flex-wrap: wrap;
}
.lf-footer__mark { letter-spacing: 6px; color: var(--silver); }
.lf-footer__links { display: flex; gap: 26px; }
.lf-footer__links a { text-decoration: none; }
.lf-footer__links a:hover { color: var(--cream); }

/* toast (placeholder CTAs, GDPR notes) */
.lf-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: rgba(10,10,11,.96); border: 1px solid var(--hairline-strong);
  padding: 12px 18px; font-family: var(--serif); font-style: italic; font-size: 14px;
  color: var(--cream); text-align: center; z-index: 60; max-width: min(90vw, 420px);
  opacity: 0; pointer-events: none; transition: opacity var(--fast), transform var(--fast);
}
.lf-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- legal / privacy documents ---- */
.lf-doc { max-width: 720px; margin: 0 auto; padding: clamp(40px,6vw,72px) clamp(20px,5vw,40px) 80px; }
.lf-doc__eyebrow { margin-bottom: 14px; }
.lf-doc h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(34px,5vw,52px); line-height: 1.05; margin: 0 0 8px; }
.lf-doc__updated { font-family: var(--mono); font-size: 8.5px; letter-spacing: 2px; color: var(--faded); margin-bottom: 36px; }
.lf-doc h2 { font-family: var(--serif); font-size: 20px; margin: 32px 0 10px; }
.lf-doc p { font-family: var(--serif); font-size: 15.5px; line-height: 1.75; color: var(--cream-soft); margin: 0 0 14px; }
.lf-doc ul { margin: 0 0 14px; padding-left: 20px; }
.lf-doc li { font-family: var(--serif); font-size: 15px; line-height: 1.7; color: var(--cream-soft); margin-bottom: 6px; }
.lf-doc a { color: var(--cream); }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .lf-nav__links { display: none; }              /* keep langs + GET BOOK 1 only */
  .lf-hero { min-height: 0; }
  .lf-hero__img { width: 100%; opacity: .5; }
  .lf-hero__scrimx { background: linear-gradient(0deg,#0A0A0B 8%,rgba(10,10,11,.3) 100%); }
  .lf-hero__inner { flex-direction: column-reverse; align-items: stretch; gap: 28px; padding-top: 40px; padding-bottom: 44px; }
  .lf-hero__cover { padding-right: 0; }
  .lf-hero__cover img { margin: 0 auto; height: 300px; }
  .lf-grid3 { grid-template-columns: 1fr; gap: 32px; }
  .lf-teaser { flex-direction: column; align-items: stretch; }
  .lf-teaser__frame { display: none; }           /* app is one tap away on phones */
  .lf-email { flex-direction: column; align-items: stretch; }
}
