/* The public landing (templates/landing.html). Standalone: it does not load app.css. */
:root {
  --ink: #0b0b0c;
  --muted: #7a7c80;
  --line: #d9dadc;
  --bg: #f3f3f2;
  --bg-2: #e9e9e8;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(115deg, transparent 58%, rgba(255, 255, 255, .75) 66%, transparent 74%),
    radial-gradient(120% 90% at 30% 20%, #fafafa 0%, var(--bg) 55%, var(--bg-2) 100%);
}

/* Header */
.top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px clamp(16px, 3vw, 40px);
}
.brand { display: flex; align-items: center; gap: 18px; }
.brand svg { width: 96px; height: auto; display: block; fill: var(--ink); }
.brand-name { display: block; font-weight: 800; font-size: 15px; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.brand-tag { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.nav { margin-left: auto; display: flex; gap: 34px; font-size: 15px; }
.nav a:hover { opacity: .6; }
.actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 22px;
  height: 42px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  font-size: 15px; white-space: nowrap; transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { opacity: .85; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); opacity: 1; }
.btn.big { height: 58px; padding: 0 30px; font-size: 19px; }
.btn.big svg { width: 20px; height: 20px; }

/* Hero body */
.stage {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  padding: 0 clamp(16px, 3vw, 40px) 48px;
}
.portrait {
  position: absolute;
  z-index: 1;
  left: 44%;
  bottom: 0;
  height: 100%;
  width: min(46vw, 640px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%),
                      linear-gradient(0deg, #000 85%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%),
              linear-gradient(0deg, #000 85%, transparent 100%);
  mask-composite: intersect;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; }

.copy { position: relative; z-index: 2; align-self: center; max-width: 760px; padding-top: 24px; }
h1 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 74px);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.lead {
  margin: 28px 0 40px;
  max-width: 25em;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.4;
}
.steps {
  list-style: none; padding: 0; margin: 34px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  color: var(--muted); font-size: 14px;
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); margin-right: 10px; color: var(--ink); opacity: .7; }
/* A dot between steps, drawn as a background so the step counter keeps ::before. */
.steps li + li { padding-left: 18px; background: radial-gradient(circle, var(--muted) 1.5px, transparent 2px) 0 50% / 4px 4px no-repeat; }

.stories { position: relative; z-index: 2; align-self: center; justify-self: end; width: 140px; }
.stories p { margin: 0 0 18px; font-size: 18px; line-height: 1.25; color: #3c3d40; }
.stories a { display: block; margin-top: 10px; border-radius: 14px; overflow: hidden; aspect-ratio: 1 / .93; box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }
.stories img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.stories a:hover img { transform: scale(1.05); }

/* The "soon" toast every placeholder control shows */
.foot {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
  font-size: 13px;
  color: var(--muted);
}
.foot a { display: inline-block; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; }
.foot a:hover { color: var(--ink); }

.soon {
  position: fixed; left: 50%; bottom: 32px; z-index: 10;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; border-radius: 999px;
  padding: 14px 26px; font-size: 16px; transition: opacity .25s ease, transform .25s ease;
}
.soon.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .brand-tag { display: none; }
}
@media (max-width: 900px) {
  .nav, .actions .try { display: none; }
  .actions { margin-left: auto; }
  .stage { grid-template-columns: 1fr; padding-bottom: 32px; }
  .portrait {
    position: relative; left: auto; width: auto; height: 62vh;
    margin: 0 -16px; order: -1;
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 45%);
    mask-image: linear-gradient(0deg, transparent 0%, #000 45%);
  }
  .copy { margin-top: -70px; padding-top: 0; }
  .stories { justify-self: stretch; width: auto; margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stories p { grid-column: 1 / -1; margin-bottom: 4px; }
  .stories a { margin-top: 0; }
}
@media (max-width: 520px) {
  .top { padding: 16px; gap: 10px; }
  .brand { gap: 8px; }
  .brand svg { width: 40px; }
  .brand-name { font-size: 11px; letter-spacing: .14em; }
  .actions { gap: 6px; }
  .actions .btn { height: 38px; padding: 0 14px; font-size: 14px; }
  .btn.big { width: 100%; justify-content: space-between; }
  .steps { flex-direction: column; gap: 8px; }
  .steps li + li { padding-left: 0; background: none; }
}

/* The email sign-in panel under the sign-in link (`landing.signin`); the block itself is static/signin.css,
   written against app.css tokens. */
.signin-pop {
  --fg: var(--ink);
  --surface: #fff;
  --accent: var(--ink);
  --accent-fg: #fff;
  position: absolute;
  top: calc(100% - 8px);
  right: clamp(16px, 3vw, 40px);
  z-index: 6;
  width: min(380px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 4px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(11, 11, 12, .16);
}
.signin-pop .signin { margin-top: 16px; }
.signin-pop .signin-primary, .signin-pop .signin-yandex { border-radius: 999px; }
.signin-pop .signin-input { border-radius: 14px; }
@media (max-width: 520px) {
  .signin-pop { right: 16px; left: 16px; width: auto; }
}
