/* Public home page (firmlysign …/). Sits on top of app.css. */

/* ---- Top bar: brand on the left, Log in / Sign up on the right (same row on phones too) */
.pub-top .inner { gap: 12px; }
.pub-top .btn-sm { min-height: 38px; padding: 8px 14px; font-size: 15px; }
.pub-login { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); }
.pub-login:hover { border-color: var(--accent); color: var(--accent); }
.pub-nav { margin-right: 6px; }
@media (max-width: 640px) {
  .pub-top .inner { flex-wrap: nowrap; padding: 12px 16px; gap: 8px; }
  .pub-top .spacer { flex: 1; flex-basis: auto; height: auto; }
  .pub-nav { display: none; }
}
@media (max-width: 420px) {
  .pub-top .pill-test { display: none; }
  .pub-top .brand { font-size: 20px; }
  .pub-top .btn-sm { padding: 7px 11px; font-size: 14px; }
}

/* ---- Intro band */
.hero { background: linear-gradient(160deg, var(--brand) 0%, #173b2c 100%); color: #f4efe6; border-top: 1px solid rgba(255, 255, 255, .08); }
.hero .inner { max-width: 1080px; margin: 0 auto; padding: 64px 20px 72px; }
.hero .eyebrow { margin: 0 0 12px; color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { color: #f4efe6; font-size: 46px; max-width: 760px; margin: 0 0 16px; }
.hero-lead { color: #c9ddd2; font-size: 19px; max-width: 640px; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-light { background: transparent; color: #f4efe6; border: 1.5px solid rgba(255, 255, 255, .4); }
.btn-light:hover { border-color: var(--accent); color: var(--accent); }
.hero-note { margin: 14px 0 0; color: #a9f0cf; font-size: 14px; }
@media (max-width: 640px) {
  .hero .inner { padding: 40px 20px 48px; }
  .hero h1 { font-size: 34px; }
  .hero-lead { font-size: 17px; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* ---- Check a document */
.home-main { padding-top: 48px; padding-bottom: 72px; }
.check-section { scroll-margin-top: 20px; }
.check-section h2 { font-size: 28px; }
.home .dropzone .big { color: var(--brand-2); }
.drop-title { font-weight: 700; font-size: 19px; color: var(--brand); margin-bottom: 4px; }
.check-out { margin-top: 18px; }
.check-one { margin-bottom: 14px; }
.home .result.ok .big { color: var(--ok); }
.home .result.bad .big { color: var(--bad); }
.how { margin-top: 20px; }
.how b { color: var(--brand); }

/* ---- Footer */
.pub-foot { border-top: 1px solid var(--line); background: #fff; }
.pub-foot .inner { max-width: 1080px; margin: 0 auto; padding: 22px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.pub-foot .spacer { flex: 1; }
.pub-foot a { color: var(--muted); text-decoration: none; font-weight: 600; }
.pub-foot a:hover { color: var(--brand); }
.foot-brand { font-weight: 800; color: var(--brand); letter-spacing: -.02em; font-size: 18px; }
.foot-brand .dot { color: var(--accent); }
.foot-brand .prod { font-weight: 600; font-size: .8em; color: #1f9a68; letter-spacing: 0; }
.foot-brand .prod .re { margin-left: .3em; font-weight: 400; opacity: .8; }
@media (max-width: 640px) { .pub-foot .spacer { flex-basis: 100%; height: 0; } }

/* ---- Products (Firmly is made up of products, each with its own home) */
.home-main { max-width: 1000px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.products { margin-bottom: 56px; scroll-margin-top: 20px; }
.products h2, .check-section h2 { font-size: 28px; }
.check-section { max-width: 720px; margin: 0 auto; }
.prod-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 720px) { .prod-grid { grid-template-columns: 1fr; } }
.prod-card { display: flex; flex-direction: column; padding: 24px; }
.prod-card h3 { margin: 14px 0 8px; font-size: 21px; color: var(--ink); }
.prod-card ul { margin: 0 0 18px; padding-left: 20px; color: var(--muted); line-height: 1.55; }
.prod-card ul li { margin-bottom: 4px; }
.pc-top { display: flex; align-items: center; gap: 10px; }
.pc-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--brand); }
.pc-icon .ico { width: 21px; height: 21px; }
.pc-name { font-weight: 800; font-size: 22px; color: var(--brand); letter-spacing: -.02em; white-space: nowrap; }
.pc-name .dot { color: var(--accent); }
.pc-name .prod { font-weight: 600; font-size: .72em; color: #1f9a68; letter-spacing: 0; margin-left: .15em; }
.pc-name .prod .re { margin-left: .3em; font-weight: 400; opacity: .8; }
.pc-soon { margin-left: auto; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: #efebe2; color: var(--muted); }
.pc-cta { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.prod-card.soon { background: #fbfaf6; }
.prod-card.soon .pc-icon { background: #efebe2; color: var(--muted); }

/* ---- "Enter Firmly" (/app): the page to bookmark. A green page with one big door for each product. */
body.enter { background: linear-gradient(160deg, var(--brand) 0%, #173b2c 100%) fixed; color: #f4efe6; min-height: 100vh; min-height: 100dvh; margin: 0; }
.enter-main { min-height: 100vh; min-height: 100dvh; box-sizing: border-box; max-width: 900px; margin: 0 auto; padding: calc(28px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; }
.enter-brand { text-decoration: none; font-size: 40px; font-weight: 800; letter-spacing: -.02em; color: #fff; line-height: 1; }
.enter-brand .dot, .door .dot { color: var(--accent); }
.enter-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; }
.door { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; text-decoration: none; background: #fff; color: var(--brand); border-radius: 22px; padding: 44px 24px 40px; min-height: 250px; box-sizing: border-box; border: 3px solid transparent; box-shadow: 0 14px 40px rgba(0, 0, 0, .28); transition: transform .12s, border-color .12s, box-shadow .12s; }
.door:hover, .door:focus-visible { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 20px 48px rgba(0, 0, 0, .34); outline: none; }
.door:active { transform: translateY(0); }
/* A product that isn't on this account: still shown, greyed and locked */
.door { position: relative; }
.door.locked { background: rgba(255, 255, 255, .1); color: #c9ddd2; box-shadow: none; border: 2px dashed rgba(255, 255, 255, .28); cursor: default; }
.door.locked:hover { transform: none; border-color: rgba(255, 255, 255, .28); box-shadow: none; }
.door.locked .door-icon { background: rgba(255, 255, 255, .1); color: #c9ddd2; }
.door.locked .door-name .wm, .door.locked .door-name .prod { color: #c9ddd2; }
.door.locked .dot { color: #7fb69c; }
.door.locked .door-sub { color: #a9c7b8; }
.door.locked .door-sub a { color: var(--accent); font-weight: 700; }
.door-lock { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, .22); color: #fff; display: grid; place-items: center; }
.door-lock .ico { width: 18px; height: 18px; }
/* Nothing shows until we know who's logged in (so a locked box never flashes as open) */
body.enter:not(.ready) .enter-main { visibility: hidden; }
.door-icon { width: 84px; height: 84px; border-radius: 22px; background: var(--accent-soft); color: var(--brand); display: grid; place-items: center; }
.door-icon .ico { width: 44px; height: 44px; }
.door-name { display: inline-flex; align-items: baseline; gap: 8px; font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; flex-wrap: wrap; justify-content: center; }
.door-name .prod { font-size: 24px; font-weight: 700; color: #1f9a68; letter-spacing: 0; }
.door-name .prod .re { margin-left: 5px; opacity: .6; font-weight: 600; }
.door-sub { color: var(--muted); font-size: 16px; font-weight: 500; }
.enter-tip { text-align: center; color: #a9c7b8; font-size: 13.5px; max-width: 560px; }
.enter-tip p { margin: 0 0 4px; }
.enter-who { margin-top: 14px !important; font-size: 12.5px; opacity: .8; }
.enter-who button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.enter-who button:hover, .enter-who a:hover { color: #fff; }
.enter-who a { color: inherit; text-underline-offset: 3px; }
.enter-tip summary { cursor: pointer; list-style: none; display: inline-block; text-decoration: underline; text-underline-offset: 3px; color: #c9ddd2; }
.enter-tip summary::-webkit-details-marker { display: none; }
.enter-tip summary:hover { color: #fff; }
.tip-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; text-align: left; margin-top: 12px; padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .07); color: #dbe9e1; }
.tip-cols ol { margin: 6px 0 0; padding-left: 18px; }
.tip-cols li { margin: 2px 0; }
.tip-cols b { color: #fff; }
.tip-cols .tip-note { grid-column: 1 / -1; margin: 0; font-size: 12.5px; opacity: .85; }
@media (max-width: 640px) {
  .enter-main { gap: 24px; justify-content: flex-start; padding-top: calc(44px + env(safe-area-inset-top)); }
  .enter-brand { font-size: 34px; }
  .enter-doors { grid-template-columns: 1fr; gap: 14px; }
  .door { min-height: 0; padding: 28px 20px 26px; gap: 10px; }
  .door-icon { width: 68px; height: 68px; border-radius: 18px; }
  .door-icon .ico { width: 36px; height: 36px; }
  .door-name { font-size: 30px; }
  .door-name .prod { font-size: 22px; }
  .tip-cols { grid-template-columns: 1fr; gap: 12px; }
}
