/* MD Stripper – Global Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #f9f7f1;
    --surface: #ffffff;
    --dark: #2d2d3f;
    --accent: #f0c040;
    --accent-hover: #d4a82e;
    --text: #2e2e2e;
    --text-light: #5a5a5a;
    --border: #e0dcd0;
    --radius: 10px;
    --shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: "SF Mono", SFMono-Regular, ui-monospace, "DejaVu Sans Mono", Menlo, Consolas, monospace;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--dark);
    color: #fff;
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    background: var(--dark);
    color: #fff;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
}

.logo-text {
    letter-spacing: -0.3px;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 24px;
}

.nav-list a {
    color: #e0dcd0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-list a:hover,
.nav-list a:focus {
    color: var(--accent);
    outline: none;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #3b3b52 0%, #2d2d3f 100%);
    color: #fff;
    padding: 64px 0 56px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-sub {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: #d4d4dc;
}

/* Section Titles */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
    color: var(--dark);
}

/* Converter */
.converter-section {
    padding: 56px 0 40px;
}

.converter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

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

.panel-label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
    font-size: 1rem;
}

.code-area {
    width: 100%;
    min-height: 260px;
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.6;
    border: 1px solid var(--border);
    border-radius: 8px;
    resize: vertical;
    background: #fafaf7;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.code-area:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(240, 192, 64, 0.25);
}

.output-area {
    background: #f4f4ee;
    cursor: default;
}

.hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 8px;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--accent);
    color: var(--dark);
}
.btn-primary:hover:not(:disabled),
.btn-primary:focus-visible {
    background: var(--accent-hover);
    outline: 2px solid var(--dark);
    outline-offset: 2px;
}
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: #e8e4d4;
    color: var(--dark);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: #d5cfbb;
    outline: 2px solid var(--dark);
    outline-offset: 2px;
}

.feedback-msg {
    font-size: 0.9rem;
    margin-top: 10px;
    color: #2a7b2a;
    font-weight: 500;
    min-height: 22px;
}

/* Features */
.features {
    padding: 60px 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 16px;
}

.feature-card {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.feature-icon {
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* How It Works */
.how-it-works {
    padding: 60px 0;
    background: var(--bg);
}

.how-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 32px;
    color: var(--text-light);
    font-size: 1.05rem;
}

.strip-list {
    list-style: none;
    max-width: 750px;
    margin: 0 auto 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.strip-list li {
    background: var(--surface);
    padding: 14px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    font-size: 0.98rem;
}

.strip-list code {
    background: #f0ede0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.how-note {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
}

/* Use Cases */
.use-cases {
    padding: 60px 0;
    background: #fff;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.case-card {
    background: var(--bg);
    padding: 28px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.case-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.case-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: #ccc;
    padding: 28px 0;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

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

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
}
.footer-nav a:hover {
    color: var(--accent);
}

/* Legal pages */
.legal-content {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px 24px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.legal-content h1 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--dark);
}

/* About page */
.about-content {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px 24px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.about-content h1 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--dark);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

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

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
