/* ══════════════════════════════════════════════════════════════════════
   RentFlow — Public Site
   ══════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Variables ─────────────────────────────────────────────────────────── */
:root {
    --primary:       #00c9a7;
    --primary-dark:  #00b394;
    --primary-light: #E6FAF7;
    --primary-text:  #007a66;
    --dark:          #0F172A;
    --dark2:         #1E293B;
    --text:          #111827;
    --muted:         #6B7280;
    --light:         #9CA3AF;
    --border:        #E2E8F0;
    --bg:            #F8FAFC;
    --card:          #FFFFFF;
    --shadow-sm:     0 1px 4px rgba(15,23,42,0.07);
    --shadow-md:     0 4px 20px rgba(15,23,42,0.09);
    --shadow-lg:     0 8px 40px rgba(15,23,42,0.11);
    --r-sm:          0.5rem;
    --r-md:          0.75rem;
    --r-lg:          1rem;
    --r-xl:          1.5rem;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem; line-height: 1.6; color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Layout ────────────────────────────────────────────────────────────── */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 4rem; padding: 0 1.5rem;
    max-width: 1120px; margin: 0 auto;
}
.nav-logo {
    display: flex; align-items: center; gap: 0.375rem;
    font-size: 1.4375rem; font-weight: 800; color: var(--dark);
    letter-spacing: -0.025em;
}
.nav-logo .accent { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
    font-size: 0.9375rem; font-weight: 500; color: var(--muted);
    transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 0.875rem; }
.nav-login {
    font-size: 0.9375rem; font-weight: 500; color: var(--muted);
    transition: color 0.15s;
}
.nav-login:hover { color: var(--text); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem; font-weight: 600;
    border-radius: var(--r-sm); border: 2px solid transparent;
    transition: all 0.15s; white-space: nowrap; text-decoration: none;
}
.btn-primary {
    background: var(--primary); color: #fff; border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark); border-color: var(--primary-dark);
    transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,201,167,0.4);
}
.btn-outline {
    background: transparent; color: var(--text); border-color: var(--border);
}
.btn-outline:hover {
    background: var(--bg); border-color: #CBD5E1; transform: translateY(-1px);
}
.btn-white {
    background: #fff; color: var(--dark); border-color: #fff;
}
.btn-white:hover {
    background: #f0fdf4; transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.btn-lg {
    padding: 0.875rem 2rem; font-size: 1.0625rem; border-radius: var(--r-md);
}
.btn-sm {
    padding: 0.4375rem 1rem; font-size: 0.875rem;
}
.btn-block { width: 100%; }

/* ── Section helpers ─────────────────────────────────────────────────────── */
section { padding: 5rem 0; }
.section-label {
    display: inline-block;
    font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.07em;
    text-transform: uppercase; color: var(--primary-text);
    background: var(--primary-light); border-radius: 9999px;
    padding: 0.25rem 0.875rem; margin-bottom: 1rem;
}
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800; color: var(--dark); letter-spacing: -0.02em; line-height: 1.2;
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.0625rem; color: var(--muted); max-width: 44rem; margin: 0 auto;
    line-height: 1.75;
}
.section-header { text-align: center; margin-bottom: 3.5rem; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
    padding: 5.5rem 0 4.5rem;
    background: linear-gradient(170deg, #F0FEFA 0%, #FFFFFF 55%);
}
.hero-inner { text-align: center; max-width: 58rem; margin: 0 auto; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--primary-light); color: var(--primary-text);
    border: 1px solid #99EBD9; border-radius: 9999px;
    font-size: 0.875rem; font-weight: 600;
    padding: 0.375rem 1rem; margin-bottom: 2rem;
}
.hero-badge-dot {
    width: 0.5rem; height: 0.5rem; background: var(--primary);
    border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}
.hero-title {
    font-size: clamp(2.125rem, 5.5vw, 3.375rem);
    font-weight: 800; color: var(--dark); letter-spacing: -0.03em; line-height: 1.15;
    margin-bottom: 1.5rem;
}
.hero-title em { font-style: normal; color: var(--primary); }
.hero-subtitle {
    font-size: 1.125rem; color: var(--muted); line-height: 1.8;
    max-width: 46rem; margin: 0 auto 2.5rem;
}
.hero-actions {
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    flex-wrap: wrap; margin-bottom: 3.5rem;
}
.hero-stats {
    display: flex; align-items: center; justify-content: center; gap: 3rem;
    flex-wrap: wrap; padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}
.hero-stat { text-align: center; }
.hero-stat-value {
    font-size: 1.625rem; font-weight: 800; color: var(--dark); letter-spacing: -0.02em;
}
.hero-stat-label { font-size: 0.8125rem; color: var(--muted); margin-top: 0.125rem; }

/* ── Problem / Solution ──────────────────────────────────────────────────── */
.problem-section { background: var(--dark); padding: 4.5rem 0; }
.problem-section .section-title { color: #fff; }
.problem-section .section-subtitle { color: #94A3B8; }
.problem-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem;
}
.problem-card {
    text-align: center; padding: 1.75rem 1.25rem;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--r-md);
}
.problem-icon { font-size: 2rem; margin-bottom: 1rem; }
.problem-before {
    font-size: 0.875rem; color: #64748B; text-decoration: line-through;
    margin-bottom: 0.5rem;
}
.problem-after { font-size: 1rem; font-weight: 700; color: var(--primary); }

/* ── Features ────────────────────────────────────────────────────────────── */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.25rem;
}
.feature-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--r-md); padding: 1.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
    box-shadow: var(--shadow-md); transform: translateY(-2px);
}
.feature-icon { font-size: 1.875rem; margin-bottom: 0.875rem; }
.feature-name { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.375rem; }
.feature-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.55; }

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.pricing-toggle-wrap {
    display: flex; align-items: center; justify-content: center; gap: 0.875rem;
    margin-bottom: 2.75rem;
}
.pricing-toggle-label {
    font-size: 0.9375rem; font-weight: 500; color: var(--muted); cursor: pointer;
    transition: color 0.15s;
}
.pricing-toggle-label.active { color: var(--text); font-weight: 600; }
.toggle-wrap { position: relative; width: 3rem; height: 1.625rem; cursor: pointer; }
.toggle-wrap input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
    position: absolute; inset: 0; background: var(--primary);
    border-radius: 9999px; transition: background 0.2s;
}
.toggle-thumb {
    position: absolute; top: 0.1875rem; left: 0.1875rem;
    width: 1.25rem; height: 1.25rem; background: #fff; border-radius: 50%;
    transition: transform 0.2s; pointer-events: none;
}
.toggle-wrap input:checked ~ .toggle-thumb { transform: translateX(1.375rem); }
.pricing-save-badge {
    font-size: 0.75rem; font-weight: 700; color: var(--primary-text);
    background: var(--primary-light); border-radius: 9999px;
    padding: 0.125rem 0.625rem; border: 1px solid #99EBD9;
}
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
    gap: 1.5rem; align-items: start;
}
.pricing-card {
    background: var(--card); border: 2px solid var(--border); border-radius: var(--r-lg);
    padding: 2rem; position: relative; transition: box-shadow 0.2s, transform 0.2s;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0,201,167,0.1); }
.pricing-popular {
    position: absolute; top: -0.875rem; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em;
    padding: 0.25rem 1rem; border-radius: 9999px; white-space: nowrap;
}
.pricing-plan-name { font-size: 1.25rem; font-weight: 700; color: var(--dark); margin-bottom: 0.375rem; }
.pricing-plan-desc { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.25rem; min-height: 2.5rem; }
.pricing-price {
    display: flex; align-items: baseline; gap: 0.25rem; margin-bottom: 0.25rem;
}
.pricing-amount { font-size: 2.375rem; font-weight: 800; color: var(--dark); letter-spacing: -0.03em; }
.pricing-currency { font-size: 1rem; font-weight: 600; color: var(--muted); margin-right: 0.125rem; }
.pricing-period { font-size: 0.9375rem; color: var(--muted); }
.pricing-billed { font-size: 0.8125rem; color: var(--muted); margin-bottom: 1.5rem; min-height: 1.25rem; }
.pricing-limits {
    display: flex; gap: 1rem; flex-wrap: wrap;
    padding: 0.875rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    margin-bottom: 1.375rem;
}
.pricing-limit {
    display: flex; align-items: center; gap: 0.375rem;
    font-size: 0.8125rem; font-weight: 600; color: var(--muted);
}
.pricing-limit-icon { font-size: 0.875rem; }
.pricing-features { margin-bottom: 2rem; }
.pricing-features li {
    display: flex; align-items: flex-start; gap: 0.5rem;
    font-size: 0.875rem; color: var(--muted); padding: 0.3125rem 0;
}
.pricing-features li::before {
    content: '✓'; color: var(--primary); font-weight: 700;
    flex-shrink: 0; margin-top: 0.125rem;
}

/* ── Why section ────────────────────────────────────────────────────────── */
.why-section { background: var(--bg); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem; }
.why-item { display: flex; gap: 1rem; align-items: flex-start; }
.why-icon {
    width: 2.75rem; height: 2.75rem; background: var(--primary-light);
    border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
    font-size: 1.125rem; flex-shrink: 0;
}
.why-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.25rem; }
.why-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-list { max-width: 50rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.625rem; }
details.faq-item {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--r-md); overflow: hidden; transition: box-shadow 0.15s;
}
details.faq-item[open] { box-shadow: var(--shadow-sm); border-color: #CBD5E1; }
details.faq-item summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.125rem 1.375rem;
    font-size: 0.9375rem; font-weight: 600; color: var(--dark);
    cursor: pointer; list-style: none; user-select: none;
    gap: 1rem;
}
details.faq-item summary::-webkit-details-marker { display: none; }
.faq-arrow {
    font-size: 1.25rem; color: var(--muted); transition: transform 0.2s;
    flex-shrink: 0; line-height: 1;
}
details.faq-item[open] .faq-arrow { transform: rotate(45deg); color: var(--primary); }
.faq-body {
    padding: 1rem 1.375rem 1.25rem;
    font-size: 0.9375rem; color: var(--muted); line-height: 1.75;
    border-top: 1px solid var(--border);
}

/* ── CTA band ─────────────────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--dark) 0%, #1B3A6B 100%);
    padding: 5.5rem 0; text-align: center;
}
.cta-title {
    font-size: clamp(1.875rem, 4.5vw, 2.75rem);
    font-weight: 800; color: #fff; letter-spacing: -0.025em; margin-bottom: 1.125rem;
}
.cta-subtitle { font-size: 1.0625rem; color: #94A3B8; max-width: 36rem; margin: 0 auto 2.5rem; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { background: var(--dark2); padding: 3.5rem 0 2rem; }
.footer-inner {
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 2rem; margin-bottom: 2.5rem;
}
.footer-brand { font-size: 1.3125rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.footer-brand .accent { color: var(--primary); }
.footer-tagline { font-size: 0.875rem; color: #64748B; margin-top: 0.375rem; max-width: 16rem; }
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col-title {
    font-size: 0.8125rem; font-weight: 700; color: #fff;
    text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.875rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { font-size: 0.875rem; color: #94A3B8; transition: color 0.15s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
    padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.06);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 0.75rem;
}
.footer-copy { font-size: 0.8125rem; color: #64748B; }

/* ── Register page ───────────────────────────────────────────────────────── */
.register-page { min-height: 100vh; background: var(--bg); padding: 3rem 0 5rem; }
.register-header { text-align: center; margin-bottom: 2.5rem; }
.register-header h1 {
    font-size: 2.125rem; font-weight: 800; color: var(--dark);
    letter-spacing: -0.02em; margin-bottom: 0.625rem;
}
.register-header p { font-size: 1rem; color: var(--muted); }
.register-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg); padding: 2.5rem;
    max-width: 800px; margin: 0 auto;
}
.form-section-title {
    font-size: 1rem; font-weight: 700; color: var(--dark);
    padding-bottom: 0.75rem; border-bottom: 1px solid var(--border);
    margin-bottom: 1.25rem; margin-top: 2rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.form-section-title:first-of-type { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.125rem; }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-group.span-2 { grid-column: 1 / -1; }
.form-label { font-size: 0.875rem; font-weight: 600; color: #374151; }
.form-label .req { color: #DC2626; margin-left: 0.125rem; }
.form-input {
    padding: 0.625rem 0.875rem;
    border: 1.5px solid var(--border); border-radius: var(--r-sm);
    font-size: 0.9375rem; color: var(--text); background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s; width: 100%;
}
.form-input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,201,167,0.15);
}
.form-input.error { border-color: #DC2626; }
.form-hint { font-size: 0.8125rem; color: var(--muted); }
.form-error { font-size: 0.8125rem; color: #DC2626; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.875rem; margin-top: 0.5rem; }
.plan-radio-card {
    border: 2px solid var(--border); border-radius: var(--r-md);
    padding: 1.125rem; cursor: pointer; transition: border-color 0.15s, background 0.15s;
    position: relative; display: block;
}
.plan-radio-card input { position: absolute; opacity: 0; }
.plan-radio-card.selected { border-color: var(--primary); background: var(--primary-light); }
.plan-radio-name { font-size: 0.9375rem; font-weight: 700; color: var(--dark); margin-bottom: 0.25rem; }
.plan-radio-price { font-size: 0.875rem; color: var(--muted); }
.plan-radio-limits { font-size: 0.75rem; color: var(--muted); margin-top: 0.375rem; }
.cycle-group { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }
.cycle-btn {
    padding: 0.5rem 1.125rem; border: 1.5px solid var(--border); border-radius: var(--r-sm);
    font-size: 0.875rem; font-weight: 500; cursor: pointer;
    background: #fff; color: var(--text); transition: all 0.15s;
}
.cycle-btn:hover { border-color: var(--primary); }
.cycle-btn.selected { border-color: var(--primary); background: var(--primary-light); font-weight: 600; color: var(--primary-text); }
.terms-row {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 1.125rem; background: var(--bg); border-radius: var(--r-sm);
    border: 1px solid var(--border);
}
.terms-check { width: 1.125rem; height: 1.125rem; flex-shrink: 0; margin-top: 0.15rem; accent-color: var(--primary); }
.terms-text { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }
.alert { padding: 0.875rem 1.125rem; border-radius: var(--r-sm); font-size: 0.875rem; margin-bottom: 1.5rem; }
.alert-error { background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; }
.alert-info { background: var(--primary-light); border: 1px solid #99EBD9; color: var(--primary-text); }
.alert ul { margin-top: 0.375rem; margin-left: 1rem; list-style: disc; display: flex; flex-direction: column; gap: 0.25rem; }

/* ── Footer support column ───────────────────────────────────────────────── */
.footer-support a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s;
}

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

/* ── Utilities ─────────────────────────────────────────────────────────── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none !important; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    section { padding: 3.5rem 0; }
    .nav-links { display: none; }
    .hero { padding: 3.5rem 0 3rem; }
    .hero-stats { gap: 2rem; }
    .pricing-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; }
    .footer-links { gap: 2rem; }
    .register-card { padding: 1.75rem 1.25rem; border-radius: var(--r-lg); }
    .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { justify-content: center; }
    .nav-inner { padding: 0 1rem; }
    .container { padding: 0 1rem; }
    .register-card { padding: 1.25rem; }
    .plan-cards { grid-template-columns: 1fr; }
}
