/* Webdoon brand site */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'PeydaWebVF', Tahoma, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #16161d;
    background: #eeeef4;
    direction: rtl;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a:focus-visible { outline: 2px solid #16161d; outline-offset: 4px; border-radius: 6px; }
.wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }

/* Fine pointer: custom goo cursor */
@media (hover: hover) and (pointer: fine) {
    html, body, a, button { cursor: none; }
}
@media (hover: none), (pointer: coarse) {
    #cursor, .cursor-label { display: none !important; }
}

/* Noise */
#noise { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100vh; opacity: .2; pointer-events: none; }

/* Cursor label */
.cursor-label {
    position: fixed; top: 0; left: 0; z-index: 1001;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border-radius: 999px;
    background: #fff; color: #16161d;
    font-size: 14px; font-weight: 600; white-space: nowrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    pointer-events: none;
    opacity: 0; transform: translate(-200px, -200px);
    transition: opacity .25s ease;
    will-change: transform;
}
.cursor-label b { font-weight: 400; }
.cursor-label.is-on { opacity: 1; }

/* Page wipe */
.wipe {
    position: fixed; inset: 0; z-index: 2000; pointer-events: none;
    background: var(--wipe, #16161d);
    clip-path: circle(0 at var(--x, 50%) var(--y, 50%));
    transition: clip-path .55s cubic-bezier(.7, 0, .2, 1);
}
.wipe.is-on { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); pointer-events: auto; }

/* ───── Floating pill nav (kept from the old site) ───── */
.pill {
    position: fixed; left: 50%; bottom: 24px; z-index: 50;
    padding: 6px; border-radius: 24px;
    background: #fff; border: 1px solid rgba(0, 0, 0, .14);
    box-shadow: 0 14px 40px rgba(20, 20, 40, .1);
    transform: translateX(-50%) scale(1);
    transition: opacity .8s ease, transform .8s ease, filter .8s ease, visibility .8s;
}
.pill.is-hidden { opacity: 0; visibility: hidden; filter: blur(20px); transform: translateX(-50%) scale(1.2); }
.pill nav { display: flex; align-items: stretch; gap: 4px; }
.pill-link {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; align-items: center;
    padding: 0 26px; border-radius: 18px;
    font-size: 15px; color: #000;
    transition: color .2s ease;
}
.pill-link::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: #000; transform: translateY(100%);
    transition: transform .25s ease-in;
}
.pill-link:hover { color: #fff; }
.pill-link:hover::before { transform: translateY(0); }
.pill-cta {
    display: flex; align-items: center; gap: 14px;
    padding: 9px 22px; border-radius: 18px;
    background: #000; color: #fff;
    transition: transform .2s ease;
}
.pill-cta:hover { transform: translateY(-2px); }
.pill-cta svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pill-cta span { display: grid; line-height: 1.45; }
.pill-cta b { font-size: 14.5px; font-weight: 600; letter-spacing: 1px; }
.pill-cta small { font-size: 12.5px; font-weight: 300; color: #cdcddd; }

/* ───── Hero ───── */
.hero {
    position: relative; isolation: isolate;
    min-height: 100vh; min-height: 100svh;
    display: grid; place-items: center;
    padding: 80px 20px 140px;
    overflow: hidden;
    text-align: center;
}
.hero-video {
    position: absolute; inset: 0; z-index: -2;
    width: 100%; height: 100%; object-fit: contain;
    opacity: .2; pointer-events: none;
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, #eeeef4 0%, rgba(233, 233, 237, 1) 26%, rgba(233, 233, 237, 0) 50%, rgba(233, 233, 237, 1) 74%, #eeeef4 100%);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-logo { display: inline-block; opacity: 0; animation: rise .9s .1s cubic-bezier(.2, .8, .2, 1) forwards; }
.hero-logo svg { display: block; height: clamp(40px, 5vw, 58px); width: auto; fill: #16161d; }
.hero-title {
    margin-top: clamp(28px, 4vw, 44px);
    font-size: clamp(38px, 6.4vw, 96px);
    font-weight: 250; line-height: 1.22; letter-spacing: -.5px;
    color: #1f1f2b;
}
.ht-line { display: block; opacity: 0; animation: rise .9s cubic-bezier(.2, .8, .2, 1) forwards; }
.ht-line:nth-child(1) { animation-delay: .22s; }
.ht-line:nth-child(2) { animation-delay: .34s; }
.ht-type { min-height: 1.22em; white-space: nowrap; }
.tw { font-weight: 650; color: var(--tw, #16161d); transition: color .3s ease; }
.tw-caret {
    display: inline-block; width: .06em; height: .9em; margin-inline-start: .08em;
    background: var(--caret, #16161d); vertical-align: -.08em; border-radius: 2px;
    animation: blink 1s steps(1) infinite;
}
.hero-sub {
    margin-top: clamp(18px, 2.4vw, 26px);
    max-width: 32em;
    font-size: clamp(15px, 1.4vw, 19px); font-weight: 300;
    color: #54547e;
    opacity: 0; animation: rise .9s .48s cubic-bezier(.2, .8, .2, 1) forwards;
}
.hero-cue {
    position: absolute; bottom: 104px; left: 50%; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; color: #49496d;
}
.hero-cue span { display: inline-block; animation: nudge 1.8s ease-in-out infinite; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes nudge { 50% { transform: translateY(5px); } }

/* ───── Products ───── */
.products { padding: clamp(40px, 8vw, 110px) 0 clamp(60px, 10vw, 140px); }
.eyebrow {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 22px;
    font-size: 14px; font-weight: 500; color: #49496d;
}
.eyebrow span {
    display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px;
    border-radius: 999px; background: #16161d; color: #fff; font-size: 12px;
}
.p-list { border-top: 1px solid rgba(22, 22, 29, .16); }
.p-list li { border-bottom: 1px solid rgba(22, 22, 29, .16); }
.p-row {
    position: relative; isolation: isolate; overflow: hidden;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto 64px 40px;
    align-items: center; column-gap: 20px;
    padding: clamp(18px, 2.6vw, 30px) clamp(8px, 1.6vw, 22px);
    color: #16161d;
    transition: color .35s ease;
}
.p-fill {
    position: absolute; inset: 0; z-index: -1;
    background: var(--c);
    transform: translateY(101%);
    transition: transform .5s cubic-bezier(.7, 0, .2, 1);
}
.p-num { font-size: 15px; font-weight: 400; color: #8a8aa6; transition: color .35s ease; }
.p-name {
    font-size: clamp(40px, 6vw, 92px);
    font-weight: 300; line-height: 1.15; letter-spacing: -.5px;
    transition: transform .5s cubic-bezier(.7, 0, .2, 1);
}
.p-desc { font-size: clamp(14px, 1.3vw, 17px); font-weight: 300; color: #54547e; transition: color .35s ease; white-space: nowrap; }
.p-logo {
    display: grid; place-items: center; height: 64px;
    color: var(--g);
    opacity: 0; transform: translateX(-24px);
    transition: opacity .35s ease, transform .5s cubic-bezier(.7, 0, .2, 1);
}
.p-logo svg { width: auto; height: 54px; }
.p-logo.is-round svg { height: 50px; }
.p-arrow {
    justify-self: end;
    font-size: 26px; line-height: 1; color: #16161d;
    transition: transform .5s cubic-bezier(.7, 0, .2, 1), color .35s ease;
}

.p-row:hover, .p-row:focus-visible { color: var(--on); }
.p-row:hover .p-fill, .p-row:focus-visible .p-fill { transform: translateY(0); }
.p-row:hover .p-name, .p-row:focus-visible .p-name { transform: translateX(-14px); }
.p-row:hover .p-num, .p-row:hover .p-desc, .p-row:hover .p-arrow,
.p-row:focus-visible .p-num, .p-row:focus-visible .p-desc, .p-row:focus-visible .p-arrow { color: var(--on); }
.p-row:hover .p-logo, .p-row:focus-visible .p-logo { opacity: 1; transform: none; }
.p-row:hover .p-arrow, .p-row:focus-visible .p-arrow { transform: translate(-6px, -6px); }
.p-row:focus-visible { outline: none; }

/* Touch: show the colour and logo without hover */
@media (hover: none) {
    .p-row::after { content: ""; position: absolute; inset-block: 18%; right: 0; width: 4px; border-radius: 4px; background: var(--c); }
    .p-logo { opacity: 1; transform: none; color: var(--c); }
    .p-row[style*="#0d2a26"] .p-logo { color: #b4762e; }
}

/* ───── About ───── */
.about { padding: 0 0 clamp(90px, 12vw, 160px); }
.about-text {
    max-width: 22em;
    font-size: clamp(24px, 3.2vw, 44px);
    font-weight: 300; line-height: 1.55; color: #1f1f2b;
}
.about-text span { color: #8a8aa6; }
.about-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 28px; font-size: 15px; color: #8a8aa6; }
.about-contact a { color: #16161d; border-bottom: 1px solid rgba(22, 22, 29, .25); transition: border-color .2s; }
.about-contact a:hover { border-color: #16161d; }

/* ───── Footer (pinned reveal, kept from the old site) ───── */
.footer { background: transparent; }
.footer-stage { height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.footer-content {
    position: relative; overflow: hidden; isolation: isolate;
    width: 100vw; height: 100vh; height: 100svh;
    background: #000;
    display: grid; place-items: center;
    clip-path: polygon(42% 0%, 52% 0%, 52% 10%, 42% 10%);
}
.footer-content video {
    position: absolute; inset: 0; z-index: -1;
    width: 100%; height: 100%; object-fit: cover; filter: grayscale(1);
}
.footer-words {
    padding-inline: 20px;
    font-size: clamp(26px, 4vw, 54px); font-weight: 300; line-height: 1.5;
    color: #fff; text-align: center;
}
.footer-words span { display: inline-block; opacity: .12; transition: opacity .2s linear; }

.footer-bottom { background: #000; color: rgba(255, 255, 255, .55); }
.fb-row { display: flex; align-items: center; gap: 18px; padding-block: 22px 26px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.fb-top {
    flex: none; display: grid; place-items: center; width: 40px; height: 40px;
    border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff;
    transition: background-color .2s;
}
.fb-top:hover { background: rgba(255, 255, 255, .16); }
.fb-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fb-copy { flex: 1; }
.fb-credit { display: inline-flex; align-items: center; gap: 14px; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.35; text-align: left; }
.fb-credit-text { display: inline-grid; gap: 3px; }
.fb-credit-text b, .fb-credit-text i { display: block; white-space: nowrap; text-align: justify; text-align-last: justify; }
.fb-credit-text b { font-size: 9.5px; font-weight: 700; letter-spacing: 2.4px; color: #fff; }
.fb-credit-text i { font-style: normal; font-size: 13px; letter-spacing: 1.6px; color: rgba(255, 255, 255, .6); transition: color .2s; }
.fb-sep { width: 1px; height: 30px; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .3), transparent); }
.fb-credit svg { height: 34px; width: auto; fill: rgba(255, 255, 255, .9); }
.fb-credit:hover i { color: #fff; }

/* ───── Responsive ───── */
@media (max-width: 900px) {
    .p-row { grid-template-columns: 52px minmax(0, 1fr) 56px 30px; row-gap: 2px; }
    .p-desc { grid-column: 2 / 3; grid-row: 2; white-space: normal; }
    .p-logo { grid-column: 3; grid-row: 1 / 3; height: 52px; }
    .p-logo svg { height: 44px; }
    .p-arrow { grid-column: 4; grid-row: 1 / 3; }
    .p-num { grid-row: 1 / 3; align-self: start; padding-top: .9em; }
}
@media (max-width: 600px) {
    body { font-size: 15px; }
    .hero { padding: 64px 18px 150px; }
    .hero-video { object-fit: cover; opacity: .16; }
    .hero::before { background: radial-gradient(ellipse 70% 45% at 50% 50%, rgba(233, 233, 237, 0) 0%, rgba(233, 233, 237, .55) 60%, #eeeef4 100%); }
    .hero-title { font-size: clamp(30px, 9.6vw, 44px); line-height: 1.35; }
    .hero-cue { bottom: 112px; }
    .p-row { grid-template-columns: 34px minmax(0, 1fr) 40px 22px; column-gap: 12px; padding-inline: 4px; }
    .p-num { font-size: 13px; }
    .p-name { font-size: clamp(30px, 9vw, 40px); }
    .p-desc { font-size: 13.5px; }
    .p-logo { height: 44px; }
    .p-logo svg { height: 34px; }
    .p-logo.is-round svg { height: 32px; }
    .p-arrow { font-size: 20px; }
    .pill { bottom: 14px; padding: 5px; border-radius: 20px; }
    .pill-link { padding: 0 14px; font-size: 14px; border-radius: 15px; }
    .pill-cta { padding: 9px 14px; gap: 8px; border-radius: 15px; }
    .pill-cta small { display: none; }
    .pill-cta b { font-size: 13px; letter-spacing: 0; white-space: nowrap; }
    .pill-link { white-space: nowrap; }
    .pill-cta svg { width: 18px; height: 18px; }
    .fb-row { flex-wrap: wrap; gap: 14px 12px; padding-bottom: 96px; }
    .fb-copy { flex: 1 1 0; min-width: 0; font-size: 12.5px; }
    .fb-credit { flex: 1 1 100%; justify-content: center; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
}
@media (max-width: 370px) {
    .pill-link[href="#about"] { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-video { display: none; }
    .hero-logo, .ht-line, .hero-sub { animation: none; opacity: 1; }
    .tw-caret, .hero-cue span { animation: none; }
    .p-fill, .p-name, .p-logo, .p-arrow, .wipe { transition: none; }
    .footer-words span { opacity: 1; }
}

/* Light footer bar (reveal section removed) */
.footer-bottom { background: transparent; color: #54547e; }
.fb-row { border-top: 1px solid rgba(22, 22, 29, .14); }
.fb-top { background: #fff; border-color: rgba(22, 22, 29, .14); color: #16161d; }
.fb-top:hover { background: #16161d; color: #fff; }
.fb-credit-text b { color: #16161d; }
.fb-credit-text i { color: #54547e; }
.fb-credit:hover i { color: #16161d; }
.fb-sep { background: linear-gradient(180deg, transparent, rgba(22, 22, 29, .3), transparent); }
.fb-credit svg { fill: #16161d; }
@media (max-width: 600px) { .fb-credit { border-top-color: rgba(22, 22, 29, .1); } }
.products { padding-bottom: clamp(70px, 9vw, 120px); }

/* Hero: back to the old site's feel */
.hero::before { background: linear-gradient(90deg, #eeeef4 0%, #e9e9ed 30%, rgba(233, 233, 237, 0) 50%, #e9e9ed 70%, #eeeef4 100%); }
.hero-inner { gap: 30px; }
.hero-logo { margin-bottom: 4px; }
.hero-top { font-size: 14px; color: #49496d; opacity: 0; animation: rise .9s .18s cubic-bezier(.2, .8, .2, 1) forwards; }
.hero-title { margin-top: 0; font-size: clamp(38px, 5.2vw, 72px); font-weight: 300; line-height: 1.45; letter-spacing: 0; color: #333; opacity: 0; animation: rise .9s .3s cubic-bezier(.2, .8, .2, 1) forwards; }
.hero-sub { margin-top: 0; font-size: clamp(16px, 1.5vw, 20px); font-weight: 200; color: #54547e; }
@media (max-width: 600px) {
    .hero-inner { gap: 22px; }
    .hero-top { font-size: 12.5px; }
    .hero-title { font-size: clamp(32px, 10vw, 42px); }
}
@media (prefers-reduced-motion: reduce) { .hero-top, .hero-title { animation: none; opacity: 1; } }

/* Logo inside the pill nav */
.pill-logo { display: flex; align-items: center; padding: 0 14px 0 18px; border-left: 1px solid rgba(0, 0, 0, .1); margin-left: 4px; transition: opacity .2s; }
.pill-logo:hover { opacity: .7; }
.pill-logo svg { display: block; height: 30px; width: auto; fill: #000; }
.hero-sub { line-height: 1.9; }
@media (max-width: 600px) {
    .pill-logo { padding: 0 10px 0 12px; margin-left: 2px; }
    .pill-logo svg { height: 24px; }
    .hero-sub br { display: none; }
}

/* «وب‌دون» in the hero title: code braces that open around the name */
.brand-word { display: inline-flex; align-items: center; gap: .12em; margin-inline: .06em; white-space: nowrap; vertical-align: baseline; }
.brand-word b { position: relative; font-weight: 750; color: #0d0d14; }
.brand-word b::after {
    content: ""; position: absolute; right: 0; left: 0; bottom: .06em; height: .14em; border-radius: .1em;
    background: linear-gradient(90deg, #e2364a, #0b63e5 35%, #ffb800 68%, #1e5c4f);
    transform: scaleX(0); transform-origin: right;
    animation: bw-line .9s 1.35s cubic-bezier(.7, 0, .2, 1) forwards;
}
.bw-br { font-style: normal; font-weight: 150; color: #9a9ab8; display: inline-block; opacity: 0; }
.bw-l { animation: bw-open-l .8s .95s cubic-bezier(.2, .9, .3, 1.2) forwards, bw-breathe-l 3.2s 2.4s ease-in-out infinite; }
.bw-r { animation: bw-open-r .8s .95s cubic-bezier(.2, .9, .3, 1.2) forwards, bw-breathe-r 3.2s 2.4s ease-in-out infinite; }
@keyframes bw-open-l { from { opacity: 0; transform: translateX(.9em); } to { opacity: 1; transform: none; } }
@keyframes bw-open-r { from { opacity: 0; transform: translateX(-.9em); } to { opacity: 1; transform: none; } }
@keyframes bw-breathe-l { 0%, 100% { opacity: 1; transform: none; } 50% { opacity: 1; transform: translateX(-.08em); } }
@keyframes bw-breathe-r { 0%, 100% { opacity: 1; transform: none; } 50% { opacity: 1; transform: translateX(.08em); } }
@keyframes bw-line { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
    .bw-br { animation: none; opacity: 1; }
    .brand-word b::after { animation: none; transform: none; }
}
@media (max-width: 360px) {
    .pill { bottom: 10px; }
    .pill-logo { padding: 0 8px 0 10px; }
    .pill-logo svg { height: 22px; }
    .pill-link { padding: 0 10px; font-size: 13px; }
    .pill-cta { padding: 8px 10px; gap: 6px; }
    .pill-cta b { font-size: 12.5px; }
    .hero-title { font-size: 29px; }
    .hero-sub { font-size: 14.5px; }
}
.brand-word b::after { content: none; display: none; }
/* Logos always visible in the product colour; on hover they switch to the on-fill colour */
.p-logo { opacity: 1; transform: none; color: var(--c); transition: color .35s ease, transform .5s cubic-bezier(.7, 0, .2, 1); }
.p-row:hover .p-logo, .p-row:focus-visible .p-logo { color: var(--g); transform: scale(1.08) rotate(-4deg); }

/* ───── Contact ───── */
.contact { padding: 0 0 clamp(80px, 10vw, 130px); }
.contact-lead { max-width: 22em; margin-bottom: clamp(24px, 3vw, 36px); font-size: clamp(24px, 3vw, 40px); font-weight: 300; line-height: 1.5; color: #1f1f2b; }
.contact-lead span { color: #8a8aa6; }
.c-row .p-num { font-size: 14px; color: #54547e; }
.c-value { font-size: clamp(22px, 3.6vw, 54px); font-weight: 300; letter-spacing: 0; text-align: right; overflow-wrap: anywhere; font-family: 'PeydaWebVF', ui-sans-serif, system-ui, sans-serif; }
.c-row:hover .c-value, .c-row:focus-visible .c-value { transform: translateX(-10px); }
.c-icon { color: #16161d; }
.c-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.c-row:hover .c-icon, .c-row:focus-visible .c-icon { transform: rotate(-8deg); }
@media (hover: none) { .c-row::after { background: #16161d; } .c-row .p-logo { color: #16161d; } }
@media (max-width: 900px) { .c-row .p-num { padding-top: .5em; } }
@media (max-width: 600px) {
    .c-row .p-num { font-size: 12px; }
    .c-value { font-size: clamp(18px, 5.6vw, 26px); }
    .c-icon svg { width: 26px; height: 26px; }
}
@media (max-width: 600px) {
    .c-row { grid-template-columns: minmax(0, 1fr) 36px 22px; }
    .c-row .p-num { display: none; }
    .c-row .c-value { grid-column: 1; grid-row: 1; font-size: clamp(17px, 5.4vw, 22px); white-space: nowrap; overflow-wrap: normal; }
    .c-row .p-desc { grid-column: 1; grid-row: 2; }
    .c-row .p-logo { grid-column: 2; }
    .c-row .p-arrow { grid-column: 3; }
}
@media (max-width: 600px) { .c-row { padding-right: 16px; } }
/* Monochrome logos at rest; product colour only appears in the hover fill */
.p-logo { color: #16161d; }
@media (hover: none) { .p-logo, .p-row[style*="#0d2a26"] .p-logo { color: #16161d; } }

/* Braces drawn from the Webdoon mark */
.brand-word { gap: .16em; }
.bw-br { line-height: 0; color: #16161d; }
.bw-br svg { display: block; height: .82em; width: auto; }
.bw-r svg { transform: scaleX(-1); }
.bw-br svg { height: 1.02em; } .brand-word { gap: .2em; }
@media (min-width: 701px) { .hero-sub { max-width: none; white-space: nowrap; } }
@media (max-width: 430px) { .pill-link[href="#contact"] { display: none; } }

/* ───── Version badge next to each product name ───── */
.p-ver {
    display: inline-block; vertical-align: top; margin-inline-start: .5em; margin-top: .55em;
    padding: 2px 9px; border-radius: 999px; border: 1px solid rgba(22, 22, 29, .18);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 12px; font-weight: 600; letter-spacing: .4px; line-height: 1.5; color: #54547e;
    transition: color .35s ease, border-color .35s ease;
}
.p-row:hover .p-ver, .p-row:focus-visible .p-ver { color: var(--on); border-color: currentColor; }
@media (max-width: 600px) { .p-ver { font-size: 10.5px; padding: 1px 7px; margin-top: .4em; } }

/* ───── Contact: copy buttons + messaging row ───── */
.c-list li { position: relative; }
.c-copy {
    position: absolute; top: 50%; left: 110px; transform: translateY(-50%);
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
    border: 1px solid rgba(22, 22, 29, .16); background: rgba(255, 255, 255, .7); color: #16161d;
    font: inherit; font-size: 12.5px; cursor: pointer; z-index: 2;
    opacity: 0; transition: opacity .25s ease, background-color .2s, color .2s;
}
.c-copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c-list li:hover .c-copy, .c-copy:focus-visible { opacity: 1; }
.c-copy:hover { background: #fff; }
.c-copy.is-done { opacity: 1; background: #16161d; color: #fff; border-color: #16161d; }
@media (hover: none) { .c-copy { opacity: 1; } }
.c-static { cursor: default; }
.c-apps { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.c-app {
    display: inline-flex; align-items: center; gap: .3em;
    padding: .05em .55em .12em; border-radius: .4em; border: 1px solid rgba(22, 22, 29, .2);
    font-size: .72em; transition: background-color .25s, color .25s, border-color .25s;
}
.c-app i { font-style: normal; font-size: .6em; }
.c-app:hover { background: #16161d; color: #fff; border-color: #16161d; }
@media (max-width: 900px) { .c-copy { left: 92px; } }
@media (max-width: 600px) {
    .c-copy { position: static; transform: none; margin: 4px 16px 14px 0; opacity: 1; }
    .c-list li { display: flex; flex-direction: column; align-items: flex-start; }
    .c-list li > a, .c-list li > div { width: 100%; }
    .c-apps { gap: 8px; }
    .c-app { font-size: 18px; padding: 4px 12px 6px; }
}

/* ───── Dark mode (follows the visitor's system setting) ───── */
@media (prefers-color-scheme: dark) {
    body { background: #0d0d13; color: #ececf4; }
    :root { color-scheme: dark; }
    #noise { opacity: .12; }
    .hero-video { filter: invert(1); opacity: .16; }
    .hero::before { background: linear-gradient(90deg, #0d0d13 0%, #101017 30%, rgba(16, 16, 23, 0) 50%, #101017 70%, #0d0d13 100%); }
    @media (max-width: 600px) { .hero::before { background: radial-gradient(ellipse 70% 45% at 50% 50%, rgba(16, 16, 23, 0) 0%, rgba(16, 16, 23, .55) 60%, #0d0d13 100%); } }
    .hero-top, .hero-cue { color: #a4a4c4; }
    .hero-title { color: #ececf4; }
    .hero-sub { color: #a4a4c4; }
    .brand-word b, .bw-br { color: #fff; }
    .pill { background: #17171f; border-color: rgba(255, 255, 255, .12); box-shadow: 0 14px 40px rgba(0, 0, 0, .5); }
    .pill-link { color: #ececf4; }
    .pill-link::before { background: #fff; }
    .pill-link:hover { color: #0d0d13; }
    .pill-logo { border-color: rgba(255, 255, 255, .12); }
    .pill-logo svg { fill: #fff; }
    .pill-cta { background: #fff; color: #0d0d13; }
    .pill-cta small { color: #55556e; }
    .eyebrow { color: #a4a4c4; }
    .eyebrow span { background: #fff; color: #0d0d13; }
    .p-list, .p-list li { border-color: rgba(255, 255, 255, .12); }
    .p-row { color: #ececf4; }
    .p-num { color: #6e6e8c; }
    .p-desc { color: #a4a4c4; }
    .p-arrow, .p-logo, .c-icon { color: #ececf4; }
    .p-ver { color: #a4a4c4; border-color: rgba(255, 255, 255, .2); }
    .contact-lead { color: #ececf4; }
    .contact-lead span { color: #6e6e8c; }
    .c-row { --c: #ffffff !important; --on: #0d0d13 !important; --g: #0d0d13 !important; }
    .c-copy { background: rgba(23, 23, 31, .8); color: #ececf4; border-color: rgba(255, 255, 255, .16); }
    .c-copy:hover { background: #17171f; }
    .c-copy.is-done { background: #fff; color: #0d0d13; border-color: #fff; }
    .c-app { border-color: rgba(255, 255, 255, .22); }
    .c-app:hover { background: #fff; color: #0d0d13; border-color: #fff; }
    .footer-bottom { color: #a4a4c4; }
    .fb-row { border-color: rgba(255, 255, 255, .1); }
    .fb-top { background: #17171f; border-color: rgba(255, 255, 255, .12); color: #fff; }
    .fb-top:hover { background: #fff; color: #0d0d13; }
    .fb-credit-text b { color: #fff; }
    .fb-credit-text i { color: #a4a4c4; }
    .fb-credit:hover i { color: #fff; }
    .fb-sep { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .3), transparent); }
    .fb-credit svg { fill: #fff; }
    .cursor-label { background: #fff; color: #0d0d13; }
    @media (hover: none) { .p-logo, .p-row[style*="#0d2a26"] .p-logo { color: #ececf4; } .c-row::after { background: #fff; } }
    .p-row[style*="#0d2a26"] .p-fill { background: #1e5c4f; }
}
/* Copy button takes the icon's place on hover */
.c-copy { left: calc(clamp(8px, 1.6vw, 22px) + 40px + 20px + 32px); transform: translate(-50%, -50%); }
.c-list li:hover .c-icon { opacity: 0; }
@media (max-width: 900px) { .c-copy { left: calc(clamp(8px, 1.6vw, 22px) + 30px + 20px + 28px); } }
@media (max-width: 600px) { .c-copy { left: auto; transform: none; } .c-list li:hover .c-icon { opacity: 1; } }

/* SVG arrows (unicode arrows render as emoji on iOS) */
.ar{display:inline-block;width:1em;height:1em;vertical-align:-.12em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.p-arrow .ar { width: 26px; height: 26px; stroke-width: 1.6; }
@media (max-width: 600px) { .p-arrow .ar { width: 20px; height: 20px; } }
.c-list li:hover .c-static .c-icon { opacity: 1; }

/* ───── Mobile list polish: no colour bars, cleaner spacing ───── */
@media (hover: none) { .p-row::after, .c-row::after { content: none; display: none; } }
@media (max-width: 600px) {
    .p-row { grid-template-columns: 26px minmax(0, 1fr) 40px 20px; column-gap: 10px; row-gap: 4px; padding: 20px 2px; }
    .p-num { grid-row: 1; align-self: center; padding-top: 0; font-size: 12px; }
    .p-name { grid-column: 2; grid-row: 1; line-height: 1.25; }
    .p-desc { grid-column: 2; grid-row: 2; line-height: 1.6; }
    .p-logo { grid-column: 3; grid-row: 1 / 3; align-self: center; }
    .p-arrow { grid-column: 4; grid-row: 1 / 3; align-self: center; }
    .p-ver { margin-top: .3em; }

    /* Contact rows: copy button sits in the arrow's place */
    .c-row { grid-template-columns: minmax(0, 1fr) 36px 58px; padding: 20px 2px; }
    .c-row .c-value { grid-column: 1; grid-row: 1; }
    .c-row .p-desc { grid-column: 1; grid-row: 2; }
    .c-row .p-logo { grid-column: 2; grid-row: 1 / 3; }
    .c-row .p-arrow { display: none; }
    .c-list li { display: block; }
    .c-copy { position: absolute; top: 50%; left: 2px; right: auto; transform: translateY(-50%); margin: 0; padding: 6px 10px; }
    .c-static { grid-template-columns: minmax(0, 1fr) 36px 58px; }
}

/* Mobile footer: copyright centred, go-to-top beside the Webdoon credit */
@media (max-width: 600px) {
    .fb-row { justify-content: center; gap: 16px 14px; }
    .fb-copy { order: 1; flex: 1 1 100%; text-align: center; padding-bottom: 16px; border-bottom: 1px solid rgba(22, 22, 29, .1); }
    .fb-credit { order: 2; flex: 0 0 auto; padding-top: 0; border-top: 0; }
    .fb-top { order: 3; }
}
@media (max-width: 600px) and (prefers-color-scheme: dark) { .fb-copy { border-color: rgba(255, 255, 255, .1); } }
