/* Public pages (welcome, sign-in, sign-up, password reset) — PLATFORM_SAAS_NOTES.md item 12.
   Colours come from --brand-primary / --brand-accent (config/branding.php). */
:root { --ink: #0f172a; --muted: #5b6475; --line: #e4e8ef; --paper: #f6f7f9; }
body.public { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
.public h1, .public h2, .public .display-serif { font-family: 'Source Serif 4', Georgia, serif; letter-spacing: -.01em; }
.public a:not(.btn) { color: var(--brand-primary); }
.public .btn-outline-light { color: #fff; border-color: rgba(255,255,255,.75); }
.public .btn-outline-light:hover { background: #fff; color: var(--brand-primary); }
.public .btn { border-radius: 10px; font-weight: 600; padding: .65rem 1.2rem; }
.public .btn-brand { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.public .btn-brand:hover, .public .btn-brand:focus { background: color-mix(in srgb, var(--brand-primary) 85%, #000); color: #fff; }
.public .btn-accent { background: var(--brand-accent); border-color: var(--brand-accent); color: #fff; }
.public .btn-accent:hover { background: color-mix(in srgb, var(--brand-accent) 85%, #000); color: #fff; }
.public .btn-outline-brand { border: 1px solid var(--brand-primary); color: var(--brand-primary); background: transparent; }
.public .btn-outline-brand:hover { background: var(--brand-primary); color: #fff; }
.public .form-control, .public .form-select { border-radius: 10px; border-color: var(--line); padding: .7rem .9rem; }
.public .form-control:focus, .public .form-select:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 .2rem rgba(var(--brand-primary-rgb), .15); }
.public .form-label { font-weight: 600; font-size: .875rem; color: #334155; }

/* Navigation */
.public-nav { background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.public-nav .navbar-brand img { height: 44px; width: auto; }
.public-nav .nav-link { font-weight: 500; color: #334155; }

/* Split auth layout */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 992px) { .auth-split { grid-template-columns: 5fr 7fr; } }
.auth-aside { position: relative; color: #fff; padding: 3rem; display: none; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, rgba(var(--brand-primary-rgb), .96), rgba(var(--brand-primary-rgb), .86)), var(--hero-image) center/cover no-repeat; }
@media (min-width: 992px) { .auth-aside { display: flex; } }
.auth-aside .brand-mark { display: inline-flex; align-items: center; gap: .75rem; background: #fff; border-radius: 12px; padding: .5rem .9rem; }
.auth-aside .brand-mark img { height: 36px; }
.auth-aside h2 { font-size: 2.1rem; line-height: 1.2; margin: 2rem 0 1rem; }
.auth-aside .lead { color: rgba(255,255,255,.82); font-size: 1.05rem; }
.auth-aside .points li { display: flex; gap: .75rem; margin-bottom: .9rem; color: rgba(255,255,255,.9); }
.auth-aside .points i { color: var(--brand-accent); margin-top: .2rem; }
.auth-aside .rule { width: 56px; height: 3px; background: var(--brand-accent); border-radius: 3px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; background: var(--paper); }
.auth-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 2.25rem; box-shadow: 0 20px 45px -25px rgba(15, 23, 42, .25); }
.auth-card.wide { max-width: 760px; }
.auth-card h1 { font-size: 1.75rem; margin-bottom: .35rem; }
.auth-card .sub { color: var(--muted); margin-bottom: 1.75rem; }
.auth-card .mobile-logo img { height: 40px; }
.password-field { position: relative; }
.password-field .toggle { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #64748b; padding: .25rem .4rem; }
.auth-footer { color: var(--muted); font-size: .8rem; }
.step-title { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .95rem; margin: 1.75rem 0 1rem; }
.step-title .n { width: 26px; height: 26px; border-radius: 50%; background: rgba(var(--brand-primary-rgb), .1); color: var(--brand-primary); display: grid; place-items: center; font-size: .8rem; }

/* Package choice on sign-up */
.plan-option { position: relative; display: block; height: 100%; cursor: pointer; }
.plan-option input { position: absolute; opacity: 0; }
.plan-option .box { height: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 1rem; transition: border-color .15s, box-shadow .15s; background: #fff; }
.plan-option input:checked + .box { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), .12); }
.plan-option input:focus-visible + .box { outline: 2px solid var(--brand-accent); outline-offset: 2px; }
.plan-option .price { font-weight: 700; font-size: 1.15rem; }
.plan-option .tag { position: absolute; top: -10px; right: 12px; background: var(--brand-accent); color: #fff; font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; }

/* Welcome page */
.hero { position: relative; color: #fff; padding: 9rem 0 6rem;
  background: linear-gradient(115deg, rgba(var(--brand-primary-rgb), .95) 0%, rgba(var(--brand-primary-rgb), .78) 55%, rgba(var(--brand-primary-rgb), .55) 100%), var(--hero-image) center/cover no-repeat; }
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.1; max-width: 16ch; }
.hero .lead { color: rgba(255,255,255,.85); max-width: 56ch; font-size: 1.15rem; }
.hero .eyebrow { color: var(--brand-accent); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust .item { color: var(--muted); font-size: .9rem; }
.trust .item i { color: var(--brand-accent); }
.section { padding: 5rem 0; }
.section-muted { background: var(--paper); }
.feature { height: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; background: #fff; }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--brand-primary-rgb), .08); color: var(--brand-primary); font-size: 1.15rem; margin-bottom: 1rem; }
.feature h3 { font-family: 'Inter', sans-serif; font-size: 1.05rem; font-weight: 700; }
.feature p { color: var(--muted); margin-bottom: 0; font-size: .95rem; }
.price-card { height: 100%; border: 1px solid var(--line); border-radius: 18px; padding: 1.75rem; background: #fff; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--brand-primary); box-shadow: 0 25px 50px -30px rgba(var(--brand-primary-rgb), .55); }
.price-card .amount { font-size: 2rem; font-weight: 800; }
.price-card ul { padding-left: 0; list-style: none; color: #334155; }
.price-card li { margin-bottom: .45rem; }
.price-card li i { color: var(--brand-accent); margin-right: .4rem; }
.cta-band { background: var(--brand-primary); color: #fff; border-radius: 22px; padding: 3rem; }
.public-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
