/* The hosted service's public website (Areas/Site): home, features, pricing, sign-up, sign-in finder, legal pages.
   Loaded after site.css and uses its colour variables only (Docs/Style.md, "Public website"). */

.site-body { background: var(--surface); font-size: 1.1rem; }
/* The browser's own bits in brand colours: selected text, and a clear outline on links reached by keyboard
   (brand-deep, as brand-bright is too faint against white for an outline). */
.site-body ::selection { background: var(--brand-tint-strong); color: var(--brand-navy); }
.site-body a:not(.btn) { text-underline-offset: .2em; }
.site-body a:not(.btn):focus-visible { outline: 2px solid var(--brand-deep); outline-offset: 2px; border-radius: 2px; }

/* Header: white bar with the light logo, a bright line underneath like the app's toolbar. */
.site-header { background: var(--surface); border-bottom: 3px solid var(--brand-bright); position: sticky; top: 0; z-index: 100; }
.site-header .navbar { padding-block: .5rem; }
.site-logo { height: 36px; width: auto; }
.site-brand { color: var(--brand-navy); font-weight: 700; letter-spacing: .02em; font-size: 1.35rem; }
.site-header .nav-link { color: var(--brand-navy); font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .35em; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--brand-deep); text-decoration-color: currentColor; }

/* Big coloured band at the top of the home page: white text on navy (Style.md: white only on navy, deep or ink). */
.site-hero { background: linear-gradient(160deg, var(--brand-navy) 0%, var(--brand-deep) 100%); color: var(--on-brand); padding: 4.5rem 0 3.5rem; }
.site-hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; line-height: 1.15; }
.site-hero .lead { color: var(--on-brand); opacity: .92; font-size: 1.25rem; }
.site-hero .btn-light { color: var(--brand-navy); font-weight: 600; }
.site-hero .btn-outline-light:hover { color: var(--brand-navy); }
.site-hero-note { font-size: .95rem; opacity: .85; }

/* A screenshot in a simple "browser window" frame. */
.site-shot { background: var(--surface); border: 1px solid var(--border); border-radius: .6rem; box-shadow: var(--shadow-showcase); overflow: hidden; }
.site-shot::before { content: ""; display: block; height: 1.4rem; background: var(--brand-tint); border-bottom: 1px solid var(--border); }
.site-shot img { display: block; width: 100%; height: auto; }

.site-section { padding: 4rem 0; }
.site-section-alt { background: var(--page-bg); }
.site-section h2 { color: var(--brand-navy); font-weight: 700; }

.site-feature { height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: .6rem; padding: 1.5rem; }
.site-feature .bi { font-size: 1.8rem; color: var(--brand-deep); }
.site-feature h3 { font-size: 1.15rem; color: var(--brand-navy); font-weight: 600; margin-top: .6rem; }
.site-feature p { color: var(--text-muted); margin-bottom: 0; font-size: 1rem; }

.site-step-number { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--brand-deep); color: var(--on-brand); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }

.site-cta { background: var(--brand-navy); color: var(--on-brand); padding: 3.5rem 0; }
.site-cta h2 { color: var(--on-brand); }

/* Pricing cards. */
.site-plan { height: 100%; border: 1px solid var(--border); border-radius: .6rem; padding: 2rem 1.5rem; background: var(--surface); display: flex; flex-direction: column; }
.site-plan-featured { border: 2px solid var(--brand-deep); box-shadow: var(--shadow-showcase); }
.site-plan h2 { color: var(--brand-navy); font-weight: 700; }
.site-plan-price { font-size: 2.6rem; font-weight: 700; color: var(--brand-navy); line-height: 1; }
.site-plan-price small { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.site-plan ul { padding-left: 0; list-style: none; flex-grow: 1; }
.site-plan li { padding: .3rem 0; }
.site-plan li .bi { color: var(--brand-deep); margin-right: .4rem; }
.site-plan-badge { background: var(--brand-deep); color: var(--on-brand); font-size: .8rem; font-weight: 600; border-radius: 1rem; padding: .15rem .7rem; }

/* Narrow white card on a pale page, like the app's sign-in (forms: sign-up, find, waiting). */
.site-form-page { background: var(--page-bg); padding: 3rem 0 4rem; flex-grow: 1; }
/* The card's column, set on its .container: narrow for messages and short forms, medium for sign-up (two fields side by side)
   and contact (a comfortable reading line). */
.site-narrow { max-width: 36rem; }
.site-medium { max-width: 40rem; }
.site-card { background: var(--surface); border-top: 4px solid var(--brand-deep); border-radius: .5rem; box-shadow: var(--shadow-raised); padding: 2rem; overflow-wrap: break-word; }
.site-wait-note { margin: 1rem 0 0; }
.site-card h1 { color: var(--brand-navy); font-size: 1.8rem; font-weight: 700; }
.site-card .form-label { color: var(--text-muted); font-weight: 500; }
.site-address .input-group-text { background: var(--brand-tint); color: var(--brand-navy); }
.site-address-status { font-size: .95rem; min-height: 1.5rem; }
.site-address-status.ok { color: var(--bs-success); }
.site-address-status.bad { color: var(--bs-danger); }
.site-dev-note { border: 1px dashed var(--brand-deep); background: var(--brand-tint); border-radius: .4rem; padding: .75rem 1rem; font-size: .95rem; word-break: break-all; }

/* The waiting page's progress list. */
/* Each step is waiting (muted), current (brand blue) or done (its icon becomes a green tick). */
.site-progress li { padding: .35rem 0; color: var(--text-muted); }
.site-progress li .bi { display: inline-block; }
.site-progress li.current { color: var(--brand-navy); }
.site-progress li.current .bi { color: var(--brand-deep); }
.site-progress li.done { color: var(--text); }
.site-progress li.done .bi { color: var(--bs-success); }
.site-progress li.done .bi::before { content: "\f26a"; } /* bi-check-circle-fill, whatever the step's own icon */

/* Legal pages: a readable column. */
.site-prose { max-width: 48rem; }
.site-prose h1 { color: var(--brand-navy); font-weight: 700; }
.site-prose h2 { color: var(--brand-navy); font-size: 1.3rem; font-weight: 600; margin-top: 2rem; }
.site-draft { background: var(--this-week); border-radius: .4rem; padding: .75rem 1rem; font-size: .95rem; }

.site-footer { background: var(--brand-tint); color: var(--text-muted); padding: 2rem 0; font-size: .95rem; margin-top: auto; }
.site-footer a { color: var(--brand-navy); }

/* ---- Motion (Docs/Style.md, "Public website"). Everything is visible without it; movement only when the visitor
   hasn't asked for less. Colour changes stay even then, as they show state. ---- */
.site-body { --site-ease-out: cubic-bezier(.16, 1, .3, 1); }
.site-header .nav-link { transition: color .15s ease-out, text-decoration-color .15s ease-out; }
.site-progress li, .site-progress li .bi, .site-address-status { transition: color .25s ease-out; }

@media (prefers-reduced-motion: no-preference) {
  /* Home hero, once per visit: "ready in a minute". The screenshot's browser frame runs a load line across its title bar,
     the dashboard draws in beneath it, and the words settle alongside. */
  .site-hero-copy > * { animation: site-settle .6s var(--site-ease-out) both; }
  .site-hero-copy > :nth-child(2) { animation-delay: .08s; }
  .site-hero-copy > :nth-child(3) { animation-delay: .16s; }
  .site-hero-copy > :nth-child(4) { animation-delay: .24s; }
  .site-hero-home .site-shot { position: relative; animation: site-settle .5s var(--site-ease-out) .1s both; }
  .site-hero-home .site-shot::after {
    content: ""; position: absolute; left: 0; right: 0; top: calc(1.4rem - 2px); height: 2px; background: var(--brand-bright);
    transform-origin: left; animation: site-load .9s var(--site-ease-out) .2s both, site-fade-out .3s ease-out 1.15s both;
  }
  .site-hero-home .site-shot img { animation: site-draw .8s var(--site-ease-out) .35s both; }

  /* Waiting page: the step being worked on breathes; a finished step's tick lands. */
  .site-progress li.current .bi { animation: site-breathe 1.6s ease-in-out infinite; }
  .site-progress li.done .bi { animation: site-tick .4s var(--site-ease-out); }
  .site-wait-note:not(.d-none) { animation: site-settle .3s var(--site-ease-out); }

  .site-spinner { animation: site-spin 1s linear infinite; display: inline-block; }
}
@keyframes site-settle { from { opacity: 0; transform: translateY(.75rem); } }
@keyframes site-load { from { transform: scaleX(0); } }
@keyframes site-fade-out { to { opacity: 0; } }
@keyframes site-draw { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes site-breathe { 50% { opacity: .35; } }
@keyframes site-tick { from { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } }
@keyframes site-spin { to { transform: rotate(360deg); } }

/* Outline buttons in the brand blue rather than Bootstrap's own. */
.site-body .btn-outline-primary {
  --bs-btn-color: var(--brand-deep); --bs-btn-border-color: var(--brand-deep);
  --bs-btn-hover-color: var(--on-brand); --bs-btn-hover-bg: var(--brand-deep); --bs-btn-hover-border-color: var(--brand-deep);
  --bs-btn-active-color: var(--on-brand); --bs-btn-active-bg: var(--brand-navy); --bs-btn-active-border-color: var(--brand-navy);
}
