/* Public pages: landing page and sign-in / sign-up. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font: 15px/1.6 var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { width: 18px; height: 18px; flex-shrink: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; color: #fff; }
.logo-mark svg { width: 18px; height: 18px; }
.site-nav { display: flex; gap: 22px; margin-left: 12px; }
.site-nav a { color: var(--text-2); font-size: 14px; font-weight: 500; transition: color var(--fast) var(--ease); }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* Buttons */
.btn { font: inherit; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; box-shadow: var(--shadow-xs); white-space: nowrap;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), transform var(--fast) var(--ease); }
.btn:hover { border-color: var(--border-strong); background: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); box-shadow: 0 1px 2px var(--accent-ring), inset 0 1px 0 rgba(255,255,255,.14); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn-block { width: 100%; }
.icon-btn { width: 38px; height: 38px; padding: 0; border-radius: var(--radius-sm); }

/* Hero */
.hero { position: relative; padding: 96px 0 84px; overflow: hidden; isolation: isolate; }
.hero .wrap > * { animation: fade-up .6s var(--ease) both; }
.hero .wrap > :nth-child(2) { animation-delay: .12s; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-xs); padding: 4px 12px 4px 10px; border-radius: 999px; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: 50px; line-height: 1.08; font-weight: 650; letter-spacing: -.03em; margin: 0 0 20px; }
.hero h1 .soft { color: var(--text-3); }
.hero p.lead { font-size: 18.5px; line-height: 1.6; color: var(--text-2); margin: 0 0 32px; max-width: 33em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { margin-top: 16px; font-size: 13px; color: var(--text-3); }
.preview { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 20px; }
.preview .bar { display: flex; gap: 6px; margin-bottom: 16px; }
.preview .bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.preview-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 10px; background: var(--surface-2); animation: fade-up .5s var(--ease) both; }
.preview-row:nth-of-type(2) { animation-delay: .25s; } .preview-row:nth-of-type(3) { animation-delay: .35s; }
.preview-row:nth-of-type(4) { animation-delay: .45s; } .preview-row:nth-of-type(5) { animation-delay: .55s; }
.preview-row b { display: block; font-size: 14px; }
.preview-row small { color: var(--text-3); }
.tag { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.tag-ok { background: var(--accent-soft); color: var(--accent); }
.tag-info { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.tag-warn { background: var(--surface); color: var(--text-2); border: 1px dashed var(--border-strong); }

/* Sections */
section.block { padding: 88px 0; border-top: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: 32px; line-height: 1.2; font-weight: 650; letter-spacing: -.025em; margin: 0 0 12px; }
.section-head p { color: var(--text-2); margin: 0; font-size: 17px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--border-strong); }
.feature .ico { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px;
  transition: transform .25s var(--ease); }
.feature:hover .ico { transform: scale(1.06); }
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--text-2); font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--text-2); font-size: 14px; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: 18px; padding: 32px 36px; box-shadow: var(--shadow); }
.contact-card h2 { margin: 0 0 6px; font-size: 24px; }
.contact-card p { margin: 0; color: var(--text-2); }
.contact-card .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--text-3); font-size: 13px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--text-2); }
.sep { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); vertical-align: middle; margin: 0 8px; }

/* Auth pages */
.auth-page { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.auth-main { display: grid; place-items: center; padding: 40px 16px; }
.auth-main { position: relative; isolation: isolate; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 36px; animation: fade-up .45s var(--ease) both; }
.auth-card h1 { font-size: 25px; font-weight: 700; margin: 0 0 6px; letter-spacing: -.025em; }
.auth-card .sub { color: var(--text-2); margin: 0 0 24px; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; }
.field input { font: inherit; padding: 11px 13px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--text); box-shadow: var(--shadow-xs); transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.field input:hover { border-color: var(--text-3); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.field .hint { font-size: 12px; color: var(--text-3); }
.row-between { display: flex; justify-content: space-between; align-items: center; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.btn-google { width: 100%; background: var(--surface); }
.btn-google svg { width: 18px; height: 18px; }
.alert { padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px; animation: fade-in var(--slow) var(--ease); }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-ok { background: var(--accent-soft); color: var(--text); }
.switch-line { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-2); }
.code-input { letter-spacing: .5em; font-size: 22px !important; text-align: center; font-weight: 600; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; font-size: 13px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .section-head h2 { font-size: 28px; }
  .features, .steps { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}

.link-btn:disabled { color: var(--text-3); cursor: default; font-variant-numeric: tabular-nums; }

.remember { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; font-size: 14px; color: var(--text); cursor: pointer; }
.remember input { width: 16px; height: 16px; accent-color: var(--accent); }
.remember .hint { flex-basis: 100%; margin-left: 24px; font-size: 12px; color: var(--text-3); }
