/* FieldBot public marketing pages. Do not dump into app.css. */

:root {
  --bg: #070B12;
  --bg-2: #0B1220;
  --ink: #F3EEE4;
  --muted: #9AA3B2;
  --line: rgba(243, 238, 228, 0.12);
  --navy: #0B1F3A;
  --accent: #2B7FFF;
  /* keep pub-* aliases so the rest of the file keeps working */
  --pub-bg: var(--bg);
  --pub-paper: var(--bg-2);
  --pub-soft: var(--bg-2);
  --pub-ink: var(--ink);
  --pub-muted: var(--muted);
  --pub-faint: var(--muted);
  --pub-line: var(--line);
  --pub-navy: var(--navy);
  --pub-safe-b: env(safe-area-inset-bottom, 0px);
  --pub-safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }

body.pub-body {
  font-family: "Segoe UI", "Helvetica Neue", Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100dvh;
  position: relative;
}

body.pub-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

.pub-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 3.5rem;
  position: relative;
  z-index: 1;
}

/* Header: ~76px bar, 40px mark (32px mobile). Logo + FieldBot word. Accent pill on the right. */
.pub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(14px + var(--pub-safe-t)) 24px 14px;
  min-height: 76px;
  overflow: visible;
  position: sticky;
  top: 0;
  z-index: 40;
  margin-left: -24px;
  margin-right: -24px;
  background: rgba(7, 11, 18, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.pub-brand,
.brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
  line-height: 1;
  font-size: 22px;
  font-weight: 750;
}

.brand img { height: 40px; width: auto; max-width: 140px; object-fit: contain; }
.brand { font-size: 22px; font-weight: 750; color: var(--ink); }
.legal-line { font-size: 11px; color: var(--muted); font-weight: 500; }
.org-legal-foot .legal-line { font-size: 11px; color: var(--muted); font-weight: 500; }
.org-legal-foot .legal-place { font-size: 10px; color: var(--muted); font-weight: 500; }

.pub-logo,
img.pub-logo,
img.fieldbot-mark {
  display: block;
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 860px) {
  .brand img { height: 32px; }
  .brand { font-size: 18px; }
  .pub-logo, img.pub-logo, img.fieldbot-mark { height: 32px; }
}

.pub-top-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px 18px;
  flex-wrap: wrap;
}

.pub-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem .9rem;
  font-size: .92rem;
  font-weight: 600;
}

.pub-nav a {
  color: var(--ink);
  text-decoration: none;
}

.pub-nav a:hover { text-decoration: underline; }

.pub-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.2;
  padding: 10px 16px;
  border-radius: 999px;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.pub-pill:hover { filter: brightness(1.08); }

.pub-pill-block { width: 100%; min-height: 48px; font-size: 1rem; }

.org-legal-under {
  margin: .35rem 0 0;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  line-height: 1.3;
  text-align: center;
  width: 100%;
}

.org-legal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem .55rem;
  font-size: .78rem;
  line-height: 1.4;
  color: var(--muted);
  width: 100%;
  justify-content: flex-end;
}

.org-legal-nav a { color: var(--muted); text-decoration: none; }
.org-legal-nav a:hover { text-decoration: underline; }

.org-legal-foot {
  margin-top: 2.4rem;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
  text-align: left;
}
.org-legal-foot p { margin: 0 0 .35rem; color: var(--muted); }
.org-legal-foot a { color: var(--ink); text-decoration: none; font-weight: 600; }
.org-legal-foot a:hover { text-decoration: underline; }

/* Hero: type left, desk frame right. */
.pub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
  gap: 40px 48px;
  align-items: center;
  padding: 28px 0 52px;
}

.pub-hero h1 {
  margin: 0 0 .85rem;
  color: var(--ink);
  font-size: clamp(2.15rem, 4.6vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 750;
}

.pub-lede {
  margin: 0 0 .55rem;
  font-size: 1.2rem;
  color: var(--pub-ink);
  max-width: 32rem;
  line-height: 1.55;
}

.pub-support {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--ink);
  background: transparent;
}

.pub-hero .pub-support {
  margin: 0 0 1.15rem;
}

.pub-price {
  margin: 0 0 1.25rem;
  color: var(--pub-muted);
  font-size: .98rem;
  background: transparent;
}

.pub-cta-desktop { margin-top: .25rem; }
.pub-cta-mobile { display: none; }


.desk-hero {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  display: block;
}

/* CSS-only desk frame — lead card, estimate 001, chat bar. */
.pub-desk {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: none;
  overflow: hidden;
}

.pub-desk-bar {
  background: #0B1F3A;
  color: #fff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pub-desk-word {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.pub-desk-dots { display: flex; gap: 5px; }
.pub-desk-dots i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.32);
  font-style: normal;
}

.pub-desk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  background: var(--bg-2);
}

.pub-card {
  background: #0B1220;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px 14px;
  min-height: 132px;
}

.pub-card-kicker {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pub-faint);
}

.pub-card h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.pub-card p {
  margin: 0;
  font-size: .88rem;
  color: var(--pub-muted);
}

.pub-desk-chat {
  margin: 0 12px 12px;
  background: #0B1220;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 8px 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--pub-faint);
  font-size: .9rem;
}

.pub-desk-send {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}

.pub-section {
  padding: 1.6rem 0 0;
  max-width: 40rem;
}

.pub-section h2,
.pub-page h1 {
  margin: 0 0 .7rem;
  color: var(--ink);
  letter-spacing: -0.03em;
  font-size: 1.7rem;
}

.pub-page { padding: 12px 0 0; max-width: 40rem; }
.pub-page-wide { max-width: 720px; }
.pub-page h2 {
  margin: 1.4rem 0 .7rem;
  color: var(--ink);
  letter-spacing: -0.03em;
  font-size: 1.7rem;
}
.pub-page h2:first-child { margin-top: 0; }
#how.pub-page {
  padding-top: 3.4rem;
  border-top: 1px solid var(--pub-line);
}

.pub-blurb {
  margin: 0 0 .7rem;
  color: var(--pub-ink);
  font-size: 1.2rem;
  max-width: 32rem;
  line-height: 1.55;
}

.pub-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pubstep;
}

.pub-steps li {
  display: grid;
  grid-template-columns: 1.35em 1fr;
  gap: 10px;
  align-items: start;
  margin: 0 0 12px;
  counter-increment: pubstep;
}

.pub-steps li::before {
  content: counter(pubstep);
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #2B7FFF;
  font-size: .92rem;
  font-weight: 550;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-top: 2px;
}

.pub-benefits {
  margin: .4rem 0 1rem;
  padding: 0 0 0 1.1rem;
  color: var(--pub-ink);
}

.pub-benefits li { margin: 0 0 .45rem; }

.pub-note { color: var(--pub-muted); font-size: .95rem; }

.pub-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 1rem 0 1.25rem;
}

.pub-plan {
  background: var(--pub-paper);
  border: 1px solid var(--pub-line);
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1.2rem;
}

.pub-plan strong {
  display: block;
  color: var(--ink);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin: .15rem 0 .35rem;
}

.pub-plan span {
  display: block;
  color: var(--pub-muted);
  font-size: .88rem;
}

/* Start form */
.pub-form label {
  display: block;
  margin: .9rem 0 .3rem;
  font-size: .86rem;
  font-weight: 650;
  color: var(--ink);
}

.pub-form input[type="text"],
.pub-form input[type="email"],
.pub-form input[type="tel"],
.pub-form input[type="password"],
.pub-form input[type="url"],
.pub-form textarea,
.pub-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--pub-line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  background: var(--bg-2);
  color: var(--pub-ink);
}

.pub-form input:focus,
.pub-form select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.pub-form fieldset {
  border: 0;
  margin: 1.35rem 0 0;
  padding: 0;
}

.pub-page .pub-form h2,
.pub-form legend {
  display: block;
  width: 100%;
  margin: 0 0 .15rem;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pub-form .pub-hint {
  margin: .3rem 0 .15rem;
  font-size: .86rem;
  font-weight: 500;
  color: var(--pub-muted);
}

.pub-form .pub-note {
  margin: .55rem 0 .2rem;
  font-size: .88rem;
  line-height: 1.45;
}

.pub-error {
  display: none;
  color: #fff;
  background: #b42318;
  border-radius: 12px;
  padding: .75rem .9rem;
  margin: .75rem 0 0;
  font-weight: 650;
  line-height: 1.35;
}
.pub-error.show { display: block; }

.pub-plan-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: .4rem;
}

.pub-choice {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  padding: .85rem .9rem;
  border: 1px solid var(--pub-line);
  border-radius: 14px;
  background: var(--bg-2);
  cursor: pointer;
}

.pub-choice input { margin-top: .2rem; accent-color: var(--accent); }
.pub-choice strong { display: block; color: var(--ink); }
.pub-choice span { display: block; color: var(--pub-muted); font-size: .85rem; }

.pub-start-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin: 1.1rem -24px 0;
  padding: 12px 24px calc(12px + var(--pub-safe-b));
  background: rgba(7, 11, 18, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: none;
}

.pub-req { color: #b42318; }

.pub-form h3 {
  margin: .9rem 0 .35rem;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pub-form .pub-steps {
  margin: .55rem 0 1rem;
}

.pub-form .pub-steps ul {
  margin: .4rem 0 0;
  padding: 0 0 0 1.15rem;
  list-style: disc;
}

.pub-form .pub-steps ul li {
  display: list-item;
  margin: 0 0 .35rem;
  counter-increment: none;
}

.pub-form .pub-steps ul li::before {
  content: none;
  display: none;
}

.pub-form fieldset > .pub-choice {
  margin-top: .85rem;
}


/* Sign-in on home */
.pub-signin {
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--pub-line);
  max-width: 28rem;
}

.pub-eyebrow {
  margin: 0 0 .45rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--pub-faint);
}

.login-form label {
  display: block;
  margin: .35rem 0 .3rem;
  font-size: .86rem;
  font-weight: 650;
  color: var(--ink);
}

.login-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--pub-line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  background: var(--bg-2);
  color: var(--ink);
}

.login-form .btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  margin-top: .85rem;
}

.btn-block { width: 100%; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.login-error {
  display: none;
  color: #fff;
  background: #b42318;
  border-radius: 12px;
  padding: .75rem .9rem;
  font-weight: 650;
}

.login-error.show { display: block; }

.crew-shop-hits {
  margin-top: .4rem;
  display: grid;
  gap: .35rem;
}
.crew-shop-hit {
  text-align: left;
  background: var(--bg-2);
  border: 1px solid var(--pub-line);
  border-radius: 10px;
  padding: .55rem .7rem;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
}

code { font-size: .9em; }

.pub-login {
  color: var(--muted);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  white-space: nowrap;
}
.pub-login:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .pub-wrap { padding-left: 24px; padding-right: 24px; }
  .org-legal-nav { display: none; }
  .pub-nav a:not(.pub-login) { display: none; }
  .pub-hero {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 8px 0 28px;
  }
  .pub-cta-desktop { display: none; }
  .pub-cta-mobile {
    display: flex;
    width: 100%;
    min-height: 48px;
  }
  .pub-plans,
  .pub-plan-pick,
  .pub-desk-grid { grid-template-columns: 1fr; }
  .pub-start-bar {
    margin-left: -24px;
    margin-right: -24px;
  }
}


/* Shared dark panel for org, login, signup, trial */
.pub-panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1.2rem;
}

.pub-page a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.pub-page a:hover { text-decoration: underline; }
.pub-page a.pub-pill { color: #fff; }

.pub-panel p { margin: 0 0 .7rem; color: var(--ink); }
.pub-panel p.muted { color: var(--muted); }
.pub-panel h2 {
  margin: 1.35rem 0 .45rem;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pub-panel ul { padding-left: 1.15rem; margin: .4rem 0 1rem; }
.pub-panel li { margin: .4rem 0; color: var(--ink); }
.pub-panel .notice { color: var(--accent); font-weight: 600; }

.pub-panel label,
.login-form label,
.signup-form label {
  display: block;
  margin: .7rem 0 .35rem;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 650;
}

.pub-panel input[type="text"],
.pub-panel input[type="email"],
.pub-panel input[type="password"],
.pub-panel input[type="tel"],
.pub-panel input[type="url"],
.pub-panel textarea,
.pub-panel select,
.signup-form input,
.signup-form select,
.signup-form textarea,
.login-form input[type="password"],
.login-form input[type="text"],
.login-form input[type="email"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  background: var(--bg);
  color: var(--ink);
}

.pub-panel textarea,
.signup-form textarea { min-height: 7rem; resize: vertical; }

.pub-panel input:focus,
.pub-panel textarea:focus,
.pub-panel select:focus,
.signup-form input:focus,
.signup-form select:focus,
.signup-form textarea:focus,
.login-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.pub-panel button[type="submit"].pub-pill,
.login-form button.pub-pill,
.signup-form button.pub-pill {
  width: 100%;
  margin-top: .85rem;
  min-height: 46px;
}

.pub-forgot,
.pub-muted-link,
.chooser-hint,
.chooser-hint a,
.login-hint,
.login-hint a,
.login-kicker,
.crew-login-note,
.crew-login-note a {
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
}
.pub-forgot:hover,
.chooser-hint a:hover,
.login-hint a:hover,
.crew-login-note a:hover { text-decoration: underline; }

.chooser-hint { margin: .85rem 0 0; line-height: 1.45; }
.chooser-intro { color: var(--muted); font-size: .95rem; line-height: 1.45; margin: 0 0 1rem; }

.shop-name-line {
  margin: 0 0 .55rem;
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.shop-id { display: flex; align-items: center; gap: .6rem; margin: 0 0 .7rem; }
.shop-logo,
.shop-logo-lg {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}
.shop-mark { color: var(--ink); font-weight: 650; }
[hidden] { display: none !important; }

.signup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 .75rem;
}
.signup-grid .span-2 { grid-column: 1 / -1; }
.signup-section {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.signup-section h2 {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.signup-hint { color: var(--muted); font-size: .85rem; margin: .35rem 0 0; }
.signup-error {
  display: none;
  color: #fff;
  background: #b42318;
  border-radius: 12px;
  padding: .75rem .9rem;
  margin: .75rem 0 0;
  font-weight: 650;
  line-height: 1.35;
}
.signup-error.show { display: block; }
.signup-disclosure {
  margin-top: 1.1rem;
  padding: .85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}
.signup-disclosure strong { color: var(--ink); }
.signup-choice {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  margin-top: .75rem;
  padding: .85rem .9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  cursor: pointer;
  text-align: left;
}
.signup-choice input { width: auto; margin-top: .2rem; flex: 0 0 auto; accent-color: var(--accent); }
.signup-choice strong { display: block; color: var(--ink); margin-bottom: .2rem; }
.req { color: #b42318; }
.trial-points {
  margin: .85rem 0 1rem;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.55;
}
.trial-points li { margin: .3rem 0; }
.addr-ac-wrap { position: relative; }
.addr-ac-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 120;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  max-height: 220px;
  overflow: auto;
  padding: .25rem;
}
.addr-ac-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: .55rem .65rem;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}
.addr-ac-item:hover,
.addr-ac-item.on { background: rgba(43, 127, 255, 0.14); }
.pac-container { z-index: 10000 !important; }

.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1rem 0 .5rem;
}
.landing-cta-row form { margin: 0; }
.landing-cta-row form .btn,
.landing-cta-row .btn { min-width: min(100%, 14.5rem); }
.landing-note { color: var(--muted); font-size: .9rem; }

@media (max-width: 560px) {
  .signup-grid { grid-template-columns: 1fr; }
  .signup-grid .span-2 { grid-column: auto; }
}
