/* LegaLex — marka teması (uygulama ile uyumlu) */
:root {
  --brand-primary: #1a5490;
  --brand-primary-hover: #144272;
  --brand-primary-light: #e8f0f8;
  --brand-navy: #1b2d4a;
  --brand-navy-dark: #0f1c32;
  --bg-app: #eef1f6;
  --bg-surface: #ffffff;
  --text-primary: #1a2332;
  --text-secondary: #4a5568;
  --success: #1d7a4a;
  --line: rgba(27, 45, 74, 0.12);
  --accent-line: #60a5fa;
  --radius: 10px;
  --shadow: 0 12px 36px rgba(15, 28, 50, 0.12);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --header-h: 56px;
  --text-sm: 0.8125rem;
  --text-base: 0.875rem;
  --text-lg: 1rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.625rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-app);
  font-size: var(--text-base);
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(1080px, calc(100% - 1.75rem)); margin-inline: auto; }

.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100;
  background: linear-gradient(90deg, var(--brand-primary), var(--accent-line));
  transform-origin: left; transform: scaleX(0);
}

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(15, 28, 50, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background .25s, box-shadow .25s;
}
.site-header.is-scrolled {
  background: rgba(15, 28, 50, 0.92);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: .75rem; color: #fff;
}
.brand strong {
  display: block; font-family: var(--font-display); font-size: .92rem; letter-spacing: .02em;
}
.brand small {
  display: block; font-size: .65rem; opacity: .7; margin-top: .05rem;
}
.nav { display: flex; align-items: center; gap: .85rem; }
.nav a {
  color: rgba(255,255,255,.82); font-weight: 600; font-size: .8125rem;
  transition: color .2s;
}
.nav a:hover { color: #fff; }
.nav-cta {
  padding: .4rem .85rem; border-radius: 8px; border: 0; cursor: pointer;
  background: var(--brand-primary); color: #fff !important; font-weight: 700; font-size: .8125rem;
}
.nav-cta:hover { background: var(--brand-primary-hover); }
.footer-linkbtn {
  display: block; border: 0; background: transparent; padding: 0; cursor: pointer;
  color: var(--text-secondary); font-size: .9rem; margin: .3rem 0; text-align: left;
}
.footer-linkbtn:hover { color: var(--brand-primary); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  flex-direction: column; justify-content: center; gap: 6px; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 22px; background: #fff; margin-inline: auto;
  transition: transform .2s, opacity .2s;
}

/* Hero */
.hero {
  position: relative;
  min-height: auto;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 2rem) 0 0;
  color: #fff;
  background: linear-gradient(145deg, #0f1c32 0%, #1b2d4a 55%, #152438 100%);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(40px); opacity: .45;
  animation: float 12s ease-in-out infinite;
}
.hero-orb--1 {
  width: 420px; height: 420px; top: -80px; right: -60px;
  background: radial-gradient(circle, #2563a8, transparent 70%);
}
.hero-orb--2 {
  width: 320px; height: 320px; bottom: 10%; left: -80px;
  background: radial-gradient(circle, #60a5fa55, transparent 70%);
  animation-delay: -4s;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
.hero-grid-layout {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem;
  align-items: center; padding: 1rem 0 3.5rem;
}
.hero-brand {
  margin: 0 0 .35rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.hero h1 {
  margin: 0 0 .75rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255,255,255,.92);
  max-width: 28rem;
}
.hero-lead {
  margin: 0 0 1.1rem;
  font-size: var(--text-base);
  color: rgba(255,255,255,.72);
  max-width: 28rem;
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-aside { min-width: 0; }

.hero-app-frame {
  max-width: 520px;
  margin-left: auto;
  border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  box-shadow: 0 28px 70px rgba(0,0,0,.4);
  animation: float 10s ease-in-out infinite;
}
.haf-bar {
  display: flex; align-items: center; gap: .35rem;
  padding: .6rem .85rem; background: rgba(0,0,0,.28);
}
.haf-bar span { width: 9px; height: 9px; border-radius: 50%; background: #6b7c93; }
.haf-bar span:first-child { background: #e07a6a; }
.haf-bar span:nth-child(2) { background: #d4b35a; }
.haf-bar span:nth-child(3) { background: #5fad7a; }
.haf-bar em { margin-left: .55rem; font-style: normal; font-size: .78rem; opacity: .75; font-weight: 600; }
.haf-body {
  display: grid; grid-template-columns: 148px 1fr;
  min-height: 340px; background: #eef1f6;
}
.haf-side {
  background: var(--brand-navy); color: #fff;
  display: flex; flex-direction: column; gap: .55rem; padding: .85rem .65rem;
}
.haf-brand {
  display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem;
  padding-bottom: .55rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.haf-brand strong { display: block; font-size: .78rem; line-height: 1.2; }
.haf-brand small { display: block; font-size: .58rem; opacity: .55; }
.haf-logo {
  width: 34px; height: 34px; border-radius: 8px; display: block; object-fit: cover; flex-shrink: 0;
}
.haf-nav { display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.haf-nav span {
  padding: .38rem .5rem; border-radius: 8px; font-size: .68rem; color: rgba(255,255,255,.72);
}
.haf-nav span.on { background: var(--brand-primary); color: #fff; font-weight: 700; }
.haf-nav .haf-sec {
  margin-top: .45rem; padding: .2rem .5rem; font-size: .55rem; letter-spacing: .1em;
  text-transform: uppercase; opacity: .4; font-weight: 700; pointer-events: none;
}
.haf-user {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: .65rem; font-size: .72rem;
}
.haf-user strong { display: block; }
.haf-user small { opacity: .55; }
.haf-main { padding: .85rem .9rem; color: var(--text-primary); min-width: 0; }
.haf-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem;
  margin-bottom: .7rem;
}
.haf-top strong { display: block; font-size: .92rem; font-family: var(--font-display); }
.haf-top small { color: var(--text-secondary); font-size: .72rem; }
.haf-pill {
  background: #e7f6ee; color: var(--success); font-size: .68rem; font-weight: 800;
  padding: .3rem .55rem; border-radius: 999px; white-space: nowrap;
}
.haf-welcome {
  background: #fff; border-radius: 12px; padding: .85rem .95rem;
  border: 1px solid var(--line); margin-bottom: .7rem;
}
.haf-welcome .kicker {
  display: block; font-size: .62rem; letter-spacing: .1em; font-weight: 800;
  color: var(--brand-primary); margin-bottom: .25rem;
}
.haf-welcome strong { display: block; font-family: var(--font-display); font-size: .95rem; }
.haf-welcome p { margin: .3rem 0 0; color: var(--text-secondary); font-size: .8rem; }
.haf-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-bottom: .7rem;
}
.haf-stats div {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .5rem;
  display: flex; flex-direction: column; gap: .1rem;
}
.haf-stats small {
  font-size: .58rem; color: var(--text-secondary); text-transform: uppercase; font-weight: 800;
}
.haf-stats b { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.1; }
.haf-stats em { font-style: normal; color: var(--text-secondary); font-size: .65rem; }
.haf-panels { display: grid; grid-template-columns: 1.1fr .9fr; gap: .55rem; }
.haf-panels > div {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .75rem;
}
.haf-panels h4 {
  margin: 0 0 .45rem; font-family: var(--font-display); font-size: .78rem;
}
.haf-panels ul { list-style: none; margin: 0; padding: 0; }
.haf-panels li {
  font-size: .74rem; padding: .35rem 0; border-top: 1px solid var(--line);
  color: var(--text-secondary);
}
.haf-panels li:first-child { border-top: 0; }
.haf-panels b { color: var(--brand-primary); margin-right: .35rem; }

.demo-modal-panel {
  width: min(440px, 100%);
  padding: 0;
  overflow: hidden;
  max-height: min(92vh, 720px);
  overflow-y: auto;
}
.demo-card {
  background: #fff; color: var(--text-primary);
  padding: 1.4rem 1.3rem 1.25rem;
}
.demo-card--modal { box-shadow: none; border: 0; border-radius: 0; }
.demo-card-head img { display: block; margin-bottom: .55rem; border-radius: 10px; }
.demo-card-head h2 {
  font-family: var(--font-display); font-size: 1.3rem; margin: .45rem 0 .35rem; color: var(--brand-navy);
}
.demo-card-head p { margin: 0 0 .9rem; color: var(--text-secondary); font-size: .88rem; }
.demo-card label {
  display: block; font-size: .78rem; font-weight: 700; color: var(--text-secondary);
  margin-bottom: .65rem;
}
.demo-card input[type="text"],
.demo-card input[type="email"],
.demo-card input[type="tel"] {
  display: block; width: 100%; margin-top: .3rem;
  border: 1px solid var(--line); border-radius: 10px; padding: .75rem .85rem;
  background: #f7f9fc; color: var(--text-primary);
}
.demo-card input:focus { outline: 2px solid rgba(26,84,144,.25); border-color: var(--brand-primary); }
.check-line {
  display: flex !important; gap: .55rem; align-items: flex-start; font-weight: 500 !important;
  font-size: .78rem !important; line-height: 1.4;
}
.check-line input { margin-top: .2rem; }
.check-line a { color: var(--brand-primary); text-decoration: underline; }
.btn-block { width: 100%; margin-top: .25rem; }
.demo-note { margin: .65rem 0 0; font-size: .85rem; color: var(--success); font-weight: 600; }
.demo-note.is-error { color: var(--danger); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .5rem .95rem; border-radius: 999px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover { background: var(--brand-primary-hover); }
.btn-ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.28);
}
.btn-ghost:hover { border-color: #fff; }

.hero-marquee {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.15);
  overflow: hidden;
  padding: .9rem 0;
}
.marquee-track {
  display: flex; gap: 2.5rem; width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display); font-weight: 600; font-size: .85rem;
  letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55);
}
.marquee-track span { white-space: nowrap; }

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(24px); }
}

/* Sections */
.section-head { margin-bottom: 2rem; }
.eyebrow {
  font-family: var(--font-display); font-size: .75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand-primary); margin: 0 0 .5rem;
}
.section-head h2, .ai-copy h2, .cta-inner h2 {
  font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  margin: 0 0 .5rem; letter-spacing: -.02em;
}
.section-sub { color: var(--text-secondary); max-width: 36rem; margin: 0; font-size: .875rem; }

.banner-section, .modules-section { padding: 3rem 0; }
.demo-section { padding: 3rem 0; background: #e4e9f1; }

/* Banner slider */
.banner-slider {
  position: relative;
  background: var(--bg-surface);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 340px;
}
.banner-slides { position: relative; min-height: 340px; }
.banner-slide {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1.1fr .9fr;
  opacity: 0; pointer-events: none;
  transform: translateX(24px);
  transition: opacity .45s ease, transform .45s ease;
  padding: 2.25rem;
  gap: 1.5rem;
}
.banner-slide.is-active {
  opacity: 1; pointer-events: auto; transform: none; position: relative;
}
.banner-copy h3 {
  font-family: var(--font-display); font-size: 1.8rem; margin: .6rem 0 .75rem;
}
.banner-copy p { color: var(--text-secondary); margin: 0 0 1rem; }
.banner-copy ul { margin: 0; padding-left: 1.1rem; color: var(--text-secondary); }
.banner-copy li { margin: .35rem 0; }
.pill {
  display: inline-block; padding: .3rem .7rem; border-radius: 999px;
  background: var(--brand-primary-light); color: var(--brand-primary);
  font-size: .75rem; font-weight: 700; letter-spacing: .04em;
}
.pill--ai { background: #dceaf8; color: #144272; }
.pill--soft { background: #e7f6ee; color: var(--success); }
.banner-visual {
  border-radius: var(--radius);
  background: linear-gradient(145deg, #0f1c32, #1b2d4a);
  min-height: 240px;
  position: relative; overflow: hidden;
  padding: 1rem;
  display: flex; align-items: stretch;
}
.mini-app {
  flex: 1; display: grid; grid-template-columns: 88px 1fr;
  border-radius: 12px; overflow: hidden;
  background: var(--bg-app); box-shadow: 0 16px 40px rgba(0,0,0,.35);
  animation: screenIn .5s ease;
}
.mini-app-side {
  background: var(--brand-navy); color: rgba(255,255,255,.75);
  padding: .7rem .5rem; display: flex; flex-direction: column; gap: .35rem; font-size: .68rem;
}
.mini-ll {
  width: 30px; height: 30px; border-radius: 8px; margin-bottom: .35rem;
  display: block; object-fit: cover;
}
.mini-app-side span { padding: .3rem .35rem; border-radius: 6px; }
.mini-app-side span.on { background: var(--brand-primary); color: #fff; font-weight: 700; }
.mini-app-main { padding: .65rem .75rem; }
.mini-app-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .72rem; margin-bottom: .5rem; color: var(--text-primary);
}
.mini-app-top em {
  font-style: normal; background: #e7f6ee; color: var(--success);
  padding: .15rem .4rem; border-radius: 999px; font-weight: 800; font-size: .62rem;
}
.mini-welcome {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: .55rem .65rem; font-size: .8rem; font-weight: 700; margin-bottom: .5rem;
}
.mini-pulse { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; margin-bottom: .5rem; }
.mini-pulse div {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .4rem;
}
.mini-pulse small {
  display: block; font-size: .58rem; text-transform: uppercase; font-weight: 800; color: var(--text-secondary);
}
.mini-pulse strong { font-family: var(--font-display); font-size: 1rem; }
.mini-cards { display: grid; gap: .3rem; }
.mini-cards i { display: block; height: 28px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.mini-chat { display: flex; flex-direction: column; gap: .45rem; }
.mini-chat .cbot, .mini-chat .cuser {
  padding: .55rem .65rem; border-radius: 10px; font-size: .75rem; max-width: 92%;
}
.mini-chat .cbot { background: var(--brand-primary-light); color: var(--brand-navy); }
.mini-chat .cuser { background: var(--brand-navy); color: #fff; align-self: flex-end; }
.mini-agenda { display: flex; flex-direction: column; gap: .45rem; }
.mini-agenda div {
  display: flex; gap: .55rem; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: .55rem .65rem; font-size: .78rem;
}
.mini-agenda b { color: var(--brand-primary); min-width: 3.2rem; }
.banner-controls {
  display: flex; align-items: center; gap: .5rem;
  padding: 0 2rem 1.5rem; position: relative; z-index: 2;
}
.banner-dot {
  width: 10px; height: 10px; border-radius: 50%; border: 0;
  background: #c5d0de; cursor: pointer;
}
.banner-dot.is-active { background: var(--brand-primary); transform: scale(1.2); }
.banner-nav {
  margin-left: auto; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1.2rem;
}
.banner-nav + .banner-nav { margin-left: .35rem; }

/* App shell demo */
.app-shell {
  display: grid;
  grid-template-columns: 188px 1fr;
  height: min(560px, 72vh);
  max-width: 980px;
  margin-inline: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(27,45,74,.15);
  background: var(--bg-app);
  font-size: 12px;
}
.app-side {
  background: var(--brand-navy);
  color: #fff;
  display: flex; flex-direction: column;
  padding: .55rem .4rem .55rem;
  min-height: 0;
}
.app-side-brand {
  display: flex; gap: .45rem; align-items: center;
  padding: .35rem .45rem .55rem; border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: .35rem;
}
.app-ll {
  width: 28px; height: 28px; border-radius: 7px;
  display: block; object-fit: cover;
}
.app-side-brand strong { display: block; font-size: .72rem; }
.app-side-brand small { opacity: .65; font-size: .55rem; }
.app-nav { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: .08rem; min-height: 0; }
.app-nav-label {
  margin: .45rem .4rem .12rem; font-size: .55rem; letter-spacing: .1em;
  text-transform: uppercase; opacity: .45; font-weight: 700;
}
.app-nav-item {
  display: flex; align-items: center; gap: .4rem;
  border: 0; background: transparent; color: rgba(255,255,255,.82);
  text-align: left; padding: .38rem .45rem; border-radius: 7px; cursor: pointer;
  transition: background .2s, color .2s; font-size: .68rem; font-weight: 600;
  line-height: 1.2;
}
.app-nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.app-nav-item.is-active {
  background: var(--brand-primary); color: #fff; font-weight: 700;
}
.app-nav-item .ico {
  width: 14px; height: 14px; flex-shrink: 0; opacity: .9;
  display: block;
}
.app-side-user {
  margin-top: .75rem; padding: .85rem .7rem 0;
  border-top: 1px solid rgba(255,255,255,.08); font-size: .8rem;
}
.app-side-user strong { display: block; }
.app-side-user span { opacity: .55; font-size: .72rem; }

.app-main { display: flex; flex-direction: column; min-width: 0; background: var(--bg-app); }
.app-top {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .45rem .75rem; background: #fff; border-bottom: 1px solid var(--line);
}
.app-top-left { min-width: 0; }
.app-page-title {
  font-family: var(--font-display); font-size: .85rem; font-weight: 700;
  color: var(--text-primary); line-height: 1.2;
}
.app-breadcrumb {
  margin-top: .1rem; font-size: .62rem; color: var(--text-secondary);
}
.app-status { display: flex; gap: .4rem; flex-wrap: wrap; }
.status-pill {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .22rem .5rem; border-radius: 999px; font-size: .62rem; font-weight: 700;
  background: #e7f6ee; color: var(--success);
}
.status-pill i {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 3px rgba(29,122,74,.15);
}
.status-pill--soft { background: #fff; border: 1px solid var(--line); color: var(--text-secondary); }

.app-stage { padding: .7rem .8rem .85rem; flex: 1; overflow: auto; position: relative; min-height: 0; }
.screen { display: none; animation: screenIn .35s ease; }
.screen.is-active { display: block; }
@keyframes screenIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.screen-head {
  display: flex; justify-content: space-between; gap: .75rem; align-items: flex-start;
  margin-bottom: .65rem;
}
.screen-head h3 {
  font-family: var(--font-display); margin: 0 0 .15rem; font-size: .95rem;
}
.screen-head p { margin: 0; color: var(--text-secondary); font-size: .72rem; }
.mini-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 7px;
  padding: .32rem .6rem; font-weight: 700; cursor: pointer; font-size: .68rem;
  transition: background .2s, border-color .2s, transform .15s;
}
.mini-btn:hover { border-color: var(--brand-primary); transform: translateY(-1px); }
.mini-btn--primary { background: var(--brand-navy); color: #fff; border-color: transparent; }

.welcome-banner {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  background: #fff; border-radius: var(--radius); padding: 1.15rem 1.25rem;
  border: 1px solid var(--line); margin-bottom: 1rem;
}
.welcome-banner .kicker {
  display: block; font-size: .68rem; letter-spacing: .12em; font-weight: 800;
  color: var(--brand-primary); margin-bottom: .25rem;
}
.welcome-banner strong { font-family: var(--font-display); font-size: .85rem; }
.welcome-banner p { margin: .25rem 0 0; color: var(--text-secondary); font-size: .72rem; }
.welcome-actions { display: flex; flex-direction: column; gap: .45rem; }

.pulse-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  margin-bottom: 1rem; overflow: hidden;
}
.pulse-item {
  padding: .9rem 1rem; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .15rem;
}
.pulse-item:last-child { border-right: 0; }
.pulse-item span {
  font-size: .68rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-secondary);
}
.pulse-item strong { font-family: var(--font-display); font-size: 1.05rem; }
.pulse-item small { color: var(--text-secondary); font-size: .65rem; }

.dash-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; }
.dash-panel {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 1rem;
}
.dash-panel h4 { margin: 0 0 .75rem; font-family: var(--font-display); font-size: .95rem; }
.hearing-list, .notify-list { list-style: none; margin: 0; padding: 0; }
.hearing-list li, .notify-list li {
  padding: .65rem 0; border-top: 1px solid var(--line); font-size: .9rem;
  display: flex; gap: .75rem;
}
.hearing-list li:first-child, .notify-list li:first-child { border-top: 0; }
.hearing-list b { color: var(--brand-primary); min-width: 4.5rem; }

.hub-tabs {
  display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem;
}
.hub-tab {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: .45rem .9rem; font-weight: 700; font-size: .85rem; cursor: pointer; color: var(--text-secondary);
}
.hub-tab.is-active { background: var(--brand-primary); color: #fff; border-color: transparent; }
.hub-pane { display: none; }
.hub-pane.is-active { display: block; }

.mod-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem;
}
.mod-card {
  text-align: left; border: 1px solid var(--line); background: #fff;
  border-radius: var(--radius); padding: .55rem .65rem; cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.mod-card:hover {
  transform: translateY(-3px);
  border-color: #9ec5ea;
  box-shadow: 0 12px 28px rgba(26,84,144,.12);
}
.mod-card .tag {
  display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand-primary); background: var(--brand-primary-light);
  padding: .2rem .45rem; border-radius: 6px; margin-bottom: .5rem;
}
.mod-card .tag--ai { background: #dceaf8; color: #144272; }
.mod-card strong { display: block; font-family: var(--font-display); font-size: .78rem; margin-bottom: .15rem; }
.mod-card p { margin: 0; color: var(--text-secondary); font-size: .68rem; }

.ai-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: .85rem; }
.ai-chat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; display: flex; flex-direction: column; gap: .65rem; min-height: 280px;
}
.ai-msg { max-width: 92%; padding: .45rem .6rem; border-radius: 8px; font-size: .72rem; }
.ai-msg--bot { background: var(--brand-primary-light); color: var(--brand-navy); }
.ai-msg--user { background: var(--brand-navy); color: #fff; align-self: flex-end; }
.ai-tools { display: grid; gap: .55rem; }

.search-mock {
  display: flex; gap: .5rem; margin-bottom: 1rem;
}
.search-mock input {
  flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; background: #fff;
}
.result-list article {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: .85rem 1rem; margin-bottom: .55rem;
}
.result-list strong { display: block; font-family: var(--font-display); margin-bottom: .2rem; }
.result-list span { color: var(--text-secondary); font-size: .9rem; }

.settings-mock {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.setting-row {
  display: flex; justify-content: space-between; padding: .95rem 1.1rem;
  border-top: 1px solid var(--line); font-weight: 600;
}
.setting-row:first-child { border-top: 0; }
.setting-row .ok { color: var(--success); }
.demo-hint {
  text-align: center; color: var(--text-secondary); font-size: .9rem; margin: 1.25rem 0 0;
}

/* Module catalog */
.module-filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.5rem; }
.filter-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: .5rem 1rem; font-weight: 700; cursor: pointer; color: var(--text-secondary);
}
.filter-btn.is-active { background: var(--brand-navy); color: #fff; border-color: transparent; }
.module-catalog {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem;
}
.catalog-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.15rem; transition: transform .2s, box-shadow .2s;
}
.catalog-item:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,28,50,.08); }
.catalog-item .cat {
  font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-primary); margin-bottom: .4rem;
}
.catalog-item h3 {
  font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 .4rem;
}
.catalog-item p { margin: 0; color: var(--text-secondary); font-size: .9rem; }
.catalog-item.is-hidden { display: none; }

.check-list { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; }
.check-list li {
  padding: .4rem 0 .4rem 1.5rem; position: relative; color: rgba(255,255,255,.88);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .75rem;
  width: .7rem; height: .7rem; border-radius: 50%;
  background: var(--accent-line); box-shadow: 0 0 0 4px rgba(96,165,250,.18);
}
.check-list--light li { color: rgba(255,255,255,.9); }

/* Lega AI showcase */
.lega-ai-showcase {
  padding: 3.25rem 0 3rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(37,99,168,.35), transparent 50%),
    linear-gradient(160deg, #0f1c32 0%, #1b2d4a 55%, #122033 100%);
  color: #fff;
  overflow: hidden;
}
.lai-hero { max-width: 42rem; margin-bottom: 1.5rem; }
.lai-hero .eyebrow { color: var(--accent-line); }
.lai-hero h2 { font-family: var(--font-display); font-size: clamp(1.35rem, 2.5vw, 1.85rem); margin: .35rem 0 .65rem; line-height: 1.25; }
.lai-lead { margin: 0; color: rgba(255,255,255,.78); font-size: .9rem; max-width: 40rem; line-height: 1.55; }
.lai-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1.35rem;
}
.lai-stat {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: .85rem .9rem;
}
.lai-stat strong {
  display: block; font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  margin-bottom: .2rem;
}
.lai-stat span { color: rgba(255,255,255,.65); font-size: .78rem; }
.lai-features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; margin-bottom: 2.25rem;
}
.lai-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 1.25rem 1.1rem;
  transition: transform .25s, background .25s, border-color .25s;
}
.lai-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.1);
  border-color: rgba(96,165,250,.45);
}
.lai-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(96,165,250,.15); margin-bottom: .75rem; font-size: 1.2rem;
}
.lai-card h3 { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 .45rem; }
.lai-card p { margin: 0; color: rgba(255,255,255,.7); font-size: .9rem; }
.lai-stage {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 2rem; align-items: center;
  background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px; padding: 1.75rem;
}
.lai-stage-copy h3 {
  font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 .5rem;
}
.lai-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.lai-ghost { border-color: rgba(255,255,255,.3); color: #fff; }
.lai-window {
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: #eef1f6; color: var(--text-primary);
  box-shadow: 0 24px 50px rgba(0,0,0,.35);
}
.lai-window-bar {
  display: flex; align-items: center; gap: .35rem;
  padding: .55rem .75rem; background: var(--brand-navy); color: #fff;
}
.lai-window-bar span { width: 8px; height: 8px; border-radius: 50%; background: #6b7c93; }
.lai-window-bar em { margin-left: .45rem; font-style: normal; font-size: .75rem; opacity: .8; }
.lai-window-body { padding: 1rem; }
.lai-typing { display: flex; flex-direction: column; gap: .65rem; }
.lai-bubble {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: .85rem .95rem; font-size: .9rem;
}
.lai-bubble--bot { background: var(--brand-primary-light); border-color: transparent; }
.lai-bubble--bot b { display: block; margin-bottom: .25rem; color: var(--brand-navy); }
.lai-bubble--bot p { margin: 0 0 .65rem; color: var(--text-secondary); }
.lai-bars i {
  display: block; height: 8px; border-radius: 99px; margin-bottom: .35rem;
  background: linear-gradient(90deg, var(--brand-primary), var(--accent-line));
  width: var(--w); animation: barGrow 1.4s ease both;
}
@keyframes barGrow {
  from { transform: scaleX(.2); transform-origin: left; opacity: .4; }
  to { transform: scaleX(1); opacity: 1; }
}

/* CTA / footer */
.cta-section { padding: 5rem 0; }
.cta-inner {
  text-align: center;
  background: #fff; border-radius: 22px; padding: 3rem 1.5rem;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1rem; }
.cta-actions .btn-ghost { color: var(--brand-navy); border-color: var(--line); }
.cta-meta { color: var(--text-secondary); font-size: .85rem; margin: 0; }
.site-footer {
  padding: 2.5rem 0 1.5rem; border-top: 1px solid var(--line);
  background: #e4e9f1;
}
.site-footer--corp { background: #e8edf4; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.5rem;
  margin-bottom: 1.75rem;
}
.footer-grid h4 {
  font-family: var(--font-display); font-size: .85rem; margin: 0 0 .65rem; color: var(--brand-navy);
}
.footer-grid a {
  display: block; color: var(--text-secondary); font-size: .9rem; margin: .3rem 0;
}
.footer-grid a:hover { color: var(--brand-primary); }
.footer-about { color: var(--text-secondary); font-size: .9rem; margin: .75rem 0 0; max-width: 26rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding-top: 1rem; border-top: 1px solid var(--line);
}
.brand--footer { color: var(--brand-navy); }
.brand--footer small { opacity: .65; }
.site-footer p { margin: 0; color: var(--text-secondary); font-size: .9rem; }
.linkish {
  border: 0; background: transparent; color: var(--brand-primary); font-weight: 700;
  cursor: pointer; text-decoration: underline; padding: 0;
}

.cookie-banner {
  position: fixed; inset: auto 1rem 1rem 1rem; z-index: 140;
  max-width: 920px; margin-inline: auto; left: 1rem; right: 1rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-inner {
  display: flex; gap: 1rem; align-items: center; justify-content: space-between;
  background: var(--brand-navy); color: #fff; border-radius: 18px;
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.1);
}
.cookie-inner p { margin: .35rem 0 0; color: rgba(255,255,255,.75); font-size: .88rem; }
.cookie-inner a { color: var(--accent-line); text-decoration: underline; }
.cookie-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.cookie-ghost { color: #fff; border-color: rgba(255,255,255,.28); }

/* Legal pages */
.legal-page { padding: calc(var(--header-h) + 2.5rem) 0 4rem; }
.legal-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 2rem 1.5rem; box-shadow: 0 10px 30px rgba(15,28,50,.06);
}
.legal-card h1 { font-family: var(--font-display); margin: 0 0 1rem; font-size: 1.8rem; }
.legal-card h2 { font-family: var(--font-display); font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.legal-card p, .legal-card li { color: var(--text-secondary); }
.legal-meta { font-size: .85rem; color: var(--text-secondary); margin-bottom: 1.25rem; }

/* Modal + toast */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center; padding: 1rem;
}
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(15, 28, 50, .55); backdrop-filter: blur(4px);
}
.modal-panel {
  position: relative; width: min(520px, 100%);
  background: #fff; border-radius: 18px; padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow); animation: screenIn .25s ease;
}
.modal-close {
  position: absolute; top: .7rem; right: .8rem; border: 0; background: transparent;
  font-size: 1.5rem; cursor: pointer; color: var(--text-secondary); line-height: 1;
}
.modal-panel h3 { font-family: var(--font-display); margin: .2rem 0 .75rem; }
.modal-panel p { color: var(--text-secondary); margin: 0 0 .75rem; }
.modal-panel ul { margin: 0; padding-left: 1.1rem; color: var(--text-secondary); }
.toast {
  position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  background: var(--brand-navy); color: #fff; padding: .7rem 1.1rem; border-radius: 999px;
  z-index: 130; font-weight: 600; box-shadow: var(--shadow);
}
.toast[hidden] { display: none; }

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-in { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .18s; }
.delay-3 { transition-delay: .26s; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid-layout { grid-template-columns: 1fr; }
  .haf-body { grid-template-columns: 120px 1fr; min-height: 360px; }
  .haf-stats { grid-template-columns: 1fr 1fr; }
  .banner-slide { grid-template-columns: 1fr; }
  .banner-visual { min-height: 200px; }
  .app-shell { /* keep 2-col in landscape FS */ }
  .pulse-row { grid-template-columns: 1fr 1fr; }
  .pulse-item:nth-child(2) { border-right: 0; }
  .dash-grid, .ai-layout, .module-catalog { grid-template-columns: 1fr; }
  .mod-grid { grid-template-columns: 1fr 1fr; }
  .lai-features { grid-template-columns: 1fr 1fr; }
  .lai-stage { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cookie-inner { flex-direction: column; align-items: stretch; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: rgba(15,28,50,.97); flex-direction: column; align-items: stretch;
    padding: 1rem; gap: .25rem; display: none; border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 1rem; border-radius: 10px; }
  .nav-cta { text-align: center; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 2.5rem); }
  .hero-brand { font-size: clamp(1.6rem, 8vw, 2rem); }
  .haf-body { grid-template-columns: 1fr; min-height: 0; }
  .haf-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .4rem; }
  .haf-nav { flex-direction: row; flex-wrap: wrap; flex: 1; }
  .haf-user { display: none; }
  .haf-panels { grid-template-columns: 1fr; }
  .mod-grid { grid-template-columns: 1fr; }
  .welcome-banner { flex-direction: column; align-items: stretch; }
  .welcome-actions { flex-direction: row; }
  .app-top { flex-direction: column; align-items: stretch; }
  [data-tip]::after { left: 0; top: auto; bottom: calc(100% + 8px); transform: none; max-width: 200px; }
  [data-tip]::before { display: none; }
  .module-catalog { grid-template-columns: 1fr; }
  .lai-stats, .lai-features, .footer-grid { grid-template-columns: 1fr; }
  .mini-app { grid-template-columns: 72px 1fr; }
}


/* Sidebar bottom (UYAP) */
.app-side-bottom {
  margin-top: .75rem; padding-top: .75rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.app-uyap-btn {
  width: 100%; border: 1px solid rgba(255,255,255,.22); background: transparent;
  color: #fff; border-radius: 10px; padding: .55rem .7rem; font-size: .75rem;
  font-weight: 700; cursor: pointer; transition: background .2s;
}
.app-uyap-btn:hover { background: rgba(255,255,255,.08); }

/* Hover tip boxes */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  z-index: 40; width: max-content; max-width: 200px;
  padding: .55rem .7rem; border-radius: 10px;
  background: #0b1c33; color: #fff; font-size: .72rem; font-weight: 600;
  line-height: 1.35; box-shadow: 0 10px 28px rgba(8,20,40,.28);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .15s ease, visibility .15s;
}
[data-tip]::before {
  content: ''; position: absolute; left: calc(100% + 4px); top: 50%;
  transform: translateY(-50%); border: 6px solid transparent;
  border-right-color: #0b1c33; z-index: 41;
  opacity: 0; visibility: hidden; transition: opacity .15s ease, visibility .15s;
}
.app-nav-item[data-tip]:hover::after,
.app-nav-item[data-tip]:hover::before,
.mod-card[data-tip]:hover::after,
.mod-card[data-tip]:hover::before,
.result-list article[data-tip]:hover::after,
.result-list article[data-tip]:hover::before {
  opacity: 1; visibility: visible;
}
.mod-card[data-tip]::after,
.result-list article[data-tip]::after {
  left: 50%; top: auto; bottom: calc(100% + 8px);
  transform: translateX(-50%); max-width: 220px;
}
.mod-card[data-tip]::before,
.result-list article[data-tip]::before {
  left: 50%; top: auto; bottom: calc(100% - 2px);
  transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: #0b1c33; border-right-color: transparent;
}

/* İçtihat mode chips */
.ict-modes {
  display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem;
}
.ict-modes span {
  font-size: .72rem; font-weight: 700; padding: .35rem .65rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--text-secondary);
}
.ict-modes span.on {
  background: rgba(26,84,144,.1); border-color: transparent; color: var(--brand-primary);
}

.app-ll { object-fit: cover; }
.mini-ll { object-fit: cover; border-radius: 8px; }


/* —— Compact density pass —— */
.btn { font-size: .8125rem; border-radius: 8px; }
.btn-primary, .btn-ghost { padding: .48rem .9rem; }
.section-head { margin-bottom: 1.25rem; }
.section-sub { font-size: .875rem; max-width: 36rem; }
.eyebrow { font-size: .65rem; }
.demo-section, .modules-section, .banner-section, .lega-ai-showcase, .cta-section {
  padding-block: 3rem;
}
.welcome-banner {
  padding: .7rem .8rem; margin-bottom: .65rem; border-radius: 10px;
}
.pulse-row { margin-bottom: .65rem; }
.pulse-item { padding: .55rem .65rem; }
.pulse-item span { font-size: .58rem; }
.dash-panel { padding: .7rem .75rem; border-radius: 10px; }
.dash-panel h4 { font-size: .78rem; margin-bottom: .45rem; }
.hearing-list li, .notify-list li { padding: .4rem 0; font-size: .72rem; }
.hub-tab { padding: .35rem .65rem; font-size: .7rem; }
.mod-grid { gap: .45rem; }
.ai-layout { gap: .55rem; }
.ai-chat { padding: .55rem; gap: .4rem; border-radius: 10px; }
.ai-tools { gap: .4rem; }
.result-list article { padding: .5rem .65rem; font-size: .72rem; }
.result-list strong { font-size: .75rem; }
.result-list span { font-size: .68rem; }
.search-mock { gap: .4rem; margin-bottom: .55rem; }
.search-mock input { font-size: .72rem; padding: .4rem .55rem; }
.lai-features { gap: .75rem; }
.lai-card { padding: .9rem; border-radius: 12px; }
.lai-card h3 { font-size: .9rem; }
.lai-card p { font-size: .78rem; }
.lai-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; margin-bottom: .55rem;
}
.lai-svg, .lai-icon .lai-svg { width: 16px; height: 16px; display: block; color: #93c5fd; }
.lai-stat strong { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
.lai-stat span { font-size: .78rem; }
.catalog-item { padding: .85rem; }
.catalog-item h3 { font-size: .9rem; }
.catalog-item p { font-size: .78rem; }
.banner-copy h3 { font-size: 1.25rem; }
.banner-copy p { font-size: .85rem; }
.cta-section h2 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); }
.cta-section p { font-size: .875rem; }
.brand img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; }
.site-header .brand img { width: 30px; height: 30px; }

/* Mobile CTA + landscape fullscreen app */
.app-mobile-cta { display: none; }
.app-mobile-cta-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 1.1rem 1.15rem; text-align: center; box-shadow: var(--shadow);
}
.app-mobile-cta-card strong {
  display: block; font-family: var(--font-display); font-size: 1rem; margin-bottom: .35rem;
}
.app-mobile-cta-card p {
  margin: 0 0 .9rem; color: var(--text-secondary); font-size: .8125rem;
}
.app-fs-bar { display: none; }
.app-fs-root { position: relative; }
.app-fs-rotator { display: contents; }

@media (max-width: 900px) {
  .app-mobile-cta { display: block; margin-bottom: 0; }
  .app-fs-root:not(.is-open) { display: none; }
  .app-fs-root.is-open {
    display: block;
    position: fixed; inset: 0; z-index: 200;
    background: #0a1424;
  }
  .app-fs-root.is-open .app-fs-bar {
    display: flex; align-items: center; justify-content: space-between;
    position: absolute; z-index: 3; left: 0; right: 0; top: 0;
    padding: .45rem .75rem; color: #fff; font-size: .72rem; font-weight: 700;
    background: rgba(0,0,0,.45);
  }
  .app-fs-close {
    border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff;
    border-radius: 7px; padding: .3rem .65rem; font-size: .72rem; font-weight: 700; cursor: pointer;
  }
  /* Portrait phone: rotate shell to landscape */
  .app-fs-root.is-open .app-fs-rotator {
    display: block;
    position: absolute;
    width: 100vh; height: 100vw;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center center;
  }
  .app-fs-root.is-open .app-shell {
    width: 100%; height: 100%; max-width: none;
    border-radius: 0; margin: 0;
    grid-template-columns: 168px 1fr;
  }
  .app-fs-root.is-open .app-nav {
    display: flex; flex-direction: column; grid-template-columns: none;
  }
  .app-fs-root.is-open .app-nav-label { grid-column: auto; }
  .demo-hint { display: none; }
}

/* Already landscape phone/tablet: no rotate needed */
@media (max-width: 900px) and (orientation: landscape) {
  .app-fs-root.is-open .app-fs-rotator {
    position: absolute; inset: 0; width: auto; height: auto;
    top: 0; left: 0; transform: none;
    padding-top: 36px;
  }
  .app-fs-root.is-open .app-shell { height: calc(100% - 0px); }
}

body.app-fs-lock { overflow: hidden; touch-action: none; }

@media (min-width: 901px) {
  .app-mobile-cta { display: none !important; }
  .app-fs-bar { display: none !important; }
}
