/* ============================================
   Tweack Cloud — Site Styles
   Clean, modern, professional cloud storage look
   ============================================ */

:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #dbeafe;
    --color-bg: #f8fafc;
    --color-white: #ffffff;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-success: #16a34a;
    --color-success-light: #dcfce7;
    --color-error: #dc2626;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.container--narrow {
    max-width: 680px;
}

/* ---- Header ---- */
.header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
}
.header__icon {
    font-size: 28px;
    color: var(--color-primary);
}
.header__nav {
    display: flex;
    gap: 24px;
}
.header__nav a {
    color: var(--color-text-muted);
    font-size: 15px;
    font-weight: 500;
}
.header__nav a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

/* ---- Button ---- */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
}
.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}
.btn:active {
    transform: translateY(0);
}
.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
}
.btn--primary:hover {
    background: var(--color-primary-dark);
}
.btn--primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}
.btn--secondary {
    background: var(--color-white);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}
.btn--secondary:hover {
    background: var(--color-bg);
}
.btn--lg {
    padding: 14px 32px;
    font-size: 17px;
}

/* ---- Hero ---- */
.hero {
    text-align: center;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-white) 100%);
}
.hero h1 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--color-text);
}
.hero__subtitle {
    font-size: 22px;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 16px;
}
.hero__desc {
    font-size: 17px;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
}

/* ---- Features ---- */
.features {
    padding: 60px 0;
}
.features h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    transition: box-shadow 0.2s;
}
.feature-card:hover {
    box-shadow: var(--shadow-md);
}
.feature-card__icon {
    font-size: 40px;
    margin-bottom: 12px;
}
.feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ---- Pricing ---- */
.pricing {
    padding: 60px 0;
    background: var(--color-white);
}
.pricing h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 8px;
}
.pricing__subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}
.pricing__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}
.pricing-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}
.pricing-card--featured {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}
.pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
.pricing-card__header {
    margin-bottom: 24px;
}
.pricing-card__header h3 {
    font-size: 22px;
    margin-bottom: 8px;
}
.pricing-card__price {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-primary);
}
.pricing-card__period {
    font-size: 14px;
    color: var(--color-text-muted);
}
.pricing-card__features {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
    flex: 1;
}
.pricing-card__features li {
    padding: 6px 0;
    font-size: 15px;
    color: var(--color-text-muted);
    padding-left: 24px;
    position: relative;
}
.pricing-card__features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
}
.pricing-card .btn {
    width: 100%;
}

/* ---- Contacts ---- */
.contacts {
    padding: 60px 0;
}
.contacts h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 24px;
}
.contacts__info {
    text-align: center;
    font-size: 16px;
}
.contacts__info p {
    margin-bottom: 8px;
}

/* ---- Footer ---- */
.footer {
    margin-top: auto;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: 24px 0;
    font-size: 14px;
    color: var(--color-text-muted);
}
.footer__grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer__brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--color-text);
}
.footer__links {
    display: flex;
    gap: 20px;
}
.footer__links a {
    color: var(--color-text-muted);
    font-size: 13px;
}
.footer__links a:hover {
    color: var(--color-primary);
}
.footer__legal {
    text-align: right;
    font-size: 13px;
}
.footer__legal p {
    margin-bottom: 2px;
}
.footer__copy {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
}

/* ---- Pay Section ---- */
.pay-section {
    padding: 60px 0;
}
.pay-section h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 24px;
}
.pay-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}
.pay-card__plan {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 17px;
}
.pay-card__label {
    color: var(--color-text-muted);
}
.pay-card__value {
    font-weight: 700;
}

/* Consent block */
.consent-block {
    margin-bottom: 24px;
}
.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    cursor: pointer;
}
.consent-checkbox input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.consent-text {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.5;
}
.consent-text a {
    color: var(--color-primary);
}

.pay-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--color-error);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-top: 16px;
}
.pay-loading {
    text-align: center;
    padding: 20px;
    color: var(--color-text-muted);
    font-size: 15px;
}

/* ---- Done Section ---- */
.done-section {
    padding: 80px 0;
}
.done-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 48px 32px;
    text-align: center;
    box-shadow: var(--shadow-md);
}
.done-card__icon {
    width: 64px;
    height: 64px;
    background: var(--color-success-light);
    color: var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}
.done-card h1 {
    font-size: 26px;
    margin-bottom: 12px;
}
.done-card p {
    color: var(--color-text-muted);
    margin-bottom: 8px;
}
.done-card__actions {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

/* ---- Legal Section ---- */
.legal-section {
    padding: 40px 0 60px;
}
.legal-section h1 {
    font-size: 28px;
    margin-bottom: 8px;
}
.legal-date {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}
.legal-section h2 {
    font-size: 20px;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--color-text);
}
.legal-section h3 {
    font-size: 17px;
    margin-top: 16px;
    margin-bottom: 8px;
}
.legal-section p {
    margin-bottom: 10px;
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.7;
}
.legal-section ul {
    margin-bottom: 12px;
    padding-left: 24px;
}
.legal-section li {
    margin-bottom: 6px;
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* ---- Registration Form (pay.html) ---- */
.register-block {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}
.register-block h2 {
    font-size: 20px;
    margin-bottom: 4px;
}
.register-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group:last-child {
    margin-bottom: 0;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text);
}
.form-group input {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    font-family: var(--font);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.2s;
}
.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-group input.input-error {
    border-color: var(--color-error);
}
.form-hint {
    display: block;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 4px;
}
.form-error-msg {
    display: none;
    font-size: 13px;
    color: var(--color-error);
    margin-top: 4px;
}

/* ---- Credentials Panel (done.html) ---- */
.credentials-panel {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    margin: 24px 0 16px;
    text-align: left;
}
.credentials-panel h2 {
    font-size: 18px;
    margin-bottom: 16px;
    text-align: center;
    color: var(--color-text);
}
.cred-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}
.cred-row:last-child {
    border-bottom: none;
}
.cred-label {
    font-size: 14px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}
.cred-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    text-align: right;
    word-break: break-all;
}
.cred-instructions {
    background: var(--color-primary-light);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 16px 0 0;
    text-align: left;
}
.cred-instructions p {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}
.cred-instructions ol {
    margin: 0;
    padding-left: 20px;
}
.cred-instructions li {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 4px;
    line-height: 1.5;
}
.done-card__note {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .header__nav {
        display: none;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero__subtitle {
        font-size: 18px;
    }
    .features__grid {
        grid-template-columns: 1fr;
    }
    .pricing__grid {
        grid-template-columns: 1fr;
    }
    .footer__grid {
        flex-direction: column;
        text-align: center;
    }
    .footer__legal {
        text-align: center;
    }
}
