/* نظام العوائل والقبائل — Product marketing page (traditional: cream + deep teal + brown + gold) */
:root {
  --brand: #1f6b5c; --brand-600: #1d5c52; --brand-700: #174a42; --brand-soft: #e5f0ec;
  --teal: #1f6b5c; --deep: #173f39; --brown: #2b2118; --brown-2: #3a2c20;
  --gold: #c9a14a; --gold-light: #e6c97f; --gold-soft: #f6eedb;
  --cream: #faf6ee; --cream-2: #f3ead8;
  --text: #2b2118; --text-2: #6b5d4f; --muted: #a3988a; --border: #ebe3d0;
  --g-gold: linear-gradient(135deg, #e6c97f 0%, #c9a14a 50%, #a8842f 100%);
  --g-teal: linear-gradient(135deg, #1f6b5c 0%, #173f39 55%, #2b2118 100%);
  --sadu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M22 2 42 22 22 42 2 22Z'/%3E%3Cpath d='M22 11 33 22 22 33 11 22Z'/%3E%3C/g%3E%3Cpath d='M22 19l3 3-3 3-3-3z' fill='%23c9a14a' fill-opacity='.18'/%3E%3C/svg%3E");
  --dots: radial-gradient(circle, #2b2118 1.6px, transparent 2.1px) center/12px 8px repeat-x, #c9a14a;
}
html { overflow-x: clip; }
body { background: var(--cream); color: var(--text); }
svg.lucide { width: 20px; height: 20px; stroke-width: 2; flex-shrink: 0; }
section { scroll-margin-top: 84px; }
.container { max-width: 1240px; }
.btn { border-radius: 999px; padding: 12px 22px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-gold { background: var(--g-gold); color: var(--brown); font-weight: 800; box-shadow: 0 10px 24px rgba(201,161,74,.32); }
.btn-gold:hover { filter: brightness(1.06); color: var(--brown); }
.btn-glass { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-glass:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn-line { background: #fff; color: var(--teal); border: 1.5px solid #dcc38a; }
.btn-line:hover { background: var(--gold-soft); color: var(--brand-700); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: #7a5c1c; background: var(--gold-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; border: 1px dashed #dcc38a; }
.sec { padding: 96px 0; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin-bottom: 12px; }
.sec-head p { color: var(--text-2); font-size: 17px; margin: 0; }
.sec-head .orn { display: block; width: 120px; height: 6px; margin: 16px auto 0; background: radial-gradient(circle, #c9a14a 2px, transparent 2.6px) center/12px 6px repeat-x; }
.dots-band { height: 8px; background: var(--dots); }
.bg-white { background: #fffdf8; }
.bg-dark { background: var(--sadu), var(--g-teal); background-size: 44px 44px, auto; color: #fff; }

/* Header */
.nav-bar { position: fixed; top: 0; inset-inline: 0; z-index: 50; transition: .25s; }
.nav-bar .container { display: flex; align-items: center; gap: 18px; height: 76px; }
.nav-bar.scrolled { background: rgba(23,63,57,.95); backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.logo-fm { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; line-height: 1.15; white-space: nowrap; }
.logo-fm small { display: block; font-size: 11px; font-weight: 600; opacity: .7; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(145deg, #1f6b5c, #12352f); border: 1.5px solid rgba(201,161,74,.6); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); flex-shrink: 0; }
.brand-mark svg { color: var(--gold-light); width: 22px; height: 22px; }
.menu { display: flex; gap: 2px; margin-inline-start: 10px; }
.menu a { color: rgba(255,255,255,.8); font-weight: 600; font-size: 14px; padding: 8px 11px; border-radius: 999px; white-space: nowrap; }
.menu a:hover { color: #fff; background: rgba(255,255,255,.09); }
.nav-cta { margin-right: auto; display: flex; gap: 10px; align-items: center; }
.nav-burger { display: none; color: #fff; background: rgba(255,255,255,.1); border: 0; width: 42px; height: 42px; border-radius: 12px; cursor: pointer; place-items: center; }

/* Hero */
.hero { position: relative; color: #fff; padding: 140px 0 120px; overflow: hidden; background: var(--sadu), radial-gradient(60% 70% at 85% 10%, rgba(201,161,74,.25), transparent 60%), var(--g-teal); background-size: 44px 44px, auto, auto; }
.hero::after { content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 8px; background: var(--dots); }
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero .eyebrow { background: rgba(201,161,74,.16); color: var(--gold-light); border-color: rgba(201,161,74,.4); }
.hero h1 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; line-height: 1.3; margin-bottom: 18px; }
.hero h1 span { background: linear-gradient(90deg, #e6c97f, #f6e7bf, #c9a14a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 17.5px; color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: 28px; line-height: 1.9; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 30px; font-size: 14px; color: rgba(255,255,255,.78); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 17px; height: 17px; color: var(--gold-light); }

/* Site mock (echoes the family website) */
.mock-wrap { position: relative; padding: 20px 0; }
.site-mock { background: #faf6ee; border-radius: 18px; overflow: hidden; color: var(--text); box-shadow: 0 40px 100px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.12); transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); transition: transform .5s; }
.site-mock:hover { transform: none; }
.sm-bar { height: 32px; background: #ece4d2; display: flex; align-items: center; gap: 6px; padding: 0 14px; }
.sm-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfc3a8; }
.sm-bar span { margin-inline: auto; font-size: 11px; color: #7b6d5c; background: #fffdf8; padding: 2px 34px; border-radius: 6px; direction: ltr; }
.sm-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: #fffdf8; font-weight: 800; font-size: 14px; }
.sm-nav { display: flex; gap: 6px; padding: 7px 12px; background: #fffdf8; border-top: 1px solid #efe6d2; overflow: hidden; }
.sm-nav i { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.sm-nav i.on { background: var(--g-gold); }
.sm-hero { position: relative; text-align: center; color: #fff; padding: 22px 12px; background: var(--sadu), linear-gradient(90deg, #1f6b5c, #2b2118); background-size: 32px 32px, auto; }
.sm-hero::before, .sm-hero::after { content: ""; position: absolute; inset-inline: 0; height: 6px; background: radial-gradient(circle, #2b2118 1.3px, transparent 1.7px) center/10px 6px repeat-x, #c9a14a; }
.sm-hero::before { top: 0; } .sm-hero::after { bottom: 0; }
.sm-hero b { display: block; font-size: 16px; }
.sm-hero small { font-size: 11px; opacity: .8; }
.sm-body { padding: 12px; display: grid; gap: 10px; }
.sm-reg { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-radius: 14px; background: #fdf7e8; border: 1px solid #e6d3a3; border-top: 4px dotted #c9a14a; }
.sm-reg b { display: block; font-size: 12.5px; color: var(--teal); }
.sm-reg small { font-size: 10px; color: var(--text-2); }
.sm-reg em { font-style: normal; font-size: 11px; font-weight: 800; padding: 7px 14px; border-radius: 999px; background: var(--g-gold); white-space: nowrap; }
.sm-cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; }
.sm-h { font-size: 11.5px; font-weight: 800; border-right: 3px solid #c9a14a; padding-right: 6px; margin-bottom: 6px; }
.sm-ev { display: flex; align-items: center; gap: 8px; padding: 7px; border-radius: 10px; background: #fff; border: 1px solid #efe6d2; margin-bottom: 6px; }
.sm-ev .dt { width: 32px; height: 34px; border-radius: 8px; background: linear-gradient(160deg, #1f6b5c, #173f39); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; line-height: 1; flex-shrink: 0; }
.sm-ev b { font-size: 10.5px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-ev em { font-style: normal; font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: #f6eedb; border: 1px solid #e6d3a3; white-space: nowrap; }
.sm-g { background: #fff; border-radius: 10px; border-top: 3px solid #c9a14a; padding: 8px; font-size: 10.5px; margin-bottom: 6px; }
.sm-g b { display: block; font-size: 11px; }
.sm-g span { color: var(--text-2); font-size: 9.5px; }
.float-card { position: absolute; background: #fffdf8; color: var(--text); border-radius: 16px; padding: 14px 16px; box-shadow: 0 24px 60px rgba(0,0,0,.32); font-size: 13px; animation: float 5s ease-in-out infinite; z-index: 2; border-top: 3px solid #c9a14a; max-width: 270px; }
.float-card h5 { margin: 0 0 8px; font-size: 13.5px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.float-card small { color: var(--text-2); display: block; font-size: 11.5px; }
.fc-tree { top: -26px; left: -46px; }
.fc-gather { bottom: 34px; left: -60px; animation-delay: -2s; }
.fc-news { bottom: -36px; right: -18px; animation-delay: -3.5s; }
.ft { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ft-n { padding: 3px 10px; border-radius: 8px; border: 1.5px solid #dcc38a; font-size: 11px; font-weight: 800; background: #fff; white-space: nowrap; }
.ft-n.root { background: var(--g-teal); color: #fff; border-color: #c9a14a; }
.ft-row { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.ft-row .ft-n { font-size: 10px; padding: 2px 7px; }
.ft-row .more { background: var(--g-gold); border-color: transparent; }
.privacy-tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 10.5px; font-weight: 700; color: var(--teal); background: var(--brand-soft); padding: 3px 9px; border-radius: 999px; }
.privacy-tag svg { width: 12px; height: 12px; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Stats strip */
.stats { margin-top: -50px; position: relative; z-index: 3; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fffdf8; border-radius: 22px; box-shadow: 0 30px 60px rgba(43,33,24,.10); border: 1px solid var(--border); border-top: 4px solid #c9a14a; }
.stats-grid div { padding: 26px 18px; text-align: center; min-width: 0; }
.stats-grid div + div { border-right: 1px dashed var(--border); }
.stats-grid b { display: block; font-size: 34px; font-weight: 800; color: var(--teal); line-height: 1.2; }
.stats-grid span { color: var(--text-2); font-weight: 600; font-size: 14px; }

/* Modules (6 blocks) */
.modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.module { background: #fffdf8; border: 1px solid var(--border); border-radius: 22px; padding: 26px 24px; position: relative; overflow: hidden; transition: .2s; min-width: 0; }
.module::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: radial-gradient(circle, #c9a14a 1.6px, transparent 2px) center/9px 4px repeat-x; }
.module:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(43,33,24,.09); border-color: #dcc38a; }
.module .num { position: absolute; left: 20px; top: 18px; font-size: 44px; font-weight: 800; color: #f1e7cf; line-height: 1; }
.module .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--g-teal); color: var(--gold-light); margin-bottom: 16px; font-size: 24px; box-shadow: 0 10px 22px rgba(23,63,57,.22); }
.module h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.module p { color: var(--text-2); font-size: 14.5px; margin-bottom: 14px; }
.module ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.module li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.module li svg { width: 17px; height: 17px; color: var(--teal); margin-top: 3px; }

/* Plugins + term switcher */
.plug-wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.core-box { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; background: var(--sadu), var(--g-teal); background-size: 44px 44px, auto; color: #fff; margin-bottom: 14px; }
.core-box .ic { width: 48px; height: 48px; border-radius: 14px; background: rgba(201,161,74,.18); color: var(--gold-light); display: grid; place-items: center; flex-shrink: 0; }
.core-box b { display: block; font-size: 17px; }
.core-box small { opacity: .8; }
.plugins { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.plugin { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: #fffdf8; border: 1px solid var(--border); font-weight: 700; font-size: 14px; cursor: pointer; transition: .15s; user-select: none; min-width: 0; }
.plugin .pi { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--teal); display: grid; place-items: center; flex-shrink: 0; }
.plugin .pi svg { width: 17px; height: 17px; }
.plugin span.nm { flex: 1; min-width: 0; }
.plugin .tg { width: 34px; height: 20px; border-radius: 999px; background: var(--teal); position: relative; flex-shrink: 0; transition: .2s; }
.plugin .tg::after { content: ""; position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: .2s; }
.plugin.off { color: var(--muted); background: #f6f1e6; }
.plugin.off .pi { background: #eee6d4; color: var(--muted); }
.plugin.off .tg { background: #d9cfba; }
.plugin.off .tg::after { right: 17px; }
.term-box { background: #fffdf8; border: 1px solid var(--border); border-radius: 22px; padding: 22px; position: sticky; top: 96px; border-top: 4px solid #c9a14a; }
.term-box h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.term-box > p { color: var(--text-2); font-size: 14px; }
.term-seg { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0; }
.term-seg button { border: 1.5px solid #e3d3a8; background: #fff; color: var(--text); font: inherit; font-weight: 800; font-size: 14px; padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.term-seg button.on { background: var(--g-gold); border-color: transparent; }
.term-samples { display: grid; gap: 8px; }
.term-samples div { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--cream); font-size: 14px; font-weight: 700; border-right: 3px solid var(--teal); transition: background .3s; }
.term-samples div.flash { background: #fdf3d8; }
.term-samples svg { width: 17px; height: 17px; color: var(--teal); }

/* Privacy */
.privacy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.privacy h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; }
.privacy .lead { color: rgba(255,255,255,.8); font-size: 17px; }
.p-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.p-item { padding: 16px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.p-item svg { color: var(--gold-light); margin-bottom: 8px; }
.p-item b { display: block; font-size: 15px; margin-bottom: 4px; }
.p-item small { color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.7; display: block; }
.log-card { background: #fffdf8; color: var(--text); border-radius: 22px; padding: 20px; box-shadow: 0 30px 70px rgba(0,0,0,.35); border-top: 4px solid #c9a14a; }
.log-card h4 { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.log-card > small { color: var(--text-2); }
.log-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.log-row:last-of-type { border-bottom: 0; }
.log-row .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px; }
.log-row b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-row small { color: var(--muted); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-row .tag { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #fef3c7; color: #92400e; white-space: nowrap; }
.otp-demo { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 14px; background: var(--cream); flex-wrap: wrap; }
.otp-demo .boxes { display: flex; gap: 6px; direction: ltr; }
.otp-demo .boxes i { width: 34px; height: 40px; border-radius: 10px; background: #fff; border: 1.5px solid #dcc38a; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 17px; }
.otp-demo small { color: var(--text-2); font-size: 12.5px; flex: 1; min-width: 160px; }

/* Themes */
.theme-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 36px; align-items: center; }
.theme-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.theme-btn { border: 2px solid transparent; border-radius: 16px; padding: 8px; background: #fffdf8; box-shadow: 0 0 0 1px var(--border); cursor: pointer; font: inherit; text-align: center; transition: .15s; min-width: 0; }
.theme-btn i { display: block; height: 46px; border-radius: 11px; }
.theme-btn b { display: block; font-size: 13px; margin-top: 6px; }
.theme-btn.on { border-color: #c9a14a; box-shadow: 0 0 0 4px rgba(201,161,74,.18); }
.theme-extra { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.theme-extra span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: #fffdf8; border: 1px solid var(--border); font-size: 13px; font-weight: 700; }
.theme-extra svg { width: 15px; height: 15px; color: var(--teal); }
.mini-site { --p: #1f6b5c; --d: #2b2118; --g: #c9a14a; --c: #faf6ee; border-radius: 20px; overflow: hidden; background: var(--c); box-shadow: 0 30px 70px rgba(43,33,24,.16); border: 1px solid var(--border); transition: background .3s; }
.mini-site .ms-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: #fff; font-weight: 800; color: var(--d); }
.mini-site .ms-top small { font-size: 11px; color: var(--muted); font-weight: 600; direction: ltr; }
.mini-site .ms-nav { display: flex; gap: 6px; padding: 8px 14px; background: #fff; border-top: 1px solid #efe6d2; overflow: hidden; }
.mini-site .ms-nav i { font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 11px; border-radius: 999px; color: var(--d); white-space: nowrap; }
.mini-site .ms-nav i:first-child { background: var(--g); }
.mini-site .ms-hero { position: relative; text-align: center; color: #fff; padding: 26px 14px; background: var(--sadu), linear-gradient(90deg, var(--p), var(--d)); background-size: 34px 34px, auto; transition: background .3s; }
.mini-site .ms-hero::before, .mini-site .ms-hero::after { content: ""; position: absolute; inset-inline: 0; height: 6px; background: radial-gradient(circle, var(--d) 1.3px, transparent 1.7px) center/10px 6px repeat-x, var(--g); }
.mini-site .ms-hero::before { top: 0; } .mini-site .ms-hero::after { bottom: 0; }
.mini-site .ms-hero b { font-size: 18px; display: block; }
.mini-site .ms-body { padding: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mini-site .ms-card { background: #fff; border-radius: 12px; border-top: 3px solid var(--g); padding: 10px; display: flex; gap: 8px; align-items: center; min-width: 0; }
.mini-site .ms-card .dt { width: 34px; height: 36px; border-radius: 8px; background: var(--p); color: #fff; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.mini-site .ms-card b { font-size: 12px; color: var(--d); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-site .ms-btn { grid-column: 1 / -1; justify-self: center; font-size: 12px; font-weight: 800; padding: 8px 20px; border-radius: 999px; background: var(--g); color: var(--d); }

/* Tech strip */
.tech { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tech div { padding: 18px; border-radius: 18px; background: #fffdf8; border: 1px solid var(--border); display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.tech .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--gold-soft); color: #8a6a2a; display: grid; place-items: center; flex-shrink: 0; }
.tech b { display: block; font-size: 15px; }
.tech small { color: var(--text-2); font-size: 13px; line-height: 1.6; display: block; }

/* Screens gallery (CSS mocks) */
.screens-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.screens-tabs button { border: 1.5px solid #e3d3a8; background: #fffdf8; font: inherit; font-weight: 800; font-size: 14px; padding: 9px 18px; border-radius: 999px; cursor: pointer; color: var(--text); }
.screens-tabs button.on { background: var(--g-gold); border-color: transparent; }
.screen { display: none; max-width: 980px; margin: 0 auto; border-radius: 20px; overflow: hidden; background: #faf6ee; box-shadow: 0 30px 70px rgba(43,33,24,.16); border: 1px solid var(--border); }
.screen.on { display: block; animation: fadeUp .35s ease; }
.scr-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px; background: #fffdf8; font-weight: 800; }
.scr-nav { display: flex; gap: 6px; justify-content: center; padding: 8px; background: #fffdf8; border-top: 1px solid #efe6d2; overflow-x: auto; scrollbar-width: none; }
.scr-nav i { font-style: normal; font-size: 12.5px; font-weight: 700; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.scr-nav i.on { background: var(--g-gold); }
.scr-band { height: 7px; background: var(--dots); }
.scr-body { padding: 22px; }
.scr-title { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.scr-hero { text-align: center; color: #fff; padding: 26px; background: var(--sadu), linear-gradient(90deg, #1f6b5c, #2b2118); background-size: 40px 40px, auto; }
.scr-hero b { font-size: 20px; display: block; }
.scr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.scr-ev { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid #efe6d2; min-width: 0; }
.scr-ev .dt { width: 46px; height: 50px; border-radius: 10px; background: linear-gradient(160deg, #1f6b5c, #173f39); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; flex-shrink: 0; }
.scr-ev .dt small { font-size: 9px; opacity: .85; }
.scr-ev .dt b { font-size: 17px; }
.scr-ev .tx { flex: 1; min-width: 0; }
.scr-ev .tx b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr-ev .tx small { color: var(--text-2); font-size: 12px; }
.scr-ev em { font-style: normal; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: #f6eedb; border: 1px solid #e6d3a3; white-space: nowrap; }
.scr-tree { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 10px 0 6px; overflow-x: auto; }
.scr-tree .lvl { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.scr-tree .nd { padding: 9px 16px; border-radius: 12px; border: 2px solid #dcc38a; background: #fff; font-weight: 800; font-size: 13px; white-space: nowrap; }
.scr-tree .nd.root { background: var(--g-teal); color: #fff; border-color: #c9a14a; }
.scr-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.scr-cal span { aspect-ratio: 1.3; border-radius: 10px; background: #fff; border: 1px solid #efe6d2; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; position: relative; }
.scr-cal span small { font-size: 9px; color: var(--muted); font-weight: 600; }
.scr-cal span.h { font-weight: 800; background: none; border: 0; color: var(--text-2); font-size: 12px; aspect-ratio: auto; padding: 4px 0; }
.scr-cal span.ev { background: #fdf7e8; border-color: #e6d3a3; }
.scr-cal span.ev::after { content: ""; position: absolute; bottom: 6px; width: 6px; height: 6px; border-radius: 50%; background: #c9a14a; }
.scr-cal span.today { background: var(--teal); color: #fff; border-color: var(--teal); }
.scr-cal span.today small { color: rgba(255,255,255,.8); }
.scr-cal span.mute { opacity: .35; }
.scr-gcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.scr-gc { background: #fff; border-radius: 16px; border-top: 3px solid #c9a14a; padding: 14px; min-width: 0; }
.scr-gc .cup { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(160deg, #1f6b5c, #173f39); display: grid; place-items: center; margin-bottom: 8px; }
.scr-gc b { display: block; font-size: 14px; margin-bottom: 6px; }
.scr-gc .pr { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #f6eedb; border: 1px solid #e6d3a3; margin-bottom: 6px; }
.scr-gc small { display: block; color: var(--text-2); font-size: 12px; }
.scr-news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.scr-nc { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #efe6d2; min-width: 0; }
.scr-nc .cv { height: 90px; display: grid; place-items: center; font-size: 34px; background: linear-gradient(135deg, #f3ead8, #fdf7e8); }
.scr-nc div.tx { padding: 12px; }
.scr-nc .cat { font-size: 11px; font-weight: 800; color: var(--teal); }
.scr-nc b { display: block; font-size: 13.5px; line-height: 1.6; }
.scr-nc .pin { font-size: 10.5px; color: #8a6a2a; font-weight: 800; }

/* Roles */
.roles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.role { background: #fffdf8; border: 1px solid var(--border); border-radius: 20px; padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; transition: .2s; position: relative; overflow: hidden; min-width: 0; }
.role::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--c), #c9a14a); }
.role:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(43,33,24,.09); }
.role .av { width: 52px; height: 52px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; outline: 2px dotted #c9a14a; outline-offset: 2px; }
.role b { font-size: 15px; }
.role .rt { font-size: 12.5px; font-weight: 800; color: var(--c); }
.role ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 13px; color: var(--text-2); flex: 1; }
.role li::before { content: "◆"; color: #c9a14a; font-size: 9px; margin-left: 6px; vertical-align: 2px; }
.role .btn { padding: 9px 14px; font-size: 13px; justify-content: center; }

/* PWA phone */
.pwa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.pwa-list { display: grid; gap: 14px; margin-top: 22px; }
.pwa-list div { display: flex; gap: 12px; align-items: flex-start; }
.pwa-list .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--teal); display: grid; place-items: center; flex-shrink: 0; }
.pwa-list b { display: block; }
.pwa-list small { color: var(--text-2); font-size: 14px; }
.phone { width: 290px; max-width: 100%; margin: 0 auto; border-radius: 44px; background: #1a1410; padding: 12px; box-shadow: 0 40px 80px rgba(43,33,24,.28); position: relative; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; border-radius: 999px; background: #000; z-index: 3; }
.ph-screen { border-radius: 34px; overflow: hidden; background: #faf6ee; height: 560px; position: relative; display: flex; flex-direction: column; }
.ph-status { height: 50px; flex-shrink: 0; background: #fffdf8; }
.ph-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; background: #fffdf8; font-weight: 800; font-size: 15px; }
.ph-hero { position: relative; text-align: center; color: #fff; padding: 18px 10px; background: var(--sadu), linear-gradient(90deg, #1f6b5c, #2b2118); background-size: 30px 30px, auto; font-size: 13px; font-weight: 800; }
.ph-hero::after { content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 5px; background: radial-gradient(circle, #2b2118 1.2px, transparent 1.6px) center/9px 5px repeat-x, #c9a14a; }
.ph-body { padding: 12px; display: grid; gap: 8px; }
.ph-push { position: absolute; top: 56px; inset-inline: 10px; background: rgba(255,255,255,.96); border-radius: 18px; padding: 10px 12px; box-shadow: 0 14px 30px rgba(0,0,0,.18); display: flex; gap: 10px; align-items: center; font-size: 12px; z-index: 2; animation: pushIn 1s .4s both; }
.ph-push .ap { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(145deg, #1f6b5c, #12352f); display: grid; place-items: center; flex-shrink: 0; }
.ph-push .ap svg { width: 18px; height: 18px; color: #e6c97f; }
.ph-push b { display: block; font-size: 12px; }
.ph-push small { color: var(--text-2); font-size: 11px; }
.ph-install { position: absolute; bottom: 12px; inset-inline: 10px; background: #fffdf8; border: 1px solid #e6d3a3; border-radius: 16px; padding: 10px; display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; box-shadow: 0 10px 24px rgba(43,33,24,.14); }
.ph-install em { font-style: normal; padding: 5px 12px; border-radius: 999px; background: var(--g-gold); font-size: 11px; font-weight: 800; white-space: nowrap; }
@keyframes pushIn { from { opacity: 0; transform: translateY(-16px); } }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 900px; margin: 0 auto; }
.price { background: #fffdf8; border: 1px solid var(--border); border-radius: 24px; padding: 30px; position: relative; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.price.featured { background: var(--sadu), var(--g-teal); background-size: 44px 44px, auto; color: #fff; border: 0; box-shadow: 0 30px 60px rgba(23,63,57,.3); }
.price .tag { position: absolute; top: 18px; left: 18px; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; background: var(--g-gold); color: var(--brown); }
.price h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.price .sub { font-size: 14px; color: var(--text-2); }
.price.featured .sub { color: rgba(255,255,255,.75); }
.price .amt { font-size: 50px; font-weight: 800; line-height: 1.1; margin: 18px 0 4px; }
.price .amt small { font-size: 17px; font-weight: 700; opacity: .75; }
.price .once { font-size: 13px; font-weight: 700; color: var(--teal); }
.price.featured .once { color: var(--gold-light); }
.price ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; flex: 1; }
.price li { display: flex; gap: 8px; font-size: 14.5px; }
.price li svg { width: 18px; height: 18px; color: var(--teal); margin-top: 3px; }
.price.featured li svg { color: var(--gold-light); }
.price-note { text-align: center; color: var(--text-2); font-size: 14px; margin-top: 22px; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fffdf8; border: 1px solid var(--border); border-radius: 18px; padding: 0 22px; transition: .2s; }
.faq details[open] { border-color: #dcc38a; box-shadow: 0 14px 30px rgba(43,33,24,.06); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-soft); color: #7a5c1c; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; transition: .2s; }
.faq details[open] summary::after { content: "−"; background: var(--teal); color: #fff; }
.faq details p { color: var(--text-2); padding-bottom: 18px; margin: 0; line-height: 1.9; }

/* Family website promo */
.promo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; background: #fffdf8; border: 1px solid var(--border); border-radius: 28px; padding: 40px; position: relative; overflow: hidden; }
.promo::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: var(--dots); }
.promo h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.promo p { color: var(--text-2); }
.promo-pages { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.promo-pages span { padding: 6px 14px; border-radius: 999px; background: var(--cream); border: 1px solid var(--border); font-size: 13px; font-weight: 700; }
.promo-img { border-radius: 20px; min-height: 300px; background: linear-gradient(180deg, rgba(23,63,57,.15), rgba(43,33,24,.75)), url("https://images.unsplash.com/photo-1547234935-80c7145ec969?w=1200&q=65&auto=format&fit=crop") center/cover, var(--deep); position: relative; display: flex; align-items: flex-end; padding: 22px; color: #fff; }
.promo-img b { font-size: 22px; display: block; }
.promo-img small { opacity: .85; }

/* CTA */
.cta { border-radius: 28px; padding: 54px 40px; text-align: center; color: #fff; background: var(--sadu), radial-gradient(60% 80% at 50% 0%, rgba(201,161,74,.3), transparent 60%), var(--g-teal); background-size: 44px 44px, auto, auto; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 8px; background: var(--dots); }
.cta h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
.cta p { color: rgba(255,255,255,.82); font-size: 17px; max-width: 640px; margin: 0 auto 26px; }
.cta .row-c { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 36px; align-items: start; }
.contact-info { display: grid; gap: 14px; margin-top: 18px; }
.contact-info div { display: flex; gap: 12px; align-items: center; }
.contact-info .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); color: #8a6a2a; display: grid; place-items: center; flex-shrink: 0; }
.contact-form { background: #fffdf8; border: 1px solid var(--border); border-radius: 24px; padding: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; border-top: 4px solid #c9a14a; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { display: block; font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; font: inherit; font-size: 14px; background: #fff; color: var(--text); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--brand-soft); }

/* Footer */
.site-foot { background: var(--brown); color: #c9bba6; padding: 0 0 26px; margin-top: 96px; }
.site-foot .dots-band { margin-bottom: 44px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 30px; }
.site-foot h5 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.site-foot .foot-grid a { display: block; color: #c9bba6; font-size: 14px; padding: 4px 0; }
.site-foot .foot-grid a:hover { color: var(--gold-light); }
.foot-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.foot-pills a { display: inline-block !important; padding: 6px 14px !important; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); font-size: 13px !important; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.foot-bottom a { color: #c9bba6; display: inline-flex; align-items: center; gap: 8px; }
.foot-bottom img { width: 20px; height: 20px; }
.ver { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(201,161,74,.4); color: var(--gold-light); font-weight: 700; font-size: 12px; }

/* Toast */
.toast-l { position: fixed; bottom: 24px; left: 24px; z-index: 200; background: var(--deep); color: #fff; padding: 14px 18px; border-radius: 16px; display: flex; align-items: center; gap: 10px; box-shadow: 0 20px 40px rgba(0,0,0,.25); animation: fadeUp .25s ease; max-width: calc(100vw - 32px); border-right: 4px solid #c9a14a; }
.toast-l svg { color: var(--gold-light); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

/* Responsive */
@media (max-width: 1180px) {
  .menu a { padding: 8px 8px; font-size: 13.5px; }
  .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .menu { display: none; position: absolute; top: 76px; inset-inline: 12px; flex-direction: column; background: var(--deep); border-radius: 18px; padding: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.3); margin: 0; }
  .menu.open { display: flex; }
  .menu a { padding: 11px 14px; font-size: 15px; }
  .nav-burger { display: grid; }
  .hero .container { grid-template-columns: minmax(0, 1fr); }
  .mock-wrap { max-width: 640px; margin: 20px auto 0; width: 100%; }
  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plug-wrap, .privacy, .theme-wrap, .pwa, .promo, .contact { grid-template-columns: minmax(0, 1fr); }
  .term-box { position: static; }
  .tech { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sec { padding: 68px 0; }
  .nav-cta .btn-glass { display: none; }
  .logo-fm small { display: none; }
  .hero { padding: 116px 0 96px; }
  .site-mock { transform: none; }
  .float-card { position: static; max-width: none; margin-top: 12px; animation: none; }
  .mock-wrap { padding: 0; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid div:nth-child(3) { border-right: 0; }
  .stats-grid div:nth-child(n+3) { border-top: 1px dashed var(--border); }
  .modules, .tech, .pricing, .p-list { grid-template-columns: minmax(0, 1fr); }
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scr-grid, .scr-gcards, .scr-news { grid-template-columns: minmax(0, 1fr); }
  .scr-body { padding: 14px; }
  .scr-cal { gap: 4px; }
  .scr-cal span { font-size: 11px; border-radius: 7px; }
  .promo { padding: 24px 18px; }
  .cta { padding: 40px 20px; }
  .contact-form { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .sm-cols { grid-template-columns: minmax(0, 1fr); }
  .toast-l { left: 16px; right: 16px; bottom: 16px; }
}
@media (max-width: 480px) {
  .nav-bar .container { gap: 10px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-gold { padding: 9px 14px; font-size: 13px; }
  .nav-cta .btn-gold svg { display: none; }
  .logo-fm { font-size: 14px; gap: 8px; min-width: 0; }
  .logo-fm > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-mark svg { width: 19px; height: 19px; }
  .hero-actions .btn { flex: 1; justify-content: center; }
}
@media (max-width: 420px) {
  .roles { grid-template-columns: minmax(0, 1fr); }
  .theme-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Product logo (Family CMS) */
.brand-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-mark.has-logo { padding: 3px; background: #fffdf7; border: 1.5px solid rgba(201,161,74,.55); }
