/* ─────────────────────────────────────────────────────────────
 * rhinograph.com — public site
 *
 * Same language as the signup form already uses: near-black ground,
 * glass panels, a blue-to-violet accent, Space Grotesk over Space Mono.
 * Extended here to carry full-width marketing pages rather than one
 * centred card.
 * ────────────────────────────────────────────────────────────── */

:root {
  --bg:         #0d0d0d;
  --bg-lift:    #121216;
  --panel:      rgba(255, 255, 255, 0.04);
  --panel-2:    rgba(255, 255, 255, 0.025);
  --border:     rgba(255, 255, 255, 0.08);
  --border-lit: rgba(108, 153, 255, 0.5);
  --accent:     #6c99ff;
  --accent2:    #a78bfa;
  --success:    #34d399;
  --warning:    #fbbf24;
  --danger:     #f87171;
  --text:       #f0f2f8;
  --muted:      #6b7394;
  --dim:        #2e3450;
  --mono:       'Space Mono', ui-monospace, monospace;
  --sans:       'Space Grotesk', system-ui, sans-serif;
  --shell:      1120px;
  --radius:     20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* The drifting orbs and faint grid from the signup screen, kept so the
 * public pages and the app feel like one product. */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .16;
  pointer-events: none;
  animation: drift 20s ease-in-out infinite alternate;
  z-index: 0;
}
.orb-1 { width: 540px; height: 540px; background: radial-gradient(circle, #6c99ff, transparent 70%); top: -130px; left: -130px; }
.orb-2 { width: 440px; height: 440px; background: radial-gradient(circle, #a78bfa, transparent 70%); bottom: -100px; right: -80px; animation-duration: 26s; animation-delay: -10s; }

@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(36px, 28px) scale(1.07); } }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .012) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  html { scroll-behavior: auto; }
}

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }

/* ── Navigation ───────────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13, 13, 13, .72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.site-nav .shell { display: flex; align-items: center; gap: 1.5rem; height: 66px; }

.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; letter-spacing: -.02em; color: var(--text); text-decoration: none; font-size: 1.02rem; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 3px 14px rgba(108, 153, 255, .35); flex: none; }

.nav-links { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .88rem; transition: color .18s; }
.nav-links a:hover { color: var(--text); }

.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 9px; color: var(--text); padding: .4rem .6rem; cursor: pointer; margin-left: auto; }

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #101014; border-bottom: 1px solid var(--border);
    padding: .5rem 1.5rem 1.2rem; margin-left: 0;
  }
  .nav-links[hidden] { display: none; }
  .nav-links a { padding: .8rem 0; border-bottom: 1px solid var(--border); }
  .nav-links .btn-sm { margin-top: .9rem; text-align: center; }
}

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .85rem 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-family: var(--sans); font-size: .95rem; font-weight: 600;
  border: none; border-radius: 12px; cursor: pointer; text-decoration: none;
  letter-spacing: -.01em;
  box-shadow: 0 4px 22px rgba(108, 153, 255, .2);
  transition: opacity .2s, transform .12s, box-shadow .2s;
}
.btn:hover { opacity: .92; box-shadow: 0 6px 30px rgba(108, 153, 255, .35); }
.btn:active { transform: scale(.98); }
.btn-block { width: 100%; }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; border-radius: 10px; }

.btn-ghost {
  background: transparent; border: 1px solid var(--border); box-shadow: none;
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--border-lit); background: rgba(108, 153, 255, .06); box-shadow: none; }

/* ── Shared bits ──────────────────────────────────────────── */

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(108, 153, 255, .28);
  background: rgba(108, 153, 255, .07); border-radius: 100px; padding: .28rem .7rem;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.grad { background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-style: normal; }

.eyebrow { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

section { padding: 5.5rem 0; position: relative; z-index: 1; }
section.tight { padding: 3.5rem 0; }

h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: -.015em; }

.lead { font-size: 1.03rem; color: var(--muted); max-width: 56ch; }

.section-head { max-width: 60ch; margin-bottom: 2.75rem; display: flex; flex-direction: column; gap: .7rem; }

.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; position: relative; overflow: hidden;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.card-lit::before {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
  opacity: .5;
}

.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ── Hero ─────────────────────────────────────────────────── */

.hero { padding: 5rem 0 4rem; }
.hero-inner { display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; max-width: 46rem; }
.hero p.lead { font-size: 1.1rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: .5rem; }
.hero-note { font-family: var(--mono); font-size: .68rem; color: var(--dim); letter-spacing: .06em; }

/* A quiet browser frame to sit the promise in. */
.frame { margin-top: 3.5rem; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--bg-lift); }
.frame-bar { display: flex; align-items: center; gap: .45rem; padding: .7rem .9rem; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.frame-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); }
.frame-url { font-family: var(--mono); font-size: .7rem; color: var(--muted); margin-left: .6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame-body { padding: 2.2rem 1.6rem; display: grid; gap: 1rem; }

.skeleton { border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.045), rgba(255,255,255,.075), rgba(255,255,255,.045)); background-size: 200% 100%; animation: shimmer 2.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* ── Steps ────────────────────────────────────────────────── */

.step { display: flex; flex-direction: column; gap: .6rem; }
.step-n { font-family: var(--mono); font-size: .7rem; color: var(--accent); letter-spacing: .1em; }
.step p { font-size: .9rem; color: var(--muted); }

/* ── Feature list ─────────────────────────────────────────── */

.feature p { font-size: .89rem; color: var(--muted); margin-top: .35rem; }
.feature-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(108, 153, 255, .1); border: 1px solid rgba(108, 153, 255, .2); color: var(--accent); font-size: .95rem; margin-bottom: .85rem; }

/* ── Pricing ──────────────────────────────────────────────── */

.plan { display: flex; flex-direction: column; gap: 1rem; }
.plan-featured { border-color: var(--border-lit); background: rgba(108, 153, 255, .05); }
.plan-price { font-size: 2.2rem; font-weight: 700; letter-spacing: -.03em; }
.plan-price span { font-size: .82rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.plan li { display: flex; gap: .6rem; align-items: flex-start; font-size: .87rem; color: var(--muted); }
.plan li::before { content: '✓'; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(52, 211, 153, .12); color: var(--success); font-size: .66rem; font-weight: 700; flex: none; margin-top: .15rem; }

/* ── FAQ ──────────────────────────────────────────────────── */

.faq { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 1.15rem 0; font-weight: 600; font-size: .97rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.2rem; line-height: 1; }
.faq[open] summary::after { content: '−'; }
.faq p { padding-bottom: 1.2rem; color: var(--muted); font-size: .9rem; max-width: 70ch; }

/* ── Call to action ───────────────────────────────────────── */

.cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; padding: 3.5rem 1.5rem; }

/* ── Footer ───────────────────────────────────────────────── */

.site-foot { border-top: 1px solid var(--border); padding: 2.5rem 0; margin-top: 2rem; }
.site-foot .shell { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: space-between; }
.site-foot a { color: var(--muted); text-decoration: none; font-size: .84rem; }
.site-foot a:hover { color: var(--text); }
.foot-links { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.foot-note { font-family: var(--mono); font-size: .64rem; color: var(--dim); letter-spacing: .08em; }

/* ── Auth ─────────────────────────────────────────────────── */

.auth-wrap { min-height: calc(100vh - 66px); display: flex; align-items: center; justify-content: center; padding: 3rem 1.25rem; }
.auth { width: 100%; max-width: 420px; }
.auth .heading { margin-bottom: 1.75rem; }
.auth .heading p { font-size: .88rem; color: var(--muted); margin-top: .4rem; }

.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.field-label { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.input-wrap { display: flex; align-items: stretch; background: rgba(0, 0, 0, .35); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.input-wrap:focus-within { border-color: var(--border-lit); box-shadow: 0 0 0 3px rgba(108, 153, 255, .1); }
.input-wrap input { flex: 1; background: transparent; border: none; outline: none; padding: .78rem .9rem; font-family: var(--mono); font-size: .9rem; color: var(--text); min-width: 0; }
.input-wrap input::placeholder { color: var(--dim); }

.pw-toggle { display: flex; align-items: center; padding: 0 .75rem; background: transparent; border: none; border-left: 1px solid var(--border); color: var(--dim); cursor: pointer; transition: color .2s; }
.pw-toggle:hover { color: var(--text); }

.alert { border-radius: 12px; padding: .85rem 1rem; font-size: .83rem; line-height: 1.55; margin-bottom: 1.25rem; display: flex; gap: .6rem; align-items: flex-start; }
.alert-error { background: rgba(248, 113, 113, .08); border: 1px solid rgba(248, 113, 113, .22); color: var(--danger); }
.alert-info { background: rgba(108, 153, 255, .07); border: 1px solid rgba(108, 153, 255, .22); color: var(--accent); }

.what-you-get { list-style: none; display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }
.what-you-get li { display: flex; align-items: center; gap: .6rem; font-size: .82rem; color: var(--muted); }
.what-you-get li::before { content: '✓'; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(52, 211, 153, .12); color: var(--success); font-size: .68rem; font-weight: 700; flex: none; }

.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.switch-mode { text-align: center; margin-top: 1.25rem; font-size: .82rem; color: var(--muted); }
.switch-mode a { color: var(--accent); text-decoration: none; font-weight: 600; }
.switch-mode a:hover { text-decoration: underline; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
