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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e4e;
    background: #fbf9f2;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

/* ===== Skip Link ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: #3b5e7a;
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 1000;
    text-decoration: none;
}

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

/* ===== Header ===== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e7dfd0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #3b5e7a;
    font-weight: 700;
    font-size: 1.25rem;
}

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

.nav-list a {
    text-decoration: none;
    color: #4a5c6c;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-list a:hover,
.nav-list a:focus-visible {
    color: #3b5e7a;
    text-decoration: underline;
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, #e9e2d0 0%, #f5f0e6 100%);
    text-align: center;
    padding: 3.5rem 1.5rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e4e;
    max-width: 700px;
    margin: 0 auto 1rem;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: #4a5c6c;
}

/* ===== Tool Section ===== */
.tool-section {
    padding: 3rem 0;
}

.tool-section h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #2c3e4e;
}

.tool-intro {
    margin-bottom: 2rem;
    color: #4a5c6c;
    max-width: 600px;
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.scenario-card {
    background: #fff;
    border: 2px solid #e7dfd0;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    color: #2c3e4e;
}

.scenario-card:hover {
    border-color: #b8a990;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.scenario-card[aria-checked="true"],
.scenario-card:focus-visible {
    border-color: #3b5e7a;
    background: #f0f5fa;
    box-shadow: 0 0 0 3px rgba(59,94,122,0.3);
    outline: none;
}

.card-icon {
    font-size: 2rem;
}

.card-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.card-desc {
    font-size: 0.85rem;
    color: #6b7c8b;
}

/* ===== Results ===== */
.results-container {
    min-height: 100px;
}

.results-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.result-item {
    background: #fff;
    border: 1px solid #e7dfd0;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.result-rank {
    font-weight: 800;
    color: #3b5e7a;
    font-size: 1.1rem;
    min-width: 28px;
}

.result-signoff {
    font-weight: 700;
    font-size: 1.15rem;
    flex: 1;
}

.result-note {
    font-size: 0.9rem;
    color: #5a6b7a;
    flex: 2;
    min-width: 180px;
}

.copy-btn {
    background: #3b5e7a;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.copy-btn:hover,
.copy-btn:focus-visible {
    background: #2c4a62;
    outline: none;
}

.copy-btn.copied {
    background: #2e7d32;
}

.empty-state {
    text-align: center;
    color: #6b7c8b;
    padding: 2rem;
    font-style: italic;
}

/* ===== Info Section ===== */
.info-section {
    background: #fff;
    padding: 3rem 0;
    border-top: 1px solid #e7dfd0;
    border-bottom: 1px solid #e7dfd0;
}

.info-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #2c3e4e;
}

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

.info-card {
    background: #fbf9f2;
    border-radius: 10px;
    padding: 1.5rem;
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #3b5e7a;
}

/* ===== Tips Section ===== */
.tips-section {
    padding: 3rem 0;
}

.tips-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: #2c3e4e;
}

.tips-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 700px;
}

.tips-list li {
    padding-left: 1.5rem;
    position: relative;
}

.tips-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: #3b5e7a;
    font-weight: bold;
}

/* ===== Footer ===== */
.site-footer {
    background: #fff;
    border-top: 1px solid #e7dfd0;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6b7c8b;
}

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

.footer-nav a {
    text-decoration: none;
    color: #4a5c6c;
}

.footer-nav a:hover {
    text-decoration: underline;
    color: #3b5e7a;
}

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

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

    .scenario-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .result-item {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

/* ===== About / Legal pages ===== */
.static-page {
    padding: 3rem 0;
    max-width: 700px;
    margin: 0 auto;
}

.static-page h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2c3e4e;
}

.static-page p,
.static-page li {
    color: #4a5c6c;
    margin-bottom: 1rem;
}



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