:root {
    --bg: #f3eadb;
    --bg-strong: #f8f4ec;
    --surface: rgba(255, 252, 247, 0.85);
    --surface-strong: #fffaf3;
    --ink: #1d2433;
    --muted: #69707f;
    --line: rgba(29, 36, 51, 0.09);
    --accent: #c86a31;
    --accent-deep: #8f3d13;
    --teal: #215f5a;
    --gold: #f0b54d;
    --danger: #bc4f3f;
    --warning: #bd8a2f;
    --success: #2a7352;
    --info: #315f9e;
    --shadow: 0 24px 60px rgba(42, 31, 17, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --font-head: "Bahnschrift", "Trebuchet MS", sans-serif;
    --font-body: "Candara", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(200, 106, 49, 0.18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(33, 95, 90, 0.16), transparent 30%),
        linear-gradient(180deg, #efe3d0 0%, #f7f1e7 52%, #f2e8d9 100%);
    font-family: var(--font-body);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(41, 34, 26, 0.12);
    border-radius: 14px;
    padding: 0.95rem 1rem;
    background: rgba(255, 253, 249, 0.92);
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(200, 106, 49, 0.65);
    box-shadow: 0 0 0 4px rgba(200, 106, 49, 0.12);
}

textarea {
    resize: vertical;
    min-height: 96px;
}

label {
    display: grid;
    gap: 0.45rem;
    font-size: 0.96rem;
}

label span {
    color: var(--muted);
    font-size: 0.9rem;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-head);
    letter-spacing: -0.02em;
}

p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-deep);
}

.ambient {
    position: fixed;
    width: 440px;
    height: 440px;
    filter: blur(14px);
    border-radius: 50%;
    opacity: 0.42;
    pointer-events: none;
    z-index: 0;
}

.ambient-left {
    top: -150px;
    left: -120px;
    background: rgba(240, 181, 77, 0.25);
}

.ambient-right {
    right: -160px;
    bottom: -140px;
    background: rgba(33, 95, 90, 0.16);
}

.public-body,
.app-body {
    position: relative;
    min-height: 100vh;
}

.public-nav,
.landing,
.auth-wrap,
.app-shell {
    position: relative;
    z-index: 1;
}

.public-nav {
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.6rem 1.4rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    color: var(--ink);
    max-width: 100%;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.brand-logo {
    display: block;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px;
    max-width: 28px !important;
    max-height: 28px !important;
    object-fit: contain !important;
    flex-shrink: 0;
}

.brand-copy {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
    overflow: hidden;
}

.brand-copy strong {
    font-family: var(--font-head);
    font-size: 1.05rem;
    line-height: 1;
}

.brand-copy small {
    color: var(--muted);
    font-size: 0.76rem;
}

.brand-logo-nav {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px;
    max-width: 30px !important;
    max-height: 30px !important;
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.hero-logo {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    max-width: 32px !important;
    max-height: 32px !important;
}

.hero-brand-copy strong {
    font-size: 1.1rem;
}

.public-nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.solid-button,
.outline-button,
.ghost-button {
    border: none;
    border-radius: 999px;
    padding: 0.9rem 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.solid-button:hover,
.outline-button:hover,
.ghost-button:hover {
    transform: translateY(-1px);
}

.solid-button {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: #fffaf4;
    box-shadow: 0 16px 35px rgba(143, 61, 19, 0.22);
}

.outline-button {
    border: 1px solid rgba(29, 36, 51, 0.12);
    background: rgba(255, 252, 247, 0.7);
    color: var(--ink);
}

.ghost-button {
    border: 1px solid rgba(200, 106, 49, 0.18);
    background: rgba(200, 106, 49, 0.08);
    color: var(--accent-deep);
}

.text-link {
    color: var(--accent-deep);
    font-weight: 700;
}

.full-width {
    width: 100%;
}

.landing {
    max-width: 1240px;
    margin: 0 auto;
    padding: 2rem 1.4rem 4rem;
}

.hero {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 1.4rem;
    align-items: stretch;
}

.hero.hero-simple {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.card-panel,
.auth-card,
.panel-card,
.stat-card,
.sidebar,
.topbar {
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: var(--shadow);
}

.card-panel {
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.hero-copy h1 {
    font-size: clamp(2.5rem, 5vw, 4.7rem);
    line-height: 0.95;
    margin: 0.65rem 0 1rem;
}

.hero-copy p {
    max-width: 580px;
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.4rem 0 1.8rem;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.plain-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.8rem;
}

.plain-list li {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(29, 36, 51, 0.08);
    color: var(--ink);
}

.metric-chip {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 251, 243, 0.74);
    border: 1px solid rgba(29, 36, 51, 0.08);
}

.metric-chip strong {
    display: block;
    font-size: 1.55rem;
    font-family: var(--font-head);
}

.metric-chip span {
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-board {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    background:
        linear-gradient(160deg, rgba(255, 249, 240, 0.92) 0%, rgba(246, 233, 214, 0.82) 100%),
        linear-gradient(120deg, rgba(200, 106, 49, 0.1), rgba(33, 95, 90, 0.12));
}

.board-head strong {
    display: block;
    margin-top: 0.45rem;
    font-size: 1.2rem;
}

.cover-preview {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(29, 36, 51, 0.08);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 28px rgba(44, 31, 22, 0.08);
}

.cover-preview-image {
    display: block;
    width: 100%;
    height: auto;
}

.cover-preview-note {
    font-size: 0.96rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.hero-grid article {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
}

.hero-grid span,
.pipeline-strip span {
    color: var(--muted);
    font-size: 0.88rem;
}

.hero-grid strong {
    display: block;
    margin-top: 0.35rem;
    font-family: var(--font-head);
    font-size: 1.55rem;
}

.pipeline-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.pipeline-strip span,
.soft-tag {
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(33, 95, 90, 0.1);
}

.section-block {
    margin-top: 1.5rem;
}

.section-head {
    margin-bottom: 1rem;
}

.section-head h2 {
    margin-top: 0.35rem;
    font-size: clamp(1.8rem, 3.2vw, 3rem);
}

.module-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.compact-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.pricing-card {
    padding: 1.4rem;
    border-radius: 24px;
    background: rgba(255, 252, 246, 0.76);
    border: 1px solid rgba(29, 36, 51, 0.08);
    box-shadow: 0 14px 28px rgba(44, 31, 22, 0.08);
}

.feature-card h3,
.pricing-card h3 {
    margin: 0.6rem 0;
    font-size: 1.35rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.info-card {
    padding: 1.3rem;
    border-radius: 22px;
    background: rgba(255, 252, 246, 0.76);
    border: 1px solid rgba(29, 36, 51, 0.08);
    box-shadow: 0 14px 28px rgba(44, 31, 22, 0.08);
}

.info-card p {
    margin-top: 0.75rem;
}

.split-simple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.workflow-list {
    margin-top: 1rem;
    display: grid;
    gap: 0.8rem;
}

.workflow-item {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 0.9rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(29, 36, 51, 0.08);
}

.workflow-item strong {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #fffaf4;
}

.workflow-item span {
    color: var(--ink);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.story-card {
    padding: 1.35rem;
    border-radius: 22px;
    background: rgba(255, 252, 246, 0.78);
    border: 1px solid rgba(29, 36, 51, 0.08);
    box-shadow: 0 14px 28px rgba(44, 31, 22, 0.08);
}

.story-card p {
    margin-top: 0.75rem;
    font-size: 0.98rem;
}

.story-band {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr);
    gap: 1rem;
    padding: 1.6rem;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 248, 238, 0.88), rgba(247, 241, 232, 0.82)),
        radial-gradient(circle at top right, rgba(33, 95, 90, 0.1), transparent 40%);
    border: 1px solid rgba(29, 36, 51, 0.08);
    box-shadow: var(--shadow);
}

.story-band h2 {
    margin-top: 0.45rem;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    line-height: 1.1;
}

.story-band p {
    margin-top: 0.85rem;
    max-width: 720px;
}

.story-points {
    display: grid;
    gap: 0.85rem;
    align-content: start;
}

.story-point {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(29, 36, 51, 0.08);
    color: var(--ink);
}

.clean-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.7rem;
}

.clean-list li {
    color: var(--muted);
    padding-left: 1rem;
    position: relative;
}

.clean-list li::before {
    content: "";
    position: absolute;
    top: 0.55rem;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1rem 0;
}

.lead-stack {
    margin-top: 1rem;
    display: grid;
    gap: 0.8rem;
}

.lead-row {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(29, 36, 51, 0.08);
}

.lead-row strong,
.lead-row span {
    display: block;
}

.muted-note {
    margin-top: 1rem;
}

.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: min(100%, 520px);
    border-radius: 28px;
    padding: 2rem;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.1rem;
    text-align: left;
}

.auth-logo {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    max-width: 32px !important;
    max-height: 32px !important;
}

.auth-brand-copy strong {
    font-size: 1.08rem;
}

.auth-card.wide {
    width: min(100%, 720px);
}

.form-grid {
    display: grid;
    gap: 0.95rem;
    margin-top: 1.4rem;
}

.form-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.span-2 {
    grid-column: span 2;
}

.flash-stack {
    display: grid;
    gap: 0.7rem;
}

.public-flash {
    max-width: 1240px;
    margin: 1rem auto 0;
    padding: 0 1.4rem;
}

.flash {
    border-radius: 16px;
    padding: 0.9rem 1rem;
    border: 1px solid transparent;
}

.flash-success {
    background: rgba(42, 115, 82, 0.1);
    border-color: rgba(42, 115, 82, 0.18);
}

.flash-danger {
    background: rgba(188, 79, 63, 0.1);
    border-color: rgba(188, 79, 63, 0.18);
}

.flash-warning {
    background: rgba(189, 138, 47, 0.12);
    border-color: rgba(189, 138, 47, 0.2);
}

.demo-banner {
    display: grid;
    gap: 0.3rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(189, 138, 47, 0.12);
    border: 1px solid rgba(189, 138, 47, 0.18);
}

.demo-banner strong {
    font-family: var(--font-head);
}

.demo-banner span {
    color: var(--muted);
}

.login-note {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255, 252, 246, 0.8);
    border: 1px solid rgba(29, 36, 51, 0.08);
}

.login-note strong,
.login-note span {
    display: block;
}

.login-note span {
    margin-top: 0.3rem;
    color: var(--muted);
}

.app-shell {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 1.2rem;
    min-height: 100vh;
    padding: 1.2rem;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 1.2rem;
    max-height: calc(100vh - 2.4rem);
    border-radius: 28px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.brand-block {
    overflow: hidden;
}

.brand-block p {
    margin-top: 0.55rem;
}

.sidebar-logo {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    max-width: 32px !important;
    max-height: 32px !important;
}

.sidebar-brand-copy strong {
    font-size: 1.05rem;
}

.sidebar-nav-shell {
    display: grid;
    gap: 0.75rem;
    min-height: 0;
    flex: 1;
    padding: 0.9rem;
    border-radius: 22px;
    background: rgba(255, 250, 243, 0.78);
    border: 1px solid rgba(29, 36, 51, 0.08);
}

.sidebar-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0 0.2rem;
}

.sidebar-nav-head small {
    color: var(--muted);
    font-size: 0.82rem;
}

.sidebar-nav {
    display: grid;
    gap: 0.55rem;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 106, 49, 0.35) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(200, 106, 49, 0.28);
    border-radius: 999px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    min-width: 0;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.56);
    color: var(--muted);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-link span {
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, rgba(200, 106, 49, 0.14), rgba(33, 95, 90, 0.14));
    border-color: rgba(200, 106, 49, 0.2);
    color: var(--ink);
    transform: translateX(2px);
    box-shadow: 0 12px 24px rgba(44, 31, 22, 0.08);
}

.nav-link-logout {
    margin-top: 0.35rem;
    border-color: rgba(29, 36, 51, 0.08);
    background: rgba(29, 36, 51, 0.04);
    color: var(--ink);
}

.nav-link-logout span {
    font-weight: 700;
}

.sidebar-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding-top: 0.3rem;
    border-top: 1px solid rgba(29, 36, 51, 0.08);
}

.sidebar-foot strong,
.sidebar-foot span {
    display: block;
}

.sidebar-foot span {
    color: var(--muted);
    font-size: 0.88rem;
}

.app-main {
    display: grid;
    gap: 1rem;
    align-content: start;
    min-width: 0;
}

.topbar {
    border-radius: 26px;
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar h2 {
    margin-top: 0.3rem;
    font-size: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.stat-card {
    border-radius: 22px;
    padding: 1.25rem 1.35rem;
    min-width: 0;
}

.stat-card span {
    display: block;
    color: var(--muted);
}

.stat-card strong {
    display: block;
    margin-top: 0.55rem;
    font-size: 1.9rem;
    font-family: var(--font-head);
}

.stat-card.accent {
    background: linear-gradient(135deg, rgba(200, 106, 49, 0.9), rgba(143, 61, 19, 0.9));
    color: #fff9f3;
}

.stat-card.accent span {
    color: rgba(255, 249, 243, 0.78);
}

.panel-grid {
    display: grid;
    gap: 1rem;
}

.panel-grid.two-one {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
}

.panel-card {
    border-radius: 24px;
    padding: 1.35rem;
    min-width: 0;
}

.lock-card {
    display: grid;
    gap: 0.8rem;
    padding: 1.1rem;
    border-radius: 20px;
    background: rgba(255, 251, 243, 0.82);
    border: 1px dashed rgba(200, 106, 49, 0.35);
}

.lock-card h4 {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.25rem;
}

.lock-note {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(200, 106, 49, 0.1);
    color: var(--accent-deep);
    font-weight: 700;
}

.muted-inline {
    color: var(--muted);
    font-size: 0.9rem;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-head h3 {
    margin-top: 0.3rem;
    font-size: 1.4rem;
}

.panel-head h4 {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.1rem;
}

.demo-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 1rem;
}

.demo-hero-main {
    background:
        linear-gradient(135deg, rgba(255, 248, 237, 0.92), rgba(247, 237, 223, 0.84)),
        radial-gradient(circle at top right, rgba(33, 95, 90, 0.1), transparent 40%);
}

.demo-hero-main h3 {
    margin-top: 0.45rem;
    font-size: clamp(1.95rem, 3vw, 2.9rem);
    line-height: 1.05;
}

.demo-hero-copy p {
    margin-top: 0.8rem;
    max-width: 760px;
    font-size: 1rem;
}

.demo-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.demo-pill-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1.35rem;
}

.demo-pill {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 253, 249, 0.72);
    border: 1px solid rgba(29, 36, 51, 0.07);
}

.demo-pill span,
.demo-focus-list span,
.module-overview-card em,
.pricing-mini-row span {
    display: block;
    color: var(--muted);
    font-style: normal;
}

.demo-pill strong,
.module-overview-card strong,
.pricing-mini-row em {
    display: block;
    margin-top: 0.35rem;
    font-family: var(--font-head);
}

.demo-hero-side {
    background:
        linear-gradient(180deg, rgba(245, 250, 248, 0.9), rgba(239, 245, 243, 0.84)),
        linear-gradient(135deg, rgba(33, 95, 90, 0.08), transparent);
}

.demo-focus-list {
    margin-top: 1rem;
    display: grid;
    gap: 0.9rem;
}

.demo-focus-list div {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(29, 36, 51, 0.07);
}

.demo-focus-list strong,
.module-overview-card strong {
    font-size: 1.2rem;
}

.module-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.module-overview-card {
    display: grid;
    gap: 0.45rem;
    padding: 1.15rem;
    border-radius: 20px;
    background: rgba(255, 252, 246, 0.76);
    border: 1px solid rgba(29, 36, 51, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.module-overview-card:hover {
    transform: translateY(-2px);
    border-color: rgba(200, 106, 49, 0.28);
    box-shadow: 0 18px 30px rgba(44, 31, 22, 0.08);
}

.module-overview-card p {
    font-size: 0.93rem;
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.journey-step {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 252, 248, 0.76);
    border: 1px solid rgba(29, 36, 51, 0.08);
}

.journey-step span {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #fff9f2;
    font-weight: 700;
}

.journey-step strong {
    display: block;
    margin-top: 0.8rem;
}

.compact {
    margin: 0 0 1rem;
}

.breakdown-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.breakdown-card {
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 252, 248, 0.7);
    border: 1px solid rgba(29, 36, 51, 0.08);
}

.segment-headline {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.segment-fill.alt {
    background: linear-gradient(90deg, var(--teal), #5c8f8b);
}

.panel-grid.triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-mini-stack {
    display: grid;
    gap: 0.8rem;
}

.pricing-mini-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 252, 248, 0.74);
    border: 1px solid rgba(29, 36, 51, 0.08);
}

.pricing-mini-row em {
    font-style: normal;
    font-size: 1rem;
}

.chart-bars {
    min-height: 250px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 0.8rem;
    align-items: end;
}

.bar-item {
    display: grid;
    gap: 0.55rem;
    text-align: center;
}

.bar-track {
    height: 180px;
    border-radius: 18px;
    display: flex;
    align-items: end;
    padding: 0.55rem;
    background: linear-gradient(180deg, rgba(29, 36, 51, 0.04), rgba(29, 36, 51, 0.09));
}

.bar-fill {
    width: 100%;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--accent), var(--teal));
}

.mini-stack,
.list-stack,
.timeline,
.segmented-list {
    display: grid;
    gap: 0.8rem;
}

.mini-row,
.list-row,
.timeline-row,
.segment-row {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 252, 248, 0.74);
    border: 1px solid rgba(29, 36, 51, 0.08);
}

.mini-row,
.list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.list-stack.tight .list-row {
    padding: 0.8rem 0.9rem;
}

.mini-row span,
.list-row span,
.timeline-row p,
.segment-row span {
    color: var(--muted);
}

.list-row strong,
.mini-row strong {
    display: block;
}

.list-row-right {
    text-align: right;
}

.timeline-row {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.9rem;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-top: 0.4rem;
    background: linear-gradient(135deg, var(--accent), var(--teal));
}

.timeline-row time {
    color: var(--muted);
    font-size: 0.86rem;
}

.table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 106, 49, 0.35) transparent;
}

.table-wrap::-webkit-scrollbar {
    height: 8px;
}

.table-wrap::-webkit-scrollbar-thumb {
    background: rgba(200, 106, 49, 0.28);
    border-radius: 999px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

th,
td {
    text-align: left;
    padding: 0.95rem 0.8rem;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

thead th {
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

tbody td span {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem;
    text-transform: capitalize;
}

.badge-success {
    background: rgba(42, 115, 82, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(189, 138, 47, 0.12);
    color: var(--warning);
}

.badge-danger {
    background: rgba(188, 79, 63, 0.1);
    color: var(--danger);
}

.badge-info {
    background: rgba(49, 95, 158, 0.1);
    color: var(--info);
}

.badge-muted {
    background: rgba(29, 36, 51, 0.08);
    color: var(--muted);
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.inline-form select {
    min-width: 140px;
}

.items-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.7rem;
    flex-wrap: wrap;
}

.items-stack {
    display: grid;
    gap: 0.7rem;
}

.item-row {
    display: grid;
    grid-template-columns: minmax(200px, 1.7fr) repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.double-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.segment-row {
    display: grid;
    gap: 0.7rem;
}

.segment-track {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(29, 36, 51, 0.07);
    overflow: hidden;
}

.segment-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--gold));
}

@media (max-width: 1100px) {
    .hero,
    .split-section,
    .split-simple,
    .module-grid,
    .info-grid,
    .story-grid,
    .story-band,
    .pricing-grid,
    .stats-grid,
    .demo-hero,
    .module-overview-grid,
    .journey-grid,
    .breakdown-wrap,
    .panel-grid.triple,
    .panel-grid.two-one,
    .double-form {
        grid-template-columns: 1fr;
    }

    .app-shell {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .sidebar {
        position: sticky;
        top: 0.8rem;
        z-index: 20;
        max-height: none;
        padding: 1rem;
        border-radius: 24px;
    }

    .sidebar-nav-shell {
        padding: 0;
        border: none;
        background: transparent;
    }

    .sidebar-nav-head {
        display: none;
    }

    .sidebar-nav {
        display: flex;
        gap: 0.7rem;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.15rem 0 0.35rem;
        margin: 0 -0.05rem;
        scroll-snap-type: x proximity;
    }

    .nav-link {
        flex: 0 0 auto;
        scroll-snap-align: start;
        min-width: max-content;
        padding: 0.85rem 1rem;
        border-radius: 999px;
    }

    .sidebar-foot {
        margin-top: 0;
    }
}

@media (max-width: 780px) {
    .public-nav,
    .public-nav-links,
    .hero-actions,
    .demo-hero-actions,
    .sidebar-foot,
    .topbar,
    .mini-row,
    .list-row,
    .inline-form,
    .pricing-mini-row {
        flex-direction: column;
        align-items: stretch;
    }

    .metric-row,
    .hero-grid,
    .demo-pill-row,
    .form-grid.two-col,
    .item-row {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: auto;
    }

    .landing,
    .public-nav,
    .app-shell {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .card-panel,
    .auth-card,
    .panel-card,
    .sidebar,
    .topbar {
        padding: 1.2rem;
        border-radius: 22px;
    }

    .hero-copy h1 {
        font-size: 2.4rem;
    }

    .sidebar {
        top: 0.5rem;
        gap: 0.85rem;
        border-radius: 22px;
    }

    .brand-block p {
        font-size: 0.9rem;
    }

    .sidebar-nav {
        gap: 0.6rem;
        padding-bottom: 0.25rem;
    }

    .nav-link {
        padding: 0.78rem 0.95rem;
        font-size: 0.92rem;
    }

    .topbar h2 {
        font-size: 1.7rem;
    }

    .panel-head,
    .items-head {
        align-items: stretch;
    }

    .list-row-right {
        width: 100%;
        text-align: left;
    }

    .table-wrap {
        margin: 0 -0.2rem;
        padding: 0 0.2rem 0.2rem;
    }

    .chart-bars {
        min-height: 180px;
    }

    table {
        min-width: 640px;
    }
}
