/* =========================================================
   Lino Technologies LLC — shared design system
   ========================================================= */

:root {
    --bg: #0B0C10;
    --surface: #14161C;
    --surface-hover: #1B1E26;
    --border: #23262F;
    --text-primary: #F2F3F5;
    --text-secondary: #9CA3B5;
    --text-tertiary: #5B6272;

    --studio-accent: #4C7EFF;
    --studio-accent-soft: rgba(76, 126, 255, 0.14);
    --studio-accent-contrast: #0B0C10;

    --calva-accent: #4ADE80;
    --calva-accent-soft: rgba(74, 222, 128, 0.14);

    --pepta-accent: #A78BFA;
    --pepta-accent-soft: rgba(167, 139, 250, 0.14);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 20px;

    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-theme="light"] {
    --bg: #F7F8FA;
    --surface: #FFFFFF;
    --surface-hover: #F1F2F5;
    --border: #E6E8EC;
    --text-primary: #14161C;
    --text-secondary: #5B6272;
    --text-tertiary: #8B92A3;

    --studio-accent: #3457D5;
    --studio-accent-soft: rgba(52, 87, 213, 0.08);
    --studio-accent-contrast: #FFFFFF;

    --calva-accent: #16A34A;
    --calva-accent-soft: rgba(22, 163, 74, 0.08);

    --pepta-accent: #7C3AED;
    --pepta-accent-soft: rgba(124, 58, 237, 0.08);

    --shadow-sm: 0 1px 2px rgba(20, 22, 28, 0.06);
    --shadow-md: 0 12px 32px rgba(20, 22, 28, 0.08);
}

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

html { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.2s ease, color 0.2s ease;
}

a { color: inherit; }

/* ---------- Topbar ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wordmark-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--studio-accent);
    display: inline-block;
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.theme-toggle:hover {
    border-color: var(--studio-accent);
    color: var(--studio-accent);
}

.theme-toggle:active { transform: scale(0.92); }

.theme-toggle svg { width: 17px; height: 17px; }

.theme-toggle .icon-moon { display: none; }

[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: flex; }

/* ---------- Container ---------- */
.container {
    max-width: 880px;
    margin: 0 auto;
    padding: 64px 24px 96px;
    flex: 1;
    width: 100%;
}

.container-narrow { max-width: 680px; }

/* ---------- Hero ---------- */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--studio-accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

h1 {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -1.2px;
    line-height: 1.08;
    margin-bottom: 18px;
}

.subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 480px;
    margin-bottom: 64px;
}

/* ---------- Section headers ---------- */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-count {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-tertiary);
    letter-spacing: 0.5px;
}

/* ---------- Product / app cards ---------- */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 56px;
}

.app-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--app-accent, var(--studio-accent));
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

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

.app-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.app-icon {
    width: 48px;
    height: 48px;
    background: var(--app-accent-soft, var(--studio-accent-soft));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.status-tag {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 6px;
    background: var(--app-accent-soft, var(--studio-accent-soft));
    color: var(--app-accent, var(--studio-accent));
    white-space: nowrap;
}

.status-tag-ghost {
    background: transparent;
    border: 1px dashed var(--border);
    color: var(--text-tertiary);
}

.app-info h2 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}

.app-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.app-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.meta-dot { color: var(--border); }

.attribution-link {
    font-size: 12px;
    color: var(--text-tertiary);
    text-decoration: none;
    margin-top: -6px;
}

.attribution-link:hover { color: var(--text-secondary); }

.app-card-ghost {
    border-left: 3px dashed var(--border);
    background: transparent;
}

.app-card-ghost .app-icon {
    background: transparent;
    border: 1px dashed var(--border);
    color: var(--text-tertiary);
}

.app-card-ghost:hover {
    transform: none;
    box-shadow: none;
    border-left-color: var(--text-tertiary);
}

/* ---------- Divider ---------- */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin-bottom: 48px;
}

/* ---------- Dev / CTA section ---------- */
.dev-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
}

.dev-text h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

.dev-text p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 360px;
    line-height: 1.5;
}

.dev-link {
    display: inline-block;
    background: var(--studio-accent);
    color: var(--studio-accent-contrast);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.dev-link:hover { opacity: 0.88; transform: translateY(-1px); }

/* ---------- Footer ---------- */
footer.site-footer {
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 28px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-inner p {
    font-size: 13px;
    color: var(--text-tertiary);
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-tertiary);
    text-decoration: none;
    letter-spacing: 0.3px;
}

.footer-nav a:hover { color: var(--studio-accent); }

/* ---------- Forms (support page) ---------- */
.form-card {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

input[type="email"],
textarea,
select {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    width: 100%;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%239CA3B5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

input[type="email"]:focus,
textarea:focus,
select:focus {
    border-color: var(--studio-accent);
}

textarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.6;
}

.submit-btn {
    display: inline-block;
    background: var(--studio-accent);
    color: var(--studio-accent-contrast);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    align-self: flex-start;
    transition: opacity 0.15s ease, transform 0.15s ease;
    font-family: var(--font-body);
}

.submit-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.submit-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.helper-text {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* ---------- Legal pages ---------- */
.legal-body h1 {
    font-size: 32px;
    letter-spacing: -0.6px;
    margin-bottom: 8px;
}

.legal-meta {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 40px;
}

.legal-body > .container-narrow > p.intro {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.legal-body h2 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}

.legal-body p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.legal-body ul {
    margin: 0 0 16px 20px;
}

.legal-body ul li {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-body strong { color: var(--text-primary); font-weight: 600; }

.app-table {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
}

.app-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--surface);
}

.app-row + .app-row { border-top: 1px solid var(--border); }

.app-row-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--row-accent, var(--studio-accent));
    flex-shrink: 0;
}

.app-row-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14.5px;
    color: var(--text-primary);
    min-width: 90px;
}

.app-row-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    flex: 1;
}

.app-row-age {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.legal-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 48px 0 24px;
}

.legal-body footer {
    font-size: 13px;
    color: var(--text-tertiary);
}

.note-box {
    border: 1px solid var(--border);
    border-left: 3px solid var(--studio-accent);
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    margin-bottom: 24px;
}

.note-box p {
    margin-bottom: 0;
    font-size: 13.5px;
    color: var(--text-secondary);
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
    h1 { font-size: 32px; }
    .container { padding: 48px 20px 72px; }
    .dev-section { flex-direction: column; align-items: flex-start; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}