/* ═══════════════════════════════════════════════════════════════════
   MIT Solutions — Colour relay
   Every section after the hero takes its own tone, and no tone sits next to
   itself. Each section's top edge is cut into a shape (wave, dome, slant,
   scoop) and slides up over the section before it, so the previous colour
   shows through the cut. A lit brand ribbon runs along every cut, the
   section's headline gradient answers its background, and solid cards are
   tinted into the tone — so the colour changes all the way through, not
   just behind.

   Brand palette only. Each tone is built around one brand hue:
     petrol   teal    #006E91      light: aqua
     wine     magenta #8A328A      light: blush
     ink      navy    #344767      light: slate
     lagoon   cyan    #00C9C6      light: white paper (the page's rest beat)
     orchid   pink    #FFB1FF      light: lavender
     midnight cream-rimmed night   light: brand cream #FFF7D6
     dusk     plum → indigo sky    light: cream → blush → lavender sunrise
              (homepage #bundles only — see section 6)
   Light values by default, dark under [data-theme="glass"].
   Load after every section stylesheet.

   Each --tn-*-line ribbon is the same curve as its --tn-* mask shape, stroked.
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --tn-seam: 64px;

    /* shapes — the black area is what stays visible of the section */
    --tn-wave:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0 38C180 6 360 2 560 22s400 46 600 30 220-30 280-36V64H0z'/%3E%3C/svg%3E");
    --tn-wave-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0 18C200 52 420 62 640 42s420-38 600-30 160 14 200 22V64H0z'/%3E%3C/svg%3E");
    --tn-dome:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0 64Q720-60 1440 64z'/%3E%3C/svg%3E");
    --tn-scoop:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0 0Q720 120 1440 0V64H0z'/%3E%3C/svg%3E");
    --tn-rise:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0 64L1440 0V64z'/%3E%3C/svg%3E");
    --tn-fall:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0 0L1440 64H0z'/%3E%3C/svg%3E");

    /* ── light tones ── (first layer = the lit rim along the cut edge) */
    --tn-petrol-base: #cfedf2;
    --tn-petrol:
        radial-gradient(70% 150px at 50% 0, rgba(0,201,198,0.30), transparent 72%),
        radial-gradient(900px 560px at 0% 10%, rgba(0,201,198,0.24), transparent 60%),
        radial-gradient(900px 600px at 100% 100%, rgba(0,110,145,0.18), transparent 62%),
        linear-gradient(170deg, #dcf3f6 0%, #c3e7ee 100%);
    --tn-petrol-hl: linear-gradient(110deg, #8A328A 0%, #C77DBA 50%, #344767 100%);

    --tn-wine-base: #f8d9ee;
    --tn-wine:
        radial-gradient(70% 150px at 50% 0, rgba(199,125,186,0.38), transparent 72%),
        radial-gradient(900px 560px at 100% 0%, rgba(255,177,255,0.40), transparent 60%),
        radial-gradient(900px 600px at 0% 100%, rgba(138,50,138,0.14), transparent 62%),
        linear-gradient(170deg, #fde7f5 0%, #f2cbe6 100%);
    --tn-wine-hl: linear-gradient(110deg, #006E91 0%, #00a6ae 55%, #344767 100%);

    --tn-ink-base: #dce3f0;
    --tn-ink:
        radial-gradient(70% 150px at 50% 0, rgba(52,71,103,0.20), transparent 72%),
        radial-gradient(900px 560px at 0% 0%, rgba(52,71,103,0.18), transparent 60%),
        radial-gradient(800px 520px at 100% 100%, rgba(0,201,198,0.14), transparent 62%),
        linear-gradient(170deg, #e7edf7 0%, #d0daeb 100%);
    --tn-ink-hl: linear-gradient(110deg, #8A328A 0%, #C77DBA 45%, #00a6ae 100%);

    --tn-lagoon-base: #ffffff;
    --tn-lagoon:
        radial-gradient(70% 150px at 50% 0, rgba(0,201,198,0.18), transparent 72%),
        radial-gradient(900px 560px at 100% 0%, rgba(0,201,198,0.12), transparent 60%),
        radial-gradient(800px 520px at 0% 100%, rgba(255,177,255,0.18), transparent 62%),
        linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
    --tn-lagoon-hl: linear-gradient(110deg, #00a6ae 0%, #8A328A 60%, #C77DBA 100%);

    --tn-orchid-base: #e8d6f7;
    --tn-orchid:
        radial-gradient(70% 150px at 50% 0, rgba(138,50,138,0.22), transparent 72%),
        radial-gradient(900px 560px at 0% 0%, rgba(199,125,186,0.30), transparent 60%),
        radial-gradient(800px 520px at 100% 100%, rgba(52,71,103,0.10), transparent 62%),
        linear-gradient(170deg, #f2e5fb 0%, #dfc8f3 100%);
    --tn-orchid-hl: linear-gradient(110deg, #006E91 0%, #00a6ae 60%, #344767 100%);

    --tn-midnight-base: #fff0c4;
    --tn-midnight:
        radial-gradient(70% 150px at 50% 0, rgba(255,179,107,0.40), transparent 72%),
        radial-gradient(800px 480px at 88% 10%, rgba(255,177,255,0.26), transparent 60%),
        radial-gradient(800px 480px at 8% 92%, rgba(0,201,198,0.16), transparent 62%),
        linear-gradient(170deg, #fff7d6 0%, #ffeab0 100%);
    --tn-midnight-hl: linear-gradient(110deg, #8A328A 0%, #c46fc4 50%, #006E91 100%);

    /* solid cards stay white in light mode */
    --tn-petrol-card: #ffffff;  --tn-wine-card: #ffffff;   --tn-ink-card: #ffffff;
    --tn-lagoon-card: #ffffff;  --tn-orchid-card: #ffffff; --tn-midnight-card: #ffffff;

    /* ribbons along the cut: the same curve as each mask shape, stroked
       (28px halo at 26% + 9px core, non-scaling so the width holds on
       phones; half of each stroke sits above the cut and is masked) */
    --tn-wave-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 96' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='1440' y2='0'%3E%3Cstop offset='0' stop-color='rgb(0,166,174)'/%3E%3Cstop offset='0.35' stop-color='rgb(199,125,186)'/%3E%3Cstop offset='0.65' stop-color='rgb(138,50,138)'/%3E%3Cstop offset='1' stop-color='rgb(0,110,145)'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)' vector-effect='non-scaling-stroke'%3E%3Cpath d='M0 38C180 6 360 2 560 22s400 46 600 30 220-30 280-36' stroke-width='28' stroke-opacity='.26' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 38C180 6 360 2 560 22s400 46 600 30 220-30 280-36' stroke-width='9' vector-effect='non-scaling-stroke'/%3E%3C/g%3E%3C/svg%3E");
    --tn-wave-b-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 96' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='1440' y2='0'%3E%3Cstop offset='0' stop-color='rgb(0,166,174)'/%3E%3Cstop offset='0.35' stop-color='rgb(199,125,186)'/%3E%3Cstop offset='0.65' stop-color='rgb(138,50,138)'/%3E%3Cstop offset='1' stop-color='rgb(0,110,145)'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)' vector-effect='non-scaling-stroke'%3E%3Cpath d='M0 18C200 52 420 62 640 42s420-38 600-30 160 14 200 22' stroke-width='28' stroke-opacity='.26' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 18C200 52 420 62 640 42s420-38 600-30 160 14 200 22' stroke-width='9' vector-effect='non-scaling-stroke'/%3E%3C/g%3E%3C/svg%3E");
    --tn-dome-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 96' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='1440' y2='0'%3E%3Cstop offset='0' stop-color='rgb(0,166,174)'/%3E%3Cstop offset='0.35' stop-color='rgb(199,125,186)'/%3E%3Cstop offset='0.65' stop-color='rgb(138,50,138)'/%3E%3Cstop offset='1' stop-color='rgb(0,110,145)'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)' vector-effect='non-scaling-stroke'%3E%3Cpath d='M0 64Q720-60 1440 64' stroke-width='28' stroke-opacity='.26' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 64Q720-60 1440 64' stroke-width='9' vector-effect='non-scaling-stroke'/%3E%3C/g%3E%3C/svg%3E");
    --tn-scoop-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 96' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='1440' y2='0'%3E%3Cstop offset='0' stop-color='rgb(0,166,174)'/%3E%3Cstop offset='0.35' stop-color='rgb(199,125,186)'/%3E%3Cstop offset='0.65' stop-color='rgb(138,50,138)'/%3E%3Cstop offset='1' stop-color='rgb(0,110,145)'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)' vector-effect='non-scaling-stroke'%3E%3Cpath d='M0 0Q720 120 1440 0' stroke-width='28' stroke-opacity='.26' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 0Q720 120 1440 0' stroke-width='9' vector-effect='non-scaling-stroke'/%3E%3C/g%3E%3C/svg%3E");
    --tn-rise-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 96' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='1440' y2='0'%3E%3Cstop offset='0' stop-color='rgb(0,166,174)'/%3E%3Cstop offset='0.35' stop-color='rgb(199,125,186)'/%3E%3Cstop offset='0.65' stop-color='rgb(138,50,138)'/%3E%3Cstop offset='1' stop-color='rgb(0,110,145)'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)' vector-effect='non-scaling-stroke'%3E%3Cpath d='M0 64L1440 0' stroke-width='28' stroke-opacity='.26' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 64L1440 0' stroke-width='9' vector-effect='non-scaling-stroke'/%3E%3C/g%3E%3C/svg%3E");
    --tn-fall-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 96' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='1440' y2='0'%3E%3Cstop offset='0' stop-color='rgb(0,166,174)'/%3E%3Cstop offset='0.35' stop-color='rgb(199,125,186)'/%3E%3Cstop offset='0.65' stop-color='rgb(138,50,138)'/%3E%3Cstop offset='1' stop-color='rgb(0,110,145)'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)' vector-effect='non-scaling-stroke'%3E%3Cpath d='M0 0L1440 64' stroke-width='28' stroke-opacity='.26' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 0L1440 64' stroke-width='9' vector-effect='non-scaling-stroke'/%3E%3C/g%3E%3C/svg%3E");
}

[data-theme="glass"] {
    /* Dark mode is a night palette: every sheet stays deep and rich (no neon
       mid-tones on big areas). Sections still read apart because they
       alternate a lifted sheet (petrol sea, aubergine, steel, dusty violet —
       ~14–20% lightness) with a deep one (ink, midnight, dusk — ~6–10%),
       change hue at every seam, and carry the lit ribbon along each cut.
       Cards sit darker than their sheet so they still lift off it. */
    --tn-petrol-base: #0c3447;
    --tn-petrol:
        radial-gradient(70% 160px at 50% 0, rgba(0,201,198,0.22), transparent 72%),
        radial-gradient(900px 560px at 0% 12%, rgba(0,201,198,0.12), transparent 60%),
        radial-gradient(1000px 640px at 100% 100%, rgba(0,110,145,0.50), transparent 62%),
        linear-gradient(170deg, #092a3b 0%, #0d3a50 55%, #0a2c3d 100%);
    --tn-petrol-hl: linear-gradient(110deg, #FFF7D6 0%, #FFB1FF 55%, #e0a5d6 100%);
    --tn-petrol-card: rgba(4,22,33,0.82);

    --tn-wine-base: #33103a;
    --tn-wine:
        radial-gradient(70% 160px at 50% 0, rgba(255,177,255,0.20), transparent 72%),
        radial-gradient(900px 560px at 100% 0%, rgba(199,125,186,0.16), transparent 60%),
        radial-gradient(1000px 640px at 0% 100%, rgba(138,50,138,0.45), transparent 62%),
        linear-gradient(170deg, #2a0c30 0%, #3a1241 55%, #280b2e 100%);
    --tn-wine-hl: linear-gradient(110deg, #5eead4 0%, #8ff5ea 45%, #FFF7D6 100%);
    --tn-wine-card: rgba(22,5,26,0.82);

    --tn-ink-base: #0e1526;
    --tn-ink:
        radial-gradient(70% 160px at 50% 0, rgba(0,201,198,0.14), transparent 72%),
        radial-gradient(900px 560px at 0% 0%, rgba(52,71,103,0.55), transparent 60%),
        radial-gradient(800px 520px at 100% 100%, rgba(199,125,186,0.10), transparent 62%),
        linear-gradient(170deg, #0a101e 0%, #111a2e 55%, #0b1221 100%);
    --tn-ink-hl: linear-gradient(110deg, #FFB1FF 0%, #FFF7D6 50%, #5eead4 100%);
    --tn-ink-card: rgba(30,42,68,0.90);

    /* lagoon: lifted steel-blue night (brand navy #344767 lit by a cyan moon) */
    --tn-lagoon-base: #1b2c48;
    --tn-lagoon:
        radial-gradient(70% 160px at 50% 0, rgba(94,234,212,0.20), transparent 72%),
        radial-gradient(900px 560px at 100% 0%, rgba(0,201,198,0.16), transparent 60%),
        radial-gradient(900px 600px at 0% 100%, rgba(199,125,186,0.12), transparent 62%),
        linear-gradient(165deg, #17253e 0%, #213656 55%, #162339 100%);
    --tn-lagoon-hl: linear-gradient(110deg, #FFF7D6 0%, #FFB1FF 60%, #ffd6ff 100%);
    --tn-lagoon-card: rgba(9,17,32,0.82);

    --tn-orchid-base: #2a1c4a;
    --tn-orchid:
        radial-gradient(70% 160px at 50% 0, rgba(255,177,255,0.20), transparent 72%),
        radial-gradient(900px 560px at 0% 0%, rgba(255,177,255,0.10), transparent 60%),
        radial-gradient(1000px 640px at 100% 100%, rgba(138,50,138,0.32), transparent 62%),
        linear-gradient(170deg, #22173d 0%, #2e2052 55%, #201536 100%);
    --tn-orchid-hl: linear-gradient(110deg, #5eead4 0%, #FFF7D6 70%, #FFF7D6 100%);
    --tn-orchid-card: rgba(16,10,32,0.84);

    /* midnight: the darkest sheet, cream rim + a faint star field */
    --tn-midnight-base: #090a13;
    --tn-midnight:
        radial-gradient(70% 160px at 50% 0, rgba(255,247,214,0.16), transparent 72%),
        radial-gradient(rgba(255,247,214,0.20) 1px, transparent 1.6px) 0 0 / 46px 46px,
        radial-gradient(rgba(0,201,198,0.16) 1px, transparent 1.6px) 23px 23px / 46px 46px,
        radial-gradient(800px 480px at 88% 10%, rgba(255,177,255,0.14), transparent 60%),
        radial-gradient(800px 480px at 8% 92%, rgba(0,201,198,0.14), transparent 62%),
        linear-gradient(180deg, #07080f 0%, #0b0d18 100%);
    --tn-midnight-hl: linear-gradient(110deg, #FFF7D6 0%, #FFB1FF 45%, #00C9C6 100%);
    --tn-midnight-card: rgba(22,24,44,0.94);

    /* ribbons along the cut: the same curve as each mask shape, stroked
       (28px halo at 26% + 9px core, non-scaling so the width holds on
       phones; half of each stroke sits above the cut and is masked) */
    --tn-wave-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 96' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='1440' y2='0'%3E%3Cstop offset='0' stop-color='rgb(0,201,198)'/%3E%3Cstop offset='0.3' stop-color='rgb(255,177,255)'/%3E%3Cstop offset='0.55' stop-color='rgb(255,247,214)'/%3E%3Cstop offset='0.78' stop-color='rgb(199,125,186)'/%3E%3Cstop offset='1' stop-color='rgb(0,201,198)'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)' vector-effect='non-scaling-stroke'%3E%3Cpath d='M0 38C180 6 360 2 560 22s400 46 600 30 220-30 280-36' stroke-width='28' stroke-opacity='.26' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 38C180 6 360 2 560 22s400 46 600 30 220-30 280-36' stroke-width='9' vector-effect='non-scaling-stroke'/%3E%3C/g%3E%3C/svg%3E");
    --tn-wave-b-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 96' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='1440' y2='0'%3E%3Cstop offset='0' stop-color='rgb(0,201,198)'/%3E%3Cstop offset='0.3' stop-color='rgb(255,177,255)'/%3E%3Cstop offset='0.55' stop-color='rgb(255,247,214)'/%3E%3Cstop offset='0.78' stop-color='rgb(199,125,186)'/%3E%3Cstop offset='1' stop-color='rgb(0,201,198)'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)' vector-effect='non-scaling-stroke'%3E%3Cpath d='M0 18C200 52 420 62 640 42s420-38 600-30 160 14 200 22' stroke-width='28' stroke-opacity='.26' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 18C200 52 420 62 640 42s420-38 600-30 160 14 200 22' stroke-width='9' vector-effect='non-scaling-stroke'/%3E%3C/g%3E%3C/svg%3E");
    --tn-dome-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 96' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='1440' y2='0'%3E%3Cstop offset='0' stop-color='rgb(0,201,198)'/%3E%3Cstop offset='0.3' stop-color='rgb(255,177,255)'/%3E%3Cstop offset='0.55' stop-color='rgb(255,247,214)'/%3E%3Cstop offset='0.78' stop-color='rgb(199,125,186)'/%3E%3Cstop offset='1' stop-color='rgb(0,201,198)'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)' vector-effect='non-scaling-stroke'%3E%3Cpath d='M0 64Q720-60 1440 64' stroke-width='28' stroke-opacity='.26' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 64Q720-60 1440 64' stroke-width='9' vector-effect='non-scaling-stroke'/%3E%3C/g%3E%3C/svg%3E");
    --tn-scoop-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 96' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='1440' y2='0'%3E%3Cstop offset='0' stop-color='rgb(0,201,198)'/%3E%3Cstop offset='0.3' stop-color='rgb(255,177,255)'/%3E%3Cstop offset='0.55' stop-color='rgb(255,247,214)'/%3E%3Cstop offset='0.78' stop-color='rgb(199,125,186)'/%3E%3Cstop offset='1' stop-color='rgb(0,201,198)'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)' vector-effect='non-scaling-stroke'%3E%3Cpath d='M0 0Q720 120 1440 0' stroke-width='28' stroke-opacity='.26' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 0Q720 120 1440 0' stroke-width='9' vector-effect='non-scaling-stroke'/%3E%3C/g%3E%3C/svg%3E");
    --tn-rise-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 96' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='1440' y2='0'%3E%3Cstop offset='0' stop-color='rgb(0,201,198)'/%3E%3Cstop offset='0.3' stop-color='rgb(255,177,255)'/%3E%3Cstop offset='0.55' stop-color='rgb(255,247,214)'/%3E%3Cstop offset='0.78' stop-color='rgb(199,125,186)'/%3E%3Cstop offset='1' stop-color='rgb(0,201,198)'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)' vector-effect='non-scaling-stroke'%3E%3Cpath d='M0 64L1440 0' stroke-width='28' stroke-opacity='.26' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 64L1440 0' stroke-width='9' vector-effect='non-scaling-stroke'/%3E%3C/g%3E%3C/svg%3E");
    --tn-fall-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 96' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='0' y1='0' x2='1440' y2='0'%3E%3Cstop offset='0' stop-color='rgb(0,201,198)'/%3E%3Cstop offset='0.3' stop-color='rgb(255,177,255)'/%3E%3Cstop offset='0.55' stop-color='rgb(255,247,214)'/%3E%3Cstop offset='0.78' stop-color='rgb(199,125,186)'/%3E%3Cstop offset='1' stop-color='rgb(0,201,198)'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)' vector-effect='non-scaling-stroke'%3E%3Cpath d='M0 0L1440 64' stroke-width='28' stroke-opacity='.26' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 0L1440 64' stroke-width='9' vector-effect='non-scaling-stroke'/%3E%3C/g%3E%3C/svg%3E");
}

@media (max-width: 768px) {
    :root { --tn-seam: 36px; }
}


/* ── 1. Tone per section ─────────────────────────────────────────── */
body.home-page #stats, body.home-page #products, body.home-page #partners,
main > section.bxp-section:nth-of-type(6n+2) {
    --tn-bg: var(--tn-petrol); --tn-base: var(--tn-petrol-base); --tn-hl: var(--tn-petrol-hl); --tn-card: var(--tn-petrol-card);
}
body.home-page #one-team, body.home-page #services, body.home-page #clients,
main > section.bxp-section:nth-of-type(6n+3) {
    --tn-bg: var(--tn-wine); --tn-base: var(--tn-wine-base); --tn-hl: var(--tn-wine-hl); --tn-card: var(--tn-wine-card);
}
body.home-page #swarm-build, body.home-page #sub-services, body.home-page #business-journey,
main > section.bxp-section:nth-of-type(6n+4) {
    --tn-bg: var(--tn-ink); --tn-base: var(--tn-ink-base); --tn-hl: var(--tn-ink-hl); --tn-card: var(--tn-ink-card);
}
body.home-page #process, body.home-page #contact,
main > section.bxp-section:nth-of-type(6n+1) {
    --tn-bg: var(--tn-lagoon); --tn-base: var(--tn-lagoon-base); --tn-hl: var(--tn-lagoon-hl); --tn-card: var(--tn-lagoon-card);
}
body.home-page #launch48, body.home-page #ai-products,
main > section.bxp-section:nth-of-type(6n) {
    --tn-bg: var(--tn-midnight); --tn-base: var(--tn-midnight-base); --tn-hl: var(--tn-midnight-hl); --tn-card: var(--tn-midnight-card);
}
body.home-page #go-live, body.home-page #subscription, body.home-page #faq,
main > section.bxp-section:nth-of-type(6n+5) {
    --tn-bg: var(--tn-orchid); --tn-base: var(--tn-orchid-base); --tn-hl: var(--tn-orchid-hl); --tn-card: var(--tn-orchid-card);
}


/* ── 2. Edge shape + matching ribbon per section ─────────────────── */
body.home-page #one-team, body.home-page #services, body.home-page #clients,
main > section.bxp-section:nth-of-type(4n+2)       { --tn-shape: var(--tn-dome);   --tn-line: var(--tn-dome-line); }
body.home-page #swarm-build, body.home-page #process, body.home-page #partners,
main > section.bxp-section:nth-of-type(4n+3)       { --tn-shape: var(--tn-rise);   --tn-line: var(--tn-rise-line); }
body.home-page #bundles, body.home-page #subscription, body.home-page #faq,
main > section.bxp-section:nth-of-type(4n)         { --tn-shape: var(--tn-wave);   --tn-line: var(--tn-wave-line); }
body.home-page #launch48, body.home-page #ai-products, body.home-page #contact,
main > section.bxp-section:nth-of-type(4n+1)       { --tn-shape: var(--tn-fall);   --tn-line: var(--tn-fall-line); }
body.home-page #go-live, body.home-page #business-journey
                                                   { --tn-shape: var(--tn-scoop);  --tn-line: var(--tn-scoop-line); }
body.home-page #products, body.home-page #sub-services
                                                   { --tn-shape: var(--tn-wave-b); --tn-line: var(--tn-wave-b-line); }


/* ── 3. The overlapping sheet ────────────────────────────────────── */
/* A transparent top border adds the seam's height without touching each
   section's own padding; the section slides up by the same amount and the
   mask cuts the shape out of that strip. The ribbon is a background layer
   (not a pseudo-element) so sections with overflow:hidden still show it. */
body.home-page main > section:is(
    #one-team, #swarm-build, #bundles, #launch48, #go-live, #products,
    #services, #sub-services, #ai-products, #subscription, #process,
    #business-journey, #clients, #partners, #faq, #contact),
body.classic-page main > section.bxp-section:not(:first-child) {
    position: relative;
    margin-top: calc(-1 * var(--tn-seam));
    margin-bottom: 0;
    border-top: var(--tn-seam) solid transparent;
    background:
        var(--tn-line) top / 100% calc(var(--tn-seam) * 1.5) no-repeat,
        var(--tn-bg);
    background-origin: border-box;
    -webkit-mask:
        var(--tn-shape) top / 100% var(--tn-seam) no-repeat,
        linear-gradient(#000 0 0) 0 calc(var(--tn-seam) - 1px) / 100% 100% no-repeat;
            mask:
        var(--tn-shape) top / 100% var(--tn-seam) no-repeat,
        linear-gradient(#000 0 0) 0 calc(var(--tn-seam) - 1px) / 100% 100% no-repeat;
    --glass-page-tone: var(--tn-base);

    /* headline gradients answer the background */
    --pr-grad: var(--tn-hl);
    --sw-title-grad: var(--tn-hl);
    --lx-title-grad: var(--tn-hl);
    --l4-title-grad: var(--tn-hl);
    --pt-title-grad: var(--tn-hl);
    --sx-grad: var(--tn-hl);

    /* solid cards take the tone instead of the old plum */
    --sw-board: var(--tn-card);
    --l4-card: var(--tn-card);
    --pt-card: var(--tn-card);
    --pr-card: linear-gradient(160deg, var(--tn-card), var(--tn-card));
    --sx-console: linear-gradient(160deg, var(--tn-card), var(--tn-card));
}
body.home-page main > section .bx-title-ink,
body.classic-page main > section.bxp-section .bx-title-ink {
    background: var(--tn-hl, linear-gradient(110deg, #00a6ae, #8A328A));
    -webkit-background-clip: text; background-clip: text;
}

/* The straight brand hairlines along each band's top edge would now float
   below the shaped edge — the ribbon replaces them. */
body.home-page #one-team::after,
body.home-page #swarm-build::after,
body.home-page #go-live::after,
body.home-page #partners::after,
body.home-page #launch48::before { display: none; }


/* ── 4. Stats: the card bridges hero → petrol ────────────────────── */
/* The band floats 118px up into the hero, so its colour starts behind the
   card's middle with a wave, rather than masking the card itself. */
body.home-page #stats {
    background: transparent;
    padding-bottom: calc(var(--space-3xl) + var(--tn-seam));
}
body.home-page #stats::before {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    top: calc(118px - var(--tn-seam));
    z-index: -1;
    background:
        var(--tn-wave-line) top / 100% calc(var(--tn-seam) * 1.5) no-repeat,
        var(--tn-bg);
    -webkit-mask:
        var(--tn-wave) top / 100% var(--tn-seam) no-repeat,
        linear-gradient(#000 0 0) 0 calc(var(--tn-seam) - 1px) / 100% 100% no-repeat;
            mask:
        var(--tn-wave) top / 100% var(--tn-seam) no-repeat,
        linear-gradient(#000 0 0) 0 calc(var(--tn-seam) - 1px) / 100% 100% no-repeat;
}


/* ── 5. Rings that "cut" through a rail take the local tone ───────── */
body.home-page #process .proc-num {
    box-shadow: 0 8px 26px rgba(0,194,203,0.30), 0 0 0 6px var(--tn-base);
}
body.home-page #process .proc-step:hover .proc-num {
    box-shadow: 0 12px 34px rgba(199,125,186,0.42), 0 0 0 6px var(--tn-base);
}
body.home-page #business-journey .journey-dot {
    box-shadow: 0 8px 26px rgba(0,194,203,0.30), 0 0 0 6px var(--tn-base);
}
[data-theme="glass"] body.home-page #process .proc-num {
    box-shadow: 0 0 22px rgba(0,201,198,0.32), 0 10px 30px rgba(0,0,0,0.42), 0 0 0 6px var(--tn-base);
}
[data-theme="glass"] body.home-page #process .proc-step:hover .proc-num {
    box-shadow: 0 0 30px rgba(199,125,186,0.5), 0 12px 34px rgba(0,0,0,0.46), 0 0 0 6px var(--tn-base);
}
[data-theme="glass"] body.home-page #business-journey .journey-dot {
    box-shadow: 0 0 22px rgba(0,201,198,0.32), 0 10px 30px rgba(0,0,0,0.42), 0 0 0 6px var(--tn-base);
}


/* ── 6. Bundles: "dusk" — the box opens under an evening sky ─────── */
/* Plum sky falling into indigo, a cream horizon glowing under the ribbon,
   two aurora curtains (orchid + cyan) drifting slowly behind the cards,
   and a faint perspective floor the three boxes stand on. */
:root {
    --tn-dusk-base: #f6e3f2;
    --tn-dusk:
        radial-gradient(60% 190px at 50% 0, rgba(255,247,214,0.95), transparent 75%),
        radial-gradient(700px 420px at 12% 18%, rgba(255,177,255,0.40), transparent 62%),
        radial-gradient(760px 460px at 90% 30%, rgba(199,125,186,0.30), transparent 62%),
        radial-gradient(900px 520px at 50% 105%, rgba(52,71,103,0.16), transparent 65%),
        linear-gradient(180deg, #fff7e4 0%, #f9e2f1 40%, #eadcf6 100%);
    --tn-dusk-hl: linear-gradient(110deg, #8A328A 0%, #C77DBA 45%, #006E91 100%);
    --tn-dusk-aurora-a: rgba(255,177,255,0.45);
    --tn-dusk-aurora-b: rgba(0,201,198,0.18);
    --tn-dusk-floor: rgba(138,50,138,0.12);
}
[data-theme="glass"] {
    --tn-dusk-base: #22103a;
    --tn-dusk:
        radial-gradient(58% 200px at 50% 0, rgba(255,247,214,0.24), transparent 72%),
        radial-gradient(46% 340px at 50% 0, rgba(255,177,255,0.22), transparent 74%),
        radial-gradient(900px 600px at 0% 100%, rgba(138,50,138,0.45), transparent 62%),
        radial-gradient(900px 600px at 100% 85%, rgba(52,71,103,0.70), transparent 62%),
        linear-gradient(180deg, #361041 0%, #2b1242 32%, #1e163c 68%, #121530 100%);
    --tn-dusk-hl: linear-gradient(110deg, #FFF7D6 0%, #FFB1FF 50%, #00C9C6 100%);
    --tn-dusk-aurora-a: rgba(255,177,255,0.26);
    --tn-dusk-aurora-b: rgba(0,201,198,0.16);
    --tn-dusk-floor: rgba(255,177,255,0.16);
}

body.home-page #bundles {
    --tn-bg: var(--tn-dusk); --tn-base: var(--tn-dusk-base); --tn-hl: var(--tn-dusk-hl);
    --tn-card: var(--tn-dusk-base);
    isolation: isolate;
}
/* aurora curtains */
body.home-page #bundles::before {
    content: '';
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(38% 55% at 22% 38%, var(--tn-dusk-aurora-a), transparent 70%),
        radial-gradient(34% 50% at 78% 46%, var(--tn-dusk-aurora-b), transparent 70%),
        radial-gradient(30% 40% at 52% 60%, var(--tn-dusk-aurora-a), transparent 72%);
    background-size: 140% 140%;
    filter: blur(8px);
    animation: tn-dusk-drift 26s ease-in-out infinite alternate;
}
/* perspective floor under the cards */
body.home-page #bundles::after {
    content: '';
    position: absolute; left: -20%; right: -20%; bottom: 0; height: 46%;
    z-index: -1; pointer-events: none;
    background:
        linear-gradient(var(--tn-dusk-floor) 1px, transparent 1px) 0 0 / 100% 44px,
        linear-gradient(90deg, var(--tn-dusk-floor) 1px, transparent 1px) 50% 0 / 64px 100%;
    transform: perspective(520px) rotateX(58deg);
    transform-origin: 50% 100%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%, #000 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 55%, #000 100%);
}
@keyframes tn-dusk-drift {
    0%   { background-position: 0% 0%, 100% 0%, 50% 100%; }
    50%  { background-position: 30% 40%, 70% 30%, 40% 60%; }
    100% { background-position: 60% 10%, 40% 70%, 60% 40%; }
}
@media (prefers-reduced-motion: reduce) {
    body.home-page #bundles::before { animation: none; }
}
/* glass cards: the basic card's cyan wash read green on the old sheet —
   on dusk it becomes a cool indigo glass, so all three boxes stay distinct */
[data-theme="glass"] body.home-page #bundles .bx-card--basic {
    background:
        radial-gradient(420px 260px at 0% 0%, rgba(0,201,198,0.20), transparent 62%),
        linear-gradient(160deg, rgba(28,36,78,0.78) 0%, rgba(30,30,70,0.62) 60%, rgba(40,28,74,0.55) 100%);
}


/* ── 7. Dark mode: no neon slabs ─────────────────────────────────── */
/* The journey stat banners are full cyan→magenta paint in light mode; at
   night they become deep jewel panels — the brand colours as light pooled
   in opposite corners, with a thin lit edge — so they still stand out
   without glaring. */
[data-theme="glass"] body.home-page .journey-banner {
    box-shadow: inset 0 0 0 1px rgba(255,177,255,0.20), 0 30px 70px -34px rgba(0,0,0,0.7);
}
[data-theme="glass"] body.home-page .journey-banner-leads {
    background:
        radial-gradient(640px 320px at 0% 0%, rgba(0,201,198,0.34), transparent 62%),
        radial-gradient(700px 360px at 100% 100%, rgba(199,125,186,0.40), transparent 62%),
        linear-gradient(135deg, #0a2b3c 0%, #24123d 55%, #3a1241 100%);
}
[data-theme="glass"] body.home-page .journey-banner-ai {
    background:
        radial-gradient(640px 320px at 0% 0%, rgba(199,125,186,0.38), transparent 62%),
        radial-gradient(700px 360px at 100% 100%, rgba(0,201,198,0.30), transparent 62%),
        linear-gradient(135deg, #36113f 0%, #1f1a45 55%, #0b2e40 100%);
}
[data-theme="glass"] body.home-page .journey-banner-savings {
    background:
        radial-gradient(640px 320px at 50% 0%, rgba(255,247,214,0.14), transparent 62%),
        radial-gradient(700px 360px at 0% 100%, rgba(0,201,198,0.30), transparent 62%),
        radial-gradient(700px 360px at 100% 100%, rgba(138,50,138,0.40), transparent 62%),
        linear-gradient(135deg, #0b2e40 0%, #13223f 50%, #2a1240 100%);
}
[data-theme="glass"] body.home-page .journey-banner-glow { opacity: .5; }

/* FAQ rows: frosted white over violet came out electric — use the tone's card */
[data-theme="glass"] body.home-page #faq .bx-faq details {
    background: var(--tn-card);
    border-color: rgba(255,177,255,0.14);
}
[data-theme="glass"] body.home-page #faq .bx-faq details[open] { border-color: rgba(0,201,198,0.40); }

/* product cards: the frosted glass saturated the petrol sheet into a bright
   blue slab — sit them on the tone's dark card with only a hint of accent */
[data-theme="glass"] body.home-page #products .pd-banner {
    background: linear-gradient(152deg, var(--pa-soft) 0%, transparent 60%), var(--tn-card);
    -webkit-backdrop-filter: none; backdrop-filter: none;
}
