/* ===== CSS Custom Properties ===== */
:root {
    --color-bg: #F8FAFC;
    --color-surface: #FFFFFF;
    --color-text: #1E293B;
    --color-text-muted: #64748B;
    --color-primary: #F59E0B;
    --color-primary-dark: #D97706;
    --color-primary-light: #FEF3C7;
    --color-accent: #0F172A;
    --color-border: #E2E8F0;
    --color-success: #10B981;
    --color-danger: #EF4444;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --max-width: 1100px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--color-primary-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ===== Skip Link ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-accent);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 1000;
    font-weight: 600;
    border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
    top: 0;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* ===== Header ===== */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-accent);
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
    color: var(--color-accent);
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-list a {
    font-weight: 500;
    color: var(--color-text-muted);
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
    color: var(--color-accent);
    border-bottom-color: var(--color-primary);
    text-decoration: none;
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, var(--color-accent) 0%, #1E293B 100%);
    color: #F1F5F9;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 2rem;
    color: #CBD5E1;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-accent);
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--color-primary-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ===== How It Works ===== */
.how-it-works {
    padding: 4rem 0;
    background: var(--color-surface);
}

.how-it-works h2,
.why-use h2,
.builder-section h2,
.cta-section h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--color-accent);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.step-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: var(--color-accent);
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

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

/* ===== Builder Section ===== */
.builder-section {
    padding: 4rem 0;
    background: var(--color-bg);
}

.section-intro {
    text-align: center;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: -1rem auto 2rem;
}

.meeting-form {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    max-width: 750px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: var(--color-accent);
}

.required {
    color: var(--color-danger);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--color-bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

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

.action-items-fieldset {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.action-items-fieldset legend {
    font-weight: 700;
    padding: 0 0.5rem;
    color: var(--color-accent);
}

.action-item-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.action-item-row input {
    flex: 1;
    min-width: 120px;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    background: var(--color-bg);
}

.action-item-row input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.remove-action-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-danger);
    font-size: 1.3rem;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.remove-action-btn:hover {
    background: #FEE2E2;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-button {
    background: var(--color-primary);
    color: var(--color-accent);
    font-weight: 700;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

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

.secondary-button {
    background: var(--color-surface);
    color: var(--color-accent);
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.secondary-button:hover {
    background: var(--color-bg);
    border-color: var(--color-primary);
}

/* ===== Output Section ===== */
.output-section {
    margin-top: 2.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

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

.output-header h2 {
    margin-bottom: 0;
    text-align: left;
}

.output-actions {
    display: flex;
    gap: 0.5rem;
}

.notes-output {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
    white-space: pre-wrap;
    box-shadow: var(--shadow-sm);
    max-height: 500px;
    overflow-y: auto;
}

.copy-feedback {
    text-align: center;
    margin-top: 0.75rem;
    font-weight: 600;
    color: var(--color-success);
    min-height: 1.5rem;
}

/* ===== Why Use ===== */
.why-use {
    padding: 4rem 0;
    background: var(--color-surface);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    text-align: center;
}

.benefit-card svg {
    margin: 0 auto 1rem;
}

.benefit-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

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

/* ===== CTA Section ===== */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #FDE68A 100%);
    text-align: center;
}

.cta-section p {
    max-width: 550px;
    margin: 0 auto 2rem;
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--color-accent);
    color: #94A3B8;
    padding: 2rem 0;
    margin-top: auto;
}

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

.footer-nav {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: #CBD5E1;
    font-size: 0.9rem;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero {
        padding: 2.5rem 0;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .meeting-form {
        padding: 1.25rem;
    }

    .action-item-row {
        flex-direction: column;
    }

    .action-item-row input {
        width: 100%;
    }

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

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-list {
        gap: 0.75rem;
        font-size: 0.9rem;
    }

    .steps-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .meeting-form,
    .output-header .output-actions,
    .cta-section,
    .how-it-works,
    .why-use,
    .hero,
    .skip-link {
        display: none !important;
    }

    .notes-output {
        border: none;
        box-shadow: none;
        max-height: none;
        overflow: visible;
        padding: 0;
    }

    body {
        background: #fff;
    }
}



/* 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;
}
