/* landing.css — Cubbly landing page styles
   Matches Lovable app visual design. Not in web-uikit (page-specific). */

/* ---- Tokens ---- */
:root {
    --cb-teal:       #437E9C;
    --cb-teal-dark:  #356781;
    --cb-teal-deep:  #1F4D68;
    --cb-green:      #5BA88B;
    --cb-green-soft: #E8F3EE;
    --cb-blue:       #5A92B0;
    --cb-soft-blue:  #EAF2F7;
    --cb-text:       #384653;
    --cb-text-muted: #6B7886;
    --cb-heading:    #1F2A33;
    --cb-border:     #E6EAEE;
    --cb-bg-alt:     #FAFBFC;
    --cb-bg-why:     #EAF3F7;
}

/* ---- Utilities ---- */
.hidden-mobile { display: none; }
@media (min-width: 768px) { .hidden-mobile { display: inline; } }

/* ---- Fonts ---- */
.cubbly-landing {
    font-family: 'Chiron GoRound TC', ui-sans-serif, system-ui, sans-serif;
    color: var(--cb-text);
    background: #FFFFFF;
    -webkit-font-smoothing: antialiased;
}
.cubbly-landing h1,
.cubbly-landing h2,
.cubbly-landing h3,
.cubbly-landing h4 {
    font-family: 'Chiron GoRound TC', ui-sans-serif, system-ui, sans-serif;
    color: var(--cb-heading);
}

/* ---- Layout ---- */
.cb-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.cb-container--wide  { max-width: 1200px; }
.cb-container--narrow { max-width: 860px; }
.cb-container--tight { max-width: 640px; }

/* ---- Header ---- */
.cb-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--cb-teal);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.cb-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cb-header__logo img {
    height: 2.25rem;
    width: auto;
}
.cb-header__nav {
    display: none;
    align-items: center;
    gap: 1.75rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
}
.cb-header__nav a {
    text-decoration: none;
    color: inherit;
    transition: color 0.15s;
}
.cb-header__nav a:hover { color: #fff; }
.cb-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cb-header__login {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    transition: color 0.15s;
}
.cb-header__login:hover { color: #fff; }
.cb-header__signup {
    display: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    background: #fff;
    color: var(--cb-teal-deep);
    text-decoration: none;
    transition: opacity 0.15s;
}
.cb-header__signup:hover { opacity: 0.9; }

@media (min-width: 768px) {
    .cb-header__nav { display: flex; }
    .cb-header__signup { display: inline-flex; }
}

/* ---- Hero ---- */
.cb-hero {
    background: var(--cb-teal);
    overflow: hidden;
}
.cb-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
    text-align: center;
}
.cb-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.95);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    margin-bottom: 1.25rem;
}
.cb-hero__badge svg { width: 14px; height: 14px; }
.cb-hero h1 {
    font-size: 2.25rem;
    line-height: 1.05;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.025em;
    margin: 0;
}
.cb-hero__subtitle {
    margin-top: 1rem;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.625;
}
.cb-hero__buttons {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
.cb-btn-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    background: #fff;
    color: var(--cb-teal-deep);
    text-decoration: none;
    transition: opacity 0.15s;
}
.cb-btn-white:hover { opacity: 0.9; }
.cb-btn-white svg { width: 16px; height: 16px; }
.cb-btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    text-decoration: none;
    transition: background 0.15s;
}
.cb-btn-outline-white:hover { background: rgba(255,255,255,0.1); }
.cb-btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--cb-teal-deep);
    color: #fff;
    text-decoration: none;
    transition: opacity 0.15s;
    border: none;
    cursor: pointer;
}
.cb-btn-dark:hover { opacity: 0.9; }

@media (min-width: 768px) {
    .cb-hero__inner { padding: 3rem 1.5rem 4rem; }
    .cb-hero h1 { font-size: 3.375rem; }
    .cb-hero__subtitle { font-size: 1.125rem; }
}

/* ---- Hero Preview (fake browser) ---- */
.cb-preview {
    margin-top: 2rem;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.55), 0 15px 40px -10px rgba(0,0,0,0.35);
    text-align: left;
}
.cb-preview__chrome {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
    background: #F8FAFB;
    border-bottom: 1px solid var(--cb-border);
}
.cb-preview__dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
    background: #E5E7EB;
}
.cb-preview__url {
    margin: 0 auto;
    font-size: 0.625rem;
    color: var(--cb-text-muted);
}
.cb-preview__body {
    padding: 1.25rem;
    min-height: 480px;
}
.cb-preview__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.cb-preview__label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--cb-text-muted);
}
.cb-preview__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cb-heading);
    margin-top: 0.125rem;
}
.cb-preview__tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cb-tag {
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
}
.cb-tag--green { background: var(--cb-green-soft); color: var(--cb-green); }
.cb-tag--amber { background: #FBEEDB; color: #9C6B3F; }

/* Preview cards grid */
.cb-preview__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.cb-preview-card {
    border-radius: 0.75rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--cb-border);
}
.cb-preview-card__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cb-text-muted);
}
.cb-preview-card__label svg { color: var(--cb-teal); width: 16px; height: 16px; }
.cb-preview-card__title {
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cb-heading);
}
.cb-preview-card__bar {
    margin-top: 1rem;
    height: 0.375rem;
    border-radius: 9999px;
    background: #F1F4F7;
    overflow: hidden;
}
.cb-preview-card__fill {
    height: 100%;
    border-radius: 9999px;
    background: #9C6B3F;
}
.cb-preview-card__pct {
    margin-top: 0.375rem;
    font-size: 0.625rem;
    color: var(--cb-text-muted);
}

/* Preview bottom row */
.cb-preview__bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.cb-preview__kr {
    border-radius: 0.75rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--cb-border);
}
.cb-preview__kr ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}
.cb-preview__kr li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    padding: 0.25rem 0;
    color: var(--cb-heading);
}
.cb-preview__ai {
    border-radius: 0.75rem;
    padding: 1rem;
    background: var(--cb-soft-blue);
    border: 1px solid var(--cb-border);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.cb-preview__ai-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: var(--cb-teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cb-preview__ai-icon svg { width: 16px; height: 16px; }
.cb-preview__ai-text {
    font-size: 0.75rem;
    color: var(--cb-text);
}
.cb-preview__ai-text strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--cb-heading);
}

@media (max-width: 767px) {
    .cb-preview__cards { grid-template-columns: 1fr; }
    .cb-preview__bottom { grid-template-columns: 1fr; }
    .cb-preview__body { min-height: auto; }
}
@media (min-width: 768px) {
    .cb-preview { margin-top: 2.5rem; }
    .cb-preview__body { padding: 1.5rem; }
}

/* ---- Section helpers ---- */
.cb-section {
    padding: 2rem 1.5rem;
}
.cb-section--alt { background: var(--cb-bg-alt); }
.cb-section--why { background: var(--cb-bg-why); padding: 3.5rem 1.5rem; }
.cb-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--cb-teal);
    margin-bottom: 1rem;
}
.cb-section-heading {
    font-size: 1.875rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--cb-heading);
    margin: 0;
}
.cb-section-sub {
    margin-top: 1.25rem;
    font-size: 1.125rem;
    color: var(--cb-text-muted);
    line-height: 1.625;
}

@media (min-width: 768px) {
    .cb-section { padding: 3rem 1.5rem; }
    .cb-section--why { padding: 5rem 1.5rem; }
    .cb-section-heading { font-size: 2.5rem; }
}

/* ---- Solutions 2x2 grid ---- */
.cb-solutions-grid {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--cb-border);
}
.cb-solutions-grid__item {
    padding: 1.25rem;
}
.cb-solutions-grid__item + .cb-solutions-grid__item {
    border-top: 1px solid var(--cb-border);
}
.cb-solutions-grid__icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    background: #FBEEDB;
    color: #E09A3E;
}
.cb-solutions-grid__icon svg { width: 20px; height: 20px; }
.cb-solutions-grid h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.375rem 0;
}
.cb-solutions-grid p {
    font-size: 12.5px;
    line-height: 1.625;
    color: var(--cb-text-muted);
    margin: 0;
}

@media (min-width: 768px) {
    .cb-solutions-grid { grid-template-columns: 1fr 1fr; }
    .cb-solutions-grid__item + .cb-solutions-grid__item { border-top: none; }
    .cb-solutions-grid__item:nth-child(2),
    .cb-solutions-grid__item:nth-child(4) {
        border-left: 1px solid var(--cb-border);
    }
    .cb-solutions-grid__item:nth-child(1),
    .cb-solutions-grid__item:nth-child(2) {
        border-bottom: 1px solid var(--cb-border);
    }
}

/* ---- AI Section ---- */
.cb-ai-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
.cb-ai-checklist {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
}
.cb-ai-checklist li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--cb-text);
    padding: 0.375rem 0;
}
.cb-ai-checklist__check {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    background: #22C55E;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cb-ai-checklist__check svg { width: 12px; height: 12px; }
.cb-ai-tagline {
    margin-top: 1.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--cb-heading);
}
.cb-ai-demo {
    border-radius: 1rem;
    padding: 1.5rem;
    background: var(--cb-teal);
    box-shadow: 0 20px 60px -25px rgba(51,117,152,0.25);
}
.cb-ai-demo__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1rem;
}
.cb-ai-demo__label svg { width: 14px; height: 14px; }
.cb-ai-demo__bubble {
    border-radius: 0.75rem;
    padding: 1rem;
    background: #fff;
    margin-bottom: 0.75rem;
}
.cb-ai-demo__who {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.cb-ai-demo__msg {
    font-size: 0.875rem;
    color: var(--cb-heading);
}
.cb-ai-demo__suggestion {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--cb-heading);
    padding: 0.25rem 0;
}
.cb-ai-demo__suggestion svg { width: 14px; height: 14px; color: var(--cb-teal); }

@media (min-width: 768px) {
    .cb-ai-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
    .cb-ai-demo { padding: 2rem; }
}

/* ---- Features two-column ---- */
.cb-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}
.cb-features-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
.cb-features-list__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.cb-features-list__ring {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    border: 3px solid var(--cb-teal);
    flex-shrink: 0;
    margin-top: 0.25rem;
}
.cb-features-list__ring--green { border-color: var(--cb-green); }
.cb-features-list h3 {
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0 0 0.125rem 0;
}
.cb-features-list p {
    font-size: 0.75rem;
    line-height: 1.625;
    color: var(--cb-text-muted);
    margin: 0;
}

/* Features mock screenshot */
.cb-features-mock {
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--cb-border);
    box-shadow: 0 20px 50px -20px rgba(31,77,104,0.18);
}
.cb-features-mock__chrome {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: #F8FAFB;
    border-bottom: 1px solid var(--cb-border);
}
.cb-features-mock__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: #E5E7EB;
}
.cb-features-mock__url {
    margin: 0 auto;
    font-size: 0.625rem;
    color: var(--cb-text-muted);
}
.cb-features-mock__body { padding: 1.25rem; }
.cb-features-mock__team-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.cb-features-mock__team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.cb-features-mock__team-card {
    border-radius: 0.5rem;
    padding: 0.75rem;
    border: 1px solid var(--cb-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.cb-features-mock__team-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}
.cb-features-mock__team-icon svg { width: 20px; height: 20px; }
.cb-features-mock__team-name {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--cb-heading);
}
.cb-features-mock__team-metric-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cb-text-muted);
    margin-top: 0.25rem;
}
.cb-features-mock__team-value {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.125rem;
}
.cb-features-mock__team-sub {
    font-size: 0.625rem;
    color: var(--cb-text-muted);
}
.cb-features-mock__ai-bar {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: var(--cb-soft-blue);
    font-size: 0.625rem;
    color: var(--cb-text);
}
.cb-features-mock__ai-bar svg { width: 14px; height: 14px; color: var(--cb-teal); flex-shrink: 0; margin-top: 0.125rem; }
.cb-features-mock__ai-bar strong { color: var(--cb-heading); }

@media (min-width: 640px) {
    .cb-features-list { grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
}
@media (min-width: 768px) {
    .cb-features-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}

/* ---- Why section ---- */
.cb-why-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 820px;
    margin: 0 auto;
}
.cb-why-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.cb-why-list__check {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    background: var(--cb-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
}
.cb-why-list__check svg { width: 14px; height: 14px; }
.cb-why-list h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 0.125rem 0;
}
.cb-why-list p {
    font-size: 12.5px;
    line-height: 1.625;
    color: var(--cb-text-muted);
    margin: 0;
}

@media (min-width: 768px) {
    .cb-why-list { grid-template-columns: 1fr 1fr; gap: 1.25rem 2.5rem; }
}

/* ---- Testimonials ---- */
.cb-testimonials {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
.cb-testimonial {
    border-radius: 1rem;
    padding: 1.75rem;
    background: #fff;
    border: 1px solid var(--cb-border);
}
.cb-testimonial__icon {
    color: var(--cb-teal);
    margin-bottom: 1rem;
}
.cb-testimonial__icon svg { width: 20px; height: 20px; }
.cb-testimonial blockquote {
    font-size: 0.9375rem;
    line-height: 1.625;
    color: var(--cb-heading);
    margin: 0;
}
.cb-testimonial figcaption {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}
.cb-testimonial__avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: var(--cb-soft-blue);
    color: var(--cb-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}
.cb-testimonial__name { font-weight: 600; color: var(--cb-heading); }
.cb-testimonial__role { color: var(--cb-text-muted); }

@media (min-width: 768px) {
    .cb-testimonials { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Final CTA ---- */
.cb-cta {
    padding: 0 1.5rem 3.5rem;
}
.cb-cta__card {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
    background: #F3F4F6;
    border: 1px solid var(--cb-border);
    overflow: hidden;
}
.cb-cta__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 600;
    background: var(--cb-green);
    color: #fff;
    margin-bottom: 1rem;
}
.cb-cta__badge svg { width: 12px; height: 12px; }
.cb-cta p {
    margin-top: 1rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
    color: var(--cb-text);
}

@media (min-width: 768px) {
    .cb-cta__card { padding: 3.5rem 2rem; }
}
.cb-cta__card .cb-section-heading {
    font-size: 1.875rem;
}
@media (min-width: 768px) {
    .cb-cta__card .cb-section-heading { font-size: 38px; }
}

/* ---- Footer ---- */
.cb-footer {
    padding: 2.5rem 1.5rem;
    background: var(--cb-teal);
    text-align: center;
    color: rgba(255,255,255,0.85);
}
.cb-footer__brand {
    font-weight: 600;
    font-size: 0.875rem;
    color: #fff;
}
.cb-footer__sub {
    font-size: 0.625rem;
    margin-top: 0.375rem;
}
