/*
Theme Name: WarrantyGuard
Theme URI: https://warrantyguard.example.com/
Author: Felix Bundschuh
Author URI: https://example.com/
Description: A modern marketing theme for WarrantyGuard — built to showcase a warranty-tracking iOS app and provide a self-service portal where users can manage their devices in the browser. Glassmorphic design language, mesh gradients, and a frictionless dashboard.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: warrantyguard
Tags: marketing, one-page, custom-colors, custom-menu, custom-logo, full-width-template, threaded-comments, translation-ready
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
    /* Operator palette — sourced from theme.json presets (WP 6.6+),
       with hard fallbacks. Mirrors the dashboard + iOS app. */
    --wg-bg:            var(--wp--preset--color--surface, #ffffff);
    --wg-bg-alt:        var(--wp--preset--color--surface, #ffffff);
    --wg-bg-section:    var(--wp--preset--color--base, #f7f8fa);
    --wg-fg:            var(--wp--preset--color--contrast, #16191f);
    --wg-fg-muted:      var(--wp--preset--color--muted, #5b626e);
    --wg-fg-subtle:     var(--wp--preset--color--subtle, #878d99);
    --wg-border:        var(--wp--preset--color--border, #e2e5ea);
    --wg-border-strong: var(--wp--preset--color--border-strong, #cbd0d8);

    /* Glass surfaces flattened to solid surface + hairline border. */
    --wg-glass-bg:      var(--wp--preset--color--surface, #ffffff);
    --wg-glass-border:  var(--wp--preset--color--border, #e2e5ea);

    /* ONE accent. All former brand stops collapse to forest green so
       any legacy gradient that survives reads as a flat single hue. */
    --wg-accent:        var(--wp--preset--color--accent, #2f6d4f);
    --wg-accent-soft:   var(--wp--preset--color--accent-soft, #e7f0eb);
    --wg-on-accent:     var(--wp--preset--color--on-accent, #ffffff);

    --wg-brand-1:       var(--wg-accent);
    --wg-brand-2:       var(--wg-accent);
    --wg-brand-3:       var(--wg-accent);
    --wg-brand-4:       var(--wg-accent);
    --wg-brand-warm-1:  var(--wp--preset--color--warning, #9a6b16);
    --wg-brand-warm-2:  var(--wp--preset--color--danger, #a23a31);
    --wg-brand-good-1:  var(--wg-accent);
    --wg-brand-good-2:  var(--wg-accent);

    --wg-success:       var(--wp--preset--color--success, #2f6d4f);
    --wg-warning:       var(--wp--preset--color--warning, #9a6b16);
    --wg-danger:        var(--wp--preset--color--danger, #a23a31);

    /* Tight, instrument-grade radii. */
    --wg-radius-sm:     6px;
    --wg-radius-md:     8px;
    --wg-radius-lg:     10px;
    --wg-radius-xl:     12px;

    /* Restrained single shadow; glow disabled. */
    --wg-shadow-sm:     0 1px 2px rgba(22, 25, 31, 0.05);
    --wg-shadow-md:     0 1px 3px rgba(22, 25, 31, 0.06), 0 1px 2px rgba(22, 25, 31, 0.04);
    --wg-shadow-lg:     0 12px 28px -10px rgba(22, 25, 31, 0.18);
    --wg-shadow-glow:   none;

    --wg-font-sans:     -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
    --wg-font-display:  -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
    --wg-font-mono:     ui-monospace, "SF Mono", "Menlo", "Cascadia Mono", "Roboto Mono", monospace;

    --wg-container:     1200px;
    --wg-container-narrow: 880px;

    --wg-ease-snappy:   cubic-bezier(0.32, 0.72, 0, 1);
    --wg-ease-smooth:   cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --wg-bg:            #15181e;
        --wg-bg-alt:        #15181e;
        --wg-bg-section:    #0f1116;
        --wg-fg:            #e9ebee;
        --wg-fg-muted:      #9aa0ab;
        --wg-fg-subtle:     #6b7280;
        --wg-border:        rgba(255, 255, 255, 0.09);
        --wg-border-strong: rgba(255, 255, 255, 0.16);
        --wg-glass-bg:      #15181e;
        --wg-glass-border:  rgba(255, 255, 255, 0.09);
        --wg-accent:        #5fae84;
        --wg-accent-soft:   rgba(95, 174, 132, 0.16);
        --wg-brand-1:       #5fae84;
        --wg-brand-2:       #5fae84;
        --wg-brand-3:       #5fae84;
        --wg-brand-4:       #5fae84;
        --wg-success:       #5fae84;
        --wg-warning:       #d6a44e;
        --wg-danger:        #d98077;

        --wg-shadow-sm:     0 1px 2px rgba(0, 0, 0, 0.3);
        --wg-shadow-md:     0 4px 6px -1px rgba(0, 0, 0, 0.4);
        --wg-shadow-lg:     0 20px 40px -12px rgba(0, 0, 0, 0.5);
    }
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--wg-font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--wg-fg);
    background: var(--wg-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--wg-font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
    color: var(--wg-fg);
}
h1 { font-size: clamp(2.25rem, 4vw + 1rem, 4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.75rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 1vw + 1rem, 1.625rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1em; color: var(--wg-fg-muted); }
p:last-child { margin-bottom: 0; }

a {
    color: var(--wg-accent);
    text-decoration: none;
    transition: color 0.2s var(--wg-ease-smooth);
}
a:hover { color: var(--wg-brand-3); }

::selection { background: rgba(91, 141, 239, 0.25); color: var(--wg-fg); }

/* ==========================================================================
   Layout
   ========================================================================== */
.wg-container {
    width: 100%;
    max-width: var(--wg-container);
    padding-inline: clamp(1rem, 4vw, 2rem);
    margin-inline: auto;
}
.wg-container--narrow { max-width: var(--wg-container-narrow); }

.wg-section {
    padding-block: clamp(4rem, 8vw, 7rem);
    position: relative;
}
.wg-section--alt { background: var(--wg-bg-alt); }
.wg-section--gradient {
    background: linear-gradient(180deg, var(--wg-bg) 0%, var(--wg-bg-section) 100%);
}

.wg-section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: var(--wg-glass-bg);
    border: 1px solid var(--wg-glass-border);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--wg-fg-muted);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 1.25rem;
}
.wg-section__eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wg-brand-1), var(--wg-brand-3));
}

.wg-section__heading {
    text-align: center;
    max-width: 760px;
    margin-inline: auto;
    margin-bottom: 4rem;
}
.wg-section__heading h2 {
    background: linear-gradient(135deg, var(--wg-fg) 0%, var(--wg-fg) 50%, var(--wg-brand-1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.wg-section__heading p {
    font-size: 1.125rem;
    margin-top: 1rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.wg-btn {
    --btn-bg:       var(--wg-fg);
    --btn-fg:       var(--wg-bg);
    --btn-border:   transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    color: var(--btn-fg);
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.18s var(--wg-ease-snappy),
                box-shadow 0.18s var(--wg-ease-smooth),
                background 0.18s var(--wg-ease-smooth),
                color 0.18s var(--wg-ease-smooth);
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.wg-btn:hover { transform: translateY(-1px); box-shadow: var(--wg-shadow-lg); }
.wg-btn:active { transform: translateY(0); }
.wg-btn:focus-visible { outline: 3px solid rgba(91, 141, 239, 0.35); outline-offset: 2px; }
.wg-btn:disabled { opacity: 0.5; pointer-events: none; }

.wg-btn--primary {
    --btn-bg: linear-gradient(135deg, var(--wg-brand-1) 0%, var(--wg-brand-3) 100%);
    --btn-fg: white;
    box-shadow: 0 4px 12px rgba(91, 141, 239, 0.3);
}
.wg-btn--primary:hover { box-shadow: 0 12px 28px rgba(91, 141, 239, 0.4); }

.wg-btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--wg-fg);
    --btn-border: var(--wg-border-strong);
}
.wg-btn--ghost:hover { --btn-bg: var(--wg-bg-section); }

.wg-btn--lg { padding: 1.125rem 2rem; font-size: 1rem; }
.wg-btn--sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }

.wg-btn__icon {
    width: 18px;
    height: 18px;
    transition: transform 0.2s var(--wg-ease-snappy);
}
.wg-btn:hover .wg-btn__icon--arrow { transform: translateX(3px); }

/* ==========================================================================
   Mesh gradient backgrounds (matches iOS app aesthetic)
   ========================================================================== */
.wg-mesh-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.wg-mesh-bg::before,
.wg-mesh-bg::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    will-change: transform;
}
.wg-mesh-bg::before {
    width: 50%;
    height: 50%;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, var(--wg-brand-1) 0%, transparent 70%);
    animation: wg-float-1 22s ease-in-out infinite;
}
.wg-mesh-bg::after {
    width: 60%;
    height: 60%;
    bottom: -20%;
    right: -10%;
    background: radial-gradient(circle, var(--wg-brand-3) 0%, transparent 70%);
    animation: wg-float-2 28s ease-in-out infinite;
}
.wg-mesh-bg__orb {
    position: absolute;
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    background: radial-gradient(circle, var(--wg-brand-2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: wg-float-3 25s ease-in-out infinite;
}

@keyframes wg-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(20%, 10%) scale(1.1); }
    66%      { transform: translate(-10%, 20%) scale(0.95); }
}
@keyframes wg-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-20%, -15%) scale(1.15); }
}
@keyframes wg-float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(15%, -20%) scale(0.9); }
}

@media (prefers-reduced-motion: reduce) {
    .wg-mesh-bg::before,
    .wg-mesh-bg::after,
    .wg-mesh-bg__orb { animation: none; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.wg-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding-block: 1rem;
    transition: background 0.3s var(--wg-ease-smooth),
                box-shadow 0.3s var(--wg-ease-smooth);
}
.wg-header--scrolled {
    background: var(--wg-glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--wg-border);
}

.wg-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.wg-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--wg-fg);
    letter-spacing: -0.01em;
}
.wg-logo:hover { color: var(--wg-fg); }
.wg-logo__mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--wg-brand-1), var(--wg-brand-3));
    display: grid;
    place-items: center;
    color: white;
    box-shadow: 0 4px 12px rgba(91, 141, 239, 0.3);
}

.wg-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.wg-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.wg-nav__list a {
    color: var(--wg-fg-muted);
    padding: 0.5rem 0.875rem;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.18s var(--wg-ease-smooth),
                background 0.18s var(--wg-ease-smooth);
}
.wg-nav__list a:hover { color: var(--wg-fg); background: var(--wg-bg-section); }
.wg-nav__list .current-menu-item > a { color: var(--wg-fg); }

.wg-header__actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.wg-mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--wg-border-strong);
    border-radius: 999px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--wg-fg);
}
.wg-mobile-toggle:focus-visible { outline: 3px solid rgba(91, 141, 239, 0.35); }

@media (max-width: 880px) {
    .wg-nav { display: none; }
    .wg-mobile-toggle { display: inline-flex; }
    .wg-header__actions .wg-btn { display: none; }
    .wg-header__actions .wg-btn--primary { display: inline-flex; }
}

/* Mobile menu drawer */
.wg-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    padding: 1.5rem;
    background: var(--wg-glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    flex-direction: column;
    gap: 1rem;
}
.wg-mobile-menu.is-open { display: flex; }
.wg-mobile-menu__close {
    align-self: flex-end;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--wg-border-strong);
    border-radius: 999px;
    cursor: pointer;
    color: var(--wg-fg);
}
.wg-mobile-menu ul { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-direction: column; gap: 0.5rem; }
.wg-mobile-menu li a {
    display: block;
    padding: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--wg-fg);
    border-radius: var(--wg-radius-md);
}
.wg-mobile-menu li a:hover { background: var(--wg-bg-section); }

/* ==========================================================================
   Hero
   ========================================================================== */
.wg-hero {
    position: relative;
    padding-block: clamp(3rem, 8vw, 6rem) clamp(4rem, 10vw, 8rem);
    overflow: hidden;
}
.wg-hero__inner { position: relative; z-index: 1; text-align: center; }

.wg-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    margin-bottom: 1.75rem;
    background: var(--wg-glass-bg);
    border: 1px solid var(--wg-glass-border);
    border-radius: 999px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    font-size: 0.8125rem;
    color: var(--wg-fg-muted);
    box-shadow: var(--wg-shadow-sm);
}
.wg-hero__badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, var(--wg-brand-1), var(--wg-brand-3));
    color: white;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.75rem;
}

.wg-hero h1 {
    margin-bottom: 1.25rem;
    background: linear-gradient(180deg, var(--wg-fg) 0%, var(--wg-fg) 60%, var(--wg-fg-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.wg-hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--wg-brand-1) 0%, var(--wg-brand-3) 50%, var(--wg-brand-4) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.wg-hero__lede {
    font-size: clamp(1.0625rem, 1vw + 0.875rem, 1.25rem);
    max-width: 600px;
    margin-inline: auto;
    margin-bottom: 2.25rem;
}
.wg-hero__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}
.wg-hero__visual {
    position: relative;
    margin-top: 2rem;
}
.wg-hero__phone {
    margin-inline: auto;
    max-width: 320px;
    aspect-ratio: 9 / 19.5;
    background: linear-gradient(180deg, #1c1f2e 0%, #0a0e1a 100%);
    border-radius: 48px;
    padding: 14px;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.05),
        var(--wg-shadow-glow),
        var(--wg-shadow-lg);
    position: relative;
}
.wg-hero__phone::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 30px;
    background: #000;
    border-radius: 999px;
    z-index: 2;
}
.wg-hero__phone-screen {
    border-radius: 36px;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(160deg,
        rgba(91, 141, 239, 0.18) 0%,
        rgba(168, 85, 247, 0.12) 50%,
        rgba(236, 72, 153, 0.18) 100%),
        var(--wg-bg);
    padding: 60px 20px 20px;
    color: var(--wg-fg);
    position: relative;
}
.wg-hero__phone-screen h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--wg-fg);
}
.wg-hero__phone-screen .wg-mock-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.875rem;
    margin-bottom: 0.625rem;
    background: var(--wg-glass-bg);
    border: 1px solid var(--wg-glass-border);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.8125rem;
}
.wg-hero__phone-screen .wg-mock-stat strong { font-size: 1rem; }
.wg-hero__phone-screen .wg-mock-stat--green { color: var(--wg-success); }
.wg-hero__phone-screen .wg-mock-stat--orange { color: var(--wg-warning); }

/* ==========================================================================
   Feature grid
   ========================================================================== */
.wg-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.wg-feature {
    position: relative;
    padding: 2rem 1.75rem;
    background: var(--wg-bg);
    border: 1px solid var(--wg-border);
    border-radius: var(--wg-radius-lg);
    box-shadow: var(--wg-shadow-sm);
    transition: transform 0.25s var(--wg-ease-snappy),
                box-shadow 0.25s var(--wg-ease-smooth),
                border-color 0.25s var(--wg-ease-smooth);
}
.wg-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--wg-shadow-lg);
    border-color: var(--wg-border-strong);
}
.wg-feature__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: white;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 16px -4px rgba(91, 141, 239, 0.25);
}
.wg-feature__icon svg { width: 28px; height: 28px; }
.wg-feature--blue   .wg-feature__icon { background: linear-gradient(135deg, var(--wg-brand-1), var(--wg-brand-2)); }
.wg-feature--purple .wg-feature__icon { background: linear-gradient(135deg, var(--wg-brand-3), var(--wg-brand-4)); }
.wg-feature--orange .wg-feature__icon { background: linear-gradient(135deg, var(--wg-brand-warm-1), var(--wg-brand-warm-2)); }
.wg-feature--green  .wg-feature__icon { background: linear-gradient(135deg, var(--wg-brand-good-1), var(--wg-brand-good-2)); }

.wg-feature h3 { font-size: 1.1875rem; margin-bottom: 0.5rem; }

/* ==========================================================================
   Pricing
   ========================================================================== */
.wg-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin-inline: auto;
}
.wg-pricing__card {
    position: relative;
    padding: 2.25rem 2rem;
    background: var(--wg-bg);
    border: 1px solid var(--wg-border);
    border-radius: var(--wg-radius-lg);
    box-shadow: var(--wg-shadow-sm);
    display: flex;
    flex-direction: column;
}
.wg-pricing__card--featured {
    border: 2px solid transparent;
    background:
        linear-gradient(var(--wg-bg), var(--wg-bg)) padding-box,
        linear-gradient(135deg, var(--wg-brand-1), var(--wg-brand-3)) border-box;
    box-shadow: var(--wg-shadow-glow);
    transform: scale(1.02);
}
.wg-pricing__badge {
    position: absolute;
    top: -12px;
    right: 24px;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--wg-brand-1), var(--wg-brand-3));
    color: white;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.wg-pricing__name { font-size: 0.875rem; font-weight: 600; color: var(--wg-fg-muted); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.06em; }
.wg-pricing__price {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
    letter-spacing: -0.04em;
}
.wg-pricing__price small { font-size: 0.9375rem; font-weight: 500; color: var(--wg-fg-muted); margin-left: 0.25rem; }
.wg-pricing__desc { font-size: 0.9375rem; margin-bottom: 1.75rem; }
.wg-pricing__features { list-style: none; padding: 0; margin: 0 0 2rem; flex: 1; }
.wg-pricing__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding-block: 0.5rem;
    font-size: 0.9375rem;
    color: var(--wg-fg);
}
.wg-pricing__features li svg { flex: none; width: 18px; height: 18px; color: var(--wg-success); margin-top: 2px; }

/* ==========================================================================
   Testimonial
   ========================================================================== */
.wg-testimonial {
    max-width: 760px;
    margin-inline: auto;
    padding: 3rem;
    background: var(--wg-bg);
    border: 1px solid var(--wg-border);
    border-radius: var(--wg-radius-xl);
    text-align: center;
    box-shadow: var(--wg-shadow-md);
    position: relative;
}
.wg-testimonial::before {
    content: "“";
    position: absolute;
    top: -28px;
    left: 32px;
    font-size: 6rem;
    line-height: 1;
    background: linear-gradient(135deg, var(--wg-brand-1), var(--wg-brand-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: Georgia, serif;
}
.wg-testimonial blockquote {
    margin: 0 0 2rem;
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--wg-fg);
    font-weight: 500;
}
.wg-testimonial__author {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
}
.wg-testimonial__author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.wg-testimonial__author-info { text-align: left; }
.wg-testimonial__author-name { font-weight: 600; }
.wg-testimonial__author-title { font-size: 0.8125rem; color: var(--wg-fg-muted); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.wg-faq { max-width: 760px; margin-inline: auto; }
.wg-faq__item {
    border-bottom: 1px solid var(--wg-border);
}
.wg-faq__item summary {
    list-style: none;
    cursor: pointer;
    padding-block: 1.5rem;
    font-size: 1.0625rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--wg-fg);
}
.wg-faq__item summary::-webkit-details-marker { display: none; }
.wg-faq__item summary::after {
    content: "";
    width: 14px; height: 14px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s var(--wg-ease-snappy);
    flex: none;
}
.wg-faq__item[open] summary::after { transform: rotate(-135deg); }
.wg-faq__item-content { padding-bottom: 1.5rem; color: var(--wg-fg-muted); }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.wg-cta-banner {
    position: relative;
    padding: clamp(3rem, 6vw, 4.5rem) 2rem;
    background: linear-gradient(135deg, var(--wg-brand-1) 0%, var(--wg-brand-3) 50%, var(--wg-brand-4) 100%);
    border-radius: var(--wg-radius-xl);
    color: white;
    text-align: center;
    overflow: hidden;
}
.wg-cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(255,255,255,0.12) 0%, transparent 50%);
}
.wg-cta-banner > * { position: relative; }
.wg-cta-banner h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem);
}
.wg-cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    max-width: 540px;
    margin-inline: auto;
    margin-bottom: 2rem;
}
.wg-cta-banner .wg-btn {
    --btn-bg: white;
    --btn-fg: var(--wg-brand-3);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.wg-footer {
    padding-block: 4rem 2rem;
    background: var(--wg-bg-alt);
    border-top: 1px solid var(--wg-border);
}
.wg-footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}
@media (max-width: 720px) {
    .wg-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .wg-footer__brand { grid-column: 1 / -1; }
}
.wg-footer__brand p { font-size: 0.9375rem; max-width: 320px; margin-top: 1rem; }
.wg-footer h5 { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--wg-fg-muted); margin-bottom: 1rem; }
.wg-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.wg-footer ul a { color: var(--wg-fg); font-size: 0.9375rem; }
.wg-footer ul a:hover { color: var(--wg-accent); }
.wg-footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--wg-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--wg-fg-muted);
}

/* ==========================================================================
   Generic content pages
   ========================================================================== */
.wg-page-hero {
    padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.wg-page-content { padding-block: 0 clamp(4rem, 8vw, 6rem); }
.wg-prose {
    max-width: var(--wg-container-narrow);
    margin-inline: auto;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--wg-fg);
}
.wg-prose h2 { margin-top: 2.5em; margin-bottom: 0.75em; }
.wg-prose h3 { margin-top: 2em; margin-bottom: 0.5em; }
.wg-prose img { border-radius: var(--wg-radius-md); margin-block: 1.5em; }
.wg-prose blockquote {
    border-left: 3px solid var(--wg-accent);
    padding-left: 1.5rem;
    margin: 2em 0;
    color: var(--wg-fg-muted);
    font-style: italic;
}
.wg-prose code {
    font-family: var(--wg-font-mono);
    font-size: 0.875em;
    padding: 0.15em 0.4em;
    background: var(--wg-bg-section);
    border-radius: 6px;
}
.wg-prose pre {
    background: var(--wg-bg-section);
    padding: 1.25rem;
    border-radius: var(--wg-radius-md);
    overflow-x: auto;
}
.wg-prose pre code { padding: 0; background: transparent; }

/* ==========================================================================
   Reveal animation utility
   ========================================================================== */
.wg-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--wg-ease-smooth), transform 0.7s var(--wg-ease-smooth);
}
.wg-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .wg-reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Screen reader only
   ========================================================================== */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 1000;
    padding: 0.5rem 1rem;
    background: var(--wg-fg);
    color: var(--wg-bg);
    border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

/* ==========================================================================
   OPERATOR REDESIGN OVERLAY  (marketing pages)
   Appended last so it overrides legacy glassmorphism. Flattens gradient
   text, glass blur, glow, and multi-color fills into the single-accent
   forest-green operator language used by the dashboard + iOS app.
   ========================================================================== */

/* Gradient-clipped headings -> flat solid ink (no -webkit text clip). */
.wg-section__heading h2,
.wg-hero h1,
.wg-testimonial::before {
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: currentColor !important;
    color: var(--wg-fg) !important;
}
.wg-hero h1 em {
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: var(--wg-accent) !important;
    color: var(--wg-accent) !important;
    font-style: normal;
}

/* Kill glass: solid surfaces + hairline borders, no blur. */
.wg-header,
.wg-header--scrolled,
.wg-mobile-menu,
.wg-hero__badge,
.wg-section__eyebrow,
.wg-hero__phone-screen .wg-mock-stat {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.wg-header,
.wg-header--scrolled {
    background: var(--wg-bg) !important;
    border-bottom: 1px solid var(--wg-border) !important;
    box-shadow: none !important;
}
.wg-hero__badge,
.wg-section__eyebrow {
    background: var(--wg-accent-soft) !important;
    color: var(--wg-accent) !important;
    border: 1px solid var(--wg-border) !important;
    box-shadow: none !important;
}

/* Hero device mock: neutral sunk panel instead of the dark glass band. */
.wg-hero__phone {
    background: var(--wg-bg-section) !important;
    border: 1px solid var(--wg-border) !important;
    box-shadow: var(--wg-shadow-md) !important;
}
.wg-hero__phone-screen .wg-mock-stat {
    background: var(--wg-bg) !important;
    border: 1px solid var(--wg-border) !important;
}

/* Feature icon chips: one flat tonal treatment for every category. */
.wg-feature__icon,
.wg-feature--blue   .wg-feature__icon,
.wg-feature--purple .wg-feature__icon,
.wg-feature--orange .wg-feature__icon,
.wg-feature--green  .wg-feature__icon {
    background: var(--wg-accent-soft) !important;
    color: var(--wg-accent) !important;
    box-shadow: none !important;
}

/* Primary buttons / CTA: flat accent, no gradient, no glow. */
.wg-btn--primary,
.wg-cta-banner,
.wg-pricing__cta--primary {
    background: var(--wg-accent) !important;
    color: var(--wg-on-accent) !important;
    box-shadow: var(--wg-shadow-sm) !important;
}
.wg-btn--primary:hover,
.wg-pricing__cta--primary:hover {
    background: var(--wg-accent) !important;
    filter: brightness(0.95);
    box-shadow: var(--wg-shadow-sm) !important;
}

/* Gradient-border / glow cards -> plain hairline cards. */
.wg-pricing--featured,
.wg-card--gradient-border {
    background: var(--wg-bg) !important;
    border: 1px solid var(--wg-border-strong) !important;
    box-shadow: var(--wg-shadow-md) !important;
}

/* Any stray decorative gradient blob in hero backgrounds. */
.wg-hero::before,
.wg-hero::after,
.wg-section--gradient::before {
    background: none !important;
    filter: none !important;
    opacity: 0 !important;
}
