/* Cliniform — Marketing Site */

:root {
    --color-primary: #2D6A6A;
    --color-primary-dark: #1F4F4F;
    --color-primary-light: #3D8A8A;
    --color-accent: #E8A87C;
    --color-accent-warm: #D4896A;
    --color-bg: #FAFAF8;
    --color-bg-alt: #F0F4F3;
    --color-surface: #FFFFFF;
    --color-text: #1A2B2B;
    --color-text-muted: #5C7171;
    --color-text-light: #8A9E9E;
    --color-border: #E2EAEA;
    --color-success: #3D8B6E;
    --color-danger: #C45C5C;
    --color-ai: #6B5B95;
    --font-sans: 'DM Sans', system-ui, sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 3px rgba(26, 43, 43, 0.06);
    --shadow-md: 0 4px 20px rgba(26, 43, 43, 0.08);
    --shadow-lg: 0 12px 40px rgba(26, 43, 43, 0.12);
    --shadow-xl: 0 24px 60px rgba(26, 43, 43, 0.15);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1200px;
    --header-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border: 2px solid var(--color-border);
    color: var(--color-text);
    background: var(--color-surface);
}
.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-ghost {
    color: var(--color-text-muted);
    padding: 10px 16px;
}
.btn-ghost:hover { color: var(--color-primary); }

.btn-white {
    background: #fff;
    color: var(--color-primary);
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-md); }
.btn-block { width: 100%; }

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: all var(--transition);
}

.site-header.scrolled {
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-img {
    display: block;
    height: 48px;
    width: auto;
}

.logo-img-footer {
    height: 42px;
}

.logo-mark { color: var(--color-primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--color-primary); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* Hero */
.hero {
    position: relative;
    padding: calc(var(--header-height) + 60px) 0 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(45, 106, 106, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(232, 168, 124, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(45, 106, 106, 0.08);
    border: 1px solid rgba(45, 106, 106, 0.15);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--color-text);
}

.hero h1 em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--color-primary);
}

.hero-lead {
    font-size: 18px;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.hero-note {
    font-size: 13px;
    color: var(--color-text-light);
}

/* Hero mockup */
.hero-visual {
    position: relative;
}

.mockup-window {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.mockup-titlebar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #FF5F57; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #28CA41; }

.mockup-title {
    margin-left: 8px;
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.mockup-body {
    display: grid;
    grid-template-columns: 140px 1fr;
    min-height: 280px;
}

.mockup-sidebar {
    padding: 16px 12px;
    background: var(--color-bg);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mockup-nav-item {
    padding: 8px 10px;
    font-size: 11px;
    color: var(--color-text-light);
    border-radius: var(--radius-sm);
}

.mockup-nav-item.active {
    background: rgba(45, 106, 106, 0.1);
    color: var(--color-primary);
    font-weight: 600;
}

.mockup-nav-item.done::before {
    content: '✓ ';
    color: var(--color-success);
}

.mockup-main {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mockup-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #FEF3E8;
    border: 1px solid #F5D5B8;
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: #8B5E3C;
    font-weight: 500;
}

.mockup-field {
    height: 32px;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}
.mockup-field.short { width: 60%; }

.mockup-checks {
    display: flex;
    gap: 8px;
}

.mockup-check {
    width: 16px;
    height: 16px;
    border: 2px solid var(--color-border);
    border-radius: 3px;
}
.mockup-check.checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.mockup-signature {
    margin-top: auto;
    padding: 12px;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-sm);
}

.sig-label {
    font-size: 10px;
    color: var(--color-text-light);
    display: block;
    margin-bottom: 4px;
}

.sig-svg {
    width: 100%;
    height: 30px;
    color: var(--color-primary);
}

.hero-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    animation: float 4s ease-in-out infinite;
}

.hero-float-1 {
    top: -10px;
    right: -20px;
    color: var(--color-primary);
}

.hero-float-2 {
    bottom: 40px;
    left: -30px;
    color: var(--color-success);
    animation-delay: -2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Professions strip */
.professions-strip {
    padding: 32px 0;
    background: var(--color-primary);
    overflow: hidden;
}

.strip-label {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.professions-scroll {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.professions-scroll span {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-header h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-header h2 em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.section-header h1 em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.section-header p {
    font-size: 18px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Problem */
.problem { background: var(--color-surface); }

.problem-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: center;
}

.problem-card {
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.problem-card.old {
    background: #FEF8F8;
    border-color: #F0D8D8;
}

.problem-card.new {
    background: #F5FAF8;
    border-color: #C8E0D8;
    box-shadow: var(--shadow-md);
}

.problem-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.problem-icon.bad {
    background: #FCEAEA;
    color: var(--color-danger);
}

.problem-icon.good {
    background: #E8F5EF;
    color: var(--color-success);
}

.problem-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.problem-card li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 15px;
    color: var(--color-text-muted);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.problem-card li:last-child { border-bottom: none; }

.problem-card.old li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: var(--color-danger);
    font-size: 12px;
    font-weight: 700;
}

.problem-card.new li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-size: 12px;
    font-weight: 700;
}

.problem-arrow {
    color: var(--color-primary);
    opacity: 0.5;
}

/* Workflow */
.workflow { background: var(--color-bg); }

.workflow-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.workflow-tab {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-muted);
    border-radius: 100px;
    border: 2px solid transparent;
    transition: all var(--transition);
}

.workflow-tab:hover { color: var(--color-primary); }

.workflow-tab.active {
    background: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.workflow-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    animation: fadeUp 0.4s ease;
}

.workflow-panel.active { display: grid; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.workflow-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.workflow-content > p {
    font-size: 17px;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.workflow-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    font-size: 15px;
    color: var(--color-text);
}

.workflow-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.6;
}

/* Workflow visuals */
.phone-mockup {
    display: flex;
    justify-content: center;
}

.phone-screen {
    width: 260px;
    background: var(--color-surface);
    border-radius: 28px;
    padding: 24px 20px;
    box-shadow: var(--shadow-xl);
    border: 3px solid var(--color-text);
}

.phone-header {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.phone-progress {
    height: 4px;
    background: var(--color-bg-alt);
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
}

.phone-progress-bar {
    height: 100%;
    background: var(--color-primary);
    border-radius: 2px;
}

.phone-fields { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }

.phone-field {
    height: 36px;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.phone-field.filled { background: rgba(45, 106, 106, 0.06); border-color: rgba(45, 106, 106, 0.2); }

.phone-btn {
    padding: 12px;
    background: var(--color-primary);
    color: #fff;
    text-align: center;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
}

.dashboard-mockup {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.dash-alert {
    padding: 10px 14px;
    background: #FEF3E8;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: #8B5E3C;
    margin-bottom: 16px;
}

.dash-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}

.dash-row span:first-child { color: var(--color-text-muted); }
.dash-row span:last-child { font-weight: 600; }

.dash-ai {
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #F3F0FA 0%, #EDE8F5 100%);
    border-radius: var(--radius-md);
    border: 1px solid #D8D0E8;
}

.dash-ai strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-ai);
    margin-bottom: 8px;
}

.dash-ai p { font-size: 13px; color: #4A3F6B; line-height: 1.6; }

.dash-note {
    padding: 16px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.dash-note-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.dash-note p { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; }

.dash-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dash-photo {
    aspect-ratio: 4/3;
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
}

.dash-photo.after { background: rgba(45, 106, 106, 0.08); color: var(--color-primary); }

/* Features */
.features { background: var(--color-surface); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(45, 106, 106, 0.2);
}

.feature-card-lg {
    grid-column: span 2;
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: rgba(45, 106, 106, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.65;
}

.template-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.template-tags span {
    padding: 5px 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.feature-card-ai {
    background: linear-gradient(135deg, #F8F6FC 0%, #F0ECF8 100%);
    border-color: #D8D0E8;
    position: relative;
}

.ai-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 10px;
    background: var(--color-ai);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ai-example {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
    font-size: 13px;
    line-height: 1.6;
}

.ai-output {
    margin-top: 8px;
    color: var(--color-ai);
    font-weight: 500;
}

/* Pricing */
.pricing { background: var(--color-bg); }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

.pricing-card {
    padding: 32px 28px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    position: relative;
    transition: all var(--transition);
}

.pricing-card:hover {
    box-shadow: var(--shadow-md);
}

.pricing-card-popular {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.03);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--color-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 100px;
    white-space: nowrap;
}

.pricing-tier {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--color-text);
}

.pricing-price .currency {
    font-size: 24px;
    vertical-align: super;
    margin-right: 2px;
}

.pricing-price .period,
.pricing-price .period-plus {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.pricing-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.pricing-features {
    margin-bottom: 28px;
}

.pricing-features li {
    padding: 8px 0 8px 24px;
    position: relative;
    font-size: 14px;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
    font-size: 12px;
}

.pricing-addons {
    margin-top: 60px;
    text-align: center;
}

.pricing-addons h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.addons-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.addon-item {
    padding: 16px 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
}

.addon-item strong { font-size: 14px; }
.addon-item span { font-size: 13px; color: var(--color-text-muted); }

/* CTA */
.cta-section {
    padding: 80px 0;
    background: var(--color-primary);
}

.cta-inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-inner h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-inner > p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-note {
    margin-top: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* Footer */
.site-footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .nav-logo {
    color: #fff;
    margin-bottom: 16px;
}

.footer-brand .logo-mark { color: var(--color-primary-light); }

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    margin-bottom: 16px;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
    font-size: 14px;
    transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 13px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-inner,
    .workflow-panel { grid-template-columns: 1fr; gap: 40px; }

    .hero-visual { order: -1; max-width: 500px; margin: 0 auto; }

    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-card-lg { grid-column: span 2; }

    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-card-popular { transform: none; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-surface);
        padding: 20px 24px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        gap: 0;
    }

    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 12px 0; }

    .nav-actions .btn-ghost { display: none; }
    .nav-toggle { display: flex; }

    .problem-grid { grid-template-columns: 1fr; }
    .problem-arrow { transform: rotate(90deg); justify-self: center; }

    .features-grid { grid-template-columns: 1fr; }
    .feature-card-lg { grid-column: span 1; }

    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    .hero-float { display: none; }

    .mockup-body { grid-template-columns: 1fr; }
    .mockup-sidebar { display: none; }
}

@media (max-width: 480px) {
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
    .section { padding: 60px 0; }
}

/* Legal pages */
.legal-body { background: var(--color-bg); }

.legal-page {
    padding: calc(var(--header-height) + 48px) 0 80px;
}

.legal-container {
    max-width: 760px;
}

.legal-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.legal-header h1 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
    line-height: 1.25;
}

.legal-meta {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
}

.legal-content {
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-text);
}

.legal-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin: 36px 0 12px;
}

.legal-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text);
    margin: 24px 0 8px;
}

.legal-content p {
    margin-bottom: 16px;
}

.legal-content ul {
    margin: 0 0 16px 1.25rem;
    list-style: disc;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    color: var(--color-primary-dark);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 14px;
}

.legal-table th,
.legal-table td {
    padding: 12px 14px;
    text-align: left;
    border: 1px solid var(--color-border);
}

.legal-table th {
    background: var(--color-bg-alt);
    font-weight: 600;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.legal-nav a {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition);
}

.legal-nav a:hover,
.legal-nav a.active {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(45, 106, 106, 0.06);
}

.legal-footer {
    padding: 24px 0;
}

.legal-footer .footer-bottom {
    border-top: none;
    padding-top: 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* Templates page */
.templates-body {
    background: var(--color-bg);
}

.templates-hero {
    padding: calc(var(--header-height) + 48px) 0 40px;
    background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

.templates-hero-actions {
    text-align: center;
    margin-top: 32px;
}

.templates-hero-note {
    margin-top: 12px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.templates-library {
    padding-top: 24px;
}

.templates-category {
    margin-bottom: 48px;
}

.templates-category-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.template-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.template-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.template-card-name {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.template-card-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.55;
    margin-bottom: 14px;
}

.template-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(45, 106, 106, 0.1);
    color: var(--color-primary);
}

.template-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.template-tag {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-light);
    background: var(--color-bg-alt);
    padding: 4px 10px;
    border-radius: 999px;
}

.template-card-actions {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 14px;
}

.nav-links a.active {
    color: var(--color-primary);
    font-weight: 600;
}

body.template-modal-open {
    overflow: hidden;
}

.template-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.template-modal[hidden] {
    display: none;
}

.template-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 43, 43, 0.55);
}

.template-modal-panel {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: calc(100vh - 48px);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.template-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--color-border);
}

.template-modal-header strong {
    display: block;
    font-size: 1rem;
}

.template-modal-caption {
    display: block;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.template-modal-close {
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0 4px;
}

.template-modal-close:hover {
    color: var(--color-text);
}

.template-modal-body {
    flex: 1;
    min-height: 0;
    background: var(--color-bg-alt);
}

.template-preview-iframe {
    display: block;
    width: 100%;
    height: min(75vh, 720px);
    border: none;
    background: #fff;
}

@media (max-width: 768px) {
    .templates-grid {
        grid-template-columns: 1fr;
    }

    .template-modal {
        padding: 12px;
    }

    .template-preview-iframe {
        height: min(70vh, 600px);
    }
}

/* About page */
.about-body {
    background: var(--color-bg);
}

.about-hero {
    padding: calc(var(--header-height) + 48px) 0 32px;
    background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

.about-hero-lead {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
}

.about-story,
.about-values,
.about-who,
.about-uk {
    margin-bottom: 56px;
}

.about-story h2,
.about-values h2,
.about-who h2,
.about-uk h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-text);
}

.about-story p,
.about-who p,
.about-uk p {
    color: var(--color-text-muted);
    line-height: 1.75;
    margin-bottom: 16px;
}

.about-story p:last-child,
.about-uk p:last-child {
    margin-bottom: 0;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.about-value-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.about-value-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.about-value-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

.about-professions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 24px;
    margin-top: 20px;
    list-style: none;
    padding: 0;
}

.about-professions li {
    position: relative;
    padding-left: 20px;
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.5;
}

.about-professions li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.7;
}

.about-address {
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
}

.about-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}

.cta-section .about-cta-secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    background: transparent;
}

.cta-section .about-cta-secondary:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .about-values-grid,
    .about-professions {
        grid-template-columns: 1fr;
    }
}

/* Contact & careers pages */
.company-body {
    background: var(--color-bg);
}

.company-hero {
    padding: calc(var(--header-height) + 48px) 0 32px;
    background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

.company-hero .section-header.center {
    max-width: 720px;
    margin-bottom: 0;
}

.company-hero-lead {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.company-content.section {
    padding-top: 48px;
    padding-bottom: 100px;
}

.company-container-wide {
    max-width: 1040px;
    margin: 0 auto;
}

.company-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
    gap: 28px;
    align-items: start;
}

.company-panel,
.company-sidebar-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.company-panel {
    padding: 32px;
}

.company-panel h2,
.company-sidebar-card h3,
.company-careers-values h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
}

.company-panel-intro {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
}

.company-panel p,
.company-sidebar-card p {
    color: var(--color-text-muted);
    line-height: 1.75;
    margin-bottom: 16px;
}

.company-panel p:last-child,
.company-sidebar-card p:last-child {
    margin-bottom: 0;
}

.company-panel a:not(.btn) {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.company-panel a:not(.btn):hover {
    text-decoration: underline;
}

.company-panel .btn {
    margin-top: 8px;
}

.company-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.company-sidebar-card {
    padding: 24px;
}

.company-sidebar-card-muted {
    background: var(--color-bg-alt);
}

.company-sidebar-card h3 {
    font-size: 1rem;
}

.company-sidebar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.company-email-link {
    display: inline-block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    word-break: break-word;
}

.company-email-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.company-address {
    margin-top: 4px;
    padding: 14px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
    line-height: 1.6;
}

.company-sidebar-card-muted .company-address {
    background: var(--color-surface);
}

.company-alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 24px;
}

.company-alert-success {
    background: #EDF7F2;
    border: 1px solid #B8DFC9;
    color: #2D6A4A;
}

.company-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.company-form-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.company-form-field input,
.company-form-field select,
.company-form-field textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.company-form-field input:focus,
.company-form-field select:focus,
.company-form-field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 106, 0.12);
}

.company-form-field textarea {
    resize: vertical;
    min-height: 140px;
}

.company-form-error {
    margin-top: 6px;
    font-size: 13px;
    color: var(--color-danger);
}

.company-form-honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.company-careers-values {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.company-values-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.company-value-card {
    padding: 20px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.company-value-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.company-value-card p {
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.6;
}

.company-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}

.cta-section .company-cta-secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    background: transparent;
}

.cta-section .company-cta-secondary:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
    .company-page-grid {
        grid-template-columns: 1fr;
    }

    .company-values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .company-panel {
        padding: 24px;
    }
}

/* Integrations page */
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.integration-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.integration-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.integration-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    padding: 8px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.integration-card-logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.integration-card-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text);
}

.integration-card-desc {
    font-size: 14px;
    line-height: 1.65;
    color: var(--color-text-muted);
    margin: 0;
}

.integrations-note {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.integrations-note h2 {
    text-align: center;
}

.integrations-note .company-panel-intro {
    text-align: center;
}

@media (max-width: 900px) {
    .integrations-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .integrations-grid {
        grid-template-columns: 1fr;
    }
}
