/* monoline — marketing site and auth screens */

/* ── Header ───────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: var(--s-4) 0;
  padding-top: calc(var(--s-4) + env(safe-area-inset-top, 0px));
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.wordmark { font-size: 1.3rem; letter-spacing: -0.02em; }

.nav-link {
  padding: 6px var(--s-3);
  font-size: var(--t-sm); color: var(--muted);
  border-radius: var(--r-sm);
  transition: color var(--fast);
}
.nav-link:hover { color: var(--text); }

@media (max-width: 560px) {
  .site-header .nav-link[href='#features'] { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--s-9);
  align-items: center;
  padding-block: clamp(var(--s-7), 9vw, 120px) var(--s-9);
}

.hero-title {
  font-size: var(--t-3xl);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin-bottom: var(--s-5);
}
.hero-title em { font-style: italic; color: var(--muted); }

.hero-sub {
  max-width: 44ch;
  color: var(--muted);
  font-size: var(--t-md);
  line-height: 1.6;
  margin-bottom: var(--s-6);
}

/* Claim field: one continuous control, so the URL and the input read as a
   single object rather than a label next to a box. */
.claim { display: flex; gap: var(--s-2); max-width: 460px; }
.claim-field {
  display: flex; align-items: center; flex: 1; min-width: 0;
  padding-left: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--fast), background var(--fast);
}
.claim-field:focus-within { border-color: var(--text); background: var(--surface-2); }
.claim-prefix { color: var(--faint); font-size: var(--t-sm); white-space: nowrap; }
.claim-input {
  flex: 1; min-width: 0;
  padding: 12px var(--s-3) 12px 1px;
  background: none; border: 0; outline: none;
  font-size: var(--t-base);
}
.claim-status { margin-top: var(--s-3); color: var(--faint); }

/* ── Hero preview ─────────────────────────────────────────────────── */
.hero-preview { display: flex; justify-content: center; }

.preview-frame {
  position: relative;
  width: 100%; max-width: 320px;
  padding: var(--s-7) var(--s-5) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
/* A single slow sweep of light; the only ambient motion on the page. */
.preview-glass {
  position: absolute; inset: -40% -60%;
  background: radial-gradient(60% 40% at 50% 0%, rgba(255,255,255,.07), transparent 70%);
  pointer-events: none;
}
.preview-body { position: relative; text-align: center; }

.preview-avatar {
  width: 68px; height: 68px; margin: 0 auto var(--s-4);
  display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--serif); font-size: 1.6rem; color: var(--muted);
}
.preview-name { font-size: 1.35rem; line-height: 1.2; }
.preview-handle { font-size: var(--t-sm); color: var(--faint); margin-top: 2px; }
.preview-bio {
  font-size: var(--t-sm); color: var(--muted);
  margin: var(--s-3) auto var(--s-4); max-width: 26ch; line-height: 1.5;
}

.preview-socials { display: flex; justify-content: center; gap: var(--s-3); margin-bottom: var(--s-5); }
.preview-socials span {
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--surface-3); border: 1px solid var(--line-soft);
}

.preview-links { display: grid; gap: var(--s-2); }
.preview-links span {
  padding: 11px; border: 1px solid var(--line); border-radius: 10px;
  font-size: var(--t-sm); color: var(--text);
}
.preview-views { margin-top: var(--s-4); font-size: var(--t-xs); color: var(--faint); }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: var(--s-7); padding-block: var(--s-7); }
  .hero-preview { order: -1; }
  .preview-frame { max-width: 280px; }
}

/* ── Features ─────────────────────────────────────────────────────── */
.features { padding-block: var(--s-9); border-top: 1px solid var(--line-soft); }

.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  max-width: 20ch;
  margin-bottom: var(--s-8);
}

.feature-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-7) var(--s-6);
}
.feature-group h3 {
  font-size: var(--t-sm); font-weight: 500; color: var(--faint);
  padding-bottom: var(--s-3); margin-bottom: var(--s-2);
  border-bottom: 1px solid var(--line);
}
.feature-group ul { list-style: none; margin: 0; padding: 0; }
.feature-group li {
  display: grid; gap: 2px;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line-soft);
}
.feature-group li b { font-weight: 500; font-size: var(--t-base); }
.feature-group li span { color: var(--muted); font-size: var(--t-sm); line-height: 1.5; }

/* ── Closer ───────────────────────────────────────────────────────── */
.closer {
  display: flex; flex-direction: column; align-items: center; gap: var(--s-5);
  padding-block: var(--s-9);
  text-align: center;
  border-top: 1px solid var(--line-soft);
}
.closer-line { font-size: clamp(1.75rem, 4.5vw, 2.75rem); }

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer {
  padding: var(--s-5) 0;
  padding-bottom: calc(var(--s-5) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line-soft);
}

/* ── Auth screens ─────────────────────────────────────────────────── */
.auth-page {
  min-height: 100dvh;
  display: grid; place-items: center;
  padding: var(--s-5);
  padding-top: calc(var(--s-5) + env(safe-area-inset-top, 0px));
  padding-bottom: calc(var(--s-5) + env(safe-area-inset-bottom, 0px));
}

.auth-card { width: min(420px, 100%); }

.auth-head { text-align: center; margin-bottom: var(--s-6); }
.auth-head .wordmark { display: inline-block; margin-bottom: var(--s-5); }
.auth-head h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-head p { color: var(--muted); font-size: var(--t-sm); }

.auth-form {
  display: flex; flex-direction: column; gap: var(--s-4);
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.auth-alt { margin-top: var(--s-5); text-align: center; font-size: var(--t-sm); color: var(--muted); }
.auth-alt a { color: var(--text); }

.form-error {
  display: none;
  padding: var(--s-3);
  background: rgba(255, 107, 107, .08);
  border: 1px solid rgba(255, 107, 107, .3);
  border-radius: var(--r-md);
  color: var(--danger);
  font-size: var(--t-sm);
}
.form-error[data-shown='true'] { display: block; }

.password-row { position: relative; }
.password-row .input { padding-right: 46px; }
.password-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: none; border: 0; border-radius: var(--r-sm);
  color: var(--faint); cursor: pointer;
  transition: color var(--fast);
}
.password-toggle:hover { color: var(--text); }
.password-toggle svg { width: 17px; height: 17px; }

/* Strength meter: four hairline segments, no colour beyond the palette. */
.strength { display: flex; gap: 4px; margin-top: 6px; }
.strength i {
  flex: 1; height: 2px; background: var(--surface-3); border-radius: 2px;
  transition: background var(--base);
}
.strength[data-score='1'] i:nth-child(-n+1),
.strength[data-score='2'] i:nth-child(-n+2),
.strength[data-score='3'] i:nth-child(-n+3),
.strength[data-score='4'] i { background: var(--text); }

/* ── Share dialog ─────────────────────────────────────────────────── */
.qr-mount {
  display: grid; place-items: center;
  padding: var(--s-4);
  background: #fff;
  border-radius: var(--r-md);
  min-height: 248px;
}
.qr-mount img, .qr-mount canvas { display: block; }
.share-url {
  display: flex; align-items: center;
  margin-top: var(--s-4); padding: 10px var(--s-3);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: var(--t-sm); color: var(--muted);
}

/* ── 404 ──────────────────────────────────────────────────────────── */
.notfound {
  min-height: 100dvh;
  display: grid; place-items: center; text-align: center;
  padding: var(--s-5);
}
.notfound h1 { font-size: clamp(3rem, 12vw, 6rem); margin-bottom: var(--s-3); }
