:root {
    color-scheme: light;
    --md-ref-typeface-plain: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    --md-sys-color-primary: #0f766a;
    --md-sys-color-secondary: #0f172a;
    --md-sys-color-surface: #f6f9f7;
    --md-sys-color-surface-variant: #e5f3ee;
    --md-sys-color-outline: rgba(15, 118, 106, 0.15);
    --rz-text-selection-background-color: rgba(15, 118, 106, 0.15);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

*:focus,
*:focus-visible {
    outline: none;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    background: #f6f9f7;
    color: #0f172a;
    height: 100%;
    overflow: hidden;
}

body.loading-lock {
    overflow: hidden;
    touch-action: none;
}

a {
    color: #0f766a;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

p {
    margin: 0 0 1rem 0;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    font-size: 0.75rem;
    color: rgba(15, 23, 42, 0.65);
}

.lede {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(15, 23, 42, 0.8);
}

.cta-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.pill-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.pill {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: transparent;
    color: #0f3e36;
    font-weight: 600;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid rgba(15, 118, 106, 0.12);
    background: linear-gradient(145deg, rgba(242, 249, 246, 0.95), rgba(198, 236, 225, 0.75));
    box-shadow: 0 25px 70px rgba(15, 118, 106, 0.12);
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    margin-bottom: 1rem;
}

.hero-visual {
    --md-elevation-level: 3;
    min-height: 320px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 18px;
    border: 1px solid rgba(15, 118, 106, 0.12);
    padding: 1.5rem;
    overflow: hidden;
}

.floating-panel {
    position: relative;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(229, 243, 238, 0.9));
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(15, 118, 106, 0.12);
}

.bubble {
    position: absolute;
    border-radius: 50%;
    filter: blur(0);
    opacity: 0.7;
}

.bubble-main {
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(15, 118, 106, 0.5), rgba(95, 208, 182, 0.05));
    top: -40px;
    right: -40px;
}

.bubble-soft {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(82, 169, 215, 0.35), rgba(82, 169, 215, 0.05));
    bottom: -20px;
    left: -40px;
}

.bubble-linear {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 60%);
    right: -80px;
    bottom: -120px;
}

.panel-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    display: grid;
    gap: 0.25rem;
}

.panel-content h3 {
    font-size: 1.4rem;
    margin: 0;
}

.chip-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.chip {
    padding: 0.45rem 0.8rem;
    border-radius: 10px;
    background: rgba(15, 118, 106, 0.18);
    color: #0f3e36;
    font-weight: 600;
    font-size: 0.9rem;
}

.section {
    margin-top: 2.5rem;
}

.section-header {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.services .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.carousel-card {
    min-height: 260px;
}

.service-card, .collection-card, .data-card, .counter-card {
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 118, 106, 0.12);
    background: rgba(255, 255, 255, 0.8);
}

.card-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(15, 118, 106, 0.1);
    color: #0f766a;
    display: grid;
    place-items: center;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.collection-card {
    display: grid;
    gap: 1rem;
}

.collection-visual {
    height: 180px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}

.collection-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.45), transparent 45%);
}

.collection-visual.sea {
    background: linear-gradient(145deg, #1f6f78, #a1d9cf);
}

.collection-visual.sand {
    background: linear-gradient(145deg, #f6d7a7, #f0b781);
}

.pineapple-section {
    display: flex;
    justify-content: center;
}

.pineapple-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 118, 106, 0.15);
    box-shadow: 0 10px 30px rgba(15, 118, 106, 0.12);
}

.pineapple {
    font-size: 2.6rem;
    animation: dance 1.4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes dance {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-4px) rotate(-4deg); }
    50% { transform: translateY(0px) rotate(4deg); }
    75% { transform: translateY(-4px) rotate(-3deg); }
}

.contact-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 118, 106, 0.12);
    box-shadow: 0 20px 60px rgba(15, 118, 106, 0.08);
}

.contact-form {
    display: grid;
    gap: 0.75rem;
}

.product-page {
    margin-top: 2rem;
}

.product-hero {
    padding: 1.5rem;
    border-radius: 18px;
    border: 1px solid rgba(15, 118, 106, 0.12);
    background: linear-gradient(145deg, rgba(242, 249, 246, 0.9), rgba(229, 243, 238, 0.7));
    box-shadow: 0 18px 50px rgba(15, 118, 106, 0.12);
}

.form-input {
    width: 100%;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.login-section {
    margin-bottom: 3rem;
}

.login-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 18px;
    border: 1px solid rgba(15, 118, 106, 0.12);
    background: linear-gradient(145deg, rgba(229, 243, 238, 0.65), rgba(255, 255, 255, 0.9));
    box-shadow: 0 22px 60px rgba(15, 118, 106, 0.09);
}

.login-copy {
    display: grid;
    gap: 0.75rem;
}

.login-visual {
    min-height: 160px;
    display: grid;
    align-content: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px dashed rgba(15, 118, 106, 0.3);
}

.login-form {
    display: grid;
    gap: 0.75rem;
}

.login-error {
    color: #b42318;
    margin: 0;
}

.login-success {
    color: #0f766a;
    margin: 0;
    font-weight: 600;
}

.card-block {
    margin-top: 1.5rem;
}

.weather-grid {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15, 118, 106, 0.12);
}

.weather-grid .rz-grid-header {
    background: rgba(15, 118, 106, 0.08);
}

.weather-grid .rz-grid-table td,
.weather-grid .rz-grid-table th {
    padding: 0.85rem 1rem;
}

.business-create {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.rc-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.rc-card {
    border: 1px solid rgba(15, 118, 106, 0.12);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 14px 40px rgba(15, 118, 106, 0.1);
}

.rc-card-info {
    border-style: dashed;
}

.rc-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.rc-row-inline {
    flex-direction: column;
}

@media (min-width: 768px) {
    .rc-row-inline {
        flex-direction: row;
        gap: 0.75rem;
    }
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.field label {
    font-weight: 600;
    color: #000000;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    padding: 0.8rem 0.95rem;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #6b7280;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: rgba(15, 118, 106, 0.45);
    box-shadow: 0 0 0 3px rgba(15, 118, 106, 0.12);
}

.field-narrow {
    max-width: 200px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .feature-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.feature-chip {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1.05rem;
    border: 1px solid rgba(15, 118, 106, 0.18);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(15, 118, 106, 0.06), rgba(255, 255, 255, 0.95));
    min-width: 240px;
    box-shadow: 0 12px 28px rgba(15, 118, 106, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    appearance: none;
    box-sizing: border-box;
}

.feature-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(15, 118, 106, 0.14);
    border-color: rgba(15, 118, 106, 0.35);
}

.feature-chip.is-selected {
    border: 2px solid rgba(15, 118, 106, 0.6);
    box-shadow: 0 16px 34px rgba(15, 118, 106, 0.18);
}

.feature-chip:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: 0 10px 24px rgba(15, 118, 106, 0.08);
}

.feature-chip:focus-visible {
    outline: 2px solid rgba(15, 118, 106, 0.35);
    outline-offset: 3px;
    border-radius: 14px;
}

.feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(15, 118, 106, 0.08);
    border: 1px solid rgba(15, 118, 106, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.feature-icon svg {
    width: 18px;
    height: 18px;
    fill: #0f766a;
}

.feature-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.feature-chip.is-selected .feature-icon {
    background: rgba(15, 118, 106, 0.16);
    border-color: rgba(15, 118, 106, 0.35);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 106, 0.2);
}

.feature-chip.is-selected .feature-icon svg {
    fill: #0b5e53;
}

.feature-chip.is-selected .feature-name {
    color: #0b5e53;
}

.feature-name {
    display: block;
    font-weight: 700;
    color: #0f172a;
}

.feature-desc {
    display: block;
    color: rgba(15, 23, 42, 0.65);
    font-size: 0.9rem;
}

.feature-price {
    display: inline-block;
    margin-top: 0.25rem;
    font-weight: 700;
    color: #0f766a;
}

.rc-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.business-overview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0;
}

.ro-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.payment-toast {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1200;
    max-width: 420px;
    margin: 0 auto;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: #0f766a;
    color: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
    animation: toast-rise 0.25s ease-out;
}

.payment-toast-title {
    font-weight: 700;
    font-size: 1rem;
}

.payment-toast-body {
    margin-top: 0.15rem;
    font-size: 0.95rem;
    opacity: 0.92;
}

@keyframes toast-rise {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ro-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ro-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(15, 118, 106, 0.12);
    border-radius: 14px;
    background: rgba(15, 118, 106, 0.03);
}

.ro-main {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ro-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.ro-address {
    color: rgba(15, 23, 42, 0.7);
    font-size: 0.95rem;
}

.ro-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.ro-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ro-summary-total {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.6rem 0.75rem;
    border-radius: 12px;
    background: rgba(15, 118, 106, 0.06);
    border: 1px solid rgba(15, 118, 106, 0.15);
}

.ro-total-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: #0f4f45;
}

.ro-summary-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.ro-summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 118, 106, 0.12);
    background: #fff;
}

.ro-summary-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.ro-summary-abos {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ro-summary-abo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.ro-summary-meta {
    color: rgba(15, 23, 42, 0.65);
    font-size: 0.9rem;
}

.ro-features {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ro-features-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.ro-meta-block {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ro-pool {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.ro-select {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ro-select select {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    padding: 0.75rem 0.95rem;
    background: #fff;
}

.ro-select-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .ro-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.pool-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pool-card {
    border: 1px solid rgba(15, 118, 106, 0.12);
    border-radius: 14px;
    padding: 0.9rem;
    background: rgba(15, 118, 106, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pool-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.pool-title {
    font-weight: 700;
}

.pool-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.icon-button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
}

.icon-button.danger {
    color: #b42318;
}

.icon-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.app-toast {
    position: sticky;
    top: 1rem;
    z-index: 40;
    margin: 0 auto 1rem;
    max-width: 720px;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 118, 106, 0.2);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 28px rgba(15, 118, 106, 0.12);
}

.app-toast.error {
    border-color: rgba(180, 35, 24, 0.35);
    background: rgba(254, 242, 242, 0.92);
}

.app-toast.success {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(236, 253, 245, 0.92);
}

.app-toast-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.app-toast-body {
    font-size: 0.95rem;
    color: rgba(15, 23, 42, 0.75);
}

.featureset-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.featureset-card {
    position: relative;
    border: 1px solid rgba(15, 118, 106, 0.18);
    border-radius: 16px;
    padding: 0.9rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 12px 28px rgba(15, 118, 106, 0.08);
}

.featureset-card.is-selected {
    border-color: rgba(15, 118, 106, 0.4);
    background: rgba(15, 118, 106, 0.04);
    box-shadow: 0 14px 32px rgba(15, 118, 106, 0.14);
}

.featureset-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.featureset-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(15, 118, 106, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.featureset-card-icon svg {
    width: 20px;
    height: 20px;
    fill: #0f766a;
}

.featureset-card-title {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.featureset-name {
    font-weight: 700;
    color: #0f172a;
}

.featureset-pill {
    align-self: flex-start;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f4f45;
    background: rgba(15, 118, 106, 0.15);
}

.featureset-help-btn {
    border: 1px solid rgba(15, 118, 106, 0.18);
    background: rgba(255, 255, 255, 0.9);
    width: 28px;
    height: 28px;
    border-radius: 10px;
    font-weight: 700;
    color: #0f766a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.featureset-help-btn:focus,
.featureset-help-btn:focus-visible {
    outline: none;
}

.featureset-help-pop {
    position: absolute;
    top: 2.6rem;
    right: 0.75rem;
    z-index: 5;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(15, 118, 106, 0.2);
    padding: 0.6rem 0.75rem;
    box-shadow: 0 12px 26px rgba(15, 118, 106, 0.18);
    max-width: 240px;
}

.featureset-card-actions {
    display: flex;
    gap: 0.5rem;
}

.featureset-select-btn {
    border: 1px solid rgba(15, 118, 106, 0.18);
    background: rgba(15, 118, 106, 0.08);
    border-radius: 10px;
    padding: 0.45rem 0.75rem;
    font-weight: 700;
    color: #0f4f45;
    cursor: pointer;
}

.featureset-select-btn.is-selected {
    background: linear-gradient(135deg, rgba(15, 118, 106, 0.8), rgba(18, 162, 146, 0.95));
    color: #ffffff;
    border-color: rgba(15, 118, 106, 0.5);
}

.featureset-select-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.featureset-select-btn:focus,
.featureset-select-btn:focus-visible,
.featureset-price-option:focus,
.featureset-price-option:focus-visible {
    outline: none;
}

.featureset-price-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.featureset-price-option {
    flex: 1 1 140px;
    min-width: 120px;
    border: 1px solid rgba(15, 118, 106, 0.16);
    background: #ffffff;
    border-radius: 12px;
    padding: 0.55rem 0.7rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    cursor: pointer;
}

.featureset-price-option.is-selected {
    background: rgba(15, 118, 106, 0.12);
    border-color: rgba(15, 118, 106, 0.4);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 106, 0.2);
}

.featureset-price-option:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.featureset-price-label {
    font-size: 0.75rem;
    color: rgba(15, 23, 42, 0.6);
}

.featureset-price-value {
    font-weight: 700;
    color: #0f172a;
}

.draft-value {
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(15, 118, 106, 0.18);
    background: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

@media (min-width: 720px) {
    .featureset-card-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .featureset-card {
        flex: 1 1 260px;
    }
}
