/* Public website (layout from Public.png, in LAGMET colours). Loaded after app.css. */

body.public { background: #fff; }
.p-display { font-family: "Oswald", "Lato", sans-serif; text-transform: uppercase; letter-spacing: -.005em; font-weight: 600; }
.p-container { width: min(1060px, 100% - 32px); margin-inline: auto; }

/* header */
.p-header { position: absolute; inset: 0 0 auto; z-index: 30; }
.p-header.solid { position: sticky; top: 0; background: var(--green-900); }
.p-nav { display: flex; align-items: center; gap: 20px; padding: 18px 0; width: min(1240px, 100% - 32px); margin-inline: auto; }
.p-nav .brand { color: #fff; font-size: 20px; gap: 10px; }
.p-nav .brand-mark { width: 42px; height: 42px; background: rgba(255,255,255,.1); border-radius: 12px; }
.p-nav .brand-mark svg { width: 26px; height: 26px; }
.p-links { display: flex; gap: 30px; margin-left: auto; }
.p-links a { font-family: "Oswald", sans-serif; text-transform: uppercase; color: #fff; font-size: 15px; letter-spacing: .02em; opacity: .95; }
.p-links a:hover, .p-links a.active { color: var(--gold); }
.p-links a.dim { opacity: .65; }
.p-cta { margin-left: 34px; border: 1px solid rgba(255,255,255,.55); color: #fff; padding: 10px 18px; font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: 13px; display: inline-flex; gap: 8px; align-items: center; border-radius: 4px; }
.p-cta:hover { background: rgba(255,255,255,.1); }
.p-cta .icon { color: var(--gold); }
.p-burger { display: none; margin-left: auto; color: #fff; background: none; border: 0; }

/* hero */
.p-hero { position: relative; color: #fff; background: #1a1206 center/cover no-repeat; padding: 86px 0 0; }
.p-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,10,.78), rgba(10,14,10,.55) 60%, rgba(10,14,10,.7)); }
.p-hero .p-container { position: relative; display: grid; grid-template-columns: 480px 1fr; gap: 26px; align-items: start; }
.p-hero-art { background: var(--green-900); padding: 14px; box-shadow: 0 30px 60px rgba(0,0,0,.35); align-self: end; }
.p-hero-art img { width: 100%; height: 465px; object-fit: cover; }
.p-hero-art figcaption { font-family: "Oswald", sans-serif; text-transform: uppercase; color: var(--gold); text-align: center; letter-spacing: .3em; font-size: 13px; padding: 12px 0 2px; }
.p-hero-copy { padding: 0 0 40px 2px; max-width: 320px; }
.p-hero-copy h1 { font-size: 34px; line-height: 1.1; display: inline-block; padding-bottom: 6px; border-bottom: 2px solid #fff; margin-bottom: 30px; }
.p-hero-copy h1 span { display: block; }
.p-hero-copy .hint { font-size: 12px; margin-bottom: 6px; }
.p-badge { display: inline-block; background: var(--gold); color: #1a1206; font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: 12px; padding: 5px 10px; letter-spacing: .03em; margin-bottom: 8px; }
.p-login label { display: block; font-size: 11px; margin: 0 0 4px; }
.p-login input { width: 100%; padding: 12px 16px; border: 0; border-radius: 2px; background: #fff8dc; color: #1b1b1b; font-size: 13px; margin-bottom: 18px; outline: none; }
.p-login input:focus { box-shadow: 0 0 0 2px var(--gold); }
.p-login button { width: 100%; padding: 13px; border: 0; border-radius: 2px; background: var(--gold); color: #1a1206; font-family: "Oswald", sans-serif; text-transform: uppercase; cursor: pointer; font-size: 13px; }
.p-login button:hover { background: #d8a646; }
.p-login .p-err { background: rgba(178,59,48,.9); padding: 8px 10px; font-size: 12px; margin-bottom: 12px; }
.p-small { font-size: 11px; margin-top: 8px; }
.p-small a { color: #c9cfca; }
.p-reach { display: flex; gap: 22px; align-items: center; font-size: 12px; color: #d8dbd8; margin-top: 46px; padding-left: 12px; }
.p-reach u { color: #fff; text-decoration-color: var(--gold); }

/* sections */
.p-section { padding: 90px 0; }
.p-eyebrow { color: var(--gold); text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-align: center; }
.p-title { font-size: 40px; text-align: center; margin: 8px 0 44px; color: #1b1b1b; }
.ebooks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.ebook { background: #fff; box-shadow: 0 14px 40px rgba(0,0,0,.07); padding: 44px 20px 34px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 250px; }
.ebook.raise { transform: translateY(-28px); }
.ebook-icon { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 70% 30%, #f3ecd6 0 55%, transparent 56%); display: grid; place-items: center; margin-bottom: 22px; color: #2f2f2f; }
.ebook h3 { font-weight: 600; font-size: 13px; line-height: 1.6; margin-bottom: 10px; max-width: 130px; }
.ebook small { color: var(--muted); font-size: 11px; margin-bottom: 12px; }
.ebook .p-btn { margin-top: auto; }
.p-btn { display: inline-block; padding: 7px 26px; background: var(--gold); color: #1a1206; font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: 12px; letter-spacing: .03em; border: 0; cursor: pointer; }
.p-btn:hover { background: #d8a646; }
.p-btn.dark { background: #222; color: #fff; padding: 12px 26px; }
.p-caption { text-align: center; font-size: 16px; margin-top: 40px; }
.p-caption a { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* featured courses on the home page */
.p-courses { background: var(--canvas); }
.p-courses .course-grid { gap: 22px; }
.p-courses .course-art .art-label { font-size: 22px; height: 96px; }
.p-courses .course-art .art-label .icon { width: 34px; height: 34px; }
.p-courses .course-meta h3 { font-size: 16px; }
.p-courses .course-meta .row { font-size: 14px; }

/* stats band */
.p-stats-wrap { background: linear-gradient(#fff 50%, #f6f6f6 50%); }
.p-stats { background: var(--gold); color: #fff; display: grid; grid-template-columns: repeat(3, 1fr); padding: 26px 0; border-radius: 3px; }
.p-stat { display: flex; align-items: center; gap: 14px; padding: 0 44px; border-right: 1px solid rgba(255,255,255,.3); }
.p-stat:last-child { border-right: 0; }
.p-stat strong { font-family: "Oswald", sans-serif; font-size: 38px; font-weight: 600; }
.p-stat strong sup { font-size: 18px; }
.p-stat span { font-size: 12px; line-height: 1.35; color: #3b2a0d; }
.p-stat span b { text-decoration: underline; }

/* contact */
.p-contact { background: #f6f6f6; padding: 90px 0; position: relative; overflow: hidden; }
.p-contact .p-container { display: grid; grid-template-columns: 410px 1fr; gap: 80px; align-items: center; position: relative; }
.p-contact-card { background: #fff; padding: 56px 64px 40px; box-shadow: 0 20px 50px rgba(0,0,0,.06); position: relative; }
.p-contact-card h2 { font-size: 32px; color: #1b1b1b; margin-bottom: 30px; }
.p-line { display: flex; align-items: center; border-bottom: 1px solid #ddd; margin-bottom: 18px; }
.p-line input, .p-line textarea { flex: 1; border: 0; outline: none; padding: 10px 0; font-size: 12px; background: transparent; resize: vertical; }
.p-line textarea { min-height: 70px; }
.p-line .icon { color: #444; }
.p-contact-card .p-btn.dark { width: 100%; margin-top: 8px; }
.p-contact-card .p-note { font-size: 10px; color: #777; margin-top: 18px; max-width: 220px; line-height: 1.6; }
.p-contact-card .p-note a { text-decoration: underline; }
.p-contact-info h2 { font-size: 22px; color: #1b1b1b; margin-bottom: 26px; letter-spacing: -.02em; }
.p-info-row { display: flex; gap: 20px; align-items: center; padding: 16px 0 18px; border-bottom: 1px solid #ddd; max-width: 290px; }
.p-info-row small { display: block; color: #888; font-size: 11px; }
.p-info-row strong { font-size: 12px; font-weight: 700; }
.p-contact-photo { width: 100%; max-width: 420px; height: 190px; object-fit: cover; margin-top: 30px; border-radius: 4px; box-shadow: 0 20px 40px rgba(0,0,0,.08); }

/* footer */
.p-footer { padding: 30px 0 60px; background: #fff; }
.p-footer .p-container { display: flex; align-items: center; gap: 20px; padding-bottom: 26px; border-bottom: 1px solid #e5e5e5; }
.p-sponsor { background: #d9f5e7; color: #1c8a55; border-radius: 999px; padding: 5px 14px; font-size: 9px; font-weight: 700; }
.p-footer nav { margin-left: auto; display: flex; gap: 22px; font-size: 12px; font-weight: 600; }
.p-footer .copy { font-size: 11px; color: #888; text-align: center; padding-top: 18px; }

/* inner pages */
.p-page-hero { background: var(--green-900); color: #fff; padding: 120px 0 56px; position: relative; overflow: hidden; }
.p-page-hero::after { content: ""; position: absolute; right: -80px; top: -60px; width: 340px; height: 340px; border-radius: 50%; border: 50px solid rgba(201,151,58,.12); }
.p-page-hero h1 { font-size: 44px; }
.p-page-hero p { color: #cfe0d6; font-size: 18px; margin-top: 10px; max-width: 640px; }
.p-body { padding: 50px 0 80px; background: var(--canvas); }
.p-wide { width: min(1320px, 100% - 32px); margin-inline: auto; }

/* pricing */
.price-toggle { display: flex; justify-content: center; margin-bottom: 30px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--green-900); box-shadow: 0 20px 50px rgba(11,59,42,.1); }
.price-card h3 { font-size: 22px; }
.price-card .amount { font-size: 40px; font-weight: 800; margin: 14px 0 4px; }
.price-card .amount small { font-size: 16px; color: var(--muted); font-weight: 600; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; }
.price-card li .icon { color: var(--green-700); margin-top: 2px; }
.price-card .btn { margin-top: auto; }

/* verify */
.verify-box { max-width: 680px; margin: 0 auto; }
.verify-result { margin-top: 26px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.verify-status { padding: 22px 28px; display: flex; gap: 14px; align-items: center; font-size: 22px; font-weight: 800; }
.verify-status.Valid { background: var(--green-100); color: var(--green-800); }
.verify-status.Expired, .verify-status.Superseded { background: var(--gold-100); color: var(--gold-700); }
.verify-status.Revoked { background: var(--rose-100); color: var(--rose-700); }
.verify-grid { display: grid; grid-template-columns: 180px 1fr; gap: 14px 20px; padding: 26px 28px; font-size: 16px; }
.verify-grid dt { color: var(--muted); }
.verify-grid dd { margin: 0; font-weight: 700; word-break: break-all; }

@media (max-width: 1000px) {
  .p-links, .p-cta { display: none; }
  .p-burger { display: inline-grid; }
  .p-links.open { display: grid; position: absolute; top: 70px; left: 16px; right: 16px; background: var(--green-900); padding: 20px; gap: 14px; border-radius: 14px; }
  .p-hero .p-container { grid-template-columns: 1fr; }
  .p-hero-art { display: none; }
  .p-hero-copy { max-width: 460px; margin: 0 auto; padding-top: 20px; }
  .ebooks { grid-template-columns: repeat(2, 1fr); }
  .ebook.raise { transform: none; }
  .p-stats { grid-template-columns: 1fr; gap: 18px; }
  .p-stat { border-right: 0; padding: 0 24px; }
  .p-contact .p-container { grid-template-columns: 1fr; gap: 40px; }
  .p-contact-photo { display: none; }
  .p-contact-card { padding: 36px 26px; }
  .price-grid { grid-template-columns: 1fr; }
  .p-footer .p-container { flex-direction: column; align-items: flex-start; }
  .p-footer nav { margin-left: 0; flex-wrap: wrap; }
  .verify-grid { grid-template-columns: 1fr; gap: 4px; }
  .verify-grid dd { margin-bottom: 10px; }
}
@media (max-width: 560px) {
  .ebooks { grid-template-columns: 1fr; }
  .p-title { font-size: 32px; }
  .p-page-hero h1 { font-size: 32px; }
}

/* Page heroes with a photograph under a green tint (credit bottom right). */
.p-page-hero.has-photo { background: linear-gradient(100deg, rgba(7,38,26,.9) 0%, rgba(7,38,26,.68) 45%, rgba(7,38,26,.22) 100%), var(--hero-img) var(--hero-pos, center) / cover no-repeat, var(--green-900); }
.p-page-hero.has-photo::after { display: none; }
.p-hero-credit { position: absolute; right: 16px; bottom: 10px; font-size: 11px; color: rgba(255,255,255,.55); }
.p-hero-credit a { color: inherit; }
@media (max-width: 700px) { .p-page-hero.has-photo { background: linear-gradient(rgba(7,38,26,.78), rgba(7,38,26,.78)), var(--hero-img) var(--hero-pos, center) / cover no-repeat, var(--green-900); } }

/* Official KSM logo on a white tile in the public header. */
.p-nav .brand-mark { background: #fff; }
.p-nav .brand-mark .brand-logo { height: 82%; width: auto; }
.p-nav .brand-mark { width: auto; height: auto; background: none; border-radius: 0; }
.p-nav .brand-mark .brand-logo { height: 52px; width: auto; }
