.public-site { background: #fbfaf7; }
.public-header { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 30px; min-height: 76px; padding: 12px clamp(20px, 5vw, 72px); }
.public-header nav { display: flex; flex: 1; gap: 28px; justify-content: center; }
.public-header nav a, .text-link { color: var(--ink); font-size: 14px; font-weight: 800; text-decoration: none; }
.public-site main { max-width: 1240px; padding-top: 0; }
.public-hero { align-items: center; display: grid; gap: clamp(30px, 7vw, 100px); grid-template-columns: 1.45fr .55fr; min-height: 610px; padding: 80px 0 100px; }
.public-hero h1 { font-size: clamp(44px, 6.4vw, 82px); letter-spacing: -.06em; line-height: .98; margin: 12px 0 28px; max-width: 900px; }
.public-lead { color: var(--muted); font-size: clamp(18px, 2vw, 22px); max-width: 700px; }
.public-hero .button-row { align-items: center; margin-top: 32px; }
.editorial-card { background: var(--ink); border-radius: 3px 34px 3px 34px; color: #fff; min-height: 300px; padding: 34px; position: relative; transform: rotate(1.5deg); }
.editorial-card p { bottom: 30px; font-family: Georgia, serif; font-size: clamp(23px, 3vw, 35px); line-height: 1.25; margin: 0; position: absolute; }
.quote-mark { color: var(--orange); font-family: Georgia, serif; font-size: 92px; line-height: 1; }
.public-section { border-top: 1px solid var(--line); padding: 74px 0; }
.public-section h2, .public-cta h2 { font-family: Georgia, serif; font-size: clamp(34px, 4vw, 54px); font-weight: 500; letter-spacing: -.035em; margin: 6px 0 10px; }
.public-filters { background: #f1ede6; display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin: 30px 0 22px; padding: 16px; }
.public-site .teacher-card { border-radius: 4px 24px 4px 24px; box-shadow: none; }
.public-site .avatar { border-radius: 50%; height: 58px; width: 58px; }
.teacher-country { color: var(--muted); font-size: 12px; font-weight: 750; }
.how-section { display: grid; gap: 0; grid-template-columns: repeat(3, 1fr); }
.how-section > div { border-left: 1px solid var(--line); padding: 10px 34px 10px 24px; }
.how-section > div:first-child { border-left: 0; padding-left: 0; }
.how-section span { color: var(--orange-dark); font-size: 12px; font-weight: 900; }
.how-section h3 { font-family: Georgia, serif; font-size: 28px; font-weight: 500; margin: 18px 0 10px; }
.how-section p { color: var(--muted); }
.public-cta { background: #efe5d8; margin: 40px 0 80px; padding: clamp(30px, 6vw, 70px); text-align: center; }
.public-cta p { margin-left: auto; margin-right: auto; max-width: 650px; }
.profile-detail { min-height: 400px; }
.profile-detail h2 { font-family: Georgia, serif; font-size: 38px; font-weight: 500; margin: 4px 0; }
.profile-detail .profile-location { color: var(--muted); margin: 0 0 18px; }
.profile-section { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
@media(max-width:800px){.public-header nav{display:none}.public-header .button{margin-left:auto}.public-hero{grid-template-columns:1fr;min-height:auto;padding:55px 0}.editorial-card{min-height:220px}.public-filters,.how-section{grid-template-columns:1fr}.how-section>div{border-left:0;border-top:1px solid var(--line);padding:24px 0}.card-grid{grid-template-columns:1fr}}


/* ══ MOBILE HARDENING — marketing page ═════════════════════════════════════
   The whole marketing page had exactly one breakpoint (800px) and a rotated
   card that pushed the document wider than the viewport. */

/* (2) The rotated quote card. Its corners paint outside its layout box, which
   is enough to give the whole document a horizontal scrollbar. Contain it. */
.editorial-card { max-width: 100%; }
@media (max-width: 900px) { .editorial-card { transform: none; } }

.public-header { flex-wrap: wrap; row-gap: 10px; }
.public-header .brand { min-width: 0; }
.public-site main { max-width: min(1240px, 100%); }
.public-hero h1 { overflow-wrap: anywhere; }

@media (max-width: 1000px) {
  /* The hero was 1.45fr / .55fr until 800px, so between 800 and 1000 the quote
     card was squeezed to about 200px and the headline had nowhere to go. */
  .public-hero { grid-template-columns: 1fr; gap: 34px; min-height: auto; padding: 48px 0 56px; }
  .public-header nav { gap: 18px; }
}

@media (max-width: 800px) {
  .public-header { padding: 10px 16px; }
  .public-header .zk-product-toggle { order: 3; margin-left: auto; }
  .public-header .button { order: 4; }
  .public-hero { padding: 32px 0 40px; }
  .public-hero h1 { font-size: clamp(30px, 8.5vw, 48px); letter-spacing: -.03em; }
  .public-lead { font-size: 17px; }
  .public-section { padding: 44px 0; }
  .public-cta { margin: 24px 0 48px; padding: 28px 18px; }
  .public-filters { grid-template-columns: 1fr; padding: 14px; }
  .quote-mark { font-size: 60px; }
  .editorial-card p { position: static; margin-top: 8px; font-size: 22px; }
  .editorial-card { min-height: 0; padding: 22px; }
}

@media (max-width: 520px) {
  .public-hero .button-row { flex-direction: column; align-items: stretch; }
  .public-hero .button-row .button { width: 100%; text-align: center; }
  .public-site .teacher-card { border-radius: 4px 18px 4px 18px; }
}


/* Ratings and reviews — computed since migration 1, displayed from today. */
.rating { display: inline-block; margin-top: 4px; font-size: 13px; color: #b8860b; letter-spacing: 1px; }
.rating b { color: var(--ink); letter-spacing: 0; }
.rating .muted { letter-spacing: 0; }
.rating-none { display: inline-block; margin-top: 4px; font-size: 12px; }
.review { margin: 12px 0 0; padding: 12px 14px; border-left: 3px solid var(--orange); background: #faf8f4; border-radius: 0 12px 12px 0; }
.review p { margin: 4px 0 6px; }
.review-stars { color: #b8860b; letter-spacing: 1px; font-size: 13px; }
.review cite { color: var(--muted); font-size: 12px; font-style: normal; }
