/* ============================================
   Fire Door Marshal — shared stylesheet
   ============================================ */

/* ---- RESET ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---- TOKENS ---- */
:root {
    --bg: #ffffff;
    --bg-soft: #f7f7f8;
    --bg-card: #ffffff;
    --border: #e8e8ec;
    --border-light: #f0f0f3;
    --text: #1a1a2e;
    --text-secondary: #555566;
    --text-muted: #8e8e9a;
    --accent: #e8723a;
    --accent-light: #fff4ee;
    --accent-hover: #d4612d;
    --green: #22c55e;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}


/* ============================================
   SHARED — nav, divider, footer
   ============================================ */

/* ---- NAV ---- */
nav {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.logo span {
    color: var(--accent);
}

nav .nav-email {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

nav .nav-email:hover {
    color: var(--accent);
}

/* ---- DIVIDER ---- */
.divider {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 2rem;
}

.divider hr {
    border: none;
    border-top: 1px solid var(--border-light);
}

/* ---- FOOTER ---- */
footer {
    border-top: 1px solid var(--border-light);
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

footer a {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

footer .footer-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: wrap;
}


/* ============================================
   HOMEPAGE — hero, features, how, cta
   ============================================ */

/* ---- HERO ---- */
.hero {
    max-width: 1080px;
    margin: 0 auto;
    padding: 5rem 2rem 4rem;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 100px;
    margin-bottom: 2rem;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(2.25rem, 5.5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: var(--text);
    margin-bottom: 1.25rem;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 460px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* ---- FORM ---- */
.signup-form {
    display: flex;
    gap: 0.6rem;
    max-width: 430px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.signup-form input[type="email"] {
    flex: 1;
    min-width: 220px;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.signup-form input[type="email"]::placeholder {
    color: var(--text-muted);
}

.signup-form input[type="email"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.signup-form button {
    padding: 0.8rem 1.5rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.signup-form button:hover {
    background: var(--accent-hover);
}

.signup-form button:active {
    transform: scale(0.97);
}

.form-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    text-align: center;
    width: 100%;
}

.success-msg {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    color: #16a34a;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    max-width: 430px;
    margin: 0 auto;
    text-align: center;
    display: none;
}

/* ---- FEATURES ---- */
.features {
    max-width: 1080px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature {
    background: var(--bg-soft);
    border-radius: 14px;
    padding: 2rem 1.75rem;
    transition: transform 0.2s;
}

.feature:hover {
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.feature p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ---- HOW IT WORKS ---- */
.how-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.how-section h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.85rem;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.03em;
    color: var(--text);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.step h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 260px;
    margin: 0 auto;
}

/* ---- CTA ---- */
.cta-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2rem 2rem 5rem;
    text-align: center;
}

.cta-box {
    background: var(--bg-soft);
    border-radius: 20px;
    padding: 3.5rem 2rem;
}

.cta-box h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
    letter-spacing: -0.03em;
    color: var(--text);
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}


/* ============================================
   PRIVACY PAGE — page header, content
   ============================================ */

.page-header {
    max-width: 760px;
    margin: 0 auto;
    padding: 4rem 2rem 2.5rem;
    text-align: center;
}

.page-header h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
    color: var(--text);
    margin-bottom: 0.85rem;
}

.page-header .updated {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.content {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.content .lead {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.content h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-top: 2.75rem;
    margin-bottom: 1rem;
}

.content h2:first-of-type {
    margin-top: 0;
}

.content h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
}

.content p {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.content ul li {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.75;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.6rem;
}

.content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.content strong {
    color: var(--text);
    font-weight: 600;
}

.content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-light);
    transition: border-color 0.2s;
}

.content a:hover {
    border-bottom-color: var(--accent);
}

.info-card {
    background: var(--bg-soft);
    border-radius: 14px;
    padding: 1.75rem 1.75rem;
    margin: 1.5rem 0;
}

.info-card p {
    margin-bottom: 0;
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero { padding: 3.5rem 1.5rem 3rem; }
    .features-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; gap: 2.5rem; }
    .features, .how-section, .cta-section { padding-left: 1.5rem; padding-right: 1.5rem; }
    .page-header { padding: 3rem 1.5rem 2rem; }
    .content { padding: 2.5rem 1.5rem 3rem; }
    nav { padding: 1.25rem 1.5rem; }
}

@media (max-width: 480px) {
    .signup-form input[type="email"] { min-width: 100%; }
    .signup-form button { width: 100%; }
}
