/*
 * Cove Glow: components
 * Needs tokens.css first. Every class starts with "cg-" so it can sit next to any other CSS.
 */

/* Base */
.cg { margin: 0; background: var(--cg-deep); color: var(--cg-ink); font-family: var(--cg-sans); font-size: var(--cg-text-body); line-height: 1.65; -webkit-font-smoothing: antialiased; }
.cg *, .cg *::before, .cg *::after { box-sizing: border-box; }
.cg img, .cg svg { max-width: 100%; display: block; }
.cg a { color: var(--cg-sky-light); }
.cg-container { width: min(100% - 40px, var(--cg-container)); margin-inline: auto; }
.cg-narrow { width: min(100% - 40px, var(--cg-narrow)); margin-inline: auto; }
.cg-center { text-align: center; }
.cg-center .cg-lead { margin-inline: auto; }

/* Sections: stacked bands, deep then band then deep. No borders between them */
.cg-section { padding-block: var(--cg-section); }
.cg-section--band { background: var(--cg-band); }
.cg-section--aurora { position: relative; overflow: hidden; background: var(--cg-aurora); }
.cg-section--aurora::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 18% 20%, rgba(108, 196, 234, .16), transparent 70%), radial-gradient(50% 60% at 85% 80%, rgba(155, 140, 242, .14), transparent 70%); pointer-events: none; }
.cg-section--aurora > * { position: relative; }

/* Type: light rounded headlines, never bold */
.cg-hero-title, .cg-h2, .cg-h3 { margin: 0; font-family: var(--cg-display); color: var(--cg-ink); }
.cg-hero-title { font-size: var(--cg-text-hero); font-weight: 300; letter-spacing: -.015em; line-height: 1.15; }
.cg-h2 { font-size: var(--cg-text-h2); font-weight: 400; letter-spacing: -.01em; line-height: 1.2; }
.cg-h3 { font-size: var(--cg-text-h3); font-weight: 500; line-height: 1.3; }
.cg-lead { max-width: 600px; margin: 18px 0 0; color: var(--cg-soft); font-size: var(--cg-text-lead); line-height: 1.6; }
.cg-lead em { color: var(--cg-ink); }
.cg-eyebrow { display: inline-block; margin-bottom: 12px; color: var(--cg-sky-light); font-size: var(--cg-text-small); font-weight: 700; letter-spacing: .04em; }
.cg-note { margin: 14px 0 0; color: var(--cg-sky-light); font-size: var(--cg-text-small); }

/* Nav: a dark strip with the logo left, links and a pill search right */
.cg-navbar { background: var(--cg-deep); border-bottom: var(--cg-border); }
.cg-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; }
.cg .cg-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--cg-ink); font-family: var(--cg-display); font-size: 20px; font-weight: 500; text-decoration: none; }
.cg-logo__mark { width: 26px; height: 26px; flex-shrink: 0; }
.cg-nav__right { display: flex; align-items: center; gap: 24px; }
.cg-nav__links { display: flex; gap: 22px; font-size: 15px; font-weight: 600; }
.cg-nav__links a { color: var(--cg-ink); text-decoration: none; }
.cg-nav__links a:hover { color: var(--cg-sky-light); }
.cg-search { display: inline-flex; align-items: center; gap: 8px; width: 170px; padding: 6px 8px 6px 12px; border: var(--cg-border); border-radius: var(--cg-radius-pill); background: var(--cg-band); color: var(--cg-faint); font-size: var(--cg-text-small); }
.cg-search kbd { margin-left: auto; padding: 0 5px; border: var(--cg-border); border-radius: 4px; font: 600 11px var(--cg-sans); color: var(--cg-soft); }
@media (max-width: 860px) { .cg-nav__links, .cg-search { display: none; } }

/* Buttons: pills. Sky fill for the main action, an outline pill beside it */
.cg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 24px; border: 1.5px solid transparent; border-radius: var(--cg-radius-pill); font-family: var(--cg-sans); font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s var(--cg-ease), border-color .2s var(--cg-ease); }
.cg-btn:focus-visible { outline: none; box-shadow: var(--cg-glow); }
.cg .cg-btn--primary { background: var(--cg-sky); color: #fff; }
.cg .cg-btn--primary:hover { background: var(--cg-sky-dark); }
.cg .cg-btn--outline { border-color: var(--cg-ink); background: transparent; color: var(--cg-ink); }
.cg .cg-btn--outline:hover { background: rgba(238, 241, 251, .08); }
.cg .cg-btn--quiet { background: var(--cg-raised); color: var(--cg-ink); }
.cg .cg-btn--quiet:hover { background: var(--cg-raised-2); }
.cg-btn--sm { padding: 7px 16px; font-size: 14px; }
.cg-btn--block { width: 100%; }
.cg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cg-center .cg-actions { justify-content: center; }

/* Scenes: the signature. A round sky blob with a small drawn scene in inline SVG */
.cg-scene { position: relative; width: 170px; aspect-ratio: 1; margin-inline: auto; }
.cg-scene::before { content: ""; position: absolute; inset: 12% 8% 6%; border-radius: 50%; background: var(--cg-sky-blob); }
.cg-scene svg { position: relative; width: 100%; height: 100%; }
.cg-scene--lg { width: min(320px, 80vw); }
.cg-scene--sm { width: 110px; }

/* Feature grid: centered scene, title, short text. 4 across, then 3 centered */
.cg-features { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 28px; margin-top: 48px; }
.cg-feature { flex: 0 1 230px; text-align: center; }
.cg-feature__title { margin: 14px 0 6px; font-family: var(--cg-display); font-size: 18px; font-weight: 500; }
.cg-feature__text { margin: 0; color: var(--cg-soft); font-size: 15px; }

/* Icon row: line icons with a label under each */
.cg-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 34px; margin-top: 36px; }
.cg .cg-icon { display: grid; justify-items: center; gap: 8px; color: var(--cg-ink); font-size: var(--cg-text-small); text-decoration: none; }
.cg-icon svg { width: 34px; height: 34px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Window: a dark app screen, the product shown flat inside a band */
.cg-window { overflow: hidden; border: var(--cg-border); border-radius: var(--cg-radius); background: #0c1128; box-shadow: var(--cg-shadow); text-align: left; }
.cg-window__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: var(--cg-border); font-size: var(--cg-text-micro); color: var(--cg-soft); }
.cg-window__body { padding: 18px; }
.cg-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.cg-tile { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--cg-radius-sm); background: var(--cg-raised); }
.cg-tile__label { position: absolute; left: 10px; bottom: 8px; font-family: var(--cg-display); font-size: 14px; font-weight: 500; }
.cg-tile--sky { background: var(--cg-sky); }

/* Chips and dots, inside product UI */
.cg-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--cg-radius-pill); background: var(--cg-raised); color: var(--cg-soft); font-size: var(--cg-text-micro); font-weight: 700; }
.cg-chip--sky { background: rgba(30, 152, 207, .18); color: var(--cg-sky-light); }
.cg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cg-leaf); }

/* Cards: raised navy, soft corners, no borders */
.cg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 44px; }
.cg-card { padding: 28px; border-radius: var(--cg-radius); background: var(--cg-raised); text-align: left; }
.cg-card__title { margin: 0 0 8px; font-family: var(--cg-display); font-size: 18px; font-weight: 500; }
.cg-card__text { margin: 0; color: var(--cg-soft); font-size: 15px; }

/* Quote: centered, light display type, a small scene as the avatar */
.cg-quote { max-width: 680px; margin: 0 auto; text-align: center; }
.cg-quote blockquote { margin: 0; font-family: var(--cg-display); font-size: clamp(20px, 2.4vw, 26px); font-weight: 300; line-height: 1.5; }
.cg-quote figcaption { margin-top: 18px; color: var(--cg-soft); font-size: var(--cg-text-small); }
.cg-quote strong { color: var(--cg-ink); }

/* Pricing */
.cg-toggle { display: inline-flex; gap: 2px; padding: 4px; border: var(--cg-border); border-radius: var(--cg-radius-pill); background: var(--cg-band); }
.cg-toggle button { padding: 7px 18px; border: 0; border-radius: var(--cg-radius-pill); background: transparent; color: var(--cg-soft); font: 700 14px var(--cg-sans); cursor: pointer; }
.cg-toggle button[aria-pressed="true"] { background: var(--cg-sky); color: #fff; }
.cg-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 44px; text-align: left; }
.cg-plan { display: flex; flex-direction: column; padding: 30px; border: 1.5px solid transparent; border-radius: var(--cg-radius-lg); background: var(--cg-raised); }
.cg-plan--featured { border-color: var(--cg-sky); }
.cg-plan__name { margin: 0; font-family: var(--cg-display); font-size: 22px; font-weight: 500; }
.cg-plan__desc { margin: 6px 0 20px; color: var(--cg-soft); font-size: 15px; }
.cg-plan__price { margin: 0; font-family: var(--cg-display); font-size: 44px; font-weight: 300; line-height: 1; }
.cg-plan__price small { font-family: var(--cg-sans); font-size: 15px; color: var(--cg-soft); }
.cg-plan__list { flex: 1; margin: 24px 0; padding: 0; list-style: none; }
.cg-plan__list li { position: relative; padding: 6px 0 6px 26px; color: var(--cg-soft); font-size: 15px; }
.cg-plan__list li::before { content: ""; position: absolute; left: 0; top: 12px; width: 14px; height: 14px; border-radius: 50%; background: var(--cg-sky-blob); box-shadow: inset 0 0 0 4px var(--cg-sky); }
.cg-table-wrap { overflow-x: auto; border-radius: var(--cg-radius); background: var(--cg-raised); }
.cg-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.cg-table th, .cg-table td { padding: 14px 18px; border-bottom: var(--cg-border); text-align: left; }
.cg-table th { color: var(--cg-soft); font-weight: 700; font-size: var(--cg-text-small); }
.cg-table tr:last-child td { border-bottom: 0; }
.cg-table__yes { color: var(--cg-sky-light); font-weight: 700; }
.cg-table__no { color: var(--cg-faint); }
.cg-faq details { border-bottom: var(--cg-border); }
.cg-faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-family: var(--cg-display); font-size: 18px; font-weight: 400; cursor: pointer; list-style: none; }
.cg-faq summary::-webkit-details-marker { display: none; }
.cg-faq summary::after { content: "+"; color: var(--cg-sky-light); font-size: 22px; line-height: 1; transition: transform .2s var(--cg-ease); }
.cg-faq details[open] summary::after { transform: rotate(45deg); }
.cg-faq p { margin: 0 0 20px; color: var(--cg-soft); }

/* Article */
.cg-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; color: var(--cg-soft); font-size: var(--cg-text-small); }
.cg-meta span + span::before { content: "·"; margin-right: 8px; }
.cg-author { display: inline-flex; align-items: center; gap: 12px; }
.cg-avatar { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--cg-sky-blob); color: var(--cg-ink); font-family: var(--cg-display); font-weight: 500; }
.cg-prose { font-size: 17px; line-height: 1.8; }
.cg-prose h2 { margin: 48px 0 12px; font-family: var(--cg-display); font-size: 28px; font-weight: 400; line-height: 1.25; }
.cg-prose h3 { margin: 32px 0 8px; font-family: var(--cg-display); font-size: 20px; font-weight: 500; }
.cg-prose p { margin: 0 0 18px; color: #d3d8ec; }
.cg-prose ul { margin: 0 0 18px; padding-left: 22px; color: #d3d8ec; }
.cg-prose li { margin-bottom: 6px; }
.cg-prose li::marker { color: var(--cg-sky-light); }
.cg-prose blockquote { margin: 32px 0; padding: 0; font-family: var(--cg-display); font-size: 24px; font-weight: 300; line-height: 1.5; text-align: center; color: var(--cg-ink); }
.cg-prose code { padding: 2px 6px; border-radius: 6px; background: var(--cg-raised); font-size: .9em; }
.cg-prose figure { margin: 36px 0; }
.cg-prose figcaption { margin-top: 10px; color: var(--cg-faint); font-size: var(--cg-text-small); text-align: center; }
.cg-callout { margin: 28px 0; padding: 18px 22px; border-radius: var(--cg-radius); background: var(--cg-band); color: var(--cg-soft); font-size: 16px; }
.cg-callout strong { color: var(--cg-sky-light); }
.cg .cg-post { display: block; padding: 22px; border-radius: var(--cg-radius); background: var(--cg-raised); color: var(--cg-ink); text-decoration: none; text-align: left; }
.cg-post:hover { background: var(--cg-raised-2); }
.cg-post .cg-scene { width: 120px; margin: 0 0 12px; }
.cg-post__title { margin: 4px 0 6px; font-family: var(--cg-display); font-size: 18px; font-weight: 500; }
.cg-post__text { margin: 0; color: var(--cg-soft); font-size: 15px; }

/* Forms */
.cg-form { display: grid; gap: 18px; }
.cg-field { display: grid; gap: 6px; }
.cg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .cg-row { grid-template-columns: 1fr; } }
.cg-label { font-size: var(--cg-text-small); font-weight: 700; }
.cg-input, .cg-select { width: 100%; padding: 11px 14px; border: var(--cg-border); border-radius: var(--cg-radius-sm); background: var(--cg-deep); color: var(--cg-ink); font: 16px var(--cg-sans); }
.cg-input::placeholder { color: var(--cg-faint); }
.cg-input:focus, .cg-select:focus { outline: none; border-color: var(--cg-sky); box-shadow: var(--cg-glow); }
.cg-help { color: var(--cg-faint); font-size: 13px; }
.cg-field--error .cg-input { border-color: var(--cg-coral); }
.cg-error { color: var(--cg-coral); font-size: 13px; }
.cg-check { display: flex; gap: 10px; align-items: flex-start; color: var(--cg-soft); font-size: var(--cg-text-small); }
.cg-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--cg-sky); }
.cg-divider-text { display: flex; align-items: center; gap: 12px; color: var(--cg-faint); font-size: var(--cg-text-small); }
.cg-divider-text::before, .cg-divider-text::after { content: ""; flex: 1; height: 1px; background: var(--cg-line); }
.cg-panel { padding: clamp(24px, 4vw, 40px); border-radius: var(--cg-radius-lg); background: var(--cg-band); }

/* Footer */
.cg-footer { padding: 56px 0 32px; background: var(--cg-band); color: var(--cg-soft); font-size: var(--cg-text-small); }
.cg-footer__cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.cg-footer__cols h4 { margin: 0 0 12px; color: var(--cg-ink); font-family: var(--cg-display); font-size: 15px; font-weight: 500; }
.cg-footer__cols ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.cg-footer__cols a { color: var(--cg-soft); text-decoration: none; }
.cg-footer__cols a:hover { color: var(--cg-ink); }
.cg-footer__bottom { margin-top: 40px; padding-top: 20px; border-top: var(--cg-border); color: var(--cg-faint); }
@media (max-width: 760px) { .cg-footer__cols { grid-template-columns: 1fr 1fr; } }

/* Entrance: a slow rise */
.cg-fade { animation: cg-rise .9s var(--cg-ease) both; }
@keyframes cg-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cg-fade { animation: none; } }

/* Scene paint: fills for the drawn scenes, all from tokens */
.cg-s-ink { fill: var(--cg-ink); }
.cg-s-deep { fill: var(--cg-deep); }
.cg-s-raised { fill: var(--cg-raised-2); }
.cg-s-sky { fill: var(--cg-sky-light); }
.cg-s-sun { fill: var(--cg-sun); }
.cg-s-leaf { fill: var(--cg-leaf); }
.cg-s-coral { fill: var(--cg-coral); }
.cg-s-skin { fill: var(--cg-skin); }
.cg-s-lilac { fill: var(--cg-lilac); }
.cg-s-line { fill: none; stroke: var(--cg-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cg-s-stem { fill: none; stroke: var(--cg-leaf); stroke-width: 4; stroke-linecap: round; }
