/* FluentPlex's public pages (app/views/sites/fluentplex; design "FluentPlex Home"): its header and footer,
   and its home page. Colors are the theme's names (FluentPlex's on its public pages: Site::FLUENTPLEX_THEME);
   the home page's demo is in each language's own (--d-…, FluentplexHelper). */

/* Header */
.fpsite-header {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 48px; border-bottom: 1px solid var(--line); background: var(--paper);
}
.fpsite-header .brand-mark { --mark-size: 40px; }
.fpsite-nav { display: flex; align-items: center; gap: 4px; }
.fpsite-nav__link { padding: 10px 14px; border-radius: 999px; font-size: 15px; color: var(--text-body); text-decoration: none; }
.fpsite-nav__link:hover, .fpsite-nav__link[aria-current="page"] { background: var(--sand); color: var(--ink); text-decoration: none; }
.fpsite-nav__cta {
  display: inline-flex; align-items: center; justify-content: center; margin-left: 6px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; background: var(--clay); color: var(--text-on-accent); font-size: 15px; font-weight: 600; text-decoration: none;
}
.fpsite-nav__cta:hover { background: var(--clay-hover); color: var(--text-on-accent); text-decoration: none; }
.fpsite-header__phone { display: none; align-items: center; gap: 4px; }
.fpsite-header__sign-in { display: flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; }
.fpsite-menu { position: relative; }
.fpsite-menu__button {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; list-style: none; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); font-size: 18px; color: var(--ink);
}
.fpsite-menu__button::-webkit-details-marker { display: none; }
.fpsite-menu__list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 220px; display: flex; flex-direction: column; gap: 2px;
  padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-menu);
}
.fpsite-menu__link { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.fpsite-menu__link:hover { background: var(--sand); text-decoration: none; }
.fpsite-menu__list .fpsite-nav__cta { margin: 6px 0 0; }

/* Footer */
.fpsite-footer {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 28px 48px; border-top: 1px solid var(--line); background: var(--paper);
}
.fpsite-footer__brand { display: flex; flex-direction: column; gap: 8px; }
.fpsite-footer .brand-mark { --mark-size: 30px; }
.fpsite-footer .brand__name { font-size: 22px; }
.fpsite-footer__tagline { font-size: 14px; color: var(--text-muted); }
.fpsite-footer__links { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; font-size: 15px; }
.fpsite-footer__links a { display: flex; align-items: center; gap: 6px; min-height: 44px; color: var(--text-body); }
.fpsite-footer__sister span { font-size: 13px; color: var(--text-muted); }

/* Home page */
.fphome { background: var(--paper); color: var(--ink); }
.fphome__hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 52px; align-items: center;
  max-width: 1280px; margin: 0 auto; padding: 60px 48px 68px;
}
.fphome__copy { display: flex; flex-direction: column; gap: 20px; }
.fphome__kicker {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-body);
}
.fphome__kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.fphome__title {
  margin: 0; font-family: var(--font-serif); font-weight: 500; font-size: 64px; line-height: 1.02; letter-spacing: -.025em; text-wrap: balance;
}
.fphome__title em { color: var(--green); }
.fphome__lead { margin: 0; max-width: 560px; font-size: 19px; line-height: 1.55; color: var(--text-body); text-wrap: pretty; }
.fphome__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.fphome__btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent;
}
.fphome__btn:hover { text-decoration: none; }
.fphome__btn--primary { background: var(--clay); color: var(--text-on-accent); }
.fphome__btn--primary:hover { background: var(--clay-hover); color: var(--text-on-accent); }
.fphome__btn--outline { border-color: var(--ink); color: var(--ink); padding: 0 24px; }
.fphome__btn--outline:hover { background: var(--ink); color: var(--text-on-dark); }
.fphome__btn--light { align-self: flex-start; min-height: 48px; padding: 0 22px; background: var(--card); color: var(--ink); font-size: 15px; }
.fphome__btn--light:hover { color: var(--ink); background: var(--sand); }
.fphome__btn--block { width: 100%; min-height: 48px; font-size: 15px; margin-top: auto; }
.fphome__note, .fphome__muted { font-size: 14px; color: var(--text-muted); }
.fphome__muted-sm { font-size: 12px; color: var(--text-muted); }

/* The demo: each language in its own look (--d-…) */
.fphome__demo { display: flex; flex-direction: column; gap: 10px; }
.fphome__demo-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.fphome__demo-label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.fphome__tabs { display: flex; gap: 2px; padding: 3px; background: var(--sand); border-radius: 999px; }
.fphome__tab {
  display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: none; border-radius: 999px;
  background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.fphome__tab[aria-checked="true"] { background: var(--ink); color: var(--text-on-dark); }
.fphome__tab:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.fphome__tab-native { font-family: var(--d-font); font-weight: 400; opacity: .85; }
.fphome__demo-set { display: flex; flex-direction: column; gap: 10px; }
.fphome__demo-set[hidden], .fphome__chat[hidden], .fphome__drill[hidden] { display: none; }
.fphome__reader {
  display: flex; flex-direction: column; gap: 14px; padding: 20px 22px;
  background: var(--d-paper); border: 1px solid var(--d-line); border-radius: 20px; color: var(--d-ink);
}
.fphome__reader-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--d-muted); }
.fphome__reader-title { font-family: var(--d-font); font-size: 16px; color: var(--d-ink); }
.fphome__level { padding: 2px 8px; border-radius: 6px; background: var(--d-tag); color: var(--d-ink); font-weight: 700; }
.fphome__sentence { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-family: var(--d-font); font-size: 30px; line-height: 1.6; color: var(--d-ink); }
.fphome__sentence[dir="rtl"] { line-height: 2; }
.fphome__word { padding: 0 4px; border-bottom: 1.5px dotted var(--d-dotted); border-radius: 6px 6px 2px 2px; }
.fphome__word.is-selected { background: var(--d-selected); border-bottom: 2px solid var(--d-selected-line); }
.fphome__translation { padding-top: 10px; border-top: 1px solid var(--d-line); font-size: 14px; color: var(--d-muted); }
.fphome__genius { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; background: var(--d-dark); border-radius: 20px; color: #FFFFFF; }
.fphome__genius-head { display: flex; align-items: center; gap: 10px; }
.fphome__avatar {
  display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--d-accent); font-family: var(--d-font); font-size: 16px; line-height: 1;
}
.fphome__genius-name { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #D3D0DA; }
.fphome__parts { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; }
.fphome__part {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 10px;
  background: var(--d-raised); border: 1px solid var(--d-raised-line); border-radius: 10px;
}
.fphome__part-text { font-family: var(--d-font); font-size: 24px; line-height: 1.3; }
.fphome__part-gloss { font-size: 12px; color: #D3D0DA; }
.fphome__equals { display: flex; align-items: center; padding: 0 2px; font-size: 18px; color: #D3D0DA; }
.fphome__meaning { display: flex; align-items: center; padding: 6px 12px; border-radius: 10px; background: var(--d-highlight); color: var(--d-ink); font-size: 15px; font-weight: 700; }
.fphome__note-text { margin: 0; font-size: 15px; line-height: 1.55; }
.fphome__taught { font-family: var(--d-font); font-size: 1.2em; }
.fphome__taught--bold { font-weight: 700; }
.fphome__own-look { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }
.fphome__dots { display: inline-flex; gap: 4px; }
.fphome__dots span { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line-strong); }

/* Sections */
.fphome__section { display: flex; flex-direction: column; gap: 28px; max-width: 1280px; margin: 0 auto; padding: 0 48px 64px; }
.fphome__section--first { padding-top: 64px; }
.fphome__rule { margin: 0; border: none; border-top: 1px solid var(--line); }
.fphome__section-head { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.fphome__section-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.fphome__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--green); }
.fphome__eyebrow--on-dark { color: var(--green-bright); }
.fphome__h2 { margin: 0; font-family: var(--font-serif); font-weight: 500; font-size: 50px; line-height: 1.05; letter-spacing: -.015em; text-wrap: balance; }
.fphome__h2--sm { font-size: 38px; }
.fphome__h3 { margin: 0; font-family: var(--font-serif); font-weight: 500; font-size: 26px; line-height: 1.1; }
.fphome__link { font-size: 15px; font-weight: 600; color: var(--clay); }
.fphome__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fphome__step { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.fphome__step-num { font-size: 13px; font-weight: 700; color: var(--clay); }
.fphome__step-demo { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: var(--paper); border-radius: 12px; font-size: 13px; color: var(--text-body); }
.fphome__step-demo strong { color: var(--green); }
.fphome__step-text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-body); }
.fphome__bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.fphome__bar span { display: block; height: 100%; background: var(--green); }
.fphome__chat, .fphome__drill { display: flex; flex-direction: column; gap: 8px; }
.fphome__bubble {
  align-self: flex-start; padding: 6px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px 12px 12px 4px;
  font-family: var(--d-font); font-size: 18px; line-height: 1.6; color: var(--ink);
}
.fphome__bubble--you { align-self: flex-end; background: var(--ink); border-color: var(--ink); border-radius: 12px 12px 4px 12px; color: var(--text-on-dark); }
.fphome__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fphome__choice {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 10px;
}
.fphome__choice--right { background: var(--green-soft); border: 1.5px solid var(--green); color: var(--green-deep); font-weight: 700; }
.fphome__choice .fphome__taught { font-weight: 400; }

/* Languages */
.fphome__langs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fphome__lang {
  min-width: 0; min-height: 200px; display: flex; flex-direction: column; gap: 10px; padding: 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
}
.fphome__lang--soon { background: transparent; border: 1.5px dashed var(--line-strong); color: var(--text-body); }
.fphome__lang-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.fphome__lang-name { font-size: 17px; font-weight: 700; }
.fphome__soon { padding: 2px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.fphome__lang-native { display: block; font-family: var(--d-font, var(--font-serif)); font-size: 32px; line-height: 1.4; }
.fphome__lang-offer { font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.fphome__lang-start {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding-top: 12px;
  border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--clay); text-decoration: none;
}

/* Free and Pro */
.fphome__plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fphome__plan { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.fphome__plan--pro { border: 2px solid var(--clay); }
.fphome__plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fphome__plan-name { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
.fphome__plan-tag { padding: 2px 10px; border-radius: 999px; background: var(--clay-soft); color: var(--clay-hover); font-size: 12px; }
.fphome__price { font-family: var(--font-serif); font-size: 36px; line-height: 1; }
.fphome__per { font-family: var(--font-sans); font-size: 14px; color: var(--text-muted); }
.fphome__ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fphome__ticks li { display: flex; gap: 10px; font-size: 15px; line-height: 1.4; }
.fphome__ticks li::before { content: "✓"; color: var(--green); font-weight: 700; }

/* Teachers */
.fphome__teach {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; padding: 40px;
  background: var(--ink); color: var(--text-on-dark); border-radius: 22px;
}
.fphome__teach-copy { display: flex; flex-direction: column; gap: 14px; }
.fphome__teach .fphome__h2 em { color: var(--green-bright); }
.fphome__teach-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fphome__teach-list li { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; border-top: 1px solid var(--ink-line); }
.fphome__teach-item { font-size: 16px; font-weight: 700; }
.fphome__teach-text { font-size: 14px; line-height: 1.5; color: var(--text-on-dark-muted); }
.fphome__class { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--ink-raised); border: 1px solid var(--ink-line); border-radius: 16px; }
.fphome__class-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.fphome__class-name { font-size: 15px; font-weight: 700; }
.fphome__class-code, .fphome__class-assignment, .fphome__class-status { font-size: 12px; color: var(--text-on-dark-muted); }
.fphome__class-assignment { font-size: 13px; }
.fphome__class-code strong { color: var(--text-on-dark); letter-spacing: 1px; }
.fphome__class-ar { font-family: Amiri, "Noto Naskh Arabic", serif; font-size: 16px; color: var(--text-on-dark); }
.fphome__class-row { display: grid; grid-template-columns: 90px 1fr 84px; align-items: center; gap: 10px; font-size: 13px; }
.fphome__class-student { font-weight: 600; }
.fphome__class-status { text-align: right; }
.fphome__class-bar { height: 6px; border-radius: 6px; background: var(--ink-line); overflow: hidden; }
.fphome__class-bar span { display: block; height: 100%; background: #8F87FF; }
.fphome__class-bar span.is-done { background: var(--green-bright); }

/* Narrower screens: the hero and grids stack, then the phone layout (design "Phone", 390 px). */
@media (max-width: 1100px) {
  .fphome__langs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .fphome__hero { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .fphome__steps, .fphome__teach { grid-template-columns: minmax(0, 1fr); }
  .fphome__title { font-size: 52px; }
}
@media (max-width: 760px) {
  .fpsite-header { padding: 12px 12px 12px 16px; }
  .fpsite-header .brand-mark { --mark-size: 34px; }
  .fpsite-header .brand__name { font-size: 23px; }
  .fpsite-nav { display: none; }
  .fpsite-header__phone { display: flex; }
  .fpsite-footer { flex-direction: column; padding: 24px 16px 30px; }
  .fphome__hero { padding: 28px 16px 36px; gap: 28px; }
  .fphome__title { font-size: 42px; }
  .fphome__lead { font-size: 17px; }
  .fphome__ctas { flex-direction: column; }
  .fphome__reader, .fphome__genius { padding: 16px; }
  .fphome__sentence { font-size: 24px; }
  .fphome__part-text { font-size: 20px; }
  .fphome__section { padding: 0 16px 40px; gap: 20px; }
  .fphome__section--first { padding-top: 40px; }
  .fphome__h2 { font-size: 34px; }
  .fphome__h2--sm { font-size: 30px; }
  .fphome__lang { min-height: 0; }
  .fphome__plans { grid-template-columns: minmax(0, 1fr); }
  .fphome__teach { padding: 24px 18px; }
}
