/* The public site.
 *
 * Its own stylesheet rather than the workspace's: the two have different jobs
 * and one of them is read by strangers on phones. Sharing would mean every
 * change to a dashboard table risking the front page, and every widening here
 * reaching pages behind a login.
 *
 * No web fonts. The policy is `default-src 'self'` and a marketing page is
 * exactly where a font host gets added without anyone deciding to widen it --
 * so the stack below is what the reader already has. */

/* The workspace's palette, which is now every page's: navy, deep navy, and the
 * gold rule the sign-in card and the workspace stat cards already carry.
 *
 * This briefly went teal, to match a landing page drawn that way. That moved
 * the seam between marketing and product one page later rather than removing
 * it, and a prospect signing up changed colour scheme twice on the way to their
 * first brief. One identity, front to back.
 *
 * Only the values change -- every class name this sheet defines is untouched,
 * so the templates using it keep working. The values are `workspace.css`'s,
 * copied rather than imported: two whole-page stylesheets on one page is a
 * race, and every page here loads exactly one. */

:root {
  --navy: #12305f;
  --navy-deep: #0d2247;
  --gold: #e9a825;
  --ink: #1a2740;
  --grey-text: #4a5b73;
  --grey-line: #e3e8ef;
  --page: #f7f9fc;
  --radius: 12px;
}

* { box-sizing: border-box; }

body.public {
  background: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* --- The bar ------------------------------------------------------------- */

.top {
  align-items: center;
  border-bottom: 1px solid var(--grey-line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 24px;
}
.brand { display: flex; flex-direction: column; text-decoration: none; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: .14em; }
.brand-line { color: var(--gold); font-size: 11.5px; font-weight: 600; }

.top-nav { align-items: center; display: flex; flex-wrap: wrap; gap: 22px; }
.top-nav a { color: var(--grey-text); font-size: 14px; text-decoration: none; }
.top-nav a:hover { color: var(--ink); }

.button {
  background: #fff;
  border: 1px solid var(--grey-line);
  border-radius: 8px;
  color: var(--ink) !important;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  text-decoration: none;
}
.button:hover { background: var(--page); border-color: #c6d3e4; }
.button.primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff !important;
}
.button.primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }

/* --- The first screen ---------------------------------------------------- */

.hero { margin: 0 auto; max-width: 46rem; padding: 72px 24px 56px; text-align: center; }
.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0 0 18px;
}
.lede { color: var(--grey-text); font-size: 17px; margin: 0 auto; max-width: 42rem; }
.cta { align-items: center; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 30px 0 0; }
.cta-note { color: var(--grey-text); font-size: 13.5px; }

/* --- The bands ----------------------------------------------------------- */

.band { padding: 60px 24px; }
.band.alt { background: var(--page); border-block: 1px solid var(--grey-line); }
.band > h2 {
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -.01em;
  margin: 0 auto 34px;
  max-width: 62rem;
  text-align: center;
}

/* Numbered, because they happen in this order and the order is the product. */
.steps { counter-reset: step; list-style: none; margin: 0 auto; max-width: 54rem; padding: 0; }
.steps li {
  border-top: 1px solid var(--grey-line);
  counter-increment: step;
  display: grid;
  gap: 4px 20px;
  grid-template-columns: 40px 1fr;
  padding: 24px 0;
}
.steps li::before {
  align-self: start;
  background: var(--navy);
  border-radius: 999px;
  color: #fff;
  content: counter(step);
  font-size: 13px;
  font-weight: 700;
  height: 30px;
  line-height: 30px;
  text-align: center;
  width: 30px;
}
.steps h3 { font-size: 17px; margin: 2px 0 0; }
.steps p { color: var(--grey-text); grid-column: 2; margin: 6px 0 0; }

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  margin: 0 auto;
  max-width: 66rem;
}
.grid article {
  background: #fff;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
}
.grid h3 { font-size: 16px; margin: 0 0 8px; }
.grid p { color: var(--grey-text); font-size: 14.5px; margin: 0; }

.close { text-align: center; }
.close .lede { margin-bottom: 6px; }

.hero.narrow { padding-bottom: 24px; }

/* --- The plans -----------------------------------------------------------
   Rendered from the catalogue the allowance enforces, so the number on the
   card and the number an agency hits are the same number. */
.tiers {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  list-style: none;
  margin: 0 auto;
  max-width: 62rem;
  padding: 0;
}
.tier {
  background: #fff;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px 24px 24px;
}
/* One card carries the eye. Not "most popular", which nothing here can
   measure and which is the first claim on a pricing page people stop
   believing. */
.tier-lead { border-color: var(--navy); box-shadow: 0 8px 24px rgba(15, 39, 68, .08); }
.tier h2 { font-size: 17px; margin: 0; }
.tier-price { margin: 8px 0 0; }
.tier-amount { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.tier-per { color: var(--grey-text); font-size: 13px; }
.tier-allow { color: var(--ink); font-size: 14px; font-weight: 600; margin: 2px 0 0; }
.tier-blurb { color: var(--grey-text); font-size: 14px; margin: 10px 0 0; }
.tier-features { color: var(--grey-text); font-size: 14px; margin: 14px 0 0; padding-left: 18px; }
.tier-features li { margin-bottom: 6px; }
.tier-cta { margin: auto 0 0; padding-top: 18px; }
.tier-cta .button { display: block; text-align: center; }

/* --- The foot ------------------------------------------------------------ */

.foot {
  align-items: center;
  border-top: 1px solid var(--grey-line);
  color: var(--grey-text);
  display: flex;
  flex-wrap: wrap;
  font-size: 13.5px;
  gap: 12px;
  justify-content: space-between;
  padding: 26px 24px;
}
.foot p { margin: 0; }
.foot-links a { color: var(--ink); }

/* Read on a phone more often than not, and the first screen is the whole
   impression: the hero must not arrive as a wall. */
@media (max-width: 40rem) {
  .hero { padding: 48px 20px 40px; }
  .band { padding: 44px 20px; }
  .steps li { grid-template-columns: 30px 1fr; gap: 4px 14px; }
  .cta { justify-content: flex-start; }
  .hero, .close { text-align: left; }
  .lede { margin-left: 0; }
}

/* --- Registration -------------------------------------------------------
 *
 * A single column at a readable width. A signup form laid out in two columns
 * reads as shorter and is not: the eye has to decide where to go next at every
 * row, and the fields here are not pairs that belong side by side. */

.signup {
  margin: 0 auto;
  max-width: 30rem;
  text-align: left;
}

.signup label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.signup input[type="text"],
.signup input[type="email"],
.signup input[type="password"] {
  background: #fff;
  border: 1px solid #c8d4e4;
  border-radius: 8px;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  padding: 11px 12px;
  width: 100%;
}

.signup input:focus-visible {
  border-color: var(--navy);
  outline: 2px solid rgba(15, 39, 68, 0.18);
  outline-offset: 1px;
}

/* The address field and its fixed domain read as one control, because that is
   what they are: nobody is choosing the part after the dot. */
.field-suffixed {
  align-items: stretch;
  display: flex;
}

.field-suffixed input {
  border-bottom-right-radius: 0 !important;
  border-right: 0 !important;
  border-top-right-radius: 0 !important;
  min-width: 0;
}

.suffix {
  align-items: center;
  background: var(--page);
  border: 1px solid #c8d4e4;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  color: var(--grey-text);
  display: flex;
  font-size: 0.95rem;
  padding: 0 12px;
  white-space: nowrap;
}

/* Under the field it explains, not above: it is read after somebody has looked
   at the input and wondered, which is the moment it is useful. */
.hint {
  color: var(--grey-text);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 6px 0 20px;
}

.signup .button { margin-top: 4px; width: 100%; }

/* Above the fields. The reason is read before anything is retyped. */
.form-error {
  background: #fdeeec;
  border: 1px solid #f0c8c2;
  border-radius: 8px;
  color: #8f2c1e;
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
  padding: 0.75rem 0.9rem;
}

/* Registration closed, which is a statement rather than a failure -- so it is
   not styled as an error. */
.notice {
  background: #fff;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  margin: 0 auto;
  max-width: 34rem;
  padding: 28px 30px;
}

.notice h2 { font-size: 1.15rem; margin: 0 0 10px; }
.notice p { color: var(--grey-text); line-height: 1.65; margin: 0; }

@media (max-width: 600px) {
  .suffix { font-size: 0.85rem; padding: 0 8px; }
}

/* The palette is light; somebody reading at night gets the same page rather
   than a half-inverted one. Stated explicitly so the browser does not guess. */
@media (prefers-color-scheme: dark) {
  body.public { background: #fff; color: var(--ink); }
}
