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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background: #f5f5f7;
    min-height: 100vh;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #1d1d1f 0%, #86868b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 19px;
    color: #86868b;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

.privacy-notice {
    background: linear-gradient(135deg, #e8f4ff 0%, #f0f8ff 100%);
    border: 1px solid #cce7ff;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.privacy-notice h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 6px;
}

.privacy-notice p {
    color: #86868b;
    font-size: 14px;
}

/* Main content wrapper for responsive layout */
.main-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

.main-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e5e7;
    transition: all 0.3s ease;
}

.main-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.input-section {
    margin-bottom: 48px;
}

.input-label {
    font-size: 17px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
    display: block;
}

.password-input-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.password-input {
    width: 100%;
    padding: 16px 80px 16px 20px;
    border: 2px solid #d2d2d7;
    border-radius: 12px;
    font-size: 17px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', monospace;
    background: #fafafa;
    transition: all 0.2s ease;
    outline: none;
}

.password-input:focus {
    border-color: #007aff;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.toggle-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #007aff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.toggle-btn:hover {
    background: rgba(0, 122, 255, 0.1);
}

.status-row {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #86868b;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
}

.status-active {
    background: #30d158;
    box-shadow: 0 0 4px rgba(48, 209, 88, 0.4);
}

.status-fallback {
    background: #ff9500;
    box-shadow: 0 0 4px rgba(255, 149, 0, 0.4);
}

.strength-section {
    margin-bottom: 48px;
}

.strength-meter {
    height: 8px;
    background: #e5e5ea;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.strength-fill {
    height: 100%;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 4px;
}

.strength-text {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.metric-card {
    background: #f5f5f7;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    cursor: help;
}

.metric-card:hover {
    border-color: #007aff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Tooltip Styles */
.tooltip-container {
    position: relative;
}

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #1d1d1f;
    padding: 20px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
    width: 320px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e7;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-bottom: 12px;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: #ffffff;
}

.tooltip-container:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.tooltip h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1d1d1f;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.tooltip p {
    margin-bottom: 12px;
    color: #424245;
    font-weight: 500;
}

.tooltip ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tooltip li {
    padding: 4px 0;
    color: #424245;
    font-size: 13px;
    font-weight: 400;
}

.tooltip .text-xs {
    font-size: 12px;
}

.tooltip .text-gray-500 {
    color: #86868b;
    font-style: italic;
}

.tooltip .mt-2 {
    margin-top: 12px;
}

.metric-value {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-value.small {
    font-size: 14px;
    line-height: 1.3;
    color: #1d1d1f;
}

.metric-label {
    font-size: 15px;
    color: #86868b;
    font-weight: 500;
}

.feedback-card {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.feedback-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1d1d1f;
}

.feedback-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feedback-card li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 14px;
    color: #424245;
}

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

.feedback li::before {
    content: "•";
    color: #007aff;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-right: 8px;
}

.examples-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e5e7;
    transition: all 0.3s ease;
}

.examples-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: #1d1d1f;
}

.warning-banner {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    text-align: center;
}

.warning-banner strong {
    color: #856404;
    font-weight: 600;
    font-size: 14px;
}

.warning-banner span {
    color: #856404;
    font-size: 13px;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.example-btn {
    background: white;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.example-btn:hover {
    background: #f5f5f7;
    border-color: #007aff;
    color: #007aff;
}

.generated-password {
    background: #f5f5f7;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    padding: 16px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 14px;
    color: #1d1d1f;
    word-break: break-all;
    text-align: center;
    margin-bottom: 16px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.use-btn {
    width: 100%;
    background: #007aff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 16px;
}

.use-btn:hover {
    background: #0056cc;
}

.use-btn:disabled {
    background: #d2d2d7;
    cursor: not-allowed;
}

.info-section {
    background: white !important;
    border-radius: 24px;
    padding: 48px;
    margin-top: 40px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    width: 100% !important;
    clear: both !important;
    display: block !important;
    position: relative !important;
}

.info-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: #1d1d1f;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.info-card {
    background: #f5f5f7;
    border-radius: 16px;
    padding: 24px;
}

.info-card h4 {
    color: #1d1d1f;
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 12px;
}

.info-card p {
    color: #424245;
    font-size: 15px;
    margin-bottom: 12px;
}

/* Responsive design */
@media (min-width: 900px) {
    .main-content-wrapper {
        grid-template-columns: 1fr 1fr !important;
        gap: 40px;
        align-items: start;
    }
    
    .main-card {
        min-height: 500px;
    }
    
    .examples-section {
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 16px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero .subtitle {
        font-size: 17px;
    }
    
    .main-content-wrapper {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .main-card {
        padding: 20px;
    }
    
    .examples-section {
        padding: 20px;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .tooltip {
        width: 300px;
        font-size: 13px;
        padding: 16px;
    }
    
    .section-title {
        font-size: 20px;
    }
}

/* Medium screens - 2 columns */
@media (max-width: 768px) {
    .analysis-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
}

/* Small screens - 1 column */
@media (max-width: 480px) {
    .analysis-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .example-btn {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .tooltip {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100vw - 40px);
        max-width: 340px;
        padding: 20px;
        font-size: 14px;
    }
    
    .tooltip::after {
        display: none;
    }
    
    .disclaimer {
        padding: 20px;
        margin: 30px 16px 20px;
        font-size: 12px;
    }
    
    .disclaimer h3 {
        font-size: 15px;
    }
    
    .faq-section {
        padding: 0 16px;
        margin: 30px auto;
    }
    
    .faq-title {
        font-size: 20px;
        margin-bottom: 24px;
    }
    
    .faq-question {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .reality-check {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .guidelines-section {
        padding: 0 16px;
        margin: 30px auto;
    }
    
    .guidelines-title {
        font-size: 22px;
    }
    
    .guidelines-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .guideline-card {
        padding: 20px;
    }
    
    .guidelines-cta {
        padding: 24px 20px;
    }
    
    .cta-content h3 {
        font-size: 18px;
    }
}

/* Guidelines Section */
.guidelines-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.guidelines-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.guidelines-subtitle {
    text-align: center;
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 40px;
}

.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.guideline-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.guideline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.guideline-card.priority-critical::before {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.guideline-card.priority-high::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.guideline-card.priority-medium::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.guideline-card.priority-low::before {
    background: linear-gradient(90deg, #6366f1, #4f46e5);
}

.guideline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.guideline-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
}

.guideline-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 12px 0;
}

.guideline-card p {
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
    margin: 0 0 16px 0;
}

.guideline-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
}

.detail-text {
    font-size: 12px;
    color: #9ca3af;
    font-style: italic;
}

.guidelines-cta {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.cta-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 24px 0;
}

 

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.faq-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 32px;
}

.faq-item {
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 24px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: #1d1d1f;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: #f9fafb;
}

.faq-arrow {
    transition: transform 0.3s ease;
    font-size: 14px;
    color: #6b7280;
}

.faq-question.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f9fafb;
}

.faq-answer.open {
    max-height: 1000px;
    padding: 20px 24px 24px;
}

.faq-answer p {
    margin: 0 0 16px 0;
    line-height: 1.6;
    color: #374151;
}

.faq-answer ul {
    margin: 16px 0;
    padding-left: 20px;
    color: #374151;
}

.faq-answer li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.comparison-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.comparison-item h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
}

.comparison-item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

.comparison-item em {
    color: #6b7280;
    font-style: italic;
}

.reality-check {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.problem, .solution {
    background: white;
    border-radius: 8px;
    padding: 16px;
}

.problem {
    border-left: 4px solid #ef4444;
}

.solution {
    border-left: 4px solid #10b981;
}

.problem h4, .solution h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
}

.problem h4 {
    color: #dc2626;
}

.solution h4 {
    color: #059669;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.stat-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.stat-item h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
}

/* Disclaimer section */
.disclaimer {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin: 40px auto 24px;
    max-width: 800px;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
}

.disclaimer h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.disclaimer p {
    margin: 0 0 12px 0;
}

.disclaimer p:last-child {
    margin-bottom: 0;
}

.disclaimer strong {
    color: #1f2937;
    font-weight: 600;
}

/* Strength colors */
.very-weak { background: linear-gradient(90deg, #ff3b30 0%, #ff6b6b 100%); }
.weak { background: linear-gradient(90deg, #ff9500 0%, #ffab00 100%); }
.fair { background: linear-gradient(90deg, #ffcc02 0%, #ffd60a 100%); }
.good { background: linear-gradient(90deg, #30d158 0%, #32d74b 100%); }
.strong { background: linear-gradient(90deg, #00c896 0%, #00d4aa 100%); }

/* Utility classes (replacing Tailwind) */
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-blue-600 { color: #2563eb; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.underline { text-decoration: underline; }
.font-semibold { font-weight: 600; }
.hover\:text-blue-800:hover { color: #1e40af; }

/* Download button */
.download-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background: #007aff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.download-btn:hover {
    background: #0056cc;
    transform: translateY(-1px);
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn:disabled {
    background: #86868b;
    cursor: wait;
    transform: none;
}

/* Focus states for accessibility */
.password-input:focus,
.toggle-btn:focus,
.example-btn:focus,
.use-btn:focus,
.download-btn:focus,
.faq-question:focus {
    outline: 2px solid #007aff;
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #007aff;
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    border-radius: 0 0 8px 0;
    font-weight: 500;
    transition: top 0.2s ease;
}

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

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Keyboard-accessible tooltips */
.tooltip-container:focus-within .tooltip,
.metric-card:focus .tooltip {
    opacity: 1;
    visibility: visible;
}

.metric-card:focus {
    border-color: #007aff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
