/* What the front door's public pages share (/try, /pricing, /guides and each
   guide; 6 Nov 2026, the owner's "B1" and "F1" on the "Joining the public
   pages" board): the oxblood bar with the same four links, the band carrying
   its colour on behind the first card, the lifted card, and one footer. Each
   page's own stylesheet does the rest. Written with literal values so it
   reads the same beside _style.css or guides.css, whose tokens differ.
   The sign-in page draws the same bar and footer from main.css (".hub-bar"),
   since it loads none of these files; change them together. */

/* The bar: lit at the top and its own colour at its foot, so the band
   carries on from it with no seam, as on the invoices list. */
.gbar{background:#140000;background-image:linear-gradient(180deg,#2c1a1a 0,#140000 100%);
  color:#f5f5f7;padding:12px 0;padding-top:calc(12px + env(safe-area-inset-top))}
.gin{max-width:820px;margin:0 auto;padding:0 24px;display:flex;align-items:center;gap:8px}
body.wide .gin,body.wide .gwrap,body.wide footer.sitefoot{max-width:1056px}
.gbar .wm{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-weight:700;letter-spacing:-.02em;font-size:17px;min-height:44px;margin-right:auto}
.gbar .wm img{width:30px;height:30px;border-radius:8px;display:block}
.gbar .wm span{font-weight:400;color:#d6cfcf}
.gbar nav{display:flex;align-items:center;gap:2px}
.gbar nav a{color:#e9e2e2;text-decoration:none;font-size:15px;padding:0 12px;min-height:44px;display:inline-flex;align-items:center;border-radius:999px;white-space:nowrap}
.gbar nav a[aria-current]{color:#fff;box-shadow:inset 0 -2px 0 #d79d9d;border-radius:0}
.gbar nav a.sign{background:#f4f1ea;color:#140000;font-weight:600;min-height:36px;margin-left:6px;padding:0 16px}
@media(hover:hover){
  .gbar nav a:hover{color:#fff}
  .gbar nav a.sign:hover{background:#fff}
}
.gbar a:focus-visible{outline:2px solid #fff;outline-offset:2px}

/* The band: the bar's colour behind the first card, ending halfway down it.
   The wrapper is the card plus its top padding, so half of it plus half
   that padding is the card's middle, with no measuring. */
.top{position:relative;padding:28px 0 0}
.top::before{content:"";position:absolute;left:0;right:0;top:0;height:calc(50% + 14px);background:#140000;z-index:0}
.gwrap{max-width:820px;margin:0 auto;padding:0 24px}
.top .gwrap{position:relative;z-index:1}

/* The lifted card, as the app's (--card-bg, --card-edge, --card-shadow). */
.card{background:linear-gradient(180deg,#fff 0%,#fdfbf7 100%);border:1px solid rgba(20,0,0,.08);border-radius:24px;
  box-shadow:inset 0 1px 0 #fff,0 1px 2px rgba(20,0,0,.04),0 24px 60px -30px rgba(20,0,0,.3);padding:28px}
.hero h1{margin:10px 0 10px;font-size:38px;line-height:1.12;letter-spacing:-.025em;color:#140000}
.hero .lead{margin:0;font-size:19px;line-height:1.5;color:#3a3a3c}

/* One footer: the same links on every page, the company beneath. */
footer.sitefoot{max-width:820px;margin:48px auto 0;padding:20px 24px calc(48px + env(safe-area-inset-bottom));color:#6e6e73;font-size:14px;line-height:1.7;border-top:0}
footer.sitefoot .in{border-top:1px solid #ded8cc;padding-top:20px}
footer.sitefoot a{color:#6e6e73}

@media(max-width:640px){
  .gin,.gwrap{padding:0 16px}
  footer.sitefoot{padding-left:16px;padding-right:16px}
  /* Four links fit beside the icon, not beside the name: the icon is the
     name here, as on the home screen, and still goes home. */
  .gbar .wm span{display:none}
  .gbar .wm b{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .gbar nav a{padding:0 7px;font-size:14px}
  .gbar nav a.sign{padding:0 12px;margin-left:4px}
  /* On a phone the band's lower corners are concentric with the card:
     its radius plus the gutter beside it. */
  .top::before{border-radius:0 0 40px 40px}
  .card{padding:20px}
  .hero h1{font-size:30px}
  .hero .lead{font-size:17px}
}
@media(max-width:350px){.gbar nav a{padding:0 5px;font-size:13px}}
/* Drawn at 36px, tapped at 44: on a touch screen the pill reaches 4px
   further up and down, invisibly. */
@media(pointer:coarse){
  .gbar nav a.sign{position:relative}
  .gbar nav a.sign::after{content:"";position:absolute;inset:-4px 0}
}
@media print{.gbar,.top::before,footer.sitefoot{display:none!important}.card{box-shadow:none;border:1px solid #ccc}}
