/* =========================================================================
   The public home page (#landing). Same look as the app (studio.css):
   Space Grotesk headings, IBM Plex text, mono labels, neon green buttons.
   ========================================================================= */

.landing { min-height: 100vh; background: var(--bg); color: var(--ink); }
.landing a.btn { text-decoration: none; }

.l-nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px max(20px, calc((100% - 1120px) / 2));
  background: var(--topbar-bg); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.l-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--head); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.l-brand:hover { text-decoration: none; }
.l-brand img { display: block; }
.l-links { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.l-link { color: var(--muted); font-weight: 500; font-size: 15px; padding: 10px 8px; }
.l-link:hover { color: var(--ink); text-decoration: none; }

.landing main { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.landing h1, .landing h2, .landing h3 { font-family: var(--head); color: var(--ink); letter-spacing: -0.03em; }

.l-hero { padding: 72px 0 40px; }
.l-eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 14px; color: var(--good); margin-bottom: 20px; }
.l-hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.04; font-weight: 600; max-width: 15em; }
.l-lede { margin-top: 22px; max-width: 36em; font-size: 19px; line-height: 1.6; color: var(--muted); }
.l-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.l-ctas .btn { padding: 13px 24px; font-size: 16px; min-height: 48px; }

.l-shot { margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
.l-shot img { display: block; width: 100%; height: auto; }
.l-shot figcaption { font-family: var(--mono); font-size: 13px; color: var(--muted); padding: 12px 16px; border-top: 1px solid var(--line); }
.l-shot-hero { margin-top: 48px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); }

.l-how { padding: 72px 0 24px; }
.l-how h2, .l-control h2, .l-final h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 600; line-height: 1.1; }
.l-sub { margin-top: 12px; color: var(--muted); font-size: 17px; }
.l-steps { list-style: none; margin-top: 40px; display: flex; flex-direction: column; }
.l-step {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center;
  padding: 40px 0; border-top: 1px solid var(--line);
}
.l-step:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.l-step:nth-child(even) .l-step-text { order: 2; }
.l-n { display: block; font-family: var(--mono); font-size: 16px; color: var(--accent); margin-bottom: 10px; }
.l-step h3 { font-size: 30px; font-weight: 600; margin-bottom: 10px; }
.l-step p { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 26em; }

.l-control { padding: 64px 0 24px; }
.l-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.l-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.l-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.l-card h3::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(111, 207, 156, .15); flex-shrink: 0; }
.l-card p { color: var(--muted); line-height: 1.6; }

.l-final { margin: 64px 0 0; padding: 56px 0 72px; border-top: 1px solid var(--line); }
.l-final p { margin-top: 12px; color: var(--muted); font-size: 18px; }

.l-foot {
  display: flex; gap: 12px 28px; flex-wrap: wrap; align-items: center;
  padding: 28px max(20px, calc((100% - 1120px) / 2)); border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 13px; color: var(--muted);
}
.l-foot a { color: var(--muted); font-weight: 400; }
.l-foot a:hover { color: var(--ink); }

@media (max-width: 820px) {
  .l-hero { padding-top: 44px; }
  .l-lede { font-size: 17px; }
  .l-step, .l-step:nth-child(even) { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
  .l-step:nth-child(even) .l-step-text { order: 0; }
  .l-cards { grid-template-columns: 1fr; }
  .l-link { display: none; }
}
/* Phones: logo and both buttons stay on one tidy row, so the top bar is short
   and never covers the first line of the page. */
@media (max-width: 560px) {
  .l-nav { flex-wrap: nowrap; gap: 10px; padding: 10px 16px; background: var(--bg); }
  .l-brand { gap: 7px; font-size: 17px; min-width: 0; }
  .l-brand img { width: auto; height: 28px; }
  .l-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .l-links { flex-wrap: nowrap; gap: 6px; flex-shrink: 0; }
  .l-links .btn { padding: 7px 11px; font-size: 13px; min-height: 0; line-height: 1.2; white-space: nowrap; }
  .l-hero { padding-top: 32px; }
}
@media (max-width: 360px) {
  .l-nav { padding: 10px 12px; gap: 8px; }
  .l-brand { gap: 5px; font-size: 14.5px; }
  .l-brand img { height: 24px; }
  .l-links { gap: 5px; }
  .l-links .btn { padding: 6px 8px; font-size: 12px; }
}

/* Signed in: the home page swaps Sign in / Get started for My workspace */
.landing .l-ws { display: none; }
body.signed-in .landing .l-ws { display: inline-flex; }
body.signed-in .landing [data-go="signin"], body.signed-in .landing [data-go="signup"] { display: none; }
