/* Utilix — Lorem Ipsum Generator (lips-) */
:root {
    --lips-accent: #ff2d55;
    --lips-accent-light: #ffe4ec;
    --lips-accent-dark: #e11d48;
    --lips-accent-border: #fda4af;
}

.lips-hero { padding-bottom: 40px; }
.lips-hero__grid { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: center; }
.lips-hero__main { display: flex; gap: 20px; align-items: flex-start; }
.lips-hero__visual { display: flex; align-items: center; justify-content: center; min-height: 260px; }

.lips-main { padding: 0 0 48px; }
.lips-section-head { margin-bottom: 24px; }
.lips-section-head h2 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 800; color: var(--heading); }
.lips-section-head p { margin: 0; font-size: .875rem; color: #64748b; }
.lips-section-head--center { text-align: center; }
.lips-section-head--center p { margin: 0 auto; max-width: 560px; }
.lips-section-eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: .75rem; font-weight: 700; color: var(--lips-accent); background: var(--lips-accent-light); border-radius: 999px; margin-bottom: 12px; }
.lips-section-eyebrow i { width: 14px; height: 14px; }

.lips-mode-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 32px; }
.lips-mode-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px 12px; background: #fff; border: 2px solid #e8ecf1; border-radius: 16px; cursor: pointer; text-align: center; transition: border-color .2s, box-shadow .2s, transform .15s; font-family: inherit; }
.lips-mode-btn__num { position: absolute; top: 8px; left: 10px; font-size: .5625rem; font-weight: 800; color: #94a3b8; }
.lips-mode-btn:hover { border-color: var(--lips-accent-border); box-shadow: 0 6px 20px rgba(255,45,85,.12); transform: translateY(-2px); }
.lips-mode-btn.is-active { border-color: var(--lips-accent); background: linear-gradient(180deg, #fff0f4 0%, #fff 100%); box-shadow: 0 4px 20px rgba(255,45,85,.15); }
.lips-mode-btn__icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; margin-top: 4px; }
.lips-mode-btn__icon i { width: 22px; height: 22px; }
.lips-mode-btn strong { font-size: .6875rem; font-weight: 700; color: var(--heading); line-height: 1.3; }
.lips-mode-btn span:last-child { font-size: .5625rem; color: #94a3b8; line-height: 1.35; }
.lips-mode-btn--pink .lips-mode-btn__icon { background: #ffe4ec; color: #ff2d55; }
.lips-mode-btn--blue .lips-mode-btn__icon { background: #dbeafe; color: #2563eb; }
.lips-mode-btn--green .lips-mode-btn__icon { background: #d1fae5; color: #059669; }
.lips-mode-btn--orange .lips-mode-btn__icon { background: #ffedd5; color: #ea580c; }
.lips-mode-btn--purple .lips-mode-btn__icon { background: #ede9fe; color: #7c3aed; }
.lips-mode-btn--red .lips-mode-btn__icon { background: #fee2e2; color: #dc2626; }
.lips-mode-btn--teal .lips-mode-btn__icon { background: #ccfbf1; color: #0d9488; }
.lips-mode-btn--yellow .lips-mode-btn__icon { background: #fef9c3; color: #ca8a04; }
.lips-mode-btn--cyan .lips-mode-btn__icon { background: #cffafe; color: #0891b2; }
.lips-mode-btn--indigo .lips-mode-btn__icon { background: #e0e7ff; color: #4f46e5; }

.lips-workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.lips-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 24px; box-shadow: 0 4px 24px rgba(15,23,42,.05); }
.lips-card__head h2 { margin: 0; font-size: 1.0625rem; font-weight: 700; color: var(--heading); }
.lips-card__head p { margin: 4px 0 0; font-size: .75rem; color: #94a3b8; }
.lips-mode-badge { display: inline-block; margin-top: 8px; padding: 4px 10px; font-size: .6875rem; font-weight: 700; color: var(--lips-accent-dark); background: var(--lips-accent-light); border: 1px solid var(--lips-accent-border); border-radius: 999px; }
.lips-mode-desc { margin: 12px 0 16px; padding: 12px 14px; font-size: .8125rem; color: #be123c; background: var(--lips-accent-light); border: 1px solid var(--lips-accent-border); border-radius: 12px; }

.lips-field { margin-bottom: 14px; }
.lips-field label { display: block; margin-bottom: 6px; font-size: .8125rem; font-weight: 700; color: var(--heading); }
.lips-field select { width: 100%; padding: 12px 14px; font-size: .875rem; color: var(--heading); background: #fff; border: 1px solid #cbd5e1; border-radius: 12px; font-family: inherit; box-sizing: border-box; }
.lips-field select:focus { outline: none; border-color: var(--lips-accent); box-shadow: 0 0 0 3px rgba(255,45,85,.12); }

.lips-stepper { display: flex; align-items: center; gap: 0; border: 1px solid #cbd5e1; border-radius: 12px; overflow: hidden; }
.lips-stepper__btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: none; background: #f8fafc; color: var(--heading); font-size: 1.25rem; font-weight: 700; cursor: pointer; transition: background .15s; font-family: inherit; }
.lips-stepper__btn:hover { background: var(--lips-accent-light); color: var(--lips-accent-dark); }
.lips-stepper input { flex: 1; text-align: center; border: none; border-left: 1px solid #e2e8f0; border-right: 1px solid #e2e8f0; padding: 10px; font-size: 1rem; font-weight: 800; color: var(--heading); background: #fff; font-variant-numeric: tabular-nums; }
.lips-stepper input:focus { outline: none; }

.lips-check-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 14px; }
.lips-check { display: flex; align-items: flex-start; gap: 10px; font-size: .8125rem; color: var(--heading); cursor: pointer; margin-bottom: 8px; }
.lips-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--lips-accent); flex-shrink: 0; }

.lips-settings-panel[hidden] { display: none !important; }

.lips-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; font-size: .8125rem; font-weight: 700; border-radius: 10px; border: none; cursor: pointer; transition: background .15s; font-family: inherit; }
.lips-btn i { width: 16px; height: 16px; }
.lips-btn--primary { color: #fff; background: var(--lips-accent); }
.lips-btn--primary:hover { background: var(--lips-accent-dark); }
.lips-btn--outline { color: var(--lips-accent); background: #fff; border: 1px solid var(--lips-accent-border); }
.lips-btn--outline:hover { background: var(--lips-accent-light); }
.lips-btn--sm { padding: 8px 12px; font-size: .75rem; }
.lips-card .lips-btn--primary { width: 100%; margin-top: 8px; padding: 14px 20px; font-size: .9375rem; }
.lips-btn:disabled { opacity: .5; cursor: not-allowed; }

.lips-result-card { position: sticky; top: 88px; }
.lips-actions-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.lips-result-box { padding: 16px; margin-bottom: 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; min-height: 200px; max-height: 360px; overflow-y: auto; }
.lips-result-box__text { margin: 0; font-size: .8125rem; line-height: 1.7; color: var(--heading); white-space: pre-wrap; word-break: break-word; font-family: inherit; }
.lips-result-box__text.is-empty { color: #94a3b8; font-style: italic; }

.lips-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px; background: linear-gradient(180deg, #fff0f4 0%, #fff 100%); border: 1px solid var(--lips-accent-border); border-radius: 14px; }
.lips-stat { text-align: center; }
.lips-stat strong { display: block; font-size: 1.125rem; font-weight: 800; color: var(--lips-accent-dark); font-variant-numeric: tabular-nums; }
.lips-stat span { font-size: .625rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }

.lips-why { padding: 48px 0; background: #f8fafc; }
.lips-why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.lips-why-card { padding: 20px 16px; background: #fff; border: 1px solid var(--border); border-radius: 16px; text-align: center; }
.lips-why-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; margin-bottom: 12px; }
.lips-why-card__icon i { width: 22px; height: 22px; }
.lips-why-card__icon--pink { background: #ffe4ec; color: #ff2d55; }
.lips-why-card__icon--blue { background: #dbeafe; color: #2563eb; }
.lips-why-card__icon--green { background: #d1fae5; color: #059669; }
.lips-why-card__icon--orange { background: #ffedd5; color: #ea580c; }
.lips-why-card__icon--purple { background: #ede9fe; color: #7c3aed; }
.lips-why-card strong { display: block; margin-bottom: 6px; font-size: .8125rem; color: var(--heading); }
.lips-why-card p { margin: 0; font-size: .75rem; color: #64748b; line-height: 1.5; }

.lips-all-modes { padding: 48px 0; }
.lips-mode-grid--compact .lips-mode-btn { padding: 14px 8px 10px; }
.lips-mode-grid--compact .lips-mode-btn strong { font-size: .625rem; }

.lips-info { padding: 48px 0; }
.lips-info__grid { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.lips-about-content h2 { margin: 0 0 12px; font-size: 1.375rem; font-weight: 800; }
.lips-about-content__lead { margin: 0 0 12px; font-size: .9375rem; color: var(--heading); line-height: 1.7; }
.lips-about-content__text { margin: 0 0 20px; font-size: .875rem; color: #64748b; line-height: 1.7; }
.lips-about-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 20px; }
.lips-about-feature { display: flex; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.lips-about-feature__icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.lips-about-feature__icon i { width: 18px; height: 18px; }
.lips-about-feature__icon--pink { background: #ffe4ec; color: #ff2d55; }
.lips-about-feature__icon--blue { background: #dbeafe; color: #2563eb; }
.lips-about-feature__icon--green { background: #d1fae5; color: #059669; }
.lips-about-feature__icon--orange { background: #ffedd5; color: #ea580c; }
.lips-about-feature__icon--purple { background: #ede9fe; color: #7c3aed; }
.lips-about-feature__icon--cyan { background: #cffafe; color: #0891b2; }
.lips-about-feature strong { display: block; font-size: .8125rem; margin-bottom: 2px; }
.lips-about-feature p { margin: 0; font-size: .75rem; color: #64748b; line-height: 1.45; }

.lips-side-card { padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 4px 20px rgba(15,23,42,.04); }
.lips-side-card__title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: .9375rem; font-weight: 700; }
.lips-side-card__title i { width: 18px; height: 18px; color: var(--lips-accent); }
.lips-side-card--tips { margin-top: 20px; background: linear-gradient(180deg, #fff0f4 0%, #fff 100%); border-color: var(--lips-accent-border); }
.lips-tips-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.lips-tips-head__icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--lips-accent-light); border-radius: 10px; color: var(--lips-accent); }
.lips-tips-head h3 { margin: 0; font-size: .9375rem; }
.lips-tips-list { margin: 0; padding: 0; list-style: none; }
.lips-tips-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: .8125rem; color: #475569; border-bottom: 1px solid rgba(0,0,0,.05); }
.lips-tips-list li:last-child { border-bottom: none; }
.lips-tips-list__check { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; background: #d1fae5; border-radius: 50%; color: #059669; flex-shrink: 0; margin-top: 1px; }
.lips-tips-list__check i { width: 12px; height: 12px; }
.lips-tools-list { margin: 0; padding: 0; list-style: none; }
.lips-tools-list li { margin-bottom: 4px; }
.lips-tools-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--heading); font-size: .8125rem; font-weight: 600; transition: background .15s; }
.lips-tools-link:hover { background: #f1f5f9; }
.lips-tools-link.is-current { background: var(--lips-accent-light); color: var(--lips-accent-dark); }
.lips-tools-link__icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: #f1f5f9; border-radius: 8px; }
.lips-tools-link__icon i { width: 16px; height: 16px; }
.lips-tools-link span { flex: 1; }
.lips-tools-link > i { width: 14px; height: 14px; color: #94a3b8; }
.lips-view-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .8125rem; font-weight: 700; color: var(--lips-accent); text-decoration: none; }
.lips-view-all i { width: 14px; height: 14px; }

.lips-steps-section { padding: 48px 0; background: linear-gradient(180deg, #fff0f4 0%, #fff 100%); }
.lips-steps-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.lips-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.lips-step { display: flex; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.lips-step__num { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--lips-accent); color: #fff; border-radius: 50%; font-size: .875rem; font-weight: 800; flex-shrink: 0; }
.lips-step strong { display: block; margin-bottom: 4px; font-size: .875rem; }
.lips-step p { margin: 0; font-size: .8125rem; color: #64748b; line-height: 1.5; }

.lips-toast { position: fixed; bottom: 24px; right: 24px; padding: 12px 20px; background: #1e293b; color: #fff; border-radius: 10px; font-size: .8125rem; font-weight: 600; opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; pointer-events: none; z-index: 9999; }
.lips-toast.is-visible { opacity: 1; transform: translateY(0); }

.lips-animate-in { animation: lips-fade-up .5s ease both; }
.lips-animate-in--delay { animation-delay: .08s; }
@keyframes lips-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* Hero visual */
.lips-hero__demo { position: relative; width: 100%; max-width: 380px; height: 260px; margin: 0 auto; }
.lips-hero__browser { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 220px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(15,23,42,.12); overflow: hidden; z-index: 2; }
.lips-hero__browser-bar { display: flex; gap: 5px; padding: 10px 12px; background: #f1f5f9; border-bottom: 1px solid var(--border); }
.lips-hero__browser-bar span { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.lips-hero__browser-bar span:first-child { background: #fca5a5; }
.lips-hero__browser-bar span:nth-child(2) { background: #fcd34d; }
.lips-hero__browser-bar span:nth-child(3) { background: #86efac; }
.lips-hero__browser-body { padding: 16px; }
.lips-hero__line { height: 8px; background: #e2e8f0; border-radius: 4px; margin-bottom: 8px; }
.lips-hero__line--title { width: 60%; height: 12px; background: #fda4af; margin-bottom: 12px; }
.lips-hero__line--short { width: 40%; }
.lips-hero__coffee { position: absolute; bottom: 30px; left: 20px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 8px 20px rgba(15,23,42,.1); color: #92400e; animation: lips-float 4s ease-in-out infinite; }
.lips-hero__coffee i { width: 24px; height: 24px; }
.lips-hero__pencil { position: absolute; bottom: 40px; right: 30px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 20px rgba(15,23,42,.1); color: var(--lips-accent); animation: lips-float 4.5s ease-in-out .5s infinite; }
.lips-hero__pencil i { width: 22px; height: 22px; }
@keyframes lips-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 1100px) {
    .lips-hero__grid { grid-template-columns: 1fr; }
    .lips-hero__visual { display: none; }
    .lips-mode-grid, .lips-mode-grid--compact { grid-template-columns: repeat(3, 1fr); }
    .lips-workspace { grid-template-columns: 1fr; }
    .lips-result-card { position: static; }
    .lips-why-grid { grid-template-columns: repeat(2, 1fr); }
    .lips-info__grid { grid-template-columns: 1fr; }
    .lips-steps-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .lips-mode-grid, .lips-mode-grid--compact { grid-template-columns: repeat(2, 1fr); }
    .lips-actions-row { grid-template-columns: 1fr; }
    .lips-stats { grid-template-columns: repeat(2, 1fr); }
    .lips-why-grid { grid-template-columns: 1fr; }
    .lips-about-features { grid-template-columns: 1fr; }
}

[data-theme="dark"] .lips-card,
[data-theme="dark"] .lips-mode-btn,
[data-theme="dark"] .lips-step,
[data-theme="dark"] .lips-side-card,
[data-theme="dark"] .lips-about-feature,
[data-theme="dark"] .lips-why-card { background: var(--bg-section); border-color: var(--border); }
[data-theme="dark"] .lips-mode-btn.is-active { background: linear-gradient(180deg, rgba(255,45,85,.12) 0%, var(--bg-section) 100%); }
[data-theme="dark"] .lips-field select { background: #0f172a; border-color: var(--border); color: var(--text); }
[data-theme="dark"] .lips-stepper { border-color: var(--border); }
[data-theme="dark"] .lips-stepper__btn { background: #1a2332; color: var(--text); }
[data-theme="dark"] .lips-stepper input { background: #0f172a; border-color: var(--border); color: var(--text); }
[data-theme="dark"] .lips-mode-desc { background: rgba(255,45,85,.1); border-color: rgba(253,164,175,.3); color: #fda4af; }
[data-theme="dark"] .lips-result-box { background: #0f172a; border-color: var(--border); }
[data-theme="dark"] .lips-stats { background: linear-gradient(180deg, rgba(255,45,85,.08) 0%, var(--bg-section) 100%); border-color: rgba(253,164,175,.25); }
[data-theme="dark"] .lips-btn--outline { background: #1a2332; border-color: rgba(253,164,175,.3); color: #fda4af; }
[data-theme="dark"] .lips-why { background: rgba(255,45,85,.04); }
[data-theme="dark"] .lips-steps-section { background: rgba(255,45,85,.06); }
[data-theme="dark"] .lips-tools-link.is-current { background: rgba(255,45,85,.12); color: #fda4af; }
[data-theme="dark"] .lips-side-card--tips { background: linear-gradient(180deg, rgba(255,45,85,.08) 0%, var(--bg-section) 100%); }
[data-theme="dark"] .lips-hero__browser { background: var(--bg-section); }
[data-theme="dark"] .lips-hero__coffee,
[data-theme="dark"] .lips-hero__pencil { background: var(--bg-section); }
