/* ============================================================
   Constructra AI — Main Stylesheet
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #1a1a1a;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #1a1a1a;
}

.main-nav ul {
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-size: 0.9rem;
    color: #444;
}

.main-nav a:hover {
    color: #1a1a1a;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* Mobile nav open state */
.nav-open .main-nav {
    display: flex;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    padding: 96px 0 80px;
    border-bottom: 1px solid #e8e8e8;
}

.hero-inner {
    max-width: 680px;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #111;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.05rem;
    color: #555;
    max-width: 560px;
    margin-bottom: 12px;
    line-height: 1.7;
}

.hero-sub2 {
    font-size: 0.93rem;
    color: #888;
    max-width: 560px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    padding: 11px 28px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
    transition: background 0.15s;
}

.btn-primary:hover {
    background: #333;
}

/* ============================================================
   Features
   ============================================================ */
.features {
    padding: 80px 0;
    border-bottom: 1px solid #e8e8e8;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: #111;
}

.section-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 52px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid #e8e8e8;
    border-left: 1px solid #e8e8e8;
}

.feature-item {
    padding: 36px 32px;
    border-right: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

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

.feature-item h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111;
}

.feature-item p {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
}

/* ============================================================
   About
   ============================================================ */
.about {
    padding: 80px 0;
    border-bottom: 1px solid #e8e8e8;
    background: #fafafa;
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text h2 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: #111;
}

.about-text p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 14px;
}

.about-details {
    display: flex;
    gap: 48px;
}

.about-block h3 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 14px;
}

.about-block ul li {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.5;
    padding: 5px 0;
    border-bottom: 1px solid #ebebeb;
}

.about-block ul li:last-child {
    border-bottom: none;
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
    padding: 80px 0;
    border-bottom: 1px solid #e8e8e8;
}

.contact-inner {
    max-width: 560px;
}

.contact-inner h2 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: #111;
}

.contact-inner p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 28px;
    line-height: 1.7;
}

.contact-email {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 2px;
}

.contact-email:hover {
    color: #444;
    border-color: #444;
}

.contact-note {
    margin-top: 14px;
    font-size: 0.85rem;
    color: #999;
}

/* ============================================================
   SMS Info section
   ============================================================ */
.sms-info {
    padding: 48px 0;
    border-top: 1px solid #e8e8e8;
    background: #fafafa;
}

.sms-info-inner {
    max-width: 620px;
}

.sms-info h2 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111;
}

.sms-info p {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 8px;
}

.sms-info ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 12px;
}

.sms-info li {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 4px;
}

.sms-info ol {
    list-style: decimal;
    padding-left: 20px;
    margin-bottom: 12px;
}

.sms-info ol li {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 8px;
}

.sms-consent-overview {
    background: #ffffff;
    border-top: none;
    padding-top: 0;
}

/* SMS sample boxes */
.sms-sample {
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.sms-sample p {
    font-size: 0.875rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Consent flow diagram */
.consent-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 28px 0 36px;
    padding: 32px 24px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    background: #fafafa;
}

.consent-flow-step {
    width: 100%;
    max-width: 340px;
    text-align: center;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.consent-flow-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a1a;
}

.consent-flow-arrow {
    width: 1px;
    height: 20px;
    background: #ccc;
    position: relative;
}

.consent-flow-arrow::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #ccc;
}

/* Info box */
.info-box {
    margin: 28px 0;
    padding: 20px 24px;
    border: 1px solid #e0e0e0;
    border-left: 3px solid #1a1a1a;
    border-radius: 3px;
    background: #fafafa;
}

/* Consent script blockquote */
.consent-script {
    margin: 16px 0;
    padding: 16px 20px;
    border-left: 3px solid #ccc;
    background: #f8f8f8;
    font-size: 0.875rem;
    font-style: italic;
    color: #333;
    line-height: 1.75;
}

/* Consent timeline */
.consent-timeline {
    margin: 28px 0 36px;
    padding-left: 0;
}

.timeline-step {
    display: flex;
    gap: 20px;
    padding-bottom: 32px;
    position: relative;
}

.timeline-step:last-child {
    padding-bottom: 0;
}

.timeline-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 38px;
    bottom: 0;
    width: 1px;
    background: #ddd;
}

.timeline-number {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a1a1a;
    background: #fff;
    position: relative;
    z-index: 1;
}

.timeline-content {
    flex: 1;
    padding-top: 4px;
}

.timeline-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 8px;
}

.timeline-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 10px;
}

.timeline-content li {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 4px;
}

/* Consent screenshot */
.consent-screenshot {
    margin: 20px 0;
    text-align: center;
}

.consent-screenshot img {
    max-width: 100%;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    margin: 0 auto;
}

.screenshot-caption {
    font-size: 0.825rem;
    color: #888;
    line-height: 1.6;
    margin-bottom: 6px;
}

/* Consent card */
.consent-card {
    margin: 20px 0 32px;
    padding: 24px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
}

.consent-card p {
    font-size: 0.875rem;
    color: #333;
    line-height: 1.75;
    margin-bottom: 8px;
}

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

.info-box h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 10px;
}

.info-box p {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 8px;
}

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

/* FAQ */
.faq-item {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ebebeb;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 6px;
}

.faq-item ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 6px;
}

.faq-item li {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 4px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    padding: 24px 0;
    background: #ffffff;
    border-top: 1px solid #e8e8e8;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.footer-left,
.footer-right {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-right {
    align-items: flex-end;
}

.footer-copy {
    font-size: 0.825rem;
    color: #999;
}

.footer-built {
    font-size: 0.825rem;
    color: #999;
}

.footer-desc {
    font-size: 0.8rem;
    color: #aaa;
    line-height: 1.6;
    margin-top: 8px;
    max-width: 480px;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    font-size: 0.825rem;
    color: #999;
}

.footer-nav a:hover {
    color: #444;
}

.footer-email {
    font-size: 0.825rem;
    margin-top: 4px;
}

.footer-email a {
    color: #999;
}

.footer-email a:hover {
    color: #444;
}

/* ============================================================
   Legal pages (privacy / terms)
   ============================================================ */
.legal-main {
    padding: 64px 0 80px;
}

.legal-main h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: #111;
}

.legal-date {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 40px;
}

.legal-main h2 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 36px 0 10px;
    color: #111;
}

.legal-main p,
.legal-main li {
    font-size: 0.93rem;
    color: #555;
    line-height: 1.75;
    margin-bottom: 12px;
}

.legal-main ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 12px;
}

.legal-main a {
    color: #1a1a1a;
    border-bottom: 1px solid #ccc;
}

.legal-main a:hover {
    border-color: #1a1a1a;
}

/* ============================================================
   Contact page
   ============================================================ */
.contact-info-block {
    margin-bottom: 36px;
}

.contact-info-block p {
    font-size: 0.93rem;
    color: #555;
    line-height: 1.75;
    margin-bottom: 6px;
}

.contact-info-block a {
    color: #1a1a1a;
    border-bottom: 1px solid #ccc;
}

.contact-info-block a:hover {
    border-color: #1a1a1a;
}

.contact-form {
    margin-top: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #999;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid #e8e8e8;
        padding: 16px 24px 20px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav ul li a {
        display: block;
        padding: 10px 0;
        font-size: 0.95rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-open .main-nav {
        display: block;
    }

    .hero {
        padding: 60px 0 52px;
    }

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

    .about-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-details {
        gap: 32px;
    }

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

    .footer-right {
        align-items: flex-start;
    }
}