/*
Theme Name: FaceSpark Premium Clean v8
Theme URI: https://example.com/
Author: Your Team
Author URI: https://example.com/
Description: Clean premium bilingual WordPress theme foundation for FaceSpark / DreamSmells style AI reading pages. v6 repack: full font loading, corrected hero typography, cleaner card text hierarchy, safer WordPress menus, and mobile-first layout.
Version: 0.8.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: facespark-clean
Tags: custom-logo, featured-images, full-width-template, one-column, two-columns
*/

:root {
  --fs-bg: #fffaf3;
  --fs-bg-2: #fff5ec;
  --fs-card: rgba(255, 255, 255, 0.82);
  --fs-white: #ffffff;
  --fs-ink: #171b37;
  --fs-ink-soft: #555b78;
  --fs-muted: #8f94aa;
  --fs-line: rgba(25, 29, 56, 0.09);
  --fs-coral: #ff6658;
  --fs-coral-deep: #f25147;
  --fs-gold: #d89b52;
  --fs-violet: #9b7cff;
  --fs-blue: #63a8f7;
  --fs-mint: #65cdb0;
  --fs-shadow: 0 26px 80px rgba(57, 44, 35, 0.12);
  --fs-shadow-soft: 0 14px 42px rgba(57, 44, 35, 0.08);
  --fs-radius-xl: 32px;
  --fs-radius-lg: 24px;
  --fs-radius-md: 18px;
  --fs-container: 1180px;
  --fs-font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --fs-font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --fs-font-cn: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--fs-ink);
  font-family: var(--fs-font-body);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 80%, rgba(255, 202, 184, .52) 0 130px, transparent 280px),
    radial-gradient(circle at 93% 6%, rgba(224, 216, 255, .62) 0 150px, transparent 330px),
    linear-gradient(180deg, #fffaf3 0%, #fff7ef 48%, #fffaf7 100%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }

.fs-shell {
  width: min(var(--fs-container), calc(100% - 72px));
  margin-inline: auto;
}

@media (min-width: 1440px) {
  :root { --fs-container: 1200px; }
}

/* Header */
.fs-topbar,
.admin-bar .fs-topbar {
  position: relative;
  z-index: 100;
  width: min(1210px, calc(100% - 56px));
  margin: 16px auto 0;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 46px rgba(47, 37, 30, 0.09);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.fs-nav {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 18px 8px 22px;
}

.fs-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 176px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.fs-brand .custom-logo-link,
.fs-brand img.custom-logo { display: block; max-height: 46px; width: auto; }
.fs-brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle, rgba(255,102,88,.16) 0 29%, transparent 30%), conic-gradient(from 0deg, var(--fs-coral), transparent 30%, var(--fs-coral) 33%, transparent 64%, var(--fs-coral) 68%, transparent 100%);
}
.fs-brand-mark::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--fs-coral);
  box-shadow: 0 0 0 5px rgba(255,102,88,.13);
}
.fs-brand-name {
  font-family: var(--fs-font-display);
  font-size: 25px;
  line-height: 1;
  color: var(--fs-ink);
}

/* WordPress menu reset */
.fs-topbar ul,
.fs-topbar ol,
.fs-topbar li,
.fs-menu,
ul.fs-menu,
.fs-menu li,
ul.fs-menu li,
.fs-menu .menu-item {
  list-style: none !important;
  list-style-type: none !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.fs-topbar li::marker,
.fs-menu li::marker,
ul.fs-menu li::marker { content: '' !important; font-size: 0 !important; }
.fs-topbar li::before,
.fs-menu li::before,
ul.fs-menu li::before,
.fs-menu .menu-item::before { content: none !important; display: none !important; }

.fs-menu,
ul.fs-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 1.15vw, 19px);
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 !important;
  margin: 0 0 0 auto !important;
  white-space: nowrap;
}
.fs-menu li,
ul.fs-menu li,
.fs-menu .menu-item {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 !important;
}
.fs-menu a,
ul.fs-menu a {
  display: inline-flex;
  align-items: center;
  position: relative;
  min-height: 42px;
  padding: 10px 0;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: manual !important;
  line-height: 1.05;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .005em;
  color: #343852;
  opacity: .88;
}
.fs-menu a:hover,
.fs-menu .current-menu-item > a,
ul.fs-menu a:hover,
ul.fs-menu .current-menu-item > a { color: var(--fs-coral); opacity: 1; }
.fs-menu a:hover::after,
.fs-menu .current-menu-item > a::after,
ul.fs-menu a:hover::after,
ul.fs-menu .current-menu-item > a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  border-radius: 10px;
  background: var(--fs-coral);
}

.fs-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.fs-premium-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 10px 17px;
  border-radius: 999px;
  color: #935a21;
  background: linear-gradient(135deg, #ffe1bc, #f6c98b);
  box-shadow: inset 0 0 0 1px rgba(144, 88, 28, .1);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.fs-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0d7cb, #d9b1a3);
}
.fs-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.62);
  color: var(--fs-ink);
  cursor: pointer;
}
.fs-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
}

/* Hero */
.fs-hero {
  position: relative;
  padding: 54px 0 22px;
  overflow: visible;
}
.fs-hero-grid {
  display: grid;
  grid-template-columns: minmax(440px, 1fr) minmax(420px, 520px);
  align-items: center;
  gap: clamp(38px, 5.2vw, 70px);
}
.fs-hero-copybox { position: relative; z-index: 3; }
.fs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #5b4ed4;
  background: #f1edff;
  box-shadow: inset 0 0 0 1px rgba(117,92,255,.08);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.fs-hero-title {
  max-width: 610px;
  margin: 22px 0 16px;
  font-family: var(--fs-font-display);
  font-size: clamp(54px, 4.7vw, 68px);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 700;
}
.fs-hero-title .accent { color: var(--fs-coral); }
.fs-hero-subtitle {
  margin: 0 0 20px;
  font-family: var(--fs-font-cn);
  font-size: clamp(25px, 2.25vw, 31px);
  line-height: 1.28;
  letter-spacing: .06em;
  font-weight: 700;
}
.fs-hero-copy {
  max-width: 570px;
  margin: 0 0 24px;
  color: var(--fs-ink-soft);
  font-size: 15.5px;
  line-height: 1.82;
}
.fs-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.fs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 15px 26px;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.fs-button:hover { transform: translateY(-2px); }
.fs-button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--fs-coral), var(--fs-coral-deep));
  box-shadow: 0 18px 34px rgba(255, 102, 88, .28);
}
.fs-button-secondary {
  color: var(--fs-ink);
  background: rgba(255,255,255,.88);
  border: 1px solid var(--fs-line);
  box-shadow: var(--fs-shadow-soft);
}
.fs-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 16px;
  color: var(--fs-ink-soft);
  font-size: 13px;
}
.fs-hero-art {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}
.fs-orbit {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -48px;
  top: -64px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.48);
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.12), rgba(188,164,255,.22) 38%, rgba(255,132,120,.18) 63%, transparent 66%);
  pointer-events: none;
}
.fs-orbit::before,
.fs-orbit::after {
  content: '';
  position: absolute;
  inset: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.65);
  transform: rotate(-10deg);
}
.fs-orbit::after { inset: 92px; opacity: .55; transform: rotate(18deg); }
.fs-portrait-card {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  aspect-ratio: 1.18 / 1;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(160deg, #fbe2df, #ddd2ff 55%, #fbf6ef);
  box-shadow: 0 40px 78px rgba(55,44,70,.13);
}
.fs-portrait-card img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.fs-float-note {
  position: absolute;
  z-index: 4;
  right: -2px;
  top: 48%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 17px;
  border-radius: 17px;
  border: 1px solid rgba(255,255,255,.82);
  background: rgba(255,255,255,.86);
  box-shadow: var(--fs-shadow-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 12px;
  font-weight: 700;
}
.fs-float-note b { display: block; font-size: 13px; }
.fs-target {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--fs-coral);
}
.fs-spark { position: absolute; color: var(--fs-gold); font-size: 28px; opacity: .86; pointer-events: none; }
.fs-spark.one { left: 8%; top: 15%; }
.fs-spark.two { right: 22%; top: 6%; }
.fs-spark.three { left: 52%; bottom: 7%; }

/* Sections */
.fs-section { padding: 32px 0; }
.fs-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.fs-section-title {
  margin: 0;
  color: var(--fs-ink);
  font-size: 23px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.02em;
}
.fs-section-title small {
  margin-left: 8px;
  color: var(--fs-ink-soft);
  font-size: 15px;
  font-weight: 600;
}
.fs-link-more { color: #4d5fe6; font-size: 13px; font-weight: 700; white-space: nowrap; }

.fs-tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.fs-tool-card {
  position: relative;
  min-height: 166px;
  overflow: hidden;
  padding: 24px 24px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.76);
  background: var(--tint, rgba(255,255,255,.86));
  box-shadow: var(--fs-shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;
}
.fs-tool-card:hover { transform: translateY(-4px); box-shadow: var(--fs-shadow); }
.fs-tool-card::after {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -50px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
}
.fs-tool-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  border-radius: 17px;
  color: var(--icon, var(--fs-coral));
  background: rgba(255,255,255,.68);
}
.fs-tool-icon svg,
.fs-stat-icon svg {
  width: 31px;
  height: 31px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fs-tool-card h3 {
  margin: 0 0 7px;
  color: var(--fs-ink);
  font-size: 21px;
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: -.005em;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: manual !important;
}
.fs-tool-card h3 small {
  display: block;
  margin-top: 4px;
  color: #24304d;
  font-family: var(--fs-font-cn);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap !important;
}
.fs-tool-card p {
  max-width: 232px;
  margin: 0;
  color: var(--fs-ink-soft);
  font-size: 13px;
  line-height: 1.55;
}
.fs-card-arrow {
  position: absolute;
  right: 18px;
  bottom: 20px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--icon, var(--fs-coral)), rgba(255,255,255,.35));
  font-weight: 900;
}

.fs-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--fs-shadow-soft);
}
.fs-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 18px 20px;
  border-right: 1px solid var(--fs-line);
}
.fs-stat:last-child { border-right: 0; }
.fs-stat-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--tone, var(--fs-coral));
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--fs-line);
}
.fs-stat-icon svg { width: 24px; height: 24px; }
.fs-stat b { display: block; color: var(--tone, var(--fs-coral)); font-size: 23px; line-height: 1; }
.fs-stat span { display: block; margin-top: 6px; color: var(--fs-ink-soft); font-size: 12px; line-height: 1.35; font-weight: 850; }

.fs-insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fs-insight-card {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--fs-shadow-soft);
  isolation: isolate;
}
.fs-insight-card .bg {
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  z-index: -2;
}
.fs-insight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(18,21,40,.58), rgba(18,21,40,.20));
}
.fs-insight-content {
  position: absolute;
  inset: auto 24px 23px 24px;
  color: #fff;
}
.fs-insight-card h3 {
  margin: 0 0 14px;
  max-width: 330px;
  font-family: var(--fs-font-display);
  font-size: clamp(24px, 1.9vw, 28px);
  line-height: 1.05;
  letter-spacing: -.02em;
  text-shadow: 0 8px 20px rgba(0,0,0,.20);
}
.fs-mini-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--fs-ink);
  background: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 700;
}

/* Page template */
.fs-page-hero { padding: 72px 0 34px; text-align: center; }
.fs-page-hero h1 {
  margin: 0 0 14px;
  font-family: var(--fs-font-display);
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
}
.fs-page-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--fs-ink-soft);
  font-size: 17px;
  line-height: 1.75;
}
.fs-content-card {
  max-width: 980px;
  margin: 28px auto 70px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--fs-radius-xl);
  background: rgba(255,255,255,.82);
  box-shadow: var(--fs-shadow-soft);
}
.fs-content-card :where(h2,h3) { letter-spacing: -.02em; }
.fs-content-card :where(p,li) { color: var(--fs-ink-soft); line-height: 1.75; }
.fs-style-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.fs-sample-card { padding: 24px; border-radius: 22px; background: #fff; border: 1px solid var(--fs-line); box-shadow: var(--fs-shadow-soft); }

/* Footer */
.fs-footer { padding: 54px 0 42px; border-top: 1px solid var(--fs-line); background: rgba(255,255,255,.38); }
.fs-footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--fs-ink-soft); font-size: 14px; }
.fs-footer-links,
.fs-footer-links ul { display: flex; gap: 18px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.fs-footer-links a { color: var(--fs-ink); font-weight: 850; opacity: .75; }

/* The concept-board phone preview is intentionally not part of the live homepage. */
.fs-mobile-preview-wrap,
.fs-phone { display: none !important; }

@media (max-width: 1440px) {
  .fs-avatar { display: none; }
  .fs-brand { min-width: 178px; }
  .fs-menu a, ul.fs-menu a { font-size: 11.5px; }
}

@media (max-width: 1320px) {
  .fs-topbar,
  .admin-bar .fs-topbar { width: min(100% - 32px, 980px); }
  .fs-nav { min-height: 64px; padding: 10px 14px 10px 18px; }
  .fs-brand { min-width: 0; max-width: none; }
  .fs-menu-toggle { display: block; margin-left: auto; flex: 0 0 auto; }
  .fs-nav-actions { display: none; }
  .fs-menu,
  ul.fs-menu {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 10px);
    z-index: 110;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    max-height: min(72vh, 620px);
    padding: 12px !important;
    margin: 0 !important;
    overflow-y: auto;
    overflow-x: hidden;
    white-space: normal;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.75);
    background: rgba(255,255,255,.97);
    box-shadow: 0 24px 70px rgba(30,24,22,.14);
  }
  .fs-topbar.is-open .fs-menu,
  .fs-topbar.is-open ul.fs-menu { display: flex; }
  .fs-menu li,
  ul.fs-menu li,
  .fs-menu .menu-item { display: block; width: 100%; }
  .fs-menu a,
  ul.fs-menu a {
    width: 100%;
    min-height: 44px;
    padding: 13px 12px;
    white-space: normal !important;
    line-height: 1.25;
    font-size: 13px;
  }
  .fs-menu a::after,
  ul.fs-menu a::after { display: none; }

  .fs-hero { padding-top: 48px; }
  .fs-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .fs-hero-art { max-width: 560px; width: 100%; min-height: 380px; margin: 0 auto; }
  .fs-orbit { right: 50%; top: -78px; transform: translateX(50%); }
  .fs-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fs-stats { grid-template-columns: repeat(2, 1fr); }
  .fs-stat { border-right: 0; border-bottom: 1px solid var(--fs-line); }
  .fs-stat:nth-last-child(-n+1) { border-bottom: 0; }
  .fs-insight-grid { grid-template-columns: 1fr; }
  .fs-style-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .fs-shell,
  .fs-topbar,
  .admin-bar .fs-topbar { width: min(100% - 24px, 100%); }
  .fs-brand-mark { width: 28px; height: 28px; flex-basis: 28px; }
  .fs-brand-name { font-size: 20px; }
  .fs-brand-name small { font-size: 12px; }
  .fs-hero { padding-top: 40px; padding-bottom: 18px; }
  .fs-kicker { max-width: 100%; white-space: normal; }
  .fs-hero-title { font-size: clamp(39px, 11vw, 48px); }
  .fs-hero-subtitle { font-size: 21px; letter-spacing: .04em; }
  .fs-hero-actions { display: grid; grid-template-columns: 1fr; }
  .fs-button { width: 100%; }
  .fs-hero-art { min-height: 300px; }
  .fs-orbit { width: 410px; height: 410px; }
  .fs-portrait-card { width: min(100%, 420px); border-radius: 28px; }
  .fs-float-note { display: none; }
  .fs-tool-grid,
  .fs-stats,
  .fs-insight-grid { grid-template-columns: 1fr; }
  .fs-section-head { align-items: flex-start; flex-direction: column; }
  .fs-stat { border-right: 0; }
  .fs-tool-card h3 { white-space: normal !important; }
}


/* v6 typography correction layer: keeps the Concept 30 look closer to the reference. */
body,
button,
input,
textarea {
  font-family: var(--fs-font-body);
}

.fs-hero-title,
.fs-page-hero h1,
.fs-insight-card h3,
.fs-brand-name {
  font-family: var(--fs-font-display);
}

.fs-hero-title {
  text-wrap: balance;
}

.fs-hero-title br {
  display: block;
}

.fs-hero-title .accent {
  color: var(--fs-coral);
}

.fs-menu a,
.fs-premium-pill,
.fs-button,
.fs-tool-card h3,
.fs-stat span,
.fs-mini-button,
.fs-section-title,
.fs-link-more {
  font-family: var(--fs-font-body);
}

.fs-hero-subtitle {
  font-family: var(--fs-font-body);
}

@media (min-width: 1321px) {
  .fs-menu {
    overflow: visible;
  }
  .fs-menu a {
    max-width: 172px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .fs-hero-title {
    max-width: 620px;
  }
}

@media (max-width: 1440px) and (min-width: 1321px) {
  .fs-brand-name { font-size: 22px; }
  .fs-brand { min-width: 150px; }
  .fs-menu { gap: 12px; }
  .fs-menu a { font-size: 11.5px; }
  .fs-premium-pill { padding-inline: 13px; }
}

@media (max-width: 980px) {
  .fs-hero-title {
    font-size: clamp(48px, 9vw, 64px);
    max-width: 680px;
  }
}

@media (max-width: 720px) {
  .fs-shell,
  .fs-topbar,
  .admin-bar .fs-topbar {
    width: min(100% - 24px, 100%);
  }

  .fs-hero-title {
    font-size: clamp(42px, 11vw, 50px);
    line-height: 1;
    letter-spacing: -.035em;
  }

  .fs-hero-subtitle {
    font-size: 21px;
    line-height: 1.35;
  }

  .fs-hero-copy {
    font-size: 15px;
  }

  .fs-tool-card h3,
  .fs-tool-card h3 small {
    white-space: normal !important;
  }

  .fs-insight-card h3 {
    max-width: 92%;
    font-size: 26px;
  }
}


/* v7 cleanup: English-only defaults and earlier menu collapse */
.fs-brand-name { white-space: nowrap; }
.fs-menu a { text-transform: none; }
@media (max-width: 1320px) {
  .fs-menu-toggle { display: block; margin-left: auto; flex: 0 0 auto; }
}
@media (max-width: 520px) {
  .fs-nav { padding-inline: 12px; }
  .fs-brand-name { font-size: 18px; }
  .fs-kicker { font-size: 12px; }
  .fs-hero-title { font-size: clamp(36px, 11vw, 46px); }
  .fs-button { min-height: 48px; padding: 14px 20px; font-size: 14px; }
}


/* v8 responsive fix: keep the hero side-by-side on tablet / small desktop.
   The header can collapse to hamburger early, but the hero should not become a huge stacked layout until real mobile widths. */
@media (min-width: 821px) and (max-width: 1320px) {
  .fs-shell {
    width: min(100% - 56px, 1120px);
  }

  .fs-hero {
    padding-top: 46px;
    padding-bottom: 34px;
  }

  .fs-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.86fr);
    align-items: center;
    gap: clamp(18px, 3vw, 34px);
  }

  .fs-hero-copybox {
    max-width: 560px;
  }

  .fs-hero-title {
    max-width: 560px;
    font-size: clamp(48px, 5.1vw, 62px);
    line-height: .98;
    margin-top: 22px;
  }

  .fs-hero-subtitle {
    font-size: clamp(22px, 2.3vw, 27px);
    line-height: 1.22;
    letter-spacing: .09em;
  }

  .fs-hero-copy {
    max-width: 500px;
    font-size: 14.5px;
    line-height: 1.7;
  }

  .fs-hero-art {
    width: 100%;
    max-width: none;
    min-height: 340px;
    margin: 0;
    justify-self: end;
  }

  .fs-portrait-card {
    width: min(100%, 460px);
    aspect-ratio: 1.08 / 1;
  }

  .fs-orbit {
    width: 430px;
    height: 430px;
    right: -30px;
    top: -52px;
    transform: none;
  }

  .fs-float-note {
    right: -12px;
    top: 45%;
    font-size: 11px;
    transform: scale(.94);
    transform-origin: right center;
  }
}

@media (min-width: 821px) and (max-width: 980px) {
  .fs-shell {
    width: min(100% - 42px, 940px);
  }

  .fs-hero {
    padding-top: 40px;
  }

  .fs-hero-grid {
    grid-template-columns: minmax(390px, 1fr) minmax(300px, 360px);
    gap: 18px;
  }

  .fs-hero-title {
    font-size: clamp(42px, 5vw, 50px);
    max-width: 460px;
  }

  .fs-hero-subtitle {
    font-size: 22px;
    letter-spacing: .08em;
  }

  .fs-hero-copy {
    font-size: 14px;
    max-width: 430px;
  }

  .fs-button {
    min-height: 45px;
    padding: 13px 20px;
    font-size: 12px;
  }

  .fs-meta-row {
    font-size: 12px;
    margin-top: 13px;
  }

  .fs-hero-art {
    min-height: 305px;
  }

  .fs-portrait-card {
    width: 360px;
    aspect-ratio: 1.03 / 1;
    border-radius: 28px;
  }

  .fs-orbit {
    width: 360px;
    height: 360px;
    right: -18px;
    top: -38px;
  }

  .fs-float-note {
    right: -18px;
    top: 45%;
    transform: scale(.86);
  }
}

@media (max-width: 820px) {
  .fs-hero-grid {
    grid-template-columns: 1fr;
  }

  .fs-hero-art {
    margin-top: 8px;
  }
}

@media (max-width: 520px) {
  .fs-hero {
    padding-top: 34px;
  }

  .fs-hero-title {
    max-width: 100%;
  }

  .fs-hero-subtitle {
    letter-spacing: .04em;
  }

  .fs-hero-art {
    min-height: 270px;
  }

  .fs-portrait-card {
    width: min(100%, 390px);
    aspect-ratio: 1.04 / 1;
  }
}
