/* ================================
   The Good Years Project (formerly Make Good Years) - Component Library

   Reusable UI components for the MGY brand.
   Requires mgy-tokens.css to be loaded first.

   These components reference --mgy-* custom properties,
   so they automatically adapt to dark mode and per-product
   token overrides.
   ================================ */


/* ================================
   Reset & Base
   ================================ */

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

body {
    margin: 0;
    background: var(--mgy-bg-page);
    color: var(--mgy-text-body);
    font-family: var(--mgy-font-body);
    font-size: var(--mgy-text-base);
    line-height: var(--mgy-leading-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
    font-family: var(--mgy-font-heading);
    color: var(--mgy-text-heading);
    line-height: var(--mgy-leading-tight);
    margin: 0 0 var(--mgy-space-md) -1px;
}
h1 { font-size: var(--mgy-text-4xl); font-weight: var(--mgy-weight-semibold); margin-top: var(--mgy-space-2xl); margin-bottom: var(--mgy-space-sm);}
h2 { font-size: var(--mgy-text-3xl); font-weight: var(--mgy-weight-semibold); margin-top: var(--mgy-space-xl); margin-bottom: var(--mgy-space-sm);}
h3 { font-size: var(--mgy-text-xl); font-weight: var(--mgy-weight-semibold); margin-top: var(--mgy-space-lg); margin-bottom: var(--mgy-space-xs);}
h4 { font-size: var(--mgy-text-lg); font-weight: var(--mgy-weight-semibold); margin-top: var(--mgy-space-md); margin-bottom: var(--mgy-space-xs);}
h5 { font-size: var(--mgy-text-base); font-weight: var(--mgy-weight-semibold); margin-top: var(--mgy-space-sm); margin-bottom: var(--mgy-space-xs);}

h1.no-margin, h2.no-margin, h3.no-margin, h4.no-margin, h5.no-margin, h6.no-margin { margin-top: 0 }

a { color: var(--mgy-brand); text-decoration: none; }
a:hover { color: var(--mgy-brand-hover); }

p { margin: 0 0 var(--mgy-space-md) 0; line-height: var(--mgy-leading-tight) }

ul { margin-left: 2rem; list-style-type: disc; }
ol { margin-left: 2rem; list-style-type: decimal; }
li { margin-bottom: 0.64rem; }
.mgy-pointer {cursor: pointer;}

ul.mgy-compact-list { margin-bottom: 0.64rem }
ul.mgy-compact-list li { margin-bottom: 0; }

/* ================================
   Layout Utilities
   ================================ */

.mgy-container {
    max-width: var(--mgy-width-standard);
    margin: 0 auto;
    padding: 0 var(--mgy-page-padding);
    z-index: 10;
}
.mgy-container-narrow {
    max-width: var(--mgy-width-narrow);
    margin: 0 auto;
    padding: 0 var(--mgy-page-padding);
    z-index: 10;
}
.mgy-container-wide {
    max-width: var(--mgy-width-wide);
    margin: 0 auto;
    padding: 0 var(--mgy-page-padding);
    z-index: 10;
}
.mgy-width-auto { width: auto; }
.mgy-width-fit-content { width: fit-content; }

.mgy-flex { display: flex; }
.mgy-flex-col { display: flex; flex-direction: column; }
.mgy-flex-wrap { flex-wrap: wrap; }
.mgy-flex-1 { flex: 1; min-width: 0; }
.mgy-items-center { align-items: center; }
.mgy-items-start { align-items: flex-start; }
.mgy-items-stretch { align-items: stretch; }
.mgy-justify-between { justify-content: space-between; }
.mgy-justify-center { justify-content: center; }
.mgy-justify-end { justify-content: flex-end; }
.mgy-nowrap { white-space: nowrap }

.mgy-grid-2 { display: grid; grid-template-columns: 1fr 1fr; }
.mgy-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.mgy-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); }

.mgy-gap-xs { gap: var(--mgy-space-xs); }
.mgy-gap-sm { gap: var(--mgy-space-sm); }
.mgy-gap-md { gap: var(--mgy-space-md); }
.mgy-gap-lg { gap: var(--mgy-space-lg); }
.mgy-gap-xl { gap: var(--mgy-space-xl); }
.mgy-gap-2xl { gap: var(--mgy-space-2xl); }

.mgy-stack-sm > * + * { margin-top: var(--mgy-space-sm); }
.mgy-stack-md > * + * { margin-top: var(--mgy-space-md); }
.mgy-stack-lg > * + * { margin-top: var(--mgy-space-lg); }
.mgy-stack-xl > * + * { margin-top: var(--mgy-space-xl); }
.mgy-stack-2xl > * + * { margin-top: var(--mgy-space-2xl); }

.mgy-center { margin-left: auto; margin-right: auto; }
.mgy-text-center { text-align: center; }
.mgy-text-right { text-align: right; }

.mgy-section { padding: var(--mgy-space-3xl) 0; }
.mgy-section-sm { padding: var(--mgy-space-2xl) 0; }

.mgy-w-full { width: 100%; }
.mgy-hidden { display: none; }
.mgy-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.mgy-w-xs { width: var(--mgy-space-xs); }
.mgy-w-sm { width: var(--mgy-space-sm); }
.mgy-w-md { width: var(--mgy-space-md); }
.mgy-w-lg { width: var(--mgy-space-lg); }
.mgy-w-xl { width: var(--mgy-space-xl); }
.mgy-w-2xl { width: var(--mgy-space-2xl); }

.mgy-max-width-xs { max-width: var(--mgy-space-xs); }
.mgy-max-width-sm { max-width: var(--mgy-space-sm); }
.mgy-max-width-md { max-width: var(--mgy-space-md); }
.mgy-max-width-lg { max-width: var(--mgy-space-lg); }
.mgy-max-width-xl { max-width: var(--mgy-space-xl); }
.mgy-max-width-2xl { max-width: var(--mgy-space-2xl); }


.mgy-with-subtext { margin-bottom: 0 !important; text-align: center;}
.mgy-with-subtext, h1.mgy-with-subtext, h2.mgy-with-subtext, h3.mgy-with-subtext, h4.mgy-with-subtext, h5.mgy-with-subtext { margin-bottom: 0 !important;}
.mgy-subtext { text-align: center; }


.mgy-text-base { font-size: var(--mgy-text-base); }
.mgy-text-xs { font-size: var(--mgy-text-xs); }
.mgy-text-sm { font-size: var(--mgy-text-sm); }
.mgy-text-lg { font-size: var(--mgy-text-lg); }
.mgy-text-xl { font-size: var(--mgy-text-xl); }
.mgy-text-2xl { font-size: var(--mgy-text-2xl); }
.mgy-text-3xl { font-size: var(--mgy-text-3xl); }
.mgy-text-4xl { font-size: var(--mgy-text-4xl); }
.mgy-text-5xl { font-size: var(--mgy-text-5xl); }
.mgy-text-6xl { font-size: var(--mgy-text-6xl); }
.mgy-text-7xl { font-size: var(--mgy-text-7xl); }
.mgy-text-8xl { font-size: var(--mgy-text-8xl); }


.mgy-text-heading { color: var(--mgy-text-heading); }
.mgy-text-body { color: var(--mgy-text-body); }
.mgy-text-light { color: var(--mgy-text-light); }
.mgy-text-muted { color: var(--mgy-text-muted); }
.mgy-text-faint { color: var(--mgy-text-faint); }

/* ================================
   Buttons
   ================================ */

.mgy-btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: var(--mgy-text-base);
    font-weight: var(--mgy-weight-medium);
    border-radius: var(--mgy-radius-lg);
    border: 1px solid var(--mgy-border-medium);
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color var(--mgy-transition-normal),
        transform var(--mgy-transition-fast),
        box-shadow var(--mgy-transition-normal);
}
.mgy-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.mgy-btn-primary {
    background: var(--mgy-brand);
    color: #FFF;
}
.mgy-btn-primary:hover {
    background: var(--mgy-brand-hover);
    color: #FFF;
}

.mgy-btn-ghost {
    background: transparent;
    color: var(--mgy-text-body);
    border: 1px solid var(--mgy-border-medium);
}
.mgy-btn-ghost:hover {
    border-color: var(--mgy-border-dark);
    background: var(--mgy-bg-warm);
    color: var(--mgy-text-heading);
}

.mgy-btn-large {
    padding: 16px 36px;
    font-size: var(--mgy-text-lg);
}
.mgy-btn-small {
    padding: 8px 20px;
    font-size: var(--mgy-text-sm);
}
.mgy-btn-xs {
    padding: 4px 12px;
    font-size: var(--mgy-text-sm);
}

/* Disabled state — applies to <button disabled> and any element with
   aria-disabled="true" (e.g. an <a> or <span> rendered as a "not ready"
   step CTA). pointer-events: none blocks the link's default action. */
.mgy-btn:disabled,
.mgy-btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.mgy-btn-outline {
    background: transparent;
    color: var(--mgy-text-body);
    border: 1px solid var(--mgy-border-medium);
}
.mgy-btn-outline:hover {
    border-color: var(--mgy-border-dark);
    background: var(--mgy-bg-warm);
    color: var(--mgy-text-heading);
}

.mgy-btn-warning {
    background: var(--mgy-warning-bg);
    color: var(--mgy-warning-text);
    border: 1px solid var(--mgy-warning-text);
}
.mgy-btn-warning:hover {
    background: var(--mgy-warning-text);
    color: #FFF;
}

.mgy-btn-info {
    background: var(--mgy-info-bg);
    color: var(--mgy-info-text);
    border: 1px solid var(--mgy-info-text);
}
.mgy-btn-info:hover {
    background: var(--mgy-info-text);
    color: #FFF;
}

.mgy-btn-error {
    background: var(--mgy-error-bg);
    color: var(--mgy-error-text);
    border: 1px solid var(--mgy-error-text);
}
.mgy-btn-error:hover {
    background: var(--mgy-error-text);
    color: #FFF;
}

.mgy-btn-circle {
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


/* ================================
   Cards

   Two card shapes:

   - .mgy-card  / .mgy-card-col  — column flow. The default. In-app
     "section in a box": heading + body + buttons stacked vertically.
   - .mgy-card-row / .mgy-card-product — row flow. The marketing
     product-card shape: illustration (mgy-card-icon) on the left,
     body (mgy-card-body) on the right.

   mgy-card-col is an explicit alias for mgy-card; mgy-card-product is
   an explicit alias for mgy-card-row. All four classes are
   self-contained — you don't pair them with a base class.

   Column children carry their own block margins (h2, p, ul, etc.), so
   gap: 0 on the column variant lets the natural typographic rhythm do
   the spacing. Row gap is wider since icon + body need a clear gutter.

   margin-bottom on the shared base gives stacked content cards their
   "breathe between siblings" spacing. CSS grid containers ignore item
   margins for inter-item spacing, so product-card grids are unaffected.
   ================================ */

.mgy-card,
.mgy-card-col,
.mgy-card-row,
.mgy-card-product {
    display: flex;
    padding: var(--mgy-space-lg);
    background: var(--mgy-bg-card);
    border: 1px solid var(--mgy-border-light);
    border-radius: var(--mgy-radius-xl);
    text-decoration: none;
    color: var(--mgy-text-body);
    box-shadow: var(--mgy-shadow-card);
    margin-bottom: var(--mgy-space-md);
    transition:
        border-color var(--mgy-transition-normal),
        box-shadow var(--mgy-transition-normal),
        transform var(--mgy-transition-normal);
}

/* Default: column flow ("section in a box"). */
.mgy-card,
.mgy-card-col {
    flex-direction: column;
    gap: 0;
}

/* Row flow: marketing product card. */
.mgy-card-row,
.mgy-card-product {
    flex-direction: row;
    gap: var(--mgy-space-lg);
}
.mgy-card h1, .mgy-card h2, .mgy-card h3 {
    margin-top: 0;
}

a.mgy-card,
a.mgy-card-col,
a.mgy-card-row,
a.mgy-card-product { cursor: pointer; }

a.mgy-card:hover,
.mgy-card:hover,
a.mgy-card-col:hover,
.mgy-card-col:hover,
a.mgy-card-row:hover,
.mgy-card-row:hover,
a.mgy-card-product:hover,
.mgy-card-product:hover {
    border-color: var(--mgy-border-dark);
    box-shadow: var(--mgy-shadow-card-hover);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--mgy-text-body);
}

.mgy-card-icon {
    display: block;
    max-width: 150px;
    flex-shrink: 0;
}
.mgy-card-icon img {
    width: 100%;
    height: auto;
}

.mgy-card-body {
    display: block;
    flex: 1;
    min-width: 0;
}

.mgy-card-title {
    font-size: var(--mgy-text-lg);
    font-weight: var(--mgy-weight-semibold);
    color: var(--mgy-text-heading);
    margin: 0 0 4px 0;
    line-height: var(--mgy-leading-tight);
}

.mgy-card-tagline {
    font-size: 15px;
    font-weight: var(--mgy-weight-medium);
    color: var(--mgy-brand);
    margin: 0 0 var(--mgy-space-sm) 0;
}

.mgy-card-desc {
    font-size: 15px;
    line-height: 1.5;
    color: var(--mgy-text-light);
    margin: 0 0 var(--mgy-space-md) 0;
}

.mgy-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mgy-card-cta {
    margin-top: var(--mgy-space-md);
    padding-top: var(--mgy-space-md);
    border-top: 1px solid var(--mgy-border-light);
}

/* Coming-soon variant */
.mgy-card-soon {
    border-style: dashed;
    border-color: var(--mgy-border-medium);
    background: var(--mgy-bg-warm-light);
    box-shadow: none;
    cursor: default;
}
.mgy-card-soon:hover {
    transform: none;
    box-shadow: none;
}
.mgy-card-soon .mgy-card-title {
    color: var(--mgy-text-muted);
}

/* Selectable variant — for "pick one of these options" rows.

   Use on a <button> (or <a>) to render a card that highlights on
   hover and shows a brand-orange border + ring when selected. Add
   the `.is-selected` class (and aria-pressed="true" / aria-selected
   for accessibility) to mark the active choice. */
.mgy-card-selectable {
    display: block;
    text-align: left;
    background: var(--mgy-bg-card);
    border: 1px solid var(--mgy-border-light);
    border-radius: var(--mgy-radius-xl);
    padding: var(--mgy-space-md);
    color: var(--mgy-text-body);
    font: inherit;
    cursor: pointer;
    transition:
        border-color var(--mgy-transition-normal),
        box-shadow var(--mgy-transition-normal);
}
.mgy-card-selectable:hover {
    border-color: var(--mgy-brand);
    transform: none;
    box-shadow: none;
}
.mgy-card-selectable.is-selected {
    border-color: var(--mgy-brand);
    box-shadow: 0 0 0 1px var(--mgy-brand);
    cursor: default;
}


/* ================================
   Status Badges
   ================================ */

.mgy-badge {
    display: inline-block;
    font-family: var(--mgy-font-body);
    font-size: var(--mgy-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: var(--mgy-radius-sm);
    background: var(--mgy-status-bg);
    color: var(--mgy-status-text);
}
.mgy-badge-live {
    background: var(--mgy-success-bg);
    color: var(--mgy-success-text);
}

.mgy-price {
    display: inline-block;
    font-size: var(--mgy-text-sm);
    font-weight: var(--mgy-weight-semibold);
    color: var(--mgy-text-heading);
}


/* ================================
   Category Labels
   ================================ */

.mgy-category {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mgy-brand);
    font-weight: var(--mgy-weight-semibold);
    margin-bottom: var(--mgy-space-sm);
}


/* ================================
   Form Components
   ================================ */

/* Recessed warm panel — the visual inverse of .mgy-card. No border,
   no shadow, no hover; sits quietly *into* the warm page rather than
   lifting off it. Self-contained card type, never interactive/a link. */
.mgy-card-recessed,
.mgy-signup {
    background: var(--mgy-bg-warm);
    padding: var(--mgy-space-xl);
    border-radius: var(--mgy-radius-xl);
}
.mgy-signup p {
    margin: 0 0 12px 0;
    color: var(--mgy-text-body);
}

.mgy-signup-form {
    display: flex;
    gap: 10px;
    margin-top: var(--mgy-space-md);
    align-items: stretch;
    flex-wrap: wrap;
}

.mgy-signup-checkbox {
    flex-basis: 100%;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: var(--mgy-text-sm);
    color: var(--mgy-text-muted);
    margin: 4px 0 0 0;
    line-height: 1.4;
    cursor: pointer;
}
.mgy-signup-checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.mgy-signup-fields {
    display: flex;
    gap: 10px;
    flex: 1;
}
.mgy-signup-fields .mgy-input {
    margin-bottom: 0;
}

.mgy-input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    font-size: var(--mgy-text-base);
    border: 1px solid var(--mgy-border-medium);
    border-radius: var(--mgy-radius-md);
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    background: var(--mgy-bg-card);
    color: var(--mgy-text-body);
}
.mgy-input:focus {
    border-color: var(--mgy-brand);
}
.mgy-input-name {
    flex: 0.6;
}

.mgy-submit {
    padding: 10px 24px;
    font-size: var(--mgy-text-base);
    font-weight: var(--mgy-weight-medium);
    background-color: var(--mgy-brand);
    color: #FFF;
    border: none;
    border-radius: var(--mgy-radius-md);
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}
.mgy-submit:hover {
    background-color: var(--mgy-brand-hover);
}

.mgy-signup-note, p.mgy-signup-note {
    font-size: var(--mgy-text-sm);
    color: var(--mgy-text-muted);
    margin-top: 1rem;
}


/* ================================
   FAQ
   ================================ */

.mgy-faq {
    max-width: var(--mgy-width-narrow);
    margin: 0 auto;
}

.mgy-faq-item {
    border-bottom: 1px solid var(--mgy-border-light);
    padding: 20px 0;
}
.mgy-faq-item:first-child {
    border-top: 1px solid var(--mgy-border-light);
}

.mgy-faq-question {
    font-size: 17px;
    font-weight: var(--mgy-weight-semibold);
    color: var(--mgy-text-heading);
    margin: 0 0 var(--mgy-space-sm) 0;
    line-height: var(--mgy-leading-tight);
}

.mgy-faq-answer {
    color: var(--mgy-text-light);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}


/* ================================
   Testimonials
   ================================ */

.mgy-testimonial {
    background: var(--mgy-bg-card);
    border: 1px solid var(--mgy-border-light);
    border-radius: var(--mgy-radius-xl);
    padding: var(--mgy-space-lg);
    text-align: left;
}

.mgy-testimonial-text {
    font-style: italic;
    color: var(--mgy-text-light);
    line-height: 1.6;
    margin-bottom: var(--mgy-space-md);
}

.mgy-testimonial-author {
    font-weight: var(--mgy-weight-semibold);
    font-size: var(--mgy-text-sm);
    color: var(--mgy-text-heading);
}


/* ================================
   Pricing Block
   ================================ */

.mgy-pricing {
    text-align: center;
    padding: var(--mgy-space-2xl) var(--mgy-space-lg);
    max-width: 600px;
    margin: 0 auto;
}

.mgy-pricing-amount {
    font-size: var(--mgy-text-5xl);
    font-weight: var(--mgy-weight-semibold);
    color: var(--mgy-text-heading);
    margin-bottom: var(--mgy-space-sm);
}

.mgy-pricing-note {
    color: var(--mgy-text-muted);
    margin-bottom: var(--mgy-space-lg);
}

.mgy-pricing-includes {
    text-align: left;
    max-width: 400px;
    margin: 0 auto var(--mgy-space-xl) auto;
    list-style: none;
    padding: 0;
}
.mgy-pricing-includes li {
    padding: 6px 0;
    color: var(--mgy-text-light);
}
.mgy-pricing-includes li::before {
    content: "✓ ";
    color: var(--mgy-success-text);
    font-weight: var(--mgy-weight-semibold);
}


/* ================================
   Cinematic Header
   ================================ */

.mgy-cinematic {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}
.mgy-cinematic img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 400px;
}


/* ================================
   Blog Cards
   ================================ */

.mgy-blog-card {
    display: block;
    background: var(--mgy-bg-card);
    border: 1px solid var(--mgy-border-light);
    border-radius: var(--mgy-radius-xl);
    overflow: hidden;
    text-decoration: none;
    color: var(--mgy-text-body);
    transition:
        border-color var(--mgy-transition-normal),
        box-shadow var(--mgy-transition-normal),
        transform var(--mgy-transition-normal);
}
.mgy-blog-card:hover {
    border-color: var(--mgy-border-dark);
    box-shadow: var(--mgy-shadow-card-hover);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--mgy-text-body);
}

.mgy-blog-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--mgy-bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mgy-text-faint);
    font-size: 13px;
}
.mgy-blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mgy-blog-card-content {
    padding: 20px;
}

.mgy-blog-card-title {
    font-size: var(--mgy-text-lg);
    font-weight: var(--mgy-weight-semibold);
    color: var(--mgy-text-heading);
    margin-bottom: 6px;
    line-height: 1.3;
}

.mgy-blog-card-excerpt {
    font-size: 15px;
    color: var(--mgy-text-light);
    line-height: 1.5;
    margin-bottom: 12px;
}

.mgy-blog-card-date {
    font-size: 13px;
    color: var(--mgy-text-faint);
}


/* ================================
   Steps (Numbered)
   ================================ */

.mgy-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--mgy-space-xl);
    counter-reset: mgy-step;
}

.mgy-step {
    text-align: center;
    counter-increment: mgy-step;
}
.mgy-step::before {
    content: counter(mgy-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--mgy-brand);
    color: #FFF;
    border-radius: 50%;
    font-weight: var(--mgy-weight-semibold);
    font-size: var(--mgy-text-lg);
    margin-bottom: var(--mgy-space-md);
}
.mgy-step h3 {
    font-size: 17px;
    margin-bottom: var(--mgy-space-sm);
}
.mgy-step p {
    font-size: 15px;
    color: var(--mgy-text-light);
    margin: 0;
}


/* ================================
   Feature Cards
   ================================ */

.mgy-feature {
    padding: var(--mgy-space-lg);
}
.mgy-feature-icon {
    font-size: 28px;
    margin-bottom: 12px;
}
.mgy-feature-icon img {
    width: 10rem;
    height: auto;
    margin: 0 auto;
}
.mgy-feature h3 {
    font-size: var(--mgy-text-lg);
    margin-bottom: var(--mgy-space-sm);
}
.mgy-feature p {
    font-size: 15px;
    color: var(--mgy-text-light);
    line-height: 1.6;
    margin: 0;
}


/* ================================
   Navbar
   ================================ */

.mgy-navbar {
    display: flex;
    align-items: center;
    padding: var(--mgy-space-md) var(--mgy-page-padding);
    background: var(--mgy-bg-card);
    border-bottom: 1px solid var(--mgy-border-light);
    position: relative;
    z-index: 100;
    z-index: 20;
}

/* Auth-aware navbar buttons.
   The static thegoodyearsproject.com navbar embeds two auth buttons — a
   "Log in" / "Sign up" pair (data-auth-out) and a logged-in CTA
   (data-auth-in). A synchronous script in <head> sniffs the session cookie
   and sets html[data-auth="1"] before paint, so the right pair is shown
   without any flash, fetch, or layout shift. */
[data-auth-in]  { display: none; }
html[data-auth="1"] [data-auth-out] { display: none; }
html[data-auth="1"] [data-auth-in]  { display: inline-block; }

.mgy-navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--mgy-space-sm);
    text-decoration: none;
    color: var(--mgy-text-heading);
    font-family: var(--mgy-font-brand);
    font-size: var(--mgy-text-xl);
    flex-shrink: 0;
}
.mgy-navbar-brand:hover { color: var(--mgy-text-heading); }
.mgy-navbar-brand img {
    height: 36px;
    width: auto;
}
.mgy-brand-with-name {
    margin-top: -12px;
}

.mgy-navbar-links {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--mgy-space-lg);
    margin-left: var(--mgy-space-2xl);
    list-style: none;
    padding: 0;
    padding-top: 4px;
    margin-bottom: 0;
}
.mgy-navbar-links a {
    color: var(--mgy-text-muted);
    font-size: var(--mgy-text-base);
    font-weight: var(--mgy-weight-normal);
    text-decoration: none;
    transition: color var(--mgy-transition-normal);
}
.mgy-navbar-links a:hover,
.mgy-navbar-links a.active {
    color: var(--mgy-text-heading);
    text-decoration: none;
    border: 1px solid var(--mgy-brand);
    border-width: 0 0 1px 0;
}

.mgy-navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--mgy-space-sm);
    margin-left: auto;
}

.mgy-navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--mgy-space-sm);
    color: var(--mgy-text-body);
}
.mgy-navbar-toggle svg { width: 24px; height: 24px; }

.mgy-navbar-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--mgy-bg-card);
    border-bottom: 1px solid var(--mgy-border-light);
    box-shadow: var(--mgy-shadow-dropdown);
    padding: var(--mgy-space-md) var(--mgy-page-padding);
    z-index: 99;
}
.mgy-navbar-mobile.is-open { display: block; }
.mgy-navbar-mobile a {
    display: block;
    padding: var(--mgy-space-sm) 0;
    color: var(--mgy-text-muted);
    text-decoration: none;
    font-size: var(--mgy-text-base);
}
.mgy-navbar-mobile a:hover { color: var(--mgy-text-heading); }


/* ================================
   Tables
   ================================ */

.mgy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--mgy-text-base);
}
.mgy-table th {
    text-align: left;
    font-weight: var(--mgy-weight-semibold);
    color: var(--mgy-text-muted);
    font-size: var(--mgy-text-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: var(--mgy-space-sm) var(--mgy-space-md);
    border-bottom: 2px solid var(--mgy-border-light);
}
.mgy-table td {
    padding: var(--mgy-space-sm) var(--mgy-space-md);
    border-bottom: 1px solid var(--mgy-border-light);
    color: var(--mgy-text-body);
    vertical-align: middle;
}
.mgy-table tr:last-child td { border-bottom: none; }
.mgy-table tr:hover td {
    background: var(--mgy-bg-warm-light);
}

.mgy-table-zebra tr:nth-child(even) td {
    background: var(--mgy-bg-warm-light);
}
.mgy-table-zebra tr:nth-child(even):hover td {
    background: var(--mgy-bg-warm);
}


/* ================================
   Stats
   ================================ */

.mgy-stat {
    padding: var(--mgy-space-lg);
    background: var(--mgy-bg-card);
    border: 1px solid var(--mgy-border-light);
    border-radius: var(--mgy-radius-xl);
    box-shadow: var(--mgy-shadow-card);
}
.mgy-stat-value {
    font-size: var(--mgy-text-4xl);
    font-weight: var(--mgy-weight-semibold);
    color: var(--mgy-text-heading);
    line-height: 1.1;
    margin-bottom: var(--mgy-space-xs);
}
.mgy-stat-label {
    font-size: var(--mgy-text-sm);
    color: var(--mgy-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.mgy-stat-desc {
    font-size: var(--mgy-text-sm);
    color: var(--mgy-text-light);
    margin-top: var(--mgy-space-xs);
}
.mgy-stat-icon {
    font-size: 28px;
    margin-bottom: var(--mgy-space-sm);
}

/* Stat with colored accent border */
.mgy-stat-q1 { border-left: 4px solid var(--mgy-q1); }
.mgy-stat-q2 { border-left: 4px solid var(--mgy-q2); }
.mgy-stat-q3 { border-left: 4px solid var(--mgy-q3); }
.mgy-stat-q4 { border-left: 4px solid var(--mgy-q4); }


/* ================================
   Alerts
   ================================ */

.mgy-alert {
    padding: var(--mgy-space-md) var(--mgy-space-lg);
    border-radius: var(--mgy-radius-lg);
    border-left: 4px solid var(--mgy-border-medium);
    background: var(--mgy-bg-warm);
    color: var(--mgy-text-body);
    font-size: var(--mgy-text-base);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: var(--mgy-space-md);
}
.mgy-alert svg,
.mgy-alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}
.mgy-alert p { margin: 0; }
.mgy-alert p + p { margin-top: var(--mgy-space-sm); }

.mgy-alert-info {
    border-left-color: var(--mgy-info-text);
    background: var(--mgy-info-bg);
    color: var(--mgy-info-text);
}
.mgy-alert-success {
    border-left-color: var(--mgy-success-text);
    background: var(--mgy-success-bg);
    color: var(--mgy-success-text);
}
.mgy-alert-error {
    border-left-color: var(--mgy-error-text);
    background: var(--mgy-error-bg);
    color: var(--mgy-error-text);
}
.mgy-alert-warning {
    border-left-color: var(--mgy-warning-text);
    background: var(--mgy-warning-bg);
    color: var(--mgy-warning-text);
}


/* ================================
   Range Slider
   ================================ */

.mgy-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: var(--mgy-border-light);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}
.mgy-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: var(--mgy-brand);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--mgy-bg-card);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: transform var(--mgy-transition-fast);
}
.mgy-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}
.mgy-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: var(--mgy-brand);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--mgy-bg-card);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
/* Accent variant */
.mgy-range-accent::-webkit-slider-thumb { background: var(--mgy-accent); }
.mgy-range-accent::-moz-range-thumb { background: var(--mgy-accent); }
/* Q1 variant */
.mgy-range-q1::-webkit-slider-thumb { background: var(--mgy-q1); }
.mgy-range-q1::-moz-range-thumb { background: var(--mgy-q1); }


/* ================================
   Progress Bar
   ================================ */

.mgy-progress {
    width: 100%;
    height: 10px;
    background: var(--mgy-border-light);
    border-radius: 5px;
    overflow: hidden;
}
.mgy-progress-bar {
    height: 100%;
    background: var(--mgy-brand);
    border-radius: 5px;
    transition: width 0.3s ease;
}


/* ================================
   Dropdown
   ================================ */

.mgy-dropdown {
    position: relative;
    display: inline-block;
}
.mgy-dropdown-trigger {
    cursor: pointer;
    background: none;
    border: none;
    padding: var(--mgy-space-sm);
    color: var(--mgy-text-body);
    display: flex;
    align-items: center;
    gap: var(--mgy-space-xs);
    font-family: inherit;
    font-size: var(--mgy-text-sm);
}
.mgy-dropdown-trigger:hover {
    color: var(--mgy-text-heading);
}
.mgy-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 160px;
    background: var(--mgy-bg-card);
    border: 1px solid var(--mgy-border-light);
    border-radius: var(--mgy-radius-lg);
    box-shadow: var(--mgy-shadow-dropdown);
    padding: var(--mgy-space-xs) 0;
    z-index: 200;
}
.mgy-dropdown.is-open .mgy-dropdown-content { display: block; }
.mgy-dropdown-content a,
.mgy-dropdown-content button {
    display: block;
    width: 100%;
    text-align: left;
    padding: var(--mgy-space-sm) var(--mgy-space-md);
    color: var(--mgy-text-body);
    font-size: var(--mgy-text-sm);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.mgy-dropdown-content a:hover,
.mgy-dropdown-content button:hover {
    background: var(--mgy-bg-warm);
    color: var(--mgy-text-heading);
}
.mgy-dropdown-divider {
    height: 1px;
    background: var(--mgy-border-light);
    margin: var(--mgy-space-xs) 0;
}


/* ================================
   Avatar
   ================================ */

.mgy-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--mgy-brand);
    color: #FFF;
    font-weight: var(--mgy-weight-semibold);
    font-size: var(--mgy-text-sm);
    text-transform: uppercase;
    flex-shrink: 0;
}
.mgy-avatar-sm { width: 28px; height: 28px; font-size: var(--mgy-text-xs); }
.mgy-avatar-lg { width: 48px; height: 48px; font-size: var(--mgy-text-lg); }


/* ================================
   Form - Labels & Textarea
   ================================ */

.mgy-label {
    display: block;
    font-size: var(--mgy-text-sm);
    font-weight: var(--mgy-weight-medium);
    color: var(--mgy-text-heading);
    margin-bottom: var(--mgy-space-xs);
}
.mgy-label-hint {
    font-size: var(--mgy-text-xs);
    font-weight: var(--mgy-weight-normal);
    color: var(--mgy-text-muted);
}

.mgy-textarea {
    width: 100%;
    min-width: 0;
    padding: var(--mgy-space-sm) var(--mgy-space-md);
    font-size: var(--mgy-text-base);
    font-family: inherit;
    border: 1px solid var(--mgy-border-medium);
    border-radius: var(--mgy-radius-md);
    outline: none;
    resize: vertical;
    background: var(--mgy-bg-card);
    color: var(--mgy-text-body);
    line-height: var(--mgy-leading-normal);
    box-sizing: border-box;
}
.mgy-textarea:focus { border-color: var(--mgy-brand); }


/* ================================
   Badge variants (quadrant)
   ================================ */

.mgy-badge-q1 { background: var(--mgy-q1-bg); color: var(--mgy-q1); }
.mgy-badge-q2 { background: var(--mgy-q2-bg); color: var(--mgy-q2); }
.mgy-badge-q3 { background: var(--mgy-q3-bg); color: var(--mgy-q3); }
.mgy-badge-q4 { background: var(--mgy-q4-bg); color: var(--mgy-q4); }

.mgy-badge-success { background: var(--mgy-success-bg); color: var(--mgy-success-text); }
.mgy-badge-error { background: var(--mgy-error-bg); color: var(--mgy-error-text); }
.mgy-badge-warning { background: var(--mgy-warning-bg); color: var(--mgy-warning-text); }
.mgy-badge-info { background: var(--mgy-info-bg); color: var(--mgy-info-text); }

.mgy-badge-outline {
    background: transparent;
    border: 1px solid var(--mgy-border-medium);
    color: var(--mgy-text-muted);
}
.mgy-badge-xs {
    font-size: 10px;
    padding: 1px 5px;
}


/* ================================
   Utility - Text & Color helpers
   ================================ */

.mgy-text-heading { color: var(--mgy-text-heading); }
.mgy-text-body { color: var(--mgy-text-body); }
.mgy-text-light { color: var(--mgy-text-light); }
.mgy-text-muted { color: var(--mgy-text-muted); }
.mgy-text-faint { color: var(--mgy-text-faint); }
.mgy-text-brand { color: var(--mgy-brand); }
.mgy-text-accent { color: var(--mgy-accent); }
.mgy-text-q1 { color: var(--mgy-q1); }
.mgy-text-q2 { color: var(--mgy-q2); }
.mgy-text-q3 { color: var(--mgy-q3); }
.mgy-text-q4 { color: var(--mgy-q4); }
.mgy-text-success { color: var(--mgy-success-text); }
.mgy-text-error { color: var(--mgy-error-text); }

.mgy-font-brand { font-family: var(--mgy-font-brand); }
.mgy-font-heading { font-family: var(--mgy-font-heading); }

.mgy-text-sm { font-size: var(--mgy-text-sm); }
.mgy-text-xs { font-size: var(--mgy-text-xs); }
.mgy-text-lg { font-size: var(--mgy-text-lg); }
.mgy-text-xl { font-size: var(--mgy-text-xl); }
.mgy-text-2xl { font-size: var(--mgy-text-2xl); }
.mgy-text-3xl { font-size: var(--mgy-text-3xl); }
.mgy-text-4xl { font-size: var(--mgy-text-4xl); }
.mgy-text-5xl { font-size: var(--mgy-text-5xl); }


.mgy-font-medium { font-weight: var(--mgy-weight-medium); }
.mgy-font-semibold { font-weight: var(--mgy-weight-semibold); }

.mgy-line-through { text-decoration: line-through; }
.mgy-uppercase { text-transform: uppercase; }
.mgy-titlecase { text-transform: capitalize; }
.mgy-italic { font-style: italic; }
.mgy-opacity-60 { opacity: 0.6; }

.mgy-border-q1 { border-color: var(--mgy-q1); }
.mgy-border-q2 { border-color: var(--mgy-q2); }
.mgy-border-q3 { border-color: var(--mgy-q3); }
.mgy-border-q4 { border-color: var(--mgy-q4); }


/* ================================
   Responsive
   ================================ */

/* ================================
   Empty state — general pattern
   icon + title + body + CTA, vertically centered.
   Adopted from sift, generalized for any product.
   ================================ */

.mgy-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--mgy-space-xl) var(--mgy-space-md);
    color: var(--mgy-text-light);
}
.mgy-empty-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: var(--mgy-space-md);
    opacity: 0.45;
    color: var(--mgy-text-muted);
}
.mgy-empty-title {
    font-family: var(--mgy-font-heading);
    font-size: var(--mgy-text-xl);
    font-weight: var(--mgy-weight-semibold);
    color: var(--mgy-text-heading);
    margin: 0 0 var(--mgy-space-sm) 0;
}
.mgy-empty-body {
    color: var(--mgy-text-light);
    max-width: 28rem;
    margin: 0 auto var(--mgy-space-lg) auto;
    line-height: var(--mgy-leading-normal);
}

/* ================================
   Inline-editable input — general pattern
   No visible chrome until hover/focus, then warm sand fill.
   For headers, names, subtitles edited directly in place.
   ================================ */

.mgy-inline-edit {
    background: transparent;
    border: 0;
    padding: 0.125rem 0.375rem;
    margin: 0 -0.375rem;
    border-radius: var(--mgy-radius-sm);
    color: inherit;
    font: inherit;
    transition: background var(--mgy-transition-normal);
    width: 100%;
}
.mgy-inline-edit:hover { background: var(--mgy-bg-warm); }
.mgy-inline-edit:focus { background: var(--mgy-bg-warm); outline: none; }

/* ================================
   Toasts — general pattern (sift-toast can be replaced with mgy-toast)
   Top-right stack of dismissable notifications, auto-fade.
   ================================ */

.mgy-toast-container {
    position: fixed;
    top: var(--mgy-space-lg);
    right: var(--mgy-space-lg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--mgy-space-sm);
    max-width: min(420px, calc(100vw - 3rem));
    pointer-events: none;
}
.mgy-toast {
    pointer-events: auto;
    cursor: pointer;
    padding: var(--mgy-space-sm) var(--mgy-space-md);
    border-radius: var(--mgy-radius-lg);
    font-size: var(--mgy-text-sm);
    font-weight: var(--mgy-weight-medium);
    background: var(--mgy-bg-card);
    border: 1px solid var(--mgy-border-light);
    box-shadow: var(--mgy-shadow-card-hover);
    color: var(--mgy-text-body);
    transition: opacity 200ms, transform 200ms;
}
.mgy-toast-success { background: var(--mgy-success-bg); border-color: var(--mgy-success-text); color: var(--mgy-success-text); }
.mgy-toast-error   { background: var(--mgy-error-bg);   border-color: var(--mgy-error-text);   color: var(--mgy-error-text); }
.mgy-toast-info    { background: var(--mgy-info-bg);    border-color: var(--mgy-info-text);    color: var(--mgy-info-text); }
.mgy-toast-warn    { background: var(--mgy-warning-bg); border-color: var(--mgy-warning-text); color: var(--mgy-warning-text); }

/* ---- Checkbox ---- */
.mgy-checkbox {
    -webkit-appearance: none; appearance: none;
    width: 20px; height: 20px; border-radius: 4px;
    border: 2px solid var(--mgy-border-medium);
    background: var(--mgy-bg-card);
    cursor: pointer; position: relative;
    flex-shrink: 0;
    transition: background 150ms, border-color 150ms;
}
.mgy-checkbox:checked {
    background: var(--mgy-brand);
    border-color: var(--mgy-brand);
}
.mgy-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 2px; left: 6px;
    width: 5px; height: 10px;
    border: solid white; border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.mgy-checkbox:focus-visible {
    outline: 2px solid var(--mgy-brand);
    outline-offset: 2px;
}
.mgy-checkbox:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---- Toggle switch ---- */
.mgy-toggle {
    -webkit-appearance: none; appearance: none;
    width: 40px; height: 22px; border-radius: 11px;
    background: var(--mgy-border-medium);
    cursor: pointer; position: relative;
    flex-shrink: 0;
    transition: background 200ms;
}
.mgy-toggle::after {
    content: '';
    position: absolute; top: 2px; left: 2px;
    width: 18px; height: 18px; border-radius: 50%;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: transform 200ms;
}
.mgy-toggle:checked {
    background: var(--mgy-brand);
}
.mgy-toggle:checked::after {
    transform: translateX(18px);
}
.mgy-toggle:focus-visible {
    outline: 2px solid var(--mgy-brand);
    outline-offset: 2px;
}
.mgy-toggle:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mgy-toggle-sm {
    width: 32px; height: 18px; border-radius: 9px;
}
.mgy-toggle-sm::after {
    width: 14px; height: 14px;
}
.mgy-toggle-sm:checked::after {
    transform: translateX(14px);
}
.mgy-toggle-xs {
    width: 26px; height: 14px; border-radius: 7px;
}
.mgy-toggle-xs::after {
    width: 10px; height: 10px;
}
.mgy-toggle-xs:checked::after {
    transform: translateX(12px);
}

/* ================================
   Chat
   ================================ */

.mgy-chat-log {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: var(--mgy-space-md);
}

.mgy-chat-msg {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--mgy-space-md);
    max-width: 80%;
}
.mgy-chat-msg-start { align-self: flex-start; }
.mgy-chat-msg-end { align-self: flex-end; }

.mgy-chat-speaker {
    font-size: var(--mgy-text-xs);
    color: var(--mgy-text-muted);
    margin-bottom: var(--mgy-space-xs);
}
.mgy-chat-msg-end .mgy-chat-speaker { text-align: right; }

.mgy-chat-bubble {
    padding: var(--mgy-space-sm) var(--mgy-space-md);
    border-radius: var(--mgy-radius-lg);
    background: var(--mgy-bg-warm);
    color: var(--mgy-text-body);
    line-height: var(--mgy-leading-relaxed);
    font-size: 0.925rem;
}
.mgy-chat-bubble p { margin: 0 0 0.5rem 0; }
.mgy-chat-bubble p:last-child { margin-bottom: 0; }
.mgy-chat-bubble ul,
.mgy-chat-bubble ol { margin-left: 1.25rem; margin-bottom: 0.5rem; }
.mgy-chat-bubble ul { list-style-type: disc; }
.mgy-chat-bubble ol { list-style-type: decimal; }
.mgy-chat-bubble li { margin-bottom: 0.25rem; padding-left: 0.25rem; }
.mgy-chat-bubble li::marker { color: var(--mgy-text-muted); }
.mgy-chat-bubble h2,
.mgy-chat-bubble h3 {
    font-family: var(--mgy-font-heading);
    margin-top: 0.75rem;
    margin-bottom: 0.375rem;
}
.mgy-chat-bubble h2 { font-size: 1.1rem; }
.mgy-chat-bubble h3 { font-size: 0.95rem; font-weight: var(--mgy-weight-semibold); }
.mgy-chat-bubble strong { font-weight: var(--mgy-weight-semibold); }
.mgy-chat-bubble blockquote {
    border-left: 3px solid var(--mgy-brand);
    padding-left: 0.75rem;
    margin: 0.5rem 0;
    opacity: 0.85;
}

.mgy-chat-bubble-user {
    background: var(--mgy-brand);
    color: #FFF;
}
.mgy-chat-bubble-user li::marker { color: rgba(255, 255, 255, 0.5); }
.mgy-chat-bubble-user blockquote { border-left-color: rgba(255, 255, 255, 0.5); }

.mgy-chat-bubble-accent {
    background: var(--mgy-bg-card);
    border-left: 3px solid var(--mgy-accent);
}

.mgy-chat-typing {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-size: var(--mgy-text-xl);
    line-height: 1;
    color: var(--mgy-text-muted);
}
.mgy-chat-typing span {
    animation: mgy-chat-typing-dot 1.4s infinite both;
}
.mgy-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.mgy-chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes mgy-chat-typing-dot {
    0% { opacity: 0.2; }
    20% { opacity: 1; }
    100% { opacity: 0.2; }
}

.mgy-chat-input {
    display: flex;
    align-items: flex-end;
    gap: var(--mgy-space-sm);
    padding-top: var(--mgy-space-md);
    border-top: 1px solid var(--mgy-border-light);
}

.mgy-chat-loading {
    animation: mgy-chat-fade-in 0.4s ease-in;
}
@keyframes mgy-chat-fade-in {
    from { opacity: 0; }
    to { opacity: 0.5; }
}


@media (max-width: 900px) {
    .mgy-grid-4 { grid-template-columns: 1fr 1fr; }
    .mgy-grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .mgy-navbar-links { display: none; }
    .mgy-navbar-toggle { display: flex; }
}

@media (max-width: 600px) {
    .mgy-grid-2,
    .mgy-grid-3,
    .mgy-grid-4 { grid-template-columns: 1fr; }

    .mgy-signup-form { flex-direction: column; }
    .mgy-signup-fields { flex-direction: column; }
    .mgy-steps { grid-template-columns: 1fr; }
    .mgy-pricing-amount { font-size: var(--mgy-text-4xl); }

    h1 { font-size: var(--mgy-text-3xl); }

    .mgy-table { font-size: var(--mgy-text-sm); }
    .mgy-table th,
    .mgy-table td { padding: var(--mgy-space-xs) var(--mgy-space-sm); }

    .mgy-stat-value { font-size: var(--mgy-text-3xl); }
}
