.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sec { padding: 128px 0; }
.sec-head { max-width: 640px; margin: 0 auto 56px; text-align: center; display: grid; gap: 16px; }
.sec-head p { color: var(--text-muted); font-size: 18px; }

/* nav 5.1 */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding: 0; transition: padding .32s var(--ease); }
.nav-in {
  height: 72px; max-width: 1248px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  border-radius: 0; transition: background-color .32s var(--ease), border-radius .32s var(--ease), box-shadow .32s var(--ease);
}
.nav.floating { padding: 12px; }
.nav.floating .nav-in {
  height: 60px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 80%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px var(--border);
}
.logo { display: inline-flex; align-items: center; gap: 8px; font: 400 28px/1 var(--font-display); letter-spacing: -0.01em; }
.logo svg { width: 22px; height: 22px; }
.nav-menu { display: flex; gap: 4px; }
.nav-menu a { font: 500 14px/1 var(--font-sans); color: var(--text-muted); padding: 10px 12px; border-radius: var(--radius-s); transition: color .2s var(--ease); }
.nav-menu a:hover { color: var(--text); }
.nav-end { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.theme-seg { display: inline-flex; padding: 3px; border-radius: var(--radius-s); background: var(--surface-muted); }
.theme-seg button { border: 0; background: transparent; padding: 6px 10px; border-radius: 6px; font: 500 12px/1 var(--font-sans); color: var(--text-muted); }
.theme-seg button[aria-pressed="true"] { background: var(--bg); color: var(--text); }

/* hero */
.hero { padding: 184px 0 0; text-align: center; }
.hero .caption { margin-bottom: 24px; }
.hero h1 { max-width: 1100px; margin: 0 auto; text-wrap: balance; }
.hero .lead { max-width: 640px; margin: 24px auto 0; color: var(--text-muted); }
.hero-cta { display: flex; justify-content: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.btn svg.g { width: 18px; height: 18px; }
.hero-social { display: flex; justify-content: center; gap: 20px; margin-top: 32px; color: var(--text-muted); }
.hero-social a { transition: color .2s var(--ease); }
.hero-social a:hover { color: var(--text); }
.hero-social svg { width: 20px; height: 20px; fill: currentColor; }

/* media frame 5.9 */
.frame {
  position: relative; margin-top: 48px; border-radius: var(--radius-xl); padding: 56px 56px 0; overflow: hidden; height: 520px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #FFBF00 0%, #FFD45C 38%, #F5F4F0 100%);
}
.mock {
  color: var(--text); background: var(--bg); border-radius: 16px 16px 0 0; box-shadow: var(--shadow-modal);
  display: grid; grid-template-columns: 200px 1fr; text-align: left; min-height: 560px;
  transform: translateY(var(--py, 0px)); will-change: transform;
}
.mock-side { border-right: 1px solid var(--border); padding: 20px 12px; display: flex; flex-direction: column; gap: 2px; }
.mock-side .logo { font-size: 22px; padding: 0 10px 18px; }
.mock-side .logo svg { width: 18px; height: 18px; }
.mi { position: relative; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: var(--radius-s); font: 500 13px/1 var(--font-sans); color: var(--text-muted); }
.mi svg { width: 16px; height: 16px; }
.mi.on { background: var(--surface); color: var(--text); }
.mi.on::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--accent); }
.mock-main { padding: 24px; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); align-content: start; }
.mock-main .hi { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 18px; display: grid; gap: 6px; }
.stat .v { font: 400 36px/1.05 var(--font-display); font-variant-numeric: tabular-nums; }
.stat .d { font: 500 12px/1.2 var(--font-sans); color: var(--success); }
.mock-main .task { grid-column: span 2; }
.note-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 18px; display: grid; gap: 10px; align-content: start; font-size: 13px; }
.note-card p { color: var(--text-muted); }
.mock-main .task h3 { font-size: 16px; }
.mock-main .task .rp { font-size: 26px; }

/* how it works */
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.tab { border: 0; display: inline-flex; gap: 10px; align-items: center; background: var(--surface-muted); color: var(--text-muted); border-radius: var(--radius-s); padding: 8px 16px; font: 500 16px/1.4 var(--font-sans); transition: background-color .2s var(--ease), color .2s var(--ease); }
.tab b { font: 400 18px/1 var(--font-display); }
.tab[aria-selected="true"] { background: var(--primary); color: var(--on-primary); }
.stage { position: relative; margin-top: 32px; display: grid; }
.panel { grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; background: var(--bg-alt); border-radius: var(--radius-xl); padding: 48px; transition: opacity .32s var(--ease), visibility .32s; }
.panel[hidden] { display: grid; opacity: 0; visibility: hidden; pointer-events: none; }
.panel h3 { font: 400 40px/1.1 var(--font-display); letter-spacing: -0.01em; }
.panel p { margin-top: 16px; color: var(--text-muted); max-width: 420px; }
.panel-art { background: var(--bg); border-radius: var(--radius-l); padding: 24px; min-height: 280px; display: grid; gap: 12px; align-content: center; }
.lock { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--border); font-size: 14px; }
.lock b { font: 400 30px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; padding: 10px 0; }
.check + .check { border-top: 1px solid var(--border); }
.check i { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border); display: grid; place-items: center; }
.check i.y { background: var(--accent); border-color: transparent; color: #161616; }
.check i svg { width: 12px; height: 12px; }
.drop { border: 1.5px dashed var(--border); border-radius: var(--radius-l); padding: 22px; text-align: center; font-size: 14px; color: var(--text-muted); }
.thumbs { display: flex; gap: 8px; }
.thumbs span { width: 72px; height: 72px; border-radius: 12px; background: linear-gradient(135deg, var(--stone), var(--sand)); }
[data-theme="dark"] .thumbs span { background: linear-gradient(135deg, #2a2a2a, #1d1d1d); }
.ledger { display: grid; gap: 0; }
.ledger div { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-size: 14px; }
.ledger div + div { border-top: 1px solid var(--border); }
.ledger b { font-variant-numeric: tabular-nums; font-weight: 600; }

/* open tasks */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.more { display: flex; justify-content: center; margin-top: 40px; }

/* task types */
.types { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.type { grid-column: span 2; background: var(--bg-alt); border-radius: var(--radius-xl); padding: 32px; display: grid; gap: 12px; align-content: start; }
.type:nth-child(4), .type:nth-child(5) { grid-column: span 3; }
.type svg { width: 32px; height: 32px; fill: currentColor; margin-bottom: 20px; }
.type .tag { font: 500 13px/1.2 var(--font-sans); color: var(--text-muted); margin-top: 4px; }

/* tiers */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--radius-xl); overflow: hidden; background: var(--bg-alt); }
.tiers > div { padding: 32px 28px; display: grid; gap: 14px; align-content: start; }
.tiers > div + div { box-shadow: inset 1px 0 0 var(--border); }
.tiers .range { font: 400 40px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.tiers p { font-size: 14px; color: var(--text-muted); }
.formula { margin: 32px auto 0; max-width: 820px; text-align: center; font-size: 14px; color: var(--text-muted); }
.formula code { font: 500 14px/1.7 var(--font-sans); color: var(--text); font-variant-numeric: tabular-nums; }

/* brand (light inset) */
.brand-sec { background: var(--bg); color: var(--text); }
.brand-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.brand-grid h2 + p { margin-top: 24px; color: var(--text-muted); font-size: 18px; }
.brand-grid ul { margin: 32px 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.brand-grid li { display: flex; gap: 12px; font-size: 15px; }
.brand-grid li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.report { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; display: grid; gap: 20px; }
.report-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.report .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.report .kpis div { background: var(--bg); border-radius: var(--radius-m); padding: 14px; display: grid; gap: 4px; }
.report .kpis b { font: 400 30px/1.05 var(--font-display); font-variant-numeric: tabular-nums; }
.report .kpis span { font-size: 12px; color: var(--text-muted); }
.report table { width: 100%; border-collapse: collapse; font-size: 13px; }
.report th { text-align: left; font-weight: 500; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); padding: 0 0 10px; }
.report td { padding: 11px 0; border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.report th:last-child, .report td:last-child { text-align: right; }
.report .note { font-size: 12px; color: var(--text-muted); }

/* faq */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 0; font: 600 18px/1.4 var(--font-sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 20px; height: 20px; transition: transform .32s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--text-muted); }

/* closing cta with the Uiverse logo block */
.closing { text-align: center; padding: 160px 0 128px; display: grid; justify-items: center; gap: 48px; }
.glow-host { isolation: isolate; padding: 4vmin; }
.closing h2 { max-width: 760px; }

/* From Uiverse.io by Cksunandh */
.m2 {
  position: relative; width: 20vmin; height: 20vmin; min-width: 104px; min-height: 104px;
  background: linear-gradient(135deg, #1e1e24 10%, #050505 60%);
  display: flex; align-items: center; justify-content: center; user-select: none;
  animation: gradient-shift 5s ease-in-out infinite; background-size: 200% 200%;
}
.m2 .logo {
  display: inline-flex; align-items: center; user-select: none;
  font: 700 max(5vmin, 26px)/1 var(--font-sans); color: white;
  background-image: linear-gradient(to right, #626262, #fff);
  -webkit-text-fill-color: transparent; -webkit-background-clip: text; background-clip: text;
}
.m2 .logo svg { margin-right: -1vmin; width: max(5vmin, 26px); height: max(5vmin, 26px); }
.m2::before, .m2::after {
  --size: 5px; content: ""; position: absolute;
  top: calc(var(--size) / -2); left: calc(var(--size) / -2);
  width: calc(100% + var(--size)); height: calc(100% + var(--size));
  background: radial-gradient(circle at 0 0, hsl(27deg 93% 60%), transparent),
    radial-gradient(circle at 100% 0, #00a6ff, transparent),
    radial-gradient(circle at 0 100%, #ff0056, transparent),
    radial-gradient(circle at 100% 100%, #6500ff, transparent);
}
.m2::after { --size: 2px; z-index: -1; }
.m2::before { --size: 10px; z-index: -2; filter: blur(2vmin); animation: blur-animation 3s ease-in-out alternate infinite; }
.m2.paused, .m2.paused::before { animation-play-state: paused; }
@keyframes blur-animation { to { filter: blur(3vmin); transform: scale(1.05); } }
@keyframes gradient-shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* footer */
.foot { border-top: 1px solid var(--border); padding: 64px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 32px; }
.foot-grid h4 { font: 600 14px/1.2 var(--font-sans); margin-bottom: 16px; }
.foot-grid a, .foot-grid p { display: block; font-size: 14px; color: var(--text-muted); padding: 4px 0; transition: color .2s var(--ease); }
.foot-grid a:hover { color: var(--text); }
.foot-grid a svg { display: inline-block; width: 14px; height: 14px; fill: currentColor; vertical-align: -2px; margin-right: 8px; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }

/* reveal: content stays visible; only nudges up once when it enters */
.rise.in { animation: rise .6s var(--ease) both; }
@keyframes rise { from { transform: translateY(16px); } }

@media (max-width: 960px) {
  .nav-menu { display: none; }
  .nav-in { grid-template-columns: 1fr auto; }
  .mock { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-main { grid-template-columns: 1fr 1fr; }
  .mock-main .task { grid-column: 1 / -1; }
  .note-card { display: none; }
  .panel { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .types { grid-template-columns: 1fr 1fr; }
  .type, .type:nth-child(4), .type:nth-child(5) { grid-column: span 1; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .tiers > div:nth-child(3) { box-shadow: inset 0 1px 0 var(--border); }
  .tiers > div:nth-child(4) { box-shadow: inset 1px 0 0 var(--border), inset 0 1px 0 var(--border); }
  .brand-grid { grid-template-columns: 1fr; gap: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .sec { padding: 80px 0; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 136px; }
  .nav-end .btn { display: none; }
  .frame { padding: 24px 16px 0; }
  .mock-main { padding: 16px; gap: 12px; }
  .stat .v { font-size: 28px; }
  .grid3, .types, .tiers { grid-template-columns: 1fr; }
  .tiers > div + div, .tiers > div:nth-child(4) { box-shadow: inset 0 1px 0 var(--border); }
  .tabs { justify-content: flex-start; }
  .panel { padding: 24px; }
  .panel h3 { font-size: 32px; }
  .report .kpis { grid-template-columns: 1fr 1fr 1fr; }
  .report .kpis b { font-size: 22px; }
  .faq details p { padding-right: 0; }
}
